Mermaid Diagrams
Mermaid is useful for summarizing architecture, process flow, and entity relationships directly in chat/docs outputs.Recommended Diagram Types
flowchartfor workflow and data movementsequenceDiagramfor runtime interactionserDiagramfor schema-level communication
OMNI Workflow Pattern
- Draft diagram from analysis context
- Validate syntax with
mermaid_validate - Refine labels for readability
- Publish with short explanatory notes
Best Practices
- Keep diagrams narrowly scoped
- Use clear node labels and explicit directions
- Avoid mixing unrelated concerns in one chart
Common Failure Modes
- Parser errors from unescaped characters
- Overly dense node sets
- Ambiguous arrow semantics