spillwavesolutions/agent_rulez/design-doc-mermaid
- community
Checking that the SKILL.md file is still in the repository.
Create Mermaid diagrams (activity, deployment, sequence, architecture) from text descriptions or source code. Use when asked to "create a diagram", "generate mermaid", "document architecture", "code to diagram", "create design doc", or "convert code to diagram". Supports hierarchical on-demand guide loading, Unicode semantic symbols, and Python utilities for diagram extraction and image conversion.
Install
npx vskill@latest install spillwavesolutions/agent_rulez/design-doc-mermaidSKILL.md
Mermaid Architect - Hierarchical Diagram and Documentation Skill
Mermaid diagram and documentation system with specialized guides and code-to-diagram capabilities.
Table of Contents
- Decision Tree
- Available Guides and Resources
- Usage Patterns
- Resilient Workflow
- Unicode Semantic Symbols
- Python Utilities
- Decision Tree Examples
- High-Contrast Styling
- File Organization
- Workflow Summary
- When to Use What
- Best Practices
- Learning Path
Decision Tree
How this skill works:
- User makes a request → Skill analyzes intent
- Skill determines diagram/document type → Loads appropriate guide(s)
- AI reads specialized guide → Generates diagram/document using templates
- Result delivered → With validation and export options
User Intent Analysis:
Available Guides and Resources
Diagram Type Guides (references/guides/diagrams/)
| Guide | Full Path | Load When User Wants | Examples | |
|---|---|---|---|---|
| Activity Diagrams | references/guides/diagrams/activity-diagrams.md | Workflows, processes, business logic, user flows, decision trees | "Show checkout flow", "Document ETL pipeline", "Create approval workflow" | |
| Deployment Diagrams | references/guides/diagrams/deployment-diagrams.md | Infrastructure, cloud architecture, K8s, serverless, network topology | "Show AWS architecture", "Document GCP deployment", "Create K8s diagram" | |
| Architecture Diagrams | references/guides/diagrams/architecture-diagrams.md | System architecture, component design, high-level structure | "Show system components", "Document microservices", "Architecture overview" | |
| Sequence Diagrams | references/guides/diagrams/sequence-diagrams.md | API interactions, service communication, request/response flows | "Show API call sequence", "Document auth flow", "Service interactions" |
Code-to-Diagram Guide & Examples
| Resource | Full Path | What It Provides | |
|---|---|---|---|
| Master Guide | references/guides/code-to-diagram/README.md | Complete workflow for analyzing any codebase and extracting diagrams | |
| Spring Boot | examples/spring-boot/README.md | Controller→Service→Repository architecture, deployment config, sequence from methods, activity from business logic | |
| FastAPI | examples/fastapi/README.md | Python async patterns, Pydantic models, dependency injection, cloud deployment | |
| React | examples/react/README.md | Component hierarchy, state management, data flow, build pipeline | |
| Python ETL | examples/python-etl/README.md | Data pipeline, transformation steps, error handling, scheduling | |
| Node/Express | examples/node-webapp/README.md | Middleware chain, route handlers, async patterns, deployment | |
| Java Web App | examples/java-webapp/README.md | Traditional MVC, servlet containers, WAR deployment |
Design Document Templates
| Template | Full Path | Use For | Load When | |
|---|---|---|---|---|
| Architecture Design | assets/architecture-design-template.md | System-wide architecture | "Create architecture doc", "Document system design" | |
| API Design | assets/api-design-template.md | API specifications | "API design doc", "Document REST API" | |
| Feature Design | assets/feature-design-template.md | Feature planning | "Feature design", "Plan new feature" | |
| Database Design | assets/database-design-template.md | Database schema | "Database design", "Document schema" | |
| System Design | assets/system-design-template.md | Complete system | "System design doc", "Full system documentation" |
Unicode Symbols Guide
Full Path: references/guides/unicode-symbols/guide.md
Load when user mentions: "unicode symbols", "emoji in diagrams", "semantic icons", "add symbols"
Quick Reference:
- 📦 Infrastructure: ☁️ 🌐 🔌 📡 🗄️
- ⚙️ Compute: ⚙️ ⚡ 🔄 ♻️ 🚀 💨
- 💾 Data: 💾 📦 📊 📈 🗃️ 🧊
- 📨 Messaging: 📨 📬 📤 📥 🐰 📢
- 🔐 Security: 🔐 🔑 🛡️ 🚪 👤 🎫
- 📝 Monitoring: 📝 📊 🚨 ⚠️ ✅ ❌
Python Scripts (scripts/)
| Script | Use For | Load When | |
|---|---|---|---|
extract_mermaid.py | Extract diagrams from Markdown, validate syntax, replace with images | "extract diagrams", "validate mermaid", "find all diagrams" | |
mermaid_to_image.py | Convert .mmd to PNG/SVG, batch conversion, custom themes | "convert to image", "render diagram", "create PNG" | |
resilient_diagram.py | Full workflow: save .mmd, generate image, validate, error recovery | "generate diagram", "create diagram with validation", "resilient diagram" |
Usage Patterns
Common request patterns and guide selection. See When to Use What for complete mapping.
| Pattern | Example Request | Guides to Load | |
|---|---|---|---|
| Single Diagram | "Create activity diagram for login flow" | Diagram type guide + Unicode symbols | |
| Code-to-Diagram | "Generate deployment from application.yml" | Framework example + Deployment guide | |
| Design Document | "Create API design document" | Template from assets/ + Relevant diagram guides | |
| Extract/Validate | "Extract diagrams from design.md" | Use scripts/extract_mermaid.py | |
| Batch Convert | "Convert all .mmd to PNG" | Use scripts/mermaid_to_image.py |
Resilient Workflow
CRITICAL: This is the recommended approach for ALL diagram generation. It ensures validation, error recovery, and consistent file organization.
Full Guide: references/guides/resilient-workflow.md
Workflow Overview
Key Principle
NEVER add a diagram to markdown until it passes validation. This prevents broken diagrams in documentation.
Using the Script (Recommended)
Output: Both .mmd and .png files in ./diagrams/ directory.
File Naming Convention
Example: ./diagrams/api_design_01_sequence_auth_flow.png
Error Recovery Priority
When validation fails, the workflow automatically:
- Check troubleshooting guide -
references/guides/troubleshooting.md(28 documented errors) - Search with perplexity -
perplexity_askMCP for syntax questions - Search with brave -
brave_web_searchMCP for recent solutions - Ask gemini -
geminiskill for alternative perspective - General search -
WebSearchtool as fallback
Manual Fallback Steps
If the script is unavailable:
- Identify diagram type from first line (flowchart, sequence, etc.)
- Load reference guide from
references/guides/diagrams/ - Save to
./diagrams/<markdown_file>_<num>_<type>_<title>.mmd - Validate:
mmdc -i file.mmd -o file.png -b transparent - On error: Search
references/guides/troubleshooting.mdfor matching error - If not found: Use search tools in priority order above
- Add reference:

Pattern 6: Resilient Diagram Generation
User: "Create a sequence diagram and add it to the design doc"
Skill Actions:
- Identify intent: diagram generation + markdown integration
- Load workflow guide:
references/guides/resilient-workflow.md - Identify diagram type: sequence
- Load diagram guide:
references/guides/diagrams/sequence-diagrams.md - Generate Mermaid code using templates
- Execute resilient workflow:
``bash python scripts/resilient_diagram.py \ --code "[generated code]" \ --markdown-file design_doc \ --diagram-num 1 \ --title "api_sequence" \ --json ``
- If validation fails → Apply troubleshooting fix → Retry
- On success → Add
to markdown
Unicode Semantic Symbols
Always use Unicode symbols to enhance diagram clarity. Common patterns:
Infrastructure & Deployment
Activity Flow with States
Microservices Architecture
For complete symbol reference, load: references/guides/unicode-symbols/guide.md
Python Utilities
Extract Mermaid Diagrams
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.skilz/skills/design-doc-mermaid/SKILL.md
Popularity
- Repository stars
- 34
- Repository forks
- 8
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/spillwavesolutions/agent_rulez/design-doc-mermaid)