A powerful Claude Code skill for creating Mermaid diagrams and design documents using on-demand guide loading, code-to-diagram generation, and Python utilities.
$ npx -y skills add spillwavesolutions/design-doc-mermaid --agent claude-code
Version 2.0 - Hierarchical architecture with intelligent orchestration
A powerful Claude Code skill for creating Mermaid diagrams and design documents using on-demand guide loading, code-to-diagram generation, and Python utilities.
Install this skill instantly from the Skilz Marketplace:
skilz install SpillwaveSolutions_design-doc-mermaid/design-doc-mermaid
Clone directly into your Claude Code skills directory:
# Navigate to your skills directory
cd ~/.claude/skills
# Clone the repository
git clone https://github.com/SpillwaveSolutions/design-doc-mermaid.git
After installation, verify the skill is available:
# List installed skills
ls ~/.claude/skills/design-doc-mermaid
# Or ask Claude Code
# "List my installed skills"
Intelligent Diagram Generation:
Code-to-Diagram Conversion:
Diagram Management:
User: "Create an activity diagram for user registration with email verification"
The skill will:
references/guides/diagrams/activity-diagrams.mdUser: "Here's my Spring Boot application.yml - generate a deployment diagram"
The skill will:
references/guides/diagrams/deployment-diagrams.mdexamples/spring-boot/README.mdUser: "Create an API design document for the contacts API"
The skill will:
assets/api-design-template.mddocs/design/api-contacts-v1-2025-01-13.mdmermaid-architect/
โโโ SKILL.md # Main orchestrator with decision tree
โโโ README.md # This file
โโโ CLAUDE.md # Claude Code instructions
โ
โโโ references/ # Reference materials
โ โโโ mermaid-diagram-guide.md # Legacy general guide
โ โโโ guides/ # Specialized guides (load on-demand)
โ โโโ diagrams/
โ โ โโโ activity-diagrams.md # โ
Complete
โ โ โโโ deployment-diagrams.md # โ
Complete
โ โ โโโ architecture-diagrams.md # โ
Complete
โ โ โโโ sequence-diagrams.md # โ
Complete
โ โโโ code-to-diagram/
โ โ โโโ README.md # โ
Complete (master guide)
โ โโโ unicode-symbols/
โ โ โโโ guide.md # โ
Complete (100+ symbols)
โ โโโ troubleshooting.md # โ
Complete (28 common errors)
โ
โโโ scripts/ # Python utilities
โ โโโ extract_mermaid.py # โ
Extract & validate diagrams
โ โโโ mermaid_to_image.py # โ
Convert to PNG/SVG
โ
โโโ examples/ # Language-specific patterns
โ โโโ spring-boot/ # โ
Complete
โ โโโ fastapi/ # โ
Complete
โ โโโ react/ # โ
Complete
โ โโโ python-etl/ # โ
Complete
โ โโโ node-webapp/ # โ
Complete
โ โโโ java-webapp/ # โ
Complete
โ
โโโ assets/ # Design document templates
โโโ architecture-design-template.md
โโโ api-design-template.md
โโโ feature-design-template.md
โโโ database-design-template.md
โโโ system-design-template.md
Every diagram uses meaningful Unicode symbols:
graph TB
User[๐ค Client] --> Gateway[๐ API Gateway]
Gateway --> Auth[๐ Auth Service]
Gateway --> API[โ๏ธ API Service]
API --> DB[(๐พ Database)]
API --> Cache[(โก Redis)]
API --> Queue[๐ฌ Message Queue]
Queue --> Worker[โ๏ธ Background Worker]
Symbol Categories:
All diagrams use accessible, high-contrast colors - see SKILL.md for full details.
# List all diagrams in a file
python scripts/extract_mermaid.py document.md --list-only
# Extract to separate .mmd files
python scripts/extract_mermaid.py document.md --output-dir diagrams/
# Validate all diagrams
python scripts/extract_mermaid.py document.md --validate
# Replace diagrams with image references (for Confluence)
python scripts/extract_mermaid.py document.md --replace-with-images \
--image-format png --output-markdown output.md
# Single file
python scripts/mermaid_to_image.py diagram.mmd output.png
# Custom theme and size
python scripts/mermaid_to_image.py diagram.mmd output.svg \
--theme dark --background white --width 1200
# Batch convert directory
python scripts/mermaid_to_image.py diagrams/ output/ \
--format png --recursive
# From stdin
echo "graph TD; A-->B" | python scripts/mermaid_to_image.py - output.png
# Install mermaid-cli globally
npm install -g @mermaid-js/mermaid-cli
# Verify installation
mmdc --version
references/guides/diagrams/activity-diagrams.mdreferences/guides/unicode-symbols/guide.mdexamples/spring-boot/python scripts/extract_mermaid.py --validateexamples/{your-framework}/README.mdassets/{type}-design-template.mddocs/design/ with timestampUser: "Create deployment diagram for my Docker Compose setup"
Decision Tree:
1. Analyze: "deployment diagram" + "Docker Compose"
2. Determine: deployment-diagrams.md needed
3. Load: references/guides/diagrams/deployment-diagrams.md (2KB)
4. Find pattern: Docker Compose template exists
5. Generate: Using template + Unicode symbols
6. Output: Complete diagram in <30 seconds
Tokens Used: ~2,000 (vs ~10,000 with traditional approach)
โ Complete:
๐ง In Progress:
๐ Planned:
To add a new diagram type guide:
references/guides/diagrams/{type}-diagrams.mdSKILL.md decision treeTo add a new language example:
examples/{framework}/README.md with:
SKILL.md code-to-diagram tablePart of Claude Code Skills - MIT License
Version: 2.0.0 Updated: 2025-01-13 Maintained by: SpillwaveSolutions
design-doc-mermaid is a Claude Code plugin with 1 hand-picked skill, indexed on Flowy in the Documentation category. Install it with the command on its page. It includes design-doc-mermaid. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it