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:
# Preview a file
./run.sh diagram.mmd
# Pipe content
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.
More from veelenga/preview-skills
preview-leaflet
Create interactive maps with markers, routes, and geographic data using Leaflet
40preview-markdown
Render and preview Markdown files in browser with GitHub-flavored formatting and syntax highlighting
2preview-diff
Git diff preview tool with GitHub-style formatting and interactive features
2preview-json
Render and preview JSON files in browser with syntax highlighting, collapsible tree view, and search
2preview-csv
Render and preview CSV files in browser with interactive sorting, filtering, and column statistics
2preview-plan
Render implementation plans as navigable HTML with sidebar TOC and progress tracking. Activate automatically when producing or previewing implementation plans, design docs, architecture proposals, migration plans, or any long-form structured plan.
2