design-doc-mermaid — Claude Code skill: what it does, how to install
Generates Mermaid diagrams and design documents from code or user prompts. Useful for GitHub wiki pages, architecture reviews, and sequence flows.
npx skills add SpillwaveSolutions/design-doc-mermaid --skill design-doc-mermaid -a claude-codeWhat design-doc-mermaid does
The skill uses an internal decision tree to route requests to specialized guides. It selects reference materials for deployment topologies, API sequence flows, activity workflows, or class and ER models. Ready-made Markdown templates cover full architecture, API specifications, and database schema design.
Code analysis examples cover setups like Spring Boot, FastAPI, React, Node.js, and Python ETL pipelines. Auxiliary Python utilities extract_mermaid.py and mermaid_to_image.py handle extraction, while mmdc runs diagram syntax validation.
When GitHub cannot render experimental C4 or architecture-beta blocks, the workflow falls back directly to flowchart TD. For Confluence documentation, a text fence alone will not suffice, as PNG or SVG exports are also required.
What it helps with
- extract sequence diagrams directly from API controller code
- draft architecture design documents with database entity schemas
- create deployment and infrastructure topologies for GitHub wiki
- export Mermaid diagrams to PNG or SVG for Confluence pages
Example prompts for the agent
- Generate a sequence diagram showing the authentication flow from this FastAPI service
- Create an architecture design document with a database schema for our order system
- Build a deployment diagram for our cloud infrastructure
How to install design-doc-mermaid
1Skills CLI (Vercel)
npx skills add SpillwaveSolutions/design-doc-mermaid --skill design-doc-mermaid -a claude-code2Manually: put the files in place
~/.claude/skills/design-doc-mermaid/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/design-doc-mermaid/
1Skills CLI (Vercel)
npx skills add SpillwaveSolutions/design-doc-mermaid --skill design-doc-mermaid -a codex2Manually: put the files in place
.agents/skills/design-doc-mermaid/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add SpillwaveSolutions/design-doc-mermaid --skill design-doc-mermaid -a cursor2Manually: put the files in place
.cursor/skills/design-doc-mermaid/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install SpillwaveSolutions/design-doc-mermaid design-doc-mermaid2Manually: put the files in place
.github/skills/design-doc-mermaid/SKILL.md1Skills CLI (Vercel)
npx skills add SpillwaveSolutions/design-doc-mermaid --skill design-doc-mermaid -a gemini-cli2Platform CLI
gemini skills install https://github.com/SpillwaveSolutions/design-doc-mermaidManually: put the files in place
.devin/skills/design-doc-mermaid/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add SpillwaveSolutions/design-doc-mermaid --skill design-doc-mermaid -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Similar
Questions about design-doc-mermaid
How to install design-doc-mermaid in Claude Code?
Run npx skills add SpillwaveSolutions/design-doc-mermaid --skill design-doc-mermaid -a claude-code. Alternatively, place the file in ~/.claude/skills/design-doc-mermaid/SKILL.md.
What does the design-doc-mermaid skill do?
It turns code and prompts into Mermaid diagrams, including sequence, ER, class, and deployment charts. It also prepares structured software design documents and templates.
How does it handle diagrams for Confluence and GitHub?
For GitHub rendering failures on C4 blocks, it falls back to flowchart TD. For Confluence, it generates PNG or SVG images alongside the code fence.