visual
Turn the current work into one polished, self-contained HTML visual page — a recap of a branch's changes, a plan, a map of a folder, endpoint set, or architecture, or an interactive drill-down map of a skill pack or system (zoom, pan, click a node for details, double-click to ope
Install
npx skills add https://github.com/EricTechPro/super-board/tree/main/skills/visual
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install erictechpro-super-board@llmmart
git clone https://github.com/EricTechPro/super-board.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole erictechpro/super-board collection as a plugin from our marketplace. Git is the plain clone.
README
/visual
Turns the work in front of you into one self-contained HTML page: a branch recap, a plan, a map of part of the codebase, or an interactive drill-down map of a skill pack, with diagrams.
Adapted from BuilderIO/skills (MIT, visual-recap and visual-plan); diagram style and viewer UX from tt-a1i/archify (MIT). See THIRD_PARTY_NOTICES.md.
What It Does
- Picks a mode from the argument, or from
scripts/visual.py detectwhen there is none: recap if the branch is ahead of base or has uncommitted changes, plan if a plan file is around, explore otherwise. - Gathers facts from git, not from memory: commits, files with
+/-, and diff hunks are pulled byrender, so a recap cannot invent a change. - Draws the page from a
data.jsonintoassets/template.html: key changes, a file map, at least one diagram of the real mechanism, and annotated code. Everything is inline; no build step, no CDN. - Routes like a diagram tool. Each edge has its own port and orthogonal route; render bakes a crossing-free layout per view and the check fails on crossings, shared lines, or labels on lines.
- Zooms and drills. Every diagram pans and zooms. Map mode adds a minimap, a node panel (what, when, how, source, upstream and downstream), double-click drill-down into child views, breadcrumbs,
#view=deep links, search, author avatars on external skills, animated flow, and SVG/PNG export. - Checks its own output with headless-Chrome screenshots (light and dark) and a label-overlap audit, redacts secrets, and writes to a gitignored folder (
_tmp/<date>-visual/or.visual/).
When To Use It
- Before a review or handoff, to show what a branch changed at a glance.
- To turn a plan into a picture before anyone builds it.
- To learn a folder, an endpoint set, or an architecture you did not write.
Modes
| Command | Does |
|---|---|
/visual |
detect the mode |
/visual recap [base] |
what this branch changed against base |
/visual plan [file] |
a plan as a page; makes no source edits |
/visual map [skills-dir or map.json] |
drill-down map of a skill pack or system |
/visual <path or thing> |
explore and map it |
Install
Ships in the super-board pack as a secondary skill. install.sh copies skills/visual/ to .claude/skills/visual/. Needs git and Python 3 (stdlib only); the self-check screenshot uses headless Chrome when present.
Skill manifest
/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.
Run it
- Gather. Recap:
python3 scripts/visual.py facts [--base REF], then readgit diff <mergeBase>once, in order, taking notes; scope is the whole work unit of this conversation. Plan: read the plan and the real files it names. Explore: read the target; hand wide sweeps to a sub-agent. - Write
data.jsonin the scratchpad, followingreferences/schema.mdand the section bar inreferences/sections.md. - Render:
python3 scripts/visual.py render data.json. It prints{"out", "bytes", "missingHunks", "check"}and opens the page. Fix each missing hunk (wrong path orcontains) and re-render. - Check.
renderrunsvisual.py checkin headless Chrome: light and dark screenshots (plus one drilled-in view for a map), and an audit of every diagram or view: edge crossings, edges sharing a line, labels lying on a line or a node, and text overflowing its box (check.counts). Exit 2 means a problem: move nodes (col/row, or a viewlayout), cut edges a view does not need, shorten labels, and re-render. Read the PNGs it lists; a broken diagram or empty section means fix and re-render.--no-checkskips it;--shots DIRpicks where the PNGs go. - Reply with the path, the mode, and a 1–3 line gist. Offer to publish it as an Artifact (the page is fully inline); publish only on a yes.
Map mode: a drill-down map
For a skill pack or any system with nested levels. The page is a clean flowchart, light first with a dark mode: one top bar (breadcrumbs, ⌘K search over nodes and views, theme, export, keys), a column browser of views on the left, the map in the middle, and a short details strip under it (header, then What · When · How · Links tabs). Wheel or pinch zooms, drag pans, the minimap moves the camera, a click opens the details, and double-click or Enter on a stacked node zooms into its inner view. Run-order views get swimlanes (Ask → Check → Fix → Finish …) when their parts name the phase. Breadcrumbs, Esc, and the browser back button go up; #view=<id>&node=<id> deep-links. On a phone the details become a bottom sheet.
- Skeleton.
python3 scripts/visual.py skillmap <skills-dir> --deep --out map.jsonreads SKILL.md frontmatter,families.json,/skillmentions, referenced scripts, andhooks/settings-snippet.json;--deepfollows every external skill into the skills it triggers. Not a skill pack? Writemap.jsonby hand. - Enrich. Read the skills and fill every node's
what,when,how, and realsource— the panel shows all four, so none stays empty. Main steps first: keep process views to roughly four to six columns, setmainSteps: true, and move scripts, state, and policies into a step’s child view. Every original node stays reachable. Hub views keep comb connectors. Mark outside skillskind: externalwithauthor(GitHub login) and addauthors;renderembeds their avatars. Fix edges and give each view a shortcaption.references/schema.md§ Map model is the contract. - Render:
python3 scripts/visual.py render --map map.json. It searches each view for a crossing-free layout and bakes it into the page, then runs the check. Publishing the page (GitHub Pages)? Add--source-base https://github.com/OWNER/REPO/blob/main/(and--source-root <dir>when the hosted repo is a subfolder) so Source links open the hosted file. Finish with steps 4–5 of Run it.
Rules
- Grounded: in recap mode, files,
+/-, and hunks come from git throughrender(hunks[].file+contains); hand-typed diff lines are for plan sketches only. Prose is the one free-text surface; label anything inferred as inferred. - Diagram first: every page carries at least one diagram of the real mechanism — new endpoints, modules, data flow — with
changeflags on what moved. Columns follow the flow, rows hold peers. - Lean, not thin: no boilerplate intro or "review the diff anyway" prose; every block says something specific about this change.
- Secrets: redact keys, tokens, and
.envvalues in every block (sk-•••). - Plan is read-only: make no source edits while planning.
- Output lands in a gitignored place:
_tmp/<date>-visual/when the repo ignores_tmp/, else.visual/(self-ignoring).--outoverrides.
References
references/schema.md— thedata.jsoncontract, diagram layout, and the map model; open before writing data.references/sections.md— per-mode section list and quality bar; open before writing data.THIRD_PARTY_NOTICES.md— Adapted from BuilderIO/skills (MIT); diagram style and viewer UX from tt-a1i/archify (MIT).
Files (super-board)
-
assets
-
template.html 209.1 KB · in bundle
-
-
references
-
schema.md 12.7 KB
Loading… -
sections.md 3.8 KB
Loading…
-
-
scripts
-
visual.py 41.2 KB
Loading…
-
-
README.md 2.4 KB
# /visual Turns the work in front of you into one self-contained HTML page: a branch recap, a plan, a map of part of the codebase, or an interactive drill-down map of a skill pack, with diagrams. Adapted from BuilderIO/skills (MIT, visual-recap and visual-plan); diagram style and viewer UX from tt-a1i/archify (MIT). See `THIRD_PARTY_NOTICES.md`. ## What It Does - **Picks a mode** from the argument, or from `scripts/visual.py detect` when there is none: recap if the branch is ahead of base or has uncommitted changes, plan if a plan file is around, explore otherwise. - **Gathers facts from git**, not from memory: commits, files with `+/-`, and diff hunks are pulled by `render`, so a recap cannot invent a change. - **Draws the page** from a `data.json` into `assets/template.html`: key changes, a file map, at least one diagram of the real mechanism, and annotated code. Everything is inline; no build step, no CDN. - **Routes like a diagram tool.** Each edge has its own port and orthogonal route; render bakes a crossing-free layout per view and the check fails on crossings, shared lines, or labels on lines. - **Zooms and drills.** Every diagram pans and zooms. Map mode adds a minimap, a node panel (what, when, how, source, upstream and downstream), double-click drill-down into child views, breadcrumbs, `#view=` deep links, search, author avatars on external skills, animated flow, and SVG/PNG export. - **Checks its own output** with headless-Chrome screenshots (light and dark) and a label-overlap audit, redacts secrets, and writes to a gitignored folder (`_tmp/<date>-visual/` or `.visual/`). ## When To Use It - Before a review or handoff, to show what a branch changed at a glance. - To turn a plan into a picture before anyone builds it. - To learn a folder, an endpoint set, or an architecture you did not write. ## Modes | Command | Does | |---|---| | `/visual` | detect the mode | | `/visual recap [base]` | what this branch changed against `base` | | `/visual plan [file]` | a plan as a page; makes no source edits | | `/visual map [skills-dir or map.json]` | drill-down map of a skill pack or system | | `/visual <path or thing>` | explore and map it | ## Install Ships in the super-board pack as a secondary skill. `install.sh` copies `skills/visual/` to `.claude/skills/visual/`. Needs `git` and Python 3 (stdlib only); the self-check screenshot uses headless Chrome when present. -
SKILL.md 6 KB
--- name: visual description: Turn the current work into one polished, self-contained HTML visual page — a recap of a branch's changes, a plan, a map of a folder, endpoint set, or architecture, or an interactive drill-down map of a skill pack or system (zoom, pan, click a node for details, double-click to open its inner view). Use when the user runs /visual or asks to visualise, picture, or visually recap a branch, PR, diff, plan, or part of a codebase, or to map a skill pack, its lanes, scripts, and hooks. --- # /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: 1. A plan was drafted in this conversation and not yet built → **plan**, from that text. 2. `suggested` is `recap` (branch ahead of base, or uncommitted changes) → **recap**. 3. `planCandidates` is non-empty → **plan**, from the newest one. 4. Otherwise → **explore** the current folder. Say the chosen mode and its source in one line, then keep going. ## Run it 1. **Gather.** Recap: `python3 scripts/visual.py facts [--base REF]`, then read `git diff <mergeBase>` once, in order, taking notes; scope is the whole work unit of this conversation. Plan: read the plan and the real files it names. Explore: read the target; hand wide sweeps to a sub-agent. 2. **Write `data.json`** in the scratchpad, following `references/schema.md` and the section bar in `references/sections.md`. 3. **Render:** `python3 scripts/visual.py render data.json`. It prints `{"out", "bytes", "missingHunks", "check"}` and opens the page. Fix each missing hunk (wrong path or `contains`) and re-render. 4. **Check.** `render` runs `visual.py check` in headless Chrome: light and dark screenshots (plus one drilled-in view for a map), and an audit of every diagram or view: edge crossings, edges sharing a line, labels lying on a line or a node, and text overflowing its box (`check.counts`). Exit 2 means a problem: move nodes (`col`/`row`, or a view `layout`), cut edges a view does not need, shorten labels, and re-render. Read the PNGs it lists; a broken diagram or empty section means fix and re-render. `--no-check` skips it; `--shots DIR` picks where the PNGs go. 5. **Reply** with the path, the mode, and a 1–3 line gist. Offer to publish it as an Artifact (the page is fully inline); publish only on a yes. ## Map mode: a drill-down map For a skill pack or any system with nested levels. The page is a clean flowchart, light first with a dark mode: one top bar (breadcrumbs, ⌘K search over nodes and views, theme, export, keys), a column browser of views on the left, the map in the middle, and a short details strip under it (header, then What · When · How · Links tabs). Wheel or pinch zooms, drag pans, the minimap moves the camera, a click opens the details, and double-click or Enter on a stacked node zooms into its inner view. Run-order views get swimlanes (Ask → Check → Fix → Finish …) when their parts name the phase. Breadcrumbs, Esc, and the browser back button go up; `#view=<id>&node=<id>` deep-links. On a phone the details become a bottom sheet. 1. **Skeleton.** `python3 scripts/visual.py skillmap <skills-dir> --deep --out map.json` reads SKILL.md frontmatter, `families.json`, `/skill` mentions, referenced scripts, and `hooks/settings-snippet.json`; `--deep` follows every external skill into the skills it triggers. Not a skill pack? Write `map.json` by hand. 2. **Enrich.** Read the skills and fill every node's `what`, `when`, `how`, and real `source` — the panel shows all four, so none stays empty. Main steps first: keep process views to roughly four to six columns, set `mainSteps: true`, and move scripts, state, and policies into a step’s child view. Every original node stays reachable. Hub views keep comb connectors. Mark outside skills `kind: external` with `author` (GitHub login) and add `authors`; `render` embeds their avatars. Fix edges and give each view a short `caption`. `references/schema.md` § Map model is the contract. 3. **Render:** `python3 scripts/visual.py render --map map.json`. It searches each view for a crossing-free layout and bakes it into the page, then runs the check. Publishing the page (GitHub Pages)? Add `--source-base https://github.com/OWNER/REPO/blob/main/` (and `--source-root <dir>` when the hosted repo is a subfolder) so Source links open the hosted file. Finish with steps 4–5 of Run it. ## Rules - **Grounded:** in recap mode, files, `+/-`, and hunks come from git through `render` (`hunks[].file` + `contains`); hand-typed diff lines are for plan sketches only. Prose is the one free-text surface; label anything inferred as inferred. - **Diagram first:** every page carries at least one diagram of the real mechanism — new endpoints, modules, data flow — with `change` flags on what moved. Columns follow the flow, rows hold peers. - **Lean, not thin:** no boilerplate intro or "review the diff anyway" prose; every block says something specific about this change. - **Secrets:** redact keys, tokens, and `.env` values in every block (`sk-•••`). - **Plan is read-only:** make no source edits while planning. - **Output** lands in a gitignored place: `_tmp/<date>-visual/` when the repo ignores `_tmp/`, else `.visual/` (self-ignoring). `--out` overrides. ## References - `references/schema.md` — the `data.json` contract, diagram layout, and the map model; open before writing data. - `references/sections.md` — per-mode section list and quality bar; open before writing data. - `THIRD_PARTY_NOTICES.md` — Adapted from BuilderIO/skills (MIT); diagram style and viewer UX from tt-a1i/archify (MIT). -
THIRD_PARTY_NOTICES.md 4.4 KB
Loading…
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.