d2-render
Installation
SKILL.md
/d2-render
User request: "$ARGUMENTS"
Task
Render D2 diagrams from an existing .d2 file or a .md file with D2 code blocks to SVG or PNG images.
Process
Step 1: Resolve Plugin Path
PLUGIN_DIR=$(find "$HOME/.claude/plugins/cache" -type d -name "d2" -path "*/skills/d2" 2>/dev/null | head -1)
[ -z "$PLUGIN_DIR" ] && PLUGIN_DIR=$(find "$HOME" -maxdepth 8 -type d -name "d2" -path "*/skills/d2" 2>/dev/null | head -1)