Beautiful Mermaid diagrams for AI agents Turn Mermaid source into polished SVGs, shareable PNGs, and terminal-ready ASCII—locally, without a browser.
$ npx -y skills add imxv/Pretty-mermaid-skills --agent claude-code
Beautiful Mermaid diagrams for AI agents
Turn Mermaid source into polished SVGs, shareable PNGs, and terminal-ready ASCII—locally, without a browser.

npx skills add imxv/pretty-mermaid-skills@pretty-mermaid -g -y
View the skill, install count, and security audits on skills.sh →
| Light Themes | Dark Themes | Other |
|---|---|---|
| zinc-light | zinc-dark | nord |
| tokyo-night-light | tokyo-night | nord-light |
| catppuccin-latte | tokyo-night-storm | dracula |
| github-light | catppuccin-mocha | one-dark |
| solarized-light | github-dark | |
| solarized-dark |
Compare the same flowchart across every built-in theme in the complete 15-theme gallery.
Seamlessly integrates with the following AI coding environments:
npx skills add imxv/pretty-mermaid-skills@pretty-mermaid -g -y
npx skills list -g
Confirm that pretty-mermaid appears in the global skill list. Node.js 16 or newer is required.
node scripts/themes.mjs
node scripts/render.mjs \
--input diagram.mmd \
--output output.svg \
--theme tokyo-night
node scripts/render.mjs \
--input diagram.mmd \
--output output.png \
--format png \
--width 1200 \
--theme tokyo-night
node scripts/batch.mjs \
--input-dir ./diagrams \
--output-dir ./output \
--theme dracula
Check the 6 template files in assets/example_diagrams/:
flowchart.mmd - Flowchartsequence.mmd - Sequence Diagramstate.mmd - State Diagramclass.mmd - Class Diagramer.mmd - ER Diagramxychart.mmd - XY Chart (bar and line)PNG output is rendered directly in Node.js with no external converter required. The renderer also supports CJK state names, multiline labels, linkStyle, configurable ELK layout spacing, interactive XY chart tooltips, and ANSI-colored terminal output.
Read the contribution guide, report problems with the issue templates, and review the security policy before sharing sensitive findings. Release history is tracked in the changelog.
MIT License
Based on beautiful-mermaid
pretty-mermaid-skills is a Claude Code plugin with 1 hand-picked skill, indexed on Flowy in the Image Generation category. Install it with the command on its page. It includes Pretty-mermaid-skills. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it