pretty-mermaid
Skill by imxv
Renders and generates Mermaid diagrams as themed SVG, PNG, or ASCII and Unicode art. Built for architecture docs, READMEs, PRs, terminals, chats, and CI. It runs locally through a Node.js CLI, without a browser.
Install pretty-mermaid
Built from the published package, never by AI.
git clone --depth 1 https://github.com/imxv/Pretty-mermaid-skills /tmp/Pretty-mermaid-skills && mkdir -p ~/.claude/skills && cp -r /tmp/Pretty-mermaid-skills ~/.claude/skills/pretty-mermaidRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/imxv/Pretty-mermaid-skills /tmp/Pretty-mermaid-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Pretty-mermaid-skills ~/.gemini/antigravity-cli/skills/pretty-mermaidAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Pretty Mermaid generates and renders Mermaid diagrams using a bundled Node.js command line tool. It covers flowcharts, sequence, state, class, ER, and XY chart diagrams. Output can be themed SVG, PNG, or ASCII and Unicode art for terminals. The skill includes 15 built-in themes and accepts custom colors.
The renderer runs locally without a browser or DOM. The assistant can list themes, render a single diagram, or batch render a directory with a set number of workers. It works from Mermaid source or .mmd files and can author a diagram from a prose description. It is aimed at people who need Mermaid diagrams in architecture docs, READMEs, PRs, terminals, chats, or CI.
Written from the project's SKILL.md and checked against it.
What it can do
- Render SVGRenders a Mermaid diagram to a themed SVG file that supports transparency.
- Render PNGRenders a diagram to PNG with a width from 100 to 10000 pixels, keeping the aspect ratio.
- Render terminal textProduces ASCII or Unicode art, with optional ANSI color modes for interactive terminals.
- Batch renderRenders a directory of diagrams in parallel using a set number of workers.
- Theme selectionApplies one of 15 built-in themes, which can be refined with explicit color options.
- Diagram authoringWrites Mermaid source for flowcharts, sequence, state, class, ER, and XY chart diagrams.
- XY chart tooltipsEnables hover tooltips on XY charts in SVG output with the interactive option.
What you need
- Node.js
- npm, to install dependencies
Try asking
- Render this Mermaid flowchart to an SVG using the tokyo-night theme.
- Batch render every .mmd file in ./diagrams to PNG at 1200 pixels wide.
- Turn this process description into a sequence diagram and render it as ASCII text.
Good to know
- PNG custom colors must be concrete hex values, since unresolved external CSS variables cannot be rasterized.
- Unsupported Mermaid syntax is reported as a renderer limitation rather than silently dropped.
- Crowded SVG layouts may need larger node, layer, or component spacing options.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
.gitignore570 B -
CHANGELOG.md1 KB -
CODE_OF_CONDUCT.md4 KB -
CONTRIBUTING.md2 KB -
LICENSE1 KB
Show all 13 files
-
README.md5 KB -
README_CN.md5 KB -
README_JA.md6 KB -
RELEASING.md1 KB -
SECURITY.md704 B -
SKILL.md8 KB -
package-lock.json8 KB -
package.json555 B
Alternatives to pretty-mermaid
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
pretty-mermaid: common questions
Does pretty-mermaid need a browser to render diagrams?
No. The source says it runs locally without a browser or DOM.
Which output formats does it support?
SVG, PNG, and ASCII or Unicode art. ANSI-colored text is also available for interactive terminals.
How many themes are included?
It includes 15 built-in themes and also supports custom colors through explicit color options.
How do I install pretty-mermaid?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pretty-mermaid free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pretty-mermaid safe to use?
It scores 82 of 100. Grades: maintenance C, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pretty-mermaid?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
