New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Renders Mermaid diagrams to SVG and 4K PNG using the Beautiful Mermaid library with selectable themes.

skills.sh installs
1.9K
GitHub stars
304
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers flowcharts, sequence, state, class, and entity-relationship diagrams, with a default theme when none is specified
  • Includes render.ts for SVG output, create-html.ts for a screenshot wrapper, and a PNG capture step via agent-browser
  • Enforces cleanup of intermediary HTML and temporary .mmd files so only the final .svg and .png remain
  • Designed for requests to render a Mermaid diagram that need both a vector file and a high-resolution image

Install

$ npx -y skills add intellectronica/agent-skills --skill beautiful-mermaid -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Beautiful Mermaid Diagram Rendering

Render Mermaid diagrams as SVG and PNG images using the Beautiful Mermaid library.

Dependencies

This skill requires the agent-browser skill for PNG rendering. Load it before proceeding with PNG capture.

Supported Diagram Types

  • Flowchart - Process flows, decision trees, CI/CD pipelines
  • Sequence - API calls, OAuth flows, database transactions
  • State - State machines, connection lifecycles
  • Class - UML class diagrams, design patterns
  • Entity-Relationship - Database schemas, data models

Available Themes

Default, Dracula, Solarized, Zinc Dark, Tokyo Night, Tokyo Night Storm, Tokyo Night Light, Catppuccin Latte, Nord, Nord Light, GitHub Dark, GitHub Light, One Dark.

If no theme is specified, use default.

Common Syntax Patterns

Flowchart Edge Labels

Use pipe syntax for edge labels:

A -->|label| B
A ---|label| B

Avoid space-dash syntax which can cause incomplete renders:

A -- label --> B   # May cause issues

Node Labels with Special Characters

Wrap labels containing special characters in quotes:

Details

Repository
github.com/intellectronica/agent-skills
Categories
Technical Documentation, Design & UI/UX

More from intellectronica/agent-skills

All 22

Similar to Beautiful Mermaid

More Technical Documentation