diegomarino/claude-toolshed/mermaid-validate
Claude Code and agent skill by diegomarino/claude-toolshed
- community
Checking that the SKILL.md file is still in the repository.
Validate Mermaid syntax in .md files or directories
Install
npx vskill@latest install diegomarino/claude-toolshed/mermaid-validateSKILL.md
/mermaid-validate
User request: "$ARGUMENTS"
Task
Check Mermaid syntax for all diagrams found in a given file or directory.
Process
- Resolve Plugin Path: Run once before executing any scripts:
``bash find "$HOME/.claude/plugins/cache" -type d -name "mermaid" -path "*/skills/mermaid" 2>/dev/null | head -1 ``
If empty, run fallback (for dev/repo usage):
``bash find "$HOME" -maxdepth 8 -type d -name "mermaid" -path "*/skills/mermaid" 2>/dev/null | head -1 ``
Use the returned path as PLUGIN_DIR in all steps below.
- 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).
- Resolve Target Path:
- If no path is provided, use the current directory.
- If the path is a file, validate that single file.
- If the path is a directory, find all
.mdfiles containing Mermaid blocks.
- Optional Config:
- If
.claude/mermaid.jsonexists, read defaults: output_directory(default: ./diagrams)
Resolve output path:
- If
output_directoryis"same"AND an input file path is known:
OUTPUT_DIR=$(dirname {input_file}) (for a directory argument, use the directory itself)
- If
output_directoryis"same"AND no argument was provided:
OUTPUT_DIR=./diagrams
- Otherwise:
OUTPUT_DIR={output_directory}
- Validate:
- For each markdown file:
node "$PLUGIN_DIR/scripts/extract_mermaid.js" <file> --validate
- Report:
- Summarize pass/fail per file.
- If a file fails, point to
$PLUGIN_DIR/references/guides/troubleshooting.md.
Output
- ✅ Summary of files validated
- ❌ List of failures with errors
Reference
- Troubleshooting:
$PLUGIN_DIR/references/guides/troubleshooting.md
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
- SKILL.md in the repositoryCheckingplugins/mermaid/skills/mermaid-validate/SKILL.md
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
[](https://verified-skill.com/skills/diegomarino/claude-toolshed/mermaid-validate)