Type
data_visualizationEngine
Mermaid.js
Supported Diagram Types
FlowchartsProcess flows, decision trees, algorithm diagrams
Sequence DiagramsAPI interactions, communication flows, protocols
Class DiagramsObject models, database schemas, UML diagrams
State DiagramsState machines, workflow states, transitions
ER DiagramsDatabase relationships, entity models
Gantt ChartsProject timelines, task schedules, milestones
Configuration
Example Configuration:📋 Full Configuration Reference
📋 Full Configuration Reference
| Parameter | Type | Default | Description |
|---|---|---|---|
enable_flowchart | boolean | true | Allow flowchart diagrams |
enable_sequence | boolean | true | Allow sequence diagrams |
enable_class_diagram | boolean | true | Allow class diagrams |
enable_state_diagram | boolean | true | Allow state diagrams |
enable_er_diagram | boolean | true | Allow ER diagrams |
enable_gantt | boolean | true | Allow Gantt charts |
output_format | string | ”svg” | Output format (svg, png, pdf) |
max_diagram_size | number | 10000 | Max characters in diagram |
theme | string | ”default” | Mermaid theme |
output_directory | string | ”/diagrams” | Where diagrams are saved |
🎨 Available Themes
🎨 Available Themes
- Default: Standard Mermaid theme with blue accents
- Dark: Dark background for dark mode documentation
- Forest: Green color scheme, professional look
- Neutral: Minimal black and white design
Quick Start
View Complete Examples
See full Mermaid examples, API flow diagrams, and database schema visualizations
Diagram Examples
Flowchart
Agent Usage:Sequence Diagram
Use Case: API interaction documentation, protocol designER Diagram
Use Case: Database schema design, data modelingGantt Chart
Use Case: Project planning, task schedulingSecurity Best Practices
Limit Diagram Size
Limit Diagram Size
Set
max_diagram_size to prevent resource exhaustion.Restrict Output Directory
Restrict Output Directory
Specify
output_directory to control where diagrams are saved.Validate Diagram Syntax
Validate Diagram Syntax
Validate Mermaid syntax before rendering to prevent malformed diagrams.
Troubleshooting & Related Skills
Diagram Rendering Fails
Diagram Rendering Fails
Solutions:
- Verify Mermaid syntax using Mermaid Live Editor
- Check diagram doesn’t exceed
max_diagram_size - Ensure diagram type is enabled in configuration
Output File Not Created
Output File Not Created
Solutions:
- Verify
output_directoryexists and is writable - Check disk space:
df -h - Ensure worker user has write permissions
Complex Diagrams Too Slow
Complex Diagrams Too Slow
Solutions:
- Simplify diagram by breaking into multiple smaller diagrams
- Use PNG instead of SVG for faster rendering
- Reduce
max_diagram_sizeto enforce smaller diagrams
Related Skills
File Generation
Generate reports that include diagrams
File System Skill
Manage diagram files and assets
Python Skill
Process data before visualization
View All Skills
Return to built-in skills overview