diegomarino/claude-toolshed/mermaid-render

Claude Code and agent skill by diegomarino/claude-toolshed

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Render .mmd or .md files to SVG images

Install

npx vskill@latest install diegomarino/claude-toolshed/mermaid-render

SKILL.md

/mermaid-render

User request: "$ARGUMENTS"

Task

Render Mermaid diagrams from an existing .mmd file or a .md file with Mermaid blocks to SVG image files.

Process

  1. Resolve Plugin Path:

``bash find "$HOME/.claude/plugins/cache" -type d -name "mermaid" -path "*/skills/mermaid" 2>/dev/null | head -1 ``

If empty, run fallback:

``bash find "$HOME" -maxdepth 8 -type d -name "mermaid" -path "*/skills/mermaid" 2>/dev/null | head -1 ``

Use the returned path as PLUGIN_DIR.

  1. Ensure Dependencies:

``bash bash "$PLUGIN_DIR/scripts/ensure-deps.sh" ``

If .claude/mermaid.json does not exist, display a one-time nudge before continuing:

> First time using the mermaid plugin? Run /mermaid-config to pick a theme and output settings. Using defaults for now (zinc-light, ./diagrams).

  1. Read Config: If .claude/mermaid.json exists, read:
  • theme (default: zinc-light)
  • output_directory (default: ./diagrams)
  • output_format (default: svg)

Resolve output path:

  • If output_directory is "same" AND an input file path is known:

OUTPUT_DIR=$(dirname {input_file})

  • If output_directory is "same" AND no argument was provided:

OUTPUT_DIR=./diagrams

  • Otherwise:

OUTPUT_DIR=<output_directory from config>

  1. Determine Input:
  • .mmd file → render directly
  • .md file → extract Mermaid blocks first:

node "$PLUGIN_DIR/scripts/extract_mermaid.js" {file}

  • Directory → find all .mmd files:

find {dir} -name "*.mmd" -not -path "*/node_modules/*"

  • No argument → ask: "Which file or directory should I render?"
  1. Render:

Run for each input file. resilient_diagram.js renders SVG via beautiful-mermaid and maps errors to troubleshooting.md.

Theme handling:

  • If theme == "custom" and themeVariables is present in config:

``bash node "$PLUGIN_DIR/scripts/resilient_diagram.js" {input_file} --output-dir $OUTPUT_DIR --custom-theme '{"bg":"#...","fg":"#..."}' ``

Pass the serialized themeVariables JSON as the --custom-theme value.

  • If theme == "custom" but themeVariables is absent from config: render without custom theme and display a note:

> Custom theme configured but no themeVariables found — run /mermaid-config → option 6 to define colors.

  • Otherwise:

``bash node "$PLUGIN_DIR/scripts/resilient_diagram.js" {input_file} --output-dir $OUTPUT_DIR --theme {theme} ``

  1. Report:
  • List all output files generated with full paths
  • If rendering failed: "Run /mermaid-config → health check to diagnose missing dependencies."

Output

Rendered 3 diagrams:
✅ diagrams/sequence-auth.svg
✅ diagrams/er-users.svg
✅ diagrams/architecture.svg

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
44
Repository forks
4
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/diegomarino/claude-toolshed/mermaid-render/badge)](https://verified-skill.com/skills/diegomarino/claude-toolshed/mermaid-render)

Something wrong with this skill or its page? Tell us.