viz/skills/mermaid-display/SKILL.md
Display Mermaid diagrams as interactive HTML pages. Activated when the user asks to visualize, diagram, chart, or draw system architecture, data flows, process workflows, sequence diagrams, class diagrams, state machines, ER diagrams, or any relationships better shown graphically. Renders as HTML by default; PNG/SVG only when explicitly requested.
npx skillsauth add musingfox/cc-plugins mermaid-displayInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Render Mermaid diagrams as interactive HTML pages with zoom/pan controls, dark mode, and responsive layout.
Use when:
Do NOT use when:
Based on user requirements, create valid Mermaid syntax. Choose the appropriate diagram type from references/diagram-types.md.
Wrap the Mermaid code as a markdown document:
# {Diagram Title}
```mermaid
{mermaid code}
`` `
Write this markdown content to a temp file /tmp/viz-diagram-{name}.md using the Write tool.
Then run the render script via Bash:
bash "${CLAUDE_PLUGIN_ROOT}/lib/render.sh" "/tmp/viz-diagram-{name}.md" "diagram-{name}"
Report what was created and the output path printed by the render script.
Only when the user explicitly asks for a PNG or SVG file:
/tmp/mermaid-diagram-{timestamp}.mmdreferences/render-script.sh with INPUT_FILE set to the .mmd path:
INPUT_FILE="/tmp/mermaid-diagram-{timestamp}.mmd" bash references/render-script.sh
Theme configuration for HTML output uses browser-side Mermaid.js with system dark mode auto-detection.
For PNG/SVG output, environment variables apply:
export MERMAID_OUTPUT_FORMAT=png # or svg
export MERMAID_COLOR_SCHEME=tokyo-night
See ../mermaid-theme/references/color-schemes.md for all 8 built-in schemes + custom option.
| Issue | Solution |
|-------|----------|
| No renderer (PNG/SVG only) | Install Node.js: brew install node |
| Invalid syntax | Check syntax, suggest testing at https://mermaid.live |
| Complex diagram unreadable | Split into multiple smaller diagrams |
references/diagram-types.mdreferences/render-script.sh../mermaid-theme/references/color-schemes.mddata-ai
Unified entry point for Obsidian daily-note captures and long-form notes. Triggers on "記一下 / log / 紀錄 / capture this / 寫到 journal" (→ cap mode) and "建立筆記 / new note / 寫一份筆記 / create a note on" (→ note mode). Also via `/obw:cap` and `/obw:note`. Requires `.obsidian.yaml`.
tools
Use the `gog` CLI to operate Google Workspace — Gmail (read/search/send/labels/drafts), Calendar (events/RSVP/freebusy/focus-time/out-of-office), and Drive (list/search/upload/ download/share/move). Triggers on any Gmail, inbox, email, calendar, agenda, meeting, schedule, RSVP, Drive, Google Doc/Sheet/Slides, file share, or upload/download request.
documentation
Interactively create .obsidian.yaml for a project and install starter templates (task / doc / adr) into the vault's Templates folder. Skips templates that already exist; never overwrites.
tools
Manage project hook-guard installation — set up, diagnose, or update Claude Code hooks, git pre-commit, and commit-msg scripts with security checks, code-quality gates, and CLAUDECODE skip logic. Triggers on "set up hooks", "configure pre-commit", "add linting hooks", "initialize hook-guard", "check hooks", "hook doctor", "verify hook setup", "troubleshoot hooks", "update hooks", "regenerate hooks", "sync hooks with current tools", or similar requests.