visual
Installation
SKILL.md
/visual
One command, one page. You write a data.json; scripts/visual.py render injects it into assets/template.html, which draws everything inline (SVG diagrams, file map, diffs) with no build step and no runtime CDN. Paths below are relative to this skill's folder; run the script from inside the project being visualised.
Pick the mode
An argument wins: /visual recap [base], /visual plan [file], /visual map [skills-dir or map.json], /visual <path or thing> (explore).
With no argument, run python3 scripts/visual.py detect and take the first that holds:
- A plan was drafted in this conversation and not yet built → plan, from that text.
suggestedisrecap(branch ahead of base, or uncommitted changes) → recap.planCandidatesis non-empty → plan, from the newest one.- Otherwise → explore the current folder.
Say the chosen mode and its source in one line, then keep going.