mermaid
Installation
SKILL.md
Mermaid Diagrams
Produce valid Mermaid source that communicates relationships more clearly than prose.
Routing
- Choose Mermaid by default for Markdown-native diagrams.
- Choose
../plantuml/SKILL.mdfor strict UML notation, detailed C4, or.pumloutput. - Choose
../processon-diagram-generator/SKILL.mdwhen the user explicitly wants ProcessOn or hosted editable rendering. - Do not ask the user to choose a tool when the context already determines a safe default.
Workflow
- Extract entities, states, decisions, messages, or dependencies from the request and available source.
- Select the smallest suitable diagram type.
- Generate syntactically complete Mermaid source.
- Keep labels concise and quote labels containing punctuation, parentheses, or special characters.
- Validate the structure and, when a Mermaid renderer is available, render it before delivery.
- Save a file only when the user asks for a file or the diagram belongs in an existing document.