beautiful-mermaid
Skill40 starsChanged 8 months agoMITView on GitHub
Render Mermaid diagrams as ASCII/Unicode art for terminal display or as SVG files. Use when visualizing flowcharts, state machines, sequence diagrams, class diagrams, or ER diagrams. Supports 17 themes (including vellum, tokyo-night, catppuccin, nord, dracula, github) plus custom colors via --colors JSON.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- calesthio/OpenMontagetheir own version, first seen Oct 3, 2026
- jscraik/Agent-Skillstheir own version, first seen Sep 27, 2026
- lingengyuan/my-skillstheir own version, first seen Sep 22, 2026
- YunosukeYoshino/skillstheir own version, first seen Mar 25, 2026
- intellectronica/agent-skillstheir own version, first seen Jan 31, 2026
- bongartzdiaz/agent-skillstheir own version, first seen Jan 21, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- calesthio/OpenMontage★ 63ksame name
- intellectronica/agent-skills★ 294same name
- jscraik/Agent-Skills★ 9same name
- lingengyuan/my-skills★ 9same name
- bongartzdiaz/agent-skills★ 0same name
- YunosukeYoshino/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository99 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agents-md-managerSkill
- architecture-md-builderSkill
- autoresearchSkill
- claude-agent-sdkSkill
- claude-md-managerSkill
- claude-usageSkill
- dag-typesafeSkill
- fableSkill
- glossarySkill
- openrouter-usageSkill
- react-best-practicesSkill
- skill-optimizerSkill
- stop-slopSkill
- tamarruSkill
- test-harness-auditorSkill
- user-model-builderSkill
- atmosphere-shaderSkill
- component-gallerySkill
- conductor-motionSkill
- design-auditSkill
- design-critiqueSkill
- design-mdSkill
- design-polishSkill
- gemini-claude-resonanceSkill
- gemini-forgeSkill
- gpt-atelierSkill
- grainientSkill
- image-forgeSkill
- image-wellSkill
- meshySkill
- mindnode-uiSkill
- minoan-frontend-designSkill
- nano-banana-proSkill
- overwatch-slidedeckSkill
- paper-designSkill
- particle-swarm-simSkill
- pellicolaSkill
- photo-to-slack-emojiSkill
- pretextSkill
- recordlySkill
- rocaille-shaderSkill
- scroll-cinemaSkill
- shadcnSkill
- shapeSkill
- smolvlmSkill
- speak-responseSkill
- sprite-forgeSkill
- threejs-particle-canvasSkill
- vellum-editorialSkill
- webgpu-threejs-tslSkill
- agent-browserSkill
- classical-887Skill
- claude-peersSkill
- cloudflareSkill
- codex-ctoSkill
- codex-orchestratorSkill
- disc-forgeSkill
- figma-mcpSkill
- linkedin-exportSkill
- The first 60 shown.
The file
Files
Beautiful Mermaid
Render Mermaid diagrams as ASCII/Unicode art (for terminal) or SVG (for files).
Quick Start
# Render ASCII diagram to terminal
node ~/.claude/skills/beautiful-mermaid/scripts/mermaid.mjs "graph LR; A-->B-->C"
# Output:
# ┌───┐ ┌───┐ ┌───┐
# │ A │────►│ B │────►│ C │
# └───┘ └───┘ └───┘Usage
node ~/.claude/skills/beautiful-mermaid/scripts/mermaid.mjs [options] [input]Options
| Option | Description |
-f, --format TYPE | Output format: ascii (default) or svg |
-t, --theme NAME | Theme for SVG output (default: zinc-dark) |
--colors JSON | Custom colors as JSON: {"bg":"#hex","fg":"#hex","accent":"#hex","line":"#hex","muted":"#hex"}. Mutually exclusive with --theme. |
--transparent | Transparent SVG background (for inlining into themed pages) |
-o, --output FILE | Write to file instead of stdout |
--ascii | Use pure ASCII instead of Unicode box-drawing |
--themes | List available themes |
-h, --help | Show help |
Input Sources
- Inline:
mermaid.mjs "graph TD; A-->B" - File:
mermaid.mjs diagram.mmd - Stdin:
echo "graph LR; A-->B" | mermaid.mjs -
Examples
ASCII Output (Terminal)
# Flowchart with Unicode box-drawing (default)
node ~/.claude/skills/beautiful-mermaid/scripts/mermaid.mjs "graph TD; Start-->Process-->End"
# Pure ASCII for maximum compatibility
node ~/.claude/skills/beautiful-mermaid/scripts/mermaid.mjs --ascii "graph LR; A-->B"SVG Output (Files)
# Create SVG with tokyo-night theme
node ~/.claude/skills/beautiful-mermaid/scripts/mermaid.mjs -f svg -t tokyo-night "graph TD; A-->B" -o diagram.svg
# Sequence diagram
node ~/.claude/skills/beautiful-mermaid/scripts/mermaid.mjs -f svg -t catppuccin-mocha "sequenceDiagram
Alice->>Bob: Hello
Bob-->>Alice: Hi!" -o sequence.svgSupported Diagram Types
| Type | Syntax |
| Flowchart | graph TD/LR/BT/RL or flowchart TD/LR/BT/RL |
| State | stateDiagram-v2 |
| Sequence | sequenceDiagram |
| Class | classDiagram |
| ER | erDiagram |
Available Themes (17)
Dark themes: zinc-dark, tokyo-night, tokyo-night-storm, catppuccin-mocha, nord, dracula, github-dark, solarized-dark, one-dark, blueprint-dark*
Light themes: zinc-light, tokyo-night-light, catppuccin-latte, nord-light, github-light, solarized-light, vellum*
* = local theme extension (defined in CLI wrapper, not upstream package)
List themes: node ~/.claude/skills/beautiful-mermaid/scripts/mermaid.mjs --themes
When to Use
- Architecture diagrams — Visualize system components directly in conversation
- Data flows — Show how data moves through a system
- State machines — Document application states and transitions
- Sequence diagrams — Illustrate API interactions and message flows
- Class diagrams — Document object relationships
- ER diagrams — Database schema visualization
- Documentation — Export SVG for README files and docs
Cross-Skill Integration
Other skills invoke beautiful-mermaid to generate themed diagrams matching their visual identity. Standard pattern:
# Named theme
node ~/.claude/skills/beautiful-mermaid/scripts/mermaid.mjs \
-f svg -t vellum --transparent -o diagram.svg "graph TD; A-->B-->C"
# Custom colors (for project-specific palettes)
node ~/.claude/skills/beautiful-mermaid/scripts/mermaid.mjs \
-f svg --colors '{"bg":"#1a1b26","fg":"#a9b1d6","accent":"#7aa2f7"}' \
-o diagram.svg "graph TD; A-->B-->C"
# ASCII for markdown output (planning, design briefs)
printf 'graph TD\n A --> B --> C' | \
node ~/.claude/skills/beautiful-mermaid/scripts/mermaid.mjs -Theme mapping for consuming skills:
| Skill | Theme | Notes |
| vellum-editorial | vellum | Cream/ink/copper; use --transparent for inline SVGs |
| Dark slide decks | blueprint-dark | Cyan-on-navy for technical presentations |
| minoan-frontend-design | --colors | Extract hex from project's DESIGN.md tokens |
| design-md | github-light | Neutral light theme for token documentation |
| shape | ASCII mode | Append decision flows to .design-context.md |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

