Render Mermaid diagrams as SVG and PNG images with theme customization.
Works with
Supports five diagram types: flowchart, sequence, state, class, and entity-relationship diagrams
Produces both vector SVG (scalable) and high-resolution PNG (4K viewport) outputs in a single workflow
Includes 13 built-in themes (default, Dracula, Tokyo Night, Nord, GitHub, Catppuccin, Solarized, One Dark, Zinc Dark)
Requires agent-browser skill for PNG capture; uses Bun, Node, or Deno for SVG rendering
Prov
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionbeautiful-mermaidExecute the skills CLI command in your project's root directory to begin installation:
Fetches beautiful-mermaid from intellectronica/agent-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate beautiful-mermaid. Access via /beautiful-mermaid in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
23
total installs
23
this week
236
GitHub stars
0
upvotes
Run in your terminal
23
installs
23
this week
236
stars
Render Mermaid diagrams as SVG and PNG images using the Beautiful Mermaid library.
This skill requires the agent-browser skill for PNG rendering. Load it before proceeding with PNG capture.
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.
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
Wrap labels containing special characters in quotes:
A["Label with (parens)"]
B["Label with / slash"]
If the user provides a description rather than code, generate valid Mermaid syntax. Consult references/mermaid-syntax.md for full syntax details.
Run the rendering script to produce an SVG file:
bun run scripts/render.ts --code "graph TD; A-->B" --output diagram --theme default
Or from a file:
bun run scripts/render.ts --input diagram.mmd --output diagram --theme tokyo-night
Alternative runtimes:
npx tsx scripts/render.ts --code "..." --output diagram
deno run --allow-read --allow-write --allow-net scripts/render.ts --code "..." --output diagram
This produces <output>.svg in the current working directory.
Run the HTML wrapper script to prepare for screenshot:
bun run scripts/create-html.ts --svg diagram.svg --output diagram.html
This creates a minimal HTML file that displays the SVG with proper padding and background.
Use the agent-browser CLI to capture a high-quality screenshot. Refer to the agent-browser skill for full CLI documentation.
# Set 4K viewport for high-resolution capture
agent-browser set viewport 3840 2160
# Open the HTML wrapper
agent-browser open "file://$(pwd)/diagram.html"
# Wait for render to complete
agent-browser wait 1000
# Capture full-page screenshot
agent-browser screenshot --full diagram.png
# Close browser
agent-browser close
For even higher resolution on complex diagrams, increase the viewport further or use the --padding option when creating the HTML wrapper to give the diagram more space.
After rendering, remove all intermediary files. Only the final .svg and .png should remain.
Files to clean up:
diagram.html).mmd files created to hold diagram coderm diagram.html
If a temporary .mmd file was created, remove it as well.
Both outputs are always produced:
Files are saved to the current working directory unless the user explicitly specifies a different path.
| Theme | Background | Best For |
|---|---|---|
| default | Light grey | General use |
| dracula | Dark purple | Dark mode preference |
| tokyo-night | Dark blue | Modern dark aesthetic |
| tokyo-night-storm | Darker blue | Higher contrast |
| nord | Dark arctic | Muted, calm visuals |
| nord-light | Light arctic | Light mode with soft tones |
| github-dark | GitHub dark | Matches GitHub UI |
| github-light | GitHub light | Matches GitHub UI |
| catppuccin-latte | Warm light | Soft pastel aesthetic |
| solarized | Tan/cream | Solarized colour scheme |
| one-dark | Atom dark | Atom editor aesthetic |
| zinc-dark | Neutral dark | Minimal, no colour bias |
Check the render script output for the bg and fg values, or inspect the SVG's opening tag for --bg and --fg CSS custom properties.
-->|label| pipe notation, not -- label -->graph TD, graph LR, etc.)Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
โ Do
โ Don't
๐ก Pro Tips
โ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
โ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
intellectronica/agent-skills
intellectronica/agent-skills
davila7/claude-code-templates
am-will/codex-skills
sickn33/antigravity-awesome-skills
sickn33/antigravity-awesome-skills
Solid pick for teams standardizing on skills: beautiful-mermaid is focused, and the summary matches what you get after install.
beautiful-mermaid has been reliable in day-to-day use. Documentation quality is above average for community skills.
Keeps context tight: beautiful-mermaid is the kind of skill you can hand to a new teammate without a long onboarding doc.
Useful defaults in beautiful-mermaid โ fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
beautiful-mermaid has been reliable in day-to-day use. Documentation quality is above average for community skills.
Registry listing for beautiful-mermaid matched our evaluation โ installs cleanly and behaves as described in the markdown.
Keeps context tight: beautiful-mermaid is the kind of skill you can hand to a new teammate without a long onboarding doc.
beautiful-mermaid has been reliable in day-to-day use. Documentation quality is above average for community skills.
beautiful-mermaid is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Keeps context tight: beautiful-mermaid is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 64