AI Agent Skill to generate and render beautiful Mermaid diagrams as SVG or terminal ASCII — 15 themes, 6 diagram types, batch CLI, no browser.
JavaScript
1,529
10 commits
updated Aug 22, 2026
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
2,582 followers · starred Aug 2026
625 followers · starred Apr 2026
189 followers · starred Feb 2026
1 followers · starred Sep 2026
AI Agent Skill to generate and render beautiful Mermaid diagrams as SVG or terminal ASCII — 15 themes, 6 diagram types, batch CLI, no browser.
JavaScript
1,529
10 commits
updated Aug 22, 2026
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
2,582 followers · starred Aug 2026
625 followers · starred Apr 2026
189 followers · starred Feb 2026
1 followers · starred Sep 2026