mermaid-architecture
БесплатноЗапускает вложенные скриптыНе проверенUse when generating, documenting, or updating architecture diagrams, flowcharts, sequence, ER, class, or state diagrams using Mermaid in docs/architecture/.
от afonsoft530 установок в других каталогахОб этом скилле
Mermaid Architecture Diagrams
Create structured, high-contrast, production-ready Mermaid architecture diagrams, workflows, and system design documentation. Native diagrams render directly in Markdown viewers (GitHub, GitLab, Obsidian, wikis) with optional image exports (PNG/SVG) generated via Mermaid CLI (mmdc / npx @mermaid-js/mermaid-cli).
📁 Storage Location (docs/architecture/)
All generated architecture diagrams, source .mmd files, exported images, and system design documents must be stored in docs/architecture/, consistent with the drawio-architecture convention:
docs/architecture/
├── system-architecture.md # Architecture documentation with embedded Mermaid blocks
├── <name>_<type>_<title>.mmd # Source Mermaid definitions
├── <name>_<type>_<title>.png # Optional exported raster image
└── <name>_<type>_<title>.svg # Optional exported vector image
Ensure the directory exists before saving:
mkdir -p docs/architecture
When to Use
The user asks for an architecture diagram, system structure, component overview, C4 model, microservices topology, or data flow.
Documenting API interactions, service call sequences, authentication flows, or request lifecycles.
Visualizing workflows, state machines, business logic, ETL pipelines, or decision trees.
Mapping code to diagrams (Spring Boot, FastAPI, React, Node/Express, Python ETL, Java).
Creating or updating full design documents (System Design, Architecture, API Design, Database Schema).
In the Orchestrator pipeline (Phase 5): invoked via
/architecture(the umbrella skill that ownsdocs/architecture/) to update or generate native Markdown Mermaid diagrams.User asks or mentions this skill in English (e.g., "use /mermaid-architecture", "run mermaid-architecture", "generate mermaid diagram").
O usuário pede ou menciona esta skill em português (ex.: "use /mermaid-architecture", "execute mermaid-architecture", "gerar diagrama mermaid").
When NOT to Use
- Visual drag-and-drop editing with native
.drawioformat → use/drawio-architecture. - Freehand sketch or casual whiteboard drawing → use Excalidraw or tldraw.
- PlantUML-specific legacy diagrams (Salt wireframes, timing diagrams).
Orchestrator Integration
In the Orchestrator lifecycle (Phase 5 — Verification & QA Gate), the orchestrator calls /architecture, which routes work to the specialized engines:
/drawio-architectureupdates the visual editable.drawiosystem diagram./mermaid-architectureruns immediately after to generate or update the native Mermaid architecture diagrams and embedded Markdown files indocs/architecture/./create-readmethen references the generated diagrams inREADME.md.
Diagram Types & Selection Guide
| Diagram Type | Best Used For | Guide to Load |
|---|---|---|
| Architecture / C4 | System context, containers, microservices, component boundaries | references/guides/diagrams/architecture-diagrams.md |
| Sequence | API interactions, auth flows, inter-service messaging, async events | references/guides/diagrams/sequence-diagrams.md |
| Activity / Flowchart | Business processes, approval pipelines, ETL stages, decision trees | references/guides/diagrams/activity-diagrams.md |
| Deployment / Cloud | Cloud infrastructure (AWS, Azure, GCP), Kubernetes, networking | references/guides/diagrams/deployment-diagrams.md |
| Class / ER / State | Data models, database schemas, lifecycle transitions | references/guides/wiki-ticket-and-github.md |
Resilient Workflow with Error Recovery
To prevent syntax errors from reaching documentation, follow the resilient validation cycle:
flowchart LR
A[1. Identify Diagram Type] --> B[2. Save .mmd to docs/architecture]
B --> C{3. Validate Syntax}
C -->|Valid| D[4. Embed in Markdown / Export]
C -->|Invalid| E[5. Search Troubleshooting]
E --> F[6. Apply Fix & Retry]
F --> C
classDef step fill:#90EE90,stroke:#333,color:darkgreen
classDef decision fill:#FFD700,stroke:#333,color:black
class A,B,D,E,F step
class C decision
Script Execution
Use the bundled resilient script to generate diagrams directly into docs/architecture/:
# Generate diagram with automatic syntax validation and image export
python3 skills/mermaid-architecture/scripts/resilient_diagram.py \
--code "flowchart TD; A[Client] --> B[API Gateway]" \
--output-dir docs/architecture \
--markdown-file system_architecture \
--diagram-num 1 \
--title "overview" \
--format png \
--json
If mmdc is not installed globally, the script automatically uses npx -y @mermaid-js/mermaid-cli.
High-Contrast Styling (Mandatory)
All diagrams must ensure readable text on both light and dark backgrounds by always specifying color: in every `classDef
Установить mermaid-architecture в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mermaid-architecture?
Use when generating, documenting, or updating architecture diagrams, flowcharts, sequence, ER, class, or state diagrams using Mermaid in docs/architecture/.
Как установить скилл mermaid-architecture?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mermaid-architecture запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic