
Beautiful Mermaid
Turns Mermaid diagram code into clean SVG and PNG outputs with proper theme support. You get twelve themes out of the box, from Tokyo Night to Solarized, and it handles the full pipeline: render the diagram, wrap it in HTML, then use agent-browser to capture a 4K screenshot for the PNG. The documentation is thoughtful about syntax gotchas, like using pipe notation for edge labels instead of space-dash syntax that can break renders. If you're generating diagrams for documentation or need to produce both vector and raster formats without manual screenshots, this handles the whole workflow. Clean intermediary files yourself afterward.
- skills.sh installs
- 1.8K
- GitHub stars
- 301
- last updated
- Aug 21, 2026
Install
$ npx -y skills add intellectronica/agent-skills --skill beautiful-mermaid --agent claude-codeInstalls into .claude/skills of the current project.
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:
Sponsors
Details
- Repository
- github.com/intellectronica/agent-skills
- Category
- AI & Agent Building
More from intellectronica/agent-skills
All 22- Markdown Converter1.7K
- Todoist Api1.7K
- Anki Connect918
- Nano Banana 2897
- Gog Cli814
- Promptify650
- Tavily631
- Mgrep Code Search627
- Gpt Image 1 5620
- Copilot Sdk535
- Here Be Git531
- Ray So Code Snippet522
- Lorem Ipsum515
- Raindrop Api507
- Upstash Redis Kv473
- Monologue Notes Api217
- Notion Api102.5K
- Context711.3K
- Youtube Transcript3.4K
- Nano Banana Pro3.2K
- Ultrathink1.9K