mermaid-graph-writer
БесплатноЗапускает вложенные скриптыНе проверенWrites precise, well-structured Mermaid diagrams for any visualization need. Use when creating flowcharts, sequence diagrams, state machines, ER models…
от curiositech★ 283 звезды на GitHubОб этом скилле
Mermaid Graph Writer
Writes precise, well-structured Mermaid diagrams. Selects the optimal diagram type for the content, uses correct syntax, and produces diagrams that are readable by both humans (rendered) and agents (text DSL).
When to Use
✅ Use for:
- Creating any Mermaid diagram from a description or data
- Choosing the right diagram type for a visualization need
- Refactoring prose decision trees into Mermaid flowcharts
- Modeling system architectures, protocols, state machines, data models
- Encoding temporal knowledge as timeline diagrams
❌ NOT for:
- Rendering/exporting Mermaid to PNG/SVG/PDF (use
mermaid-graph-renderer) - ASCII art or Unicode box-drawing (use
diagramming-expert) - GUI-based design tools (Figma, etc.)
Diagram Type Selection
flowchart TD
A{What are you modeling?} -->|Branching logic| B[flowchart]
A -->|Request/response over time| C[sequenceDiagram]
A -->|States and transitions| D[stateDiagram-v2]
A -->|Entities and relationships| E[erDiagram]
A -->|Chronological evolution| F[timeline]
A -->|Concept hierarchy| G[mindmap]
A -->|Time-sequenced tasks| H[gantt]
A -->|Proportions| I[pie]
A -->|2-axis comparison| J[quadrantChart]
A -->|Branch/merge history| K[gitGraph]
A -->|Type hierarchy / OO| L[classDiagram]
A -->|User experience steps| M[journey]
A -->|Quantity flows| N[sankey-beta]
A -->|Numeric data| O[xychart-beta]
A -->|System components| P[block-beta]
A -->|Infrastructure| Q[architecture-beta]
A -->|Task board| R[kanban]
A -->|Requirements traceability| S[requirementDiagram]
A -->|System context / containers| T[C4Context]
A -->|Protocol packets / headers| U[packet-beta]
A -->|Multi-axis comparison| V[radar]
A -->|Hierarchical proportions| W[treemap]
A -->|Code-style sequences| X[zenuml]
Quick Reference
| Content | Type | Direction |
|---|---|---|
| Decision tree / process | flowchart TD |
Top-down for decisions, LR for processes |
| API protocol / agent comms | sequenceDiagram |
Always vertical (implicit) |
| Lifecycle / status machine | stateDiagram-v2 |
Automatic layout |
| Database / data model | erDiagram |
Automatic layout |
| "What changed when" | timeline |
Horizontal chronological |
| Taxonomy / brainstorm | mindmap |
Radial from root |
| Project schedule | gantt |
Horizontal timeline |
| Category proportions | pie |
Circular |
| Effort vs. impact | quadrantChart |
2D scatter |
| Git branching strategy | gitGraph |
Horizontal |
| Class/interface hierarchy | classDiagram |
Automatic |
| User flow with satisfaction | journey |
Horizontal sections |
| Flow quantities between categories | sankey-beta |
Left-to-right flow |
| Bar/line charts | xychart-beta |
Standard axes |
| System block layout | block-beta |
Grid-based |
| Cloud/infra topology | architecture-beta |
Grouped services |
| Task status columns | kanban |
Column-based |
| Requirements traceability | requirementDiagram |
Automatic layout |
| System context / containers | C4Context / C4Container |
Layered (5 sub-types) |
| Protocol packets / headers | packet-beta |
Horizontal bit layout |
| Multi-axis scoring | radar |
Radial axes |
| Hierarchical proportions | treemap |
Nested rectangles |
| Code-style sequences | zenuml |
Vertical (plugin) |
Flowchart Deep Dive (Most Common)
Direction
TD/TB— top-down (best for decision trees)LR— left-right (best for processes, pipelines)BT— bottom-up (rare, for dependency graphs)RL— right-left (rare)
Node Shapes
[text] Rectangle (default action)
(text) Rounded rectangle (soft step)
{text} Diamond (decision/condition)
([text]) Stadium/pill (start/end)
text Subroutine (subprocess)
[(text)] Cylinder (database/storage)
((text)) Circle (event/trigger)
>text] Flag (async/signal)
{{text}} Hexagon (preparation)
[/text/] Parallelogram (input/output)
[\text\] Reverse parallelogram
[/text\] Trapezoid
[\text/] Reverse trapezoid
Edge Styles
--> Solid arrow (main flow)
--- Solid line (association)
-.-> Dotted arrow (optional/async)
==> Thick arrow (emphasis/critical path)
--text--> Labeled edge
~~~ Invisible link (layout control only)
Subgraphs
flowchart TD
subgraph Backend
A[API] --> B[DB]
end
subgraph Frontend
C[UI] --> D[State]
end
C -->|fetch| A
Sequence Diagram Essentials
Messages
->> Solid arrow (sync request)
-->> Dotted arrow (async response)
-) Open arrow (async fire-and-forget)
-x Cross (failed/rejected)
Blocks
activate / deactivate Lifeline activation
alt / else / end Conditional branching
loop / end Repetition
par / and / end Parallel execution
critical / end Critical section
break / end Break-out flow
Установить mermaid-graph-writer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditВложенные файлы
FAQ
Что делает скилл mermaid-graph-writer?
Writes precise, well-structured Mermaid diagrams for any visualization need. Use when creating flowcharts, sequence diagrams, state machines, ER models, timelines, mindmaps, Gantt charts, or any other Mermaid-supported diagram type. Activate on "mermaid", "diagram", "flowchart", "sequence diagram", "state diagram", "ER diagram", "visualize", "draw graph". NOT for rendering/exporting Mermaid to images (use mermaid-graph-renderer), ASCII art, or GUI-based design tools.
Как установить скилл mermaid-graph-writer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mermaid-graph-writer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic