Pretty-mermaid-skills

by imxvVerified

AI Agent Skill to generate and render beautiful Mermaid diagrams as SVG or terminal ASCII — 15 themes, 6 diagram types, batch CLI, no browser.

1,139
Stars
57
Forks
JavaScript
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/imxv/Pretty-mermaid-skills

Getting Started

Guides for using skills like Pretty-mermaid-skills.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

Pretty Mermaid

Beautiful Mermaid diagrams for AI agents

Turn Mermaid source into polished SVGs, shareable PNGs, and terminal-ready ASCII—locally, without a browser.

Pretty Mermaid converts Mermaid source into themed SVG, PNG, and terminal ASCII diagrams

skills.sh CI License: MIT Node.js Version GitHub stars

English中文日本語

🚀 Install

npx skills add imxv/pretty-mermaid-skills@pretty-mermaid -g -y

View the skill, install count, and security audits on skills.sh →

Why Pretty Mermaid?

  • Made for AI agents: works with Claude Code, Cursor, Codex, Gemini CLI, and more
  • One source, three outputs: polished SVG for docs, PNG for sharing, and ASCII/Unicode for terminals
  • No browser required: renders locally without Chromium, Puppeteer, or a DOM
  • Flexible by default: 15 themes, custom colors, six diagram types, and batch rendering

✨ Features

  • 📊 Multi-format Support: SVG, PNG, and ASCII rendering export
  • 🎨 Rich Themes: 15 built-in themes for different scenarios
  • 📈 Six Diagram Types: Flowchart, Sequence, State, Class, ER, and XY charts
  • High Performance: Batch parallel rendering
  • 📚 Ready to Use: Complete templates and detailed documentation

Supported Themes

Light ThemesDark ThemesOther
zinc-lightzinc-darknord
tokyo-night-lighttokyo-nightnord-light
catppuccin-lattetokyo-night-stormdracula
github-lightcatppuccin-mochaone-dark
solarized-lightgithub-dark
solarized-dark

🎨 Theme Gallery

Compare the same flowchart across every built-in theme in the complete 15-theme gallery.

Tokyo Night theme preview GitHub Light theme preview

🤖 AI Assistant Integration

Seamlessly integrates with the following AI coding environments:

  • Claude Code
  • Cursor
  • Gemini CLI
  • Antigravity
  • OpenCode
  • Codex
  • qoder

Installation details

Install from GitHub

npx skills add imxv/pretty-mermaid-skills@pretty-mermaid -g -y

Verify Installation

npx skills list -g

Confirm that pretty-mermaid appears in the global skill list. Node.js 16 or newer is required.

📖 Quick Start

List Available Themes

node scripts/themes.mjs

Render Single Diagram

node scripts/render.mjs \
  --input diagram.mmd \
  --output output.svg \
  --theme tokyo-night

Render PNG

node scripts/render.mjs \
  --input diagram.mmd \
  --output output.png \
  --format png \
  --width 1200 \
  --theme tokyo-night

Batch Render

node scripts/batch.mjs \
  --input-dir ./diagrams \
  --output-dir ./output \
  --theme dracula

📂 Examples

Check the 6 template files in assets/example_diagrams/:

  • flowchart.mmd - Flowchart
  • sequence.mmd - Sequence Diagram
  • state.mmd - State Diagram
  • class.mmd - Class Diagram
  • er.mmd - ER Diagram
  • xychart.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.

📚 Documentation

🤝 Community

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.

⚙️ Requirements

  • Node.js 16+

📄 License

MIT License

Star History

Star History Chart

🙏 Acknowledgments

Based on beautiful-mermaid

Frequently Asked Questions

What is Pretty-mermaid-skills?

Pretty-mermaid-skills is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by imxv. AI Agent Skill to generate and render beautiful Mermaid diagrams as SVG or terminal ASCII — 15 themes, 6 diagram types, batch CLI, no browser. It has 1,139 GitHub stars.

Is Pretty-mermaid-skills safe to use?

Yes. Pretty-mermaid-skills passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install Pretty-mermaid-skills?

Clone the repository with "git clone https://github.com/imxv/Pretty-mermaid-skills" and add it to your Claude Code skills directory (see the Installation section above). Pretty-mermaid-skills ships a SKILL.md manifest, so compatible agents can discover and load it automatically.

What programming language is Pretty-mermaid-skills written in?

Pretty-mermaid-skills is primarily written in JavaScript. It is open-source under imxv on GitHub, so you can review or fork the full source.

Are there alternatives to Pretty-mermaid-skills?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh Pretty-mermaid-skills against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details