Mermaid Diagram Generator
Creates 12+ types of Mermaid diagrams as text and exports them to PNG/SVG/PDF via mmdc or the Kroki API.
Design & UIBeginner★ 175⑂ 15AI score 10/10Last updated: Jul 16, 2026
What it does
- Picks the right Mermaid diagram type (flowchart, sequence, class, ER, state, gantt, mindmap, architecture and more) and writes a
.mmdsource file. - Always validates syntax before exporting, then renders PNG/SVG/PDF with local
mmdcor the install-free Kroki API. - Re-reads the exported PNG with vision to catch truncated labels, cramped density or wrong orientation, self-fixing for up to 2 rounds before a user review loop with minimal edits.
- Explicitly routes you elsewhere (drawio, excalidraw, tldraw, plantuml) when Mermaid is the wrong tool.
Who it's for
- Developers and tech leads documenting system architecture, API flows or data models.
- Teams that want diagrams-as-code versioned in Git and embedded in Markdown.
- Writers, PMs and educators who want quick diagrams without a drawing app.
Example uses
- "Create a sequence diagram for JWT authentication" →
.mmdwith Client, Gateway, Auth Service and Database participants plus a PNG. - "Draw an e-commerce microservices architecture" → flowchart with subgraphs for client, service and data layers.
- "Show the order lifecycle" → state diagram Pending → Confirmed → Shipped → Delivered, followed by a readability self-check.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/Agents365-ai/mermaid-skill/HEAD/skills/mermaid-skill/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/mermaid-skill folder from the GitHub repo Agents365-ai/mermaid-skill into my ~/.claude/skills/mermaid-skill/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/Agents365-ai/mermaid-skill.git /tmp/mermaid-skill && mkdir -p ~/.claude/skills && cp -r /tmp/mermaid-skill/skills/mermaid-skill ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/Agents365-ai/mermaid-skill.git /tmp/mermaid-skill - Copy the skill into place:
mkdir -p ~/.claude/skills && cp -r /tmp/mermaid-skill/skills/mermaid-skill ~/.claude/skills/ - (Optional, for local export) Run
npm install -g @mermaid-js/mermaid-cli, thennpx puppeteer browsers install chrome-headless-shell— mmdc has no bundled browser. - If you can't install those, just check
curl --version; the Kroki API path renders PNG/SVG (PDF requires local mmdc). - Restart Claude Code and ask something like "draw a flowchart of this process" to confirm the skill triggers.
View source on GitHub ↗License: MIT