visual-spec
Skill8 starsChanged 4 months agoMITView on GitHub
Use when the user asks to visualize, render, or "make readable" a design spec / design doc / RFC / proposal as a self-contained HTML page — to get a reader up to speed fast and let them approve it. Covers design docs, RFCs, and spec markdowns (e.g. anything under a docs/ specs folder) grounded in the real document.
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- visual-req/visual-spectheir own version, first seen Oct 5, 2026
- vulca-org/vulca-visual-control-sdktheir own version, first seen Apr 30, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- visual-req/visual-spec★ 51same name
- vulca-org/vulca-visual-control-sdk★ 16same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- atlas-reviewSkill
- quizSkill
- visual-atlasSkill
- visual-docSkill
- visual-recapSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Required language guide: Before writing user-facing text, read $VISUAL_SKILLS_DIR/skills/shared/plain-language.md.
- Distinctive: line 53
If any of these is true, the page is not done — keep going:
- Distinctive: line 57
No decision names a rejected alternative on a large/contested spec.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Visual Spec
Turn a design spec (a markdown design doc / RFC / proposal) into a single self-contained HTML page that gets a reader up to speed fast — then lets them approve it — and open it.
The deliverable is an orientation-to-approval narrative, never a flat re-render of the markdown. A cold reader must grasp what this is and why in ~60 seconds, then drill down far enough to sign off: the load-bearing decisions (with their rationale), the scope, what "done" means, the risks, and what approval commits to. Re-typesetting the doc's headings is not the job — reframing it into the component ladder is.
Tool location (resolved through the installer's ~/.claude/visual-skills symlink — re-run npm run skills:install if the repo moves):
VISUAL_SKILLS_DIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/visual-skills"Required language guide. Before writing user-facing text, read
$VISUAL_SKILLS_DIR/skills/shared/plain-language.md. Apply it to every authored field and live
reply.
You author a spec.json (page options + an ordered array of blocks) and render it. There is no
mechanical gather step — the spec's prose is the raw material; your judgment turns it into blocks.
The standard — definition of done
A finished visual spec always has, regardless of spec size:
- An authored title + topbar chips —
phase,status,date,complexity. - A
tldrblock, placed FIRST —heading+ rows (What / Why / Closes / Size). For anything but a tiny spec, also the big-idea line: the single load-bearing insight pulled out as a headline. - Key
decisions— the load-bearing choices, each with a one-linewhy(the rationale an approver scrutinizes), and arejectedalternative on the 2–3 most contested ones. - A worked
exampleof the core mechanism for any algorithm/contract spec — real input → stages → output, with asourceand alesson. Contrast form when the spec changes existing behavior. - A
scopeblock — in / out (anti-goals). Boundaries are approval-critical. - For a larger spec, also: a hero
diagram(one architecture/flow picture — new vs preserved), a gatedrollout, a definition of done (done: targets, before→after), and aapproveband (what sign-off commits to · the riskiest seam · open questions). - Reference depth in collapsed drawers (
reference) — full type defs, tables, algorithms — out of the orientation layer.
Size scales the ceiling, it never lowers the floor. A small spec may drop the hero, rollout, and approval band — but it still gets the TL;DR, the decisions with why, and the scope. See "Scaling by size".
Red flags — you stopped too early
If any of these is true, the page is not done — keep going:
spec.jsonhas notldr, or the TL;DR has no big-idea line on a non-trivial spec.- There is no
decisionsblock, or decisions list choices with nowhy. - No decision names a rejected alternative on a large/contested spec.
- An algorithm/contract spec has no
exampleblock — the mechanism is asserted, never shown. - There is no
scopeblock. - A large spec has no hero diagram, no
rollout, or noapproveband. - The reference depth (type defs, big tables) is dumped into the orientation flow instead of
collapsed
referencedrawers. - The tool printed completeness warnings. Those mean below standard — fix
spec.jsonand re-render until they are gone.
Workflow (one required path)
- Identify the spec file (absolute path) and the output folder (
--outis a directory, e.g.<repo>/.visual/specs/<short-label>or alongside the spec, absolute path). - Read the whole spec AND the code/specs it references. Open the referenced source modules and sibling specs so every section is grounded in what the change actually does — do not work from the spec's prose alone. Note its predecessor/consumer specs (for where it fits).
- Decide the reframing. Map the spec onto the section ladder (below). Identify: the one-line what/why, the single big idea, the new-vs-preserved picture, the peer components, the locked decisions (which 2–3 were contested), the scope boundaries, the phases + gates, the success targets, the risks, and the open questions.
Author
spec.json— page options + the ordered blocks (shape in "Thespec.jsonshape" below). The spec-component catalog shows what each component looks like and when to use it:$VISUAL_SKILLS_DIR/skills/shared/spec-components.mdThe catalog's snippets are the rendered HTML output; you author typed JSON blocks and the renderer produces that HTML. The exact JSON field shape of every block is defined and commented in
$VISUAL_SKILLS_DIR/src/spec-blocks.ts— read it as you author. Fill the floor first (tldr + big idea, decisions with why + rejected, scope), then the size-scaled surfaces. Short text fields are inline markdown (code, bold, em,[link](#id)); cross-link the approval band's "scrutinize" to a reference drawer by id (e.g.#ref-sites).Author the hero diagram as a
diagramblock (kindarchitecture/flowchart/sequence), using the diagram catalog recipes + color vocabulary — mark the new subjectchanged, leave preserved layersexternal, tag datastoresstore. Carrymermaidso it stays editable.$VISUAL_SKILLS_DIR/skills/shared/diagrams.mdRender and open. Writes
spec.html(and re-writesspec.json) into the folder, so it stays self-contained and re-renders in place:cd "$VISUAL_SKILLS_DIR" npx tsx bin/spec.ts --blocks <ABSOLUTE_OUT_DIR>/spec.json --out <ABSOLUTE_OUT_DIR> open <ABSOLUTE_OUT_DIR>/spec.html- Read the tool's warnings and close them. The renderer lints for the standard (missing
TL;DR/big-idea, decisions without why, no scope, a large spec missing a hero/rollout/approve).
Edit
spec.jsonand re-run step 6 until the render is clean.
The spec.json shape
A single JSON object: page options at the top level, then a blocks array. The page options
populate the topbar chips, the sidebar "Related" list, and the sidebar "Meta" list — they are NOT
blocks, so their shape is not in spec-blocks.ts:
{
"title": "Spec · <name>", // topbar title (required)
"phase": "Phase 2m", // topbar chip (optional)
"status": "Brainstormed → Ready for plan", // topbar chip (optional)
"date": "2026-05-31", // topbar chip (optional)
"complexity": "Large · high blast-radius", // topbar chip (optional)
"related": [{ "kind": "Predecessor", "value": "cap-spend-value-model · shipped" }],
// sidebar "Related" — PLAIN STRINGS {kind, value}, no links
"meta": [{ "key": "Status", "value": "ready for plan" }],
// sidebar "Meta" — PLAIN STRINGS {key, value}
"blocks": [ … ordered SpecBlock objects (see src/spec-blocks.ts) … ]
}related and meta are arrays of plain-string pairs ({kind, value} / {key, value}) — not
link objects. Every block object's fields are in src/spec-blocks.ts.
Scaling by size
The floor is the same for everyone; only the ceiling moves. "Large" is measured by section count,
not the complexity chip: once a spec carries 5+ chapter sections (everything except tldr,
reference, and example), the completeness lint expects the fuller treatment — a hero diagram, a rollout,
and an approve band — and a big-idea line on the TL;DR. A genuinely small spec stays under that and
those surfaces are optional. If you find yourself with 5+ sections, add them for real (grounded in
the doc), don't pad — a 5-section design almost always has a build order and warrants an approval
band.
| Element | Small spec | Medium | Large (multi-phase, high blast-radius) |
tldr rows (What/Why/Closes/Size) | required | required | required |
| big-idea line | optional | yes | yes |
decisions with why | required | required | required |
rejected on contested decisions | optional | 1–2 | 2–3 |
scope (in/out) | required | required | required |
hero diagram | optional | usually | yes |
example (worked instance) | optional | usually | yes |
components (+ anatomy) | if it has peer pieces | yes | yes |
fits (predecessor → this → consumer) | optional | usually | yes |
rollout (gated phases) | if phased | if phased | yes |
done (targets, before→after) | if measurable | yes | yes |
risks | optional | yes | yes |
approve band | optional | usually | yes |
reference drawers | as needed | yes | yes |
A small spec is still a finished page: a TL;DR, the decisions with why, and the scope — never just the doc's prose reflowed.
The section ladder (orientation → approval)
Author blocks top-to-bottom in this order (the renderer derives the sidebar + progress rail from them; the rail auto-places after the TL;DR):
tldr(+ big idea) — the lead.diagram— the hero: what's new vs what's preserved.components(with optionalanatomy) — the structure, made scannable.fits— predecessor → this → consumer, plus the layer stack.example— one real instance through the core mechanism (walkthrough or contrast).decisions— choice + why, with rejected on the contested ones.scope(in/out) →rollout(gated) →done(targets) →risks.approve— the reviewer's capstone.reference— full depth, collapsed.
(spec-prose is an escape hatch — a markdown block for anything the modeled types don't cover.)
Examples are chapters in the outline but do not count toward the 5-chapter "large" threshold.
See the catalog for the exact field shape of every block.
Fallbacks
d2missing: the hero degrades to a visible placeholder (the page still produces) — tell the user tobrew install d2for a proper rendered diagram.- d2 vs Excalidraw: diagrams render as static D2 images by default and stay that way unless you
opt in. Pass
--excalidraw(or set"excalidraw": truein the spec JSON) to promote editable-eligible diagrams to.excalidrawscenes (requires thenpm run setup:excalidrawtoolchain). Without it — or with--no-excalidraw/"excalidraw": false— you get the static D2 floor. - The reference drawers accept either
markdown(fenced code + tables) or rawhtml(for syntax-highlighted code using the.kw/.ty/.cmtoken spans). Prefermarkdown; usehtmlonly when you need the token coloring.
Example
cd "$VISUAL_SKILLS_DIR"
# 2–5. read the spec + referenced code; author spec.json per the catalog
# 6. render + open
npx tsx bin/spec.ts \
--blocks /Users/me/Projects/app/.visual/specs/auth-rework/spec.json \
--out /Users/me/Projects/app/.visual/specs/auth-rework
open /Users/me/Projects/app/.visual/specs/auth-rework/spec.html
# 7. fix any warnings the render printed, then re-renderThe canonical reference build (what good looks like):
$VISUAL_SKILLS_DIR/example/spec-season-planner/ (spec.json → spec.html)Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

