Pretty Mermaid is an AI agent skill that renders Mermaid source to SVG, PNG, or terminal ASCII locally. It supports six diagram types, fifteen themes, and batch CLI output without a browser.
Overview
Pretty Mermaid packages diagram authoring and rendering for AI coding agents. It turns Mermaid definitions into SVG for documentation, PNG for sharing, and ASCII or Unicode for terminals, using a bundled Node.js CLI rather than Chromium or Puppeteer.
The skill integrates with Claude Code, Cursor, Codex, Gemini CLI, OpenCode, Antigravity, and similar environments. Installation is distributed through the skills ecosystem with npx skills add, and workflows keep user source in .mmd files while invoking the bundled renderer from the skill directory.
Fifteen built-in themes span light, dark, and branded palettes such as GitHub, Solarized, Tokyo Night, Catppuccin, Nord, Dracula, and One Dark. Supported diagram types include flowchart, sequence, state, class, ER, and XY charts. Batch parallel rendering, custom colors, CJK labels, ELK layout spacing, and ANSI-colored terminal output are described in the documentation.
Example templates ship under assets/examplediagrams. The renderer builds on the beautiful-mermaid project. Node.js 16 or newer is required. The skill guides agents to pick format and theme, render, inspect clipping or syntax issues, and return paths without overwriting user files unless asked.
Key features
- SVG PNG and ASCII diagram export
- Fifteen built-in color themes
- Six Mermaid diagram types
- Local render without browser
- Batch parallel CLI rendering
- AI agent skill installation
- CJK labels and multiline support
- Example diagram templates included
Use cases
- Architecture docs from agent sessions
- Terminal-friendly flowcharts in chat
- README and PR diagram generation
- Themed SVG exports for wikis
- Batch rendering many Mermaid files