Render Mermaid diagrams as SVG or ASCII with 15+ themes and 5 diagram types.
Works with
Supports five diagram types: flowchart, sequence, state, class, and ER diagrams for workflows, APIs, databases, and object models
Offers 15 built-in themes (tokyo-night, dracula, github-dark, nord, catppuccin, and more) with light and dark variants
Generates SVG output for web and documentation, or ASCII art for terminals and plain-text files
Batch rendering with parallel processing ( --workers flag) for
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionpretty-mermaidExecute the skills CLI command in your project's root directory to begin installation:
Fetches pretty-mermaid from imxv/pretty-mermaid-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 pretty-mermaid. Access via /pretty-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
6
total installs
6
this week
617
GitHub stars
0
upvotes
Run in your terminal
6
installs
6
this week
617
stars
Render stunning, professionally-styled Mermaid diagrams with one command. Supports SVG for web/docs and ASCII for terminals.
From a file:
node scripts/render.mjs \
--input diagram.mmd \
--output diagram.svg \
--format svg \
--theme tokyo-night
From user-provided Mermaid code:
.mmd filenode scripts/batch.mjs \
--input-dir ./diagrams \
--output-dir ./output \
--format svg \
--theme dracula \
--workers 4
node scripts/render.mjs \
--input diagram.mmd \
--format ascii \
--use-ascii
Step 1: What does the user want?
Step 2: Choose output format
--format svg--format asciiStep 3: Select theme
tokyo-night (recommended)github-lightdraculanode scripts/themes.mjsWhen user provides a .mmd file or Mermaid code block:
Save to file (if code block):
cat > diagram.mmd << 'EOF'
flowchart LR
A[Start] --> B[End]
EOF
Render with theme:
node scripts/render.mjs \
--input diagram.mmd \
--output diagram.svg \
--theme tokyo-night
Verify output:
SVG (Scalable Vector Graphics)
--format svg --output diagram.svgASCII (Terminal Art)
--format ascii (prints to stdout)--use-ascii - Use pure ASCII (no Unicode)--padding-x 5 - Horizontal spacing--padding-y 5 - Vertical spacingCustom Colors (overrides theme):
node scripts/render.mjs \
--input diagram.mmd \
--bg "#1a1b26" \
--fg "#a9b1d6" \
--accent "#7aa2f7" \
--output custom.svg
Transparent Background:
node scripts/render.mjs \
--input diagram.mmd \
--transparent \
--output transparent.svg
Custom Font:
node scripts/render.mjs \
--input diagram.mmd \
--font "JetBrains Mono" \
--output custom-font.svg
Step 1: List available templates
ls assets/example_diagrams/
# flowchart.mmd sequence.mmd state.mmd class.mmd er.mmd
Step 2: Copy and modify
cp assets/example_diagrams/flowchart.mmd my-workflow.mmd
# Edit my-workflow.mmd with user requirements
Step 3: Render
node scripts/render.mjs \
--input my-workflow.mmd \
--output my-workflow.svg \
--theme github-dark
For detailed syntax and best practices, see DIAGRAM_TYPES.md.
Quick reference:
Flowchart - Processes, workflows, decision trees
flowchart LR
A[Start] --> B{Decision}
B -->|Yes| C[Action]
B -->|No| D[End]
Sequence - API calls, interactions, message flows
sequenceDiagram
User->>Server: Request
Server-->>User: Response
State - Application states, lifecycle, FSM
stateDiagram-v2
[*] --> Idle
Idle --> Loading
Loading --> [*]
Class - Object models, architecture, relationships
classDiagram
User --> Post: creates
Post --> Comment: has
ER - Database schema, data models
erDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ ORDER_ITEM : contains
Step 1: Identify diagram type
Step 2: Create diagram file
cat > user-diagram.mmd << 'EOF'
# [Insert generated Mermaid code]
EOF
Step 3: Render and iterate
node scripts/render.mjs \
--input user-diagram.mmd \
--output preview.svg \
--theme tokyo-night
# Review with user, edit diagram.mmd if needed, re-render
node scripts/themes.mjs
Output:
Available Beautiful-Mermaid Themes:
1. zinc-light
2. zinc-dark
3. tokyo-night
4. tokyo-night-storm
5. tokyo-night-light
6. catppuccin-mocha
7. catppuccin-latte
8. nord
9. nord-light
10. dracula
11. github-dark
12. github-light
13. solarized-dark
14. solarized-light
15. one-dark
Total: 15 themes
For dark mode documentation:
tokyo-night ⭐ - Modern, developer-friendlygithub-dark - Familiar GitHub styledracula - Vibrant, high contrastnord - Cool, minimalistFor light mode documentation:
github-light - Clean, professionalzinc-light - High contrast, printablecatppuccin-latte - Warm, friendlyDetailed theme information: See THEMES.md
node scripts/render.mjs \
--input diagram.mmd \
--output themed.svg \
--theme tokyo-night
Render the same diagram with multiple themes:
for theme in tokyo-night dracula github-dark; do
node scripts/render.mjs \
--input diagram.mmd \
--output "diagram-${theme}.svg" \
--theme "$theme"
done
Step 1: Organize diagrams
diagrams/
├── architecture.mmd
├── workflow.mmd
└── database.mmd
Step 2: Batch render
node scripts/batch.mjs \
--input-dir ./diagrams \
--output-dir ./rendered \
--format svg \
--theme tokyo-night \
--workers 4
Output:
Found 3 diagram(s) to render...
✓ architecture.mmd
✓ workflow.mmd
✓ database.mmd
3/3 diagrams rendered successfully
Render both SVG and ASCII:
# SVG for docs
node scripts/batch.mjs \
--input-dir ./diagrams \
--output-dir ./svg \
--format svg \
--theme github-dark
# ASCII for README
node scripts/batch.mjs \
--input-dir ./diagrams \
--output-dir ./ascii \
--format ascii \
--use-ascii
--workers N - Parallel rendering (default: 4)--workers 8 for 10+ diagrams# User provides architecture description
# → Create flowchart.mmd
# → Render with professional theme
node scripts/render.mjs \
--input architecture.mmd \
--output docs/architecture.svg \
--theme github-dark \
--transparent
# User describes API flow
# → Create sequence.mmd
# → Render with clear theme
node scripts/render.mjs \
--input api-flow.mmd \
--output api-sequence.svg \
--theme tokyo-night
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
davila7/claude-code-templates
am-will/codex-skills
sickn33/antigravity-awesome-skills
myzy-ai/dokie-ai-ppt
sickn33/antigravity-awesome-skills
Keeps context tight: pretty-mermaid is the kind of skill you can hand to a new teammate without a long onboarding doc.
Solid pick for teams standardizing on skills: pretty-mermaid is focused, and the summary matches what you get after install.
Registry listing for pretty-mermaid matched our evaluation — installs cleanly and behaves as described in the markdown.
pretty-mermaid has been reliable in day-to-day use. Documentation quality is above average for community skills.
pretty-mermaid reduced setup friction for our internal harness; good balance of opinion and flexibility.
I recommend pretty-mermaid for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Keeps context tight: pretty-mermaid is the kind of skill you can hand to a new teammate without a long onboarding doc.
Keeps context tight: pretty-mermaid is the kind of skill you can hand to a new teammate without a long onboarding doc.
pretty-mermaid fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
We added pretty-mermaid from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
showing 1-10 of 49