| name | preview-mermaid |
| description | Render and preview Mermaid diagrams in browser with support for flowcharts, sequence diagrams, class diagrams, and more |
| user-invocable | true |
| commands | ["preview-mermaid"] |
Preview Mermaid Skill
Interactive Mermaid diagram viewer that renders flowcharts, sequence diagrams, class diagrams, ER diagrams, state diagrams, Gantt charts, pie charts, and more.
Agent Usage
When the user asks to preview a Mermaid diagram, DO NOT build HTML manually. Use the Bash tool to execute this skill's run.sh script:
./run.sh diagram.mmd
echo "graph TD
A-->B" | ./run.sh
The script handles all HTML generation and automatically opens the result in the browser. Do NOT open the file manually to avoid duplicate tabs.
Usage
/preview-mermaid diagram.mmd
cat flowchart.mermaid | /preview-mermaid
echo "graph TD\n A-->B" | /preview-mermaid
/preview-mermaid sequence.mmd --background