Draw and edit Mermaid diagrams in Markdown. Use when the user wants to visualize processes, flows, sequences, or asks for diagrams.
When the user asks to create a diagram or visualize a process, use Mermaid syntax within Markdown code blocks.
SPEC.md for syntax details if needed.mermaid code block.To validate a mermaid diagram file (or a markdown file containing mermaid blocks), use the validation script. It uses the official Mermaid CLI to check for syntax errors.
deno run --allow-run --allow-read --allow-write --allow-env scripts/validate.ts path/to/diagram.mmd
graph TD
Start --> Process
Process --> Decision{Is it valid?}
Decision -- Yes --> End
Decision -- No --> Error[Show Error]
Error --> Process
sequenceDiagram
participant User
participant System
User->>System: Request Data
activate System
System-->>User: Return Data
deactivate System