mermaid-render
Installation
SKILL.md
Mermaid Render
Render Mermaid diagrams to SVG/PNG/PDF. Supports standard Mermaid output as well as hand-drawn (sketch) style via svg2roughjs — identical to Mermaid Live Editor's hand-drawn mode.
By default, hand-drawn style is enabled. Use --no-handdrawn for standard Mermaid output.
When to Use This Skill
- User asks to "render", "visualize", or "generate" a Mermaid diagram
- User provides .mmd files or Mermaid code blocks and needs output images
- User wants to "create a flowchart/sequence/state/class/ER diagram"
- User needs to extract and render diagrams from a Markdown document
- User wants to "batch process" a directory of .mmd files
- User mentions "hand-drawn", "sketch", or "rough" style — keep default or add
--pencil-filter - User wants clean/standard Mermaid output (no hand-drawn) — use
--no-handdrawn
⚠️ Path Resolution (Important)
All scripts are located in the same directory as this SKILL.md. Before running any script, you must determine the actual path of this file and derive the script directory from it.