The skill first determines whether the request involves process flows, deployment, architecture, interface interactions, or code-to-diagram conversion, then loads the corresponding reference guide (activity diagrams, deployment diagrams, architecture diagrams, sequence diagrams, class diagrams, ER diagrams, state diagrams, C4) to generate diagrams based on templates. It also includes a full design document template. The accompanying Python script can extract all Mermaid diagrams from Markdown, validate them in bulk, convert them to PNG / SVG, and replace the diagrams in the document with image references. GitHub wikis use Mermaid code blocks directly, while Confluence, Notion, Word, and PDF require separate rendering into images; PlantUML is used only for diagram types not supported by Mermaid.
Why It Matters Select the writing guide for the appropriate diagram type based on requirements, validate with mmdc after drawing, and fix errors in order; export as PNG or SVG when pasting into Confluence.
skills.sh install count 107398 (+1387 / 24h)
Security Audit: Not audited
- Not yet scanned
Rationale
- skills.sh installs 1387 in the last 24 hours, with a cumulative total of 107398 (indicating attention only); weekly install counts have remained stable over the long term
- SKILL.md includes code-to-diagram examples for frameworks like Spring Boot, with writing guides for various diagram types separated into independent reference files loaded on demand
Usage
- Run npx skills add https://github.com/spillwavesolutions/design-doc-mermaid --skill design-doc-mermaid; to validate and export images, install Mermaid CLI (mmdc) and Python, then tell the agent, "Draw a sequence diagram for the order placement process based on the code in src/order, and export it as PNG."
Risks
- Not audited: Not scanned on desktop, and the website does not display the install command; the skill causes the agent to run Python scripts and mmdc from the repository
- SKILL.md is lengthy and requires reading multiple reference files on demand, which consumes significant context