/explainmyrepo:explainmyrepo runs instead · from explainmyrepo
Reads any GitHub repo deeply via a knowledge base, conceives a visual metaphor, authors a comprehension-arc explainer page with raster and SVG imagery, grades it against an exemplar bar, and deploys a live URL.
This skill never runs in Claude Code
It ships in explainmyrepo at skills/, but /explainmyrepo:explainmyrepo (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
You are the brain of the explainer recipe. You decide; the tools do. Your job
is judgment — understand, conceive, author, judge. The tools in tools/* are pure
mechanics — embed, call an image API, render a diagram, screenshot, zip, deploy,
email. You never let a tool think, and a tool never decides "good enough."
The mission (this is the completion bar, not a slogan). Take someone from "I've never seen this before" to "Oh, I get why this was created, the problem it solves, what it does, why it's elegant, how it works — and I'm ready to go implement it." The minimum bar is blunt and non-negotiable: a stranger looks at the result and smiles — "that's really cool." If a build cannot clear that bar, it is not done and not acceptable. Every station below exists to serve that one sentence.
Authoritative sources (read them if anything here is ambiguous):
docs/adr/0005-skill-based-explainer-recipe.md (the decision),
tools/CONTRACT.md (the tool law), docs/ddd/explainmyrepo-recipe-domain.md
(the domain model). Where they conflict, ADR-0005 governs.
Brain decides, tools do. You own all judgment (CONCEIVE, AUTHOR, the
primer, JUDGE-quality, decide-refine). Tools own all mechanics. A tool is pure:
clear input → clear output → { ok | loud failure }.
BuildContext is the ONLY contract. Everything cross-station lives in one
file: <build-dir>/build.json. Each station fills its own slot. There are
no string-coupled HTML markers — that exact coupling killed generation 2.
The page is rendered ONCE, never mutated incrementally.
Never fail silently (INV-04). Every station has a loud postcondition (its
"cue"). A tool that fails exits non-zero with a human reason and never
writes a placeholder, default asset, stub, or TODO to limp past a failure.
You read the exit code first, then the JSON. A failed cue stops the build
with an honest reason — never a stack trace, never a silent green.
Never ship below the exemplar bar (INV-05). "Done" = on BOTH mobile (390px) and desktop (1440px) the scorecard's mean ≥ 90 AND min axis ≥ 85 AND all six operator questions YES (anchored to the owner's own example sites — a literal "95 on every axis" is unreachable by an honest grader; a build that clears this bar is reported as a normalized 95). The two pre-ship eyes (vision model + you) agree, the page is live (200 unauthenticated), and the AI pack ships. Below the bar: refine, or flag honestly. Never ship slop and call it done.
The submitted repo IS the identity (INV-21). You build an explainer of the EXACT
repo the human submitted — nothing else, ever. If it cannot be cloned (private,
deleted, typo) or its clone is broken, STOP with an honest, actionable reason ("we
can't access this repo — if it's private, share it with our GitHub account or make it
public, then rebuild"). NEVER search for, substitute, or reconstruct a similar-looking
repo or its README: an explainer of the wrong repo is fabrication, the one unforgivable
output — worse than shipping nothing (incident 2026-07-08). The boundary tools enforce
the pin mechanically: clone-repo and deploy refuse any repo.url that doesn't match
EXPLAINER_SUBMITTED_REPO when the harness sets it.
Credit the PERSON behind the repo. clone-repo resolves the owner's public GitHub
profile into repo.author (real name, bio, company, blog). When it's a real person (not
an org), the page's attribution names them, and your copy should give the author honest
props where it's natural — people build these things, not handles. Use only what their
public profile says; never speculate about who someone is.
Every tool is one file, invoked the same way, with one positional argument — the build directory:
node tools/<name>.mjs <build-dir>
The tool reads <build-dir>/build.json, takes only its declared slice, does its
one mechanical job, writes its outputs under <build-dir>/, merges only its own
slot back into build.json, and prints exactly one JSON object to stdout:
{ "ok": true, "outputs": { "...": "paths + the slot it merged" }, "error": null }
{ "ok": false, "outputs": {}, "error": "clear, human-readable reason" } // exits non-zero
After every tool call: check the exit code (0 ⇔ ok), then parse stdout. If
ok:false or non-zero, stop the station and surface the reason — do not push
forward on a failed cue. Secrets (GitHub token, OpenAI key, deploy token, SMTP
creds) come from the environment, never from build.json.
| Station | Tool | Fills slot |
|---|---|---|
| 0–1 | clone-repo | repo (+ buildId) |
| 1 | build-kb | understanding, kb |
| 4 | generate-image | visuals.hero / visuals.sections[] (one rung per call) |
| 4 | make-diagrams | visuals.architectureDiagram / .flowDiagram / .bigIdeaDiagram / .insightDiagram |
| 5 | make-favicon | brand.favicon |
| 5 | make-social-card | brand.socialCard |
| 6 | assemble-page | page (+ SEO/social <head>, sitemap/robots/llms.txt) |
| 6 | make-pack | pack |
| 7 | quality-grade | quality (two scorecards) |
| 8 | deploy | publish.liveUrl / .http200 |
| 8 | publish-repo | publish.explainerRepoUrl / .ownerInvited |
| 8 | repo-seo | publish.repoTopics / .repoDescription / .sourceRepoSeoSuggested |
| 8b | readme-enhance | readmePr (optional, PR-only) |
| 9 | notify | notify |
concept (Station 2) and content (Station 3) have no tool — you fill them
directly. So does the primer (Station 1). That is the judgment that is yours.
The KB engine has direct CLIs you call yourself for reading + grounding (not
tools — they are how the brain thinks): node kb/ask-kb.mjs <slug> "question" [k]
(HNSW retrieval, returns full passage TEXT) and node kb/index-primer.mjs <slug>
(indexes the primer you authored).
mkdir -p build/<repo>-<shortid> with subdirs assets/, site/. The tools
create what they need; you just hand each tool the build dir.<build-dir>/build.json with the target URL:
{ "repo": { "url": "https://github.com/owner/name" } }. clone-repo sets the
buildId (the correlation + idempotency key) first.Critical path: S1 → S2 → S3 → S4(slowest visual) → S6 → S7(may loop) → S8 → S9. Parallelize off-path (see "Parallelism" at the end): raster rungs fire together; the SVGs are authored during S3; favicon + social card start the moment the hero returns; the AI pack builds as soon as S1's KB exists; the README PR (S8b) is optional and quarantined.
node tools/clone-repo.mjs <build-dir> (this also clones in S1).repo.reachable === true. If unreachable/unauthorized, stop with a
clear human reason — not a stack trace.clone-repo call above leaves the working tree at
<build-dir>/repo/).kb/kb.config.mjs with an explicit embed block
(Xenova/bge-small-en-v1.5, 384-dim) and its repoDir pointing at the clone.
This is required: on the bare MiniLM default, build-kb.mjs writes
<slug>-kb.small.rvf, which the Station-6 pack builder globs for <slug>-kb.rvf
and cannot find. The build-kb tool fails loud if the target is
unregistered or writes a .small.rvf.node tools/build-kb.mjs <build-dir>.
This runs the real engine: kb/build-kb.mjs (the RVF store, local embeddings,
self-reconciling) plus extract-symbols.mjs, dep-graph.mjs,
entrypoints.mjs → <slug>-symbols.json / <slug>-dep-graph.json /
<slug>-entrypoints.json. These three JSONs are build-step outputs, not
optional reading: they are Station-6 pack prerequisites and are exactly what
the MCP server's lookup_symbol / get_dep_graph / get_entrypoints read, and
they ground the mandatory architecture + flow diagrams (S4).node kb/ask-kb.mjs <slug> "what is this repo?" (and more questions: what problem, what's the clever move,
how is it built, how do you run it) plus the three structured JSONs for exact
lookups. Form an honest understanding.kb/stores/<slug>/<slug>-primer.md — a natural-language top-down orientation
(what it is / its concepts / how each works / maturity / where the docs are /
how to use it end-to-end). This is a hard prerequisite of Station 6:
kb/make-dropin.mjs line 79 must()s it and throws missing: <slug>-primer.md
if absent. Never let a tool fake it.node kb/index-primer.mjs <slug> (a write/index
step — it consumes the primer you wrote; it does not create it).<slug>-primer.md
exists. A failed RVF build hard-fails honestly — there is no fallback to
a JSON-only analysis (that re-introduces the fake-KB defect, INV-06). Retry once,
then stop with an honest reason.IF concept.tournament EXISTS (2026-07-13 build economics): the concept was chosen by the
pre-agent text-mode tournament — three models competed, a judge ranked them, and the winner is
already seeded in build.json.concept. Your Station-2 job becomes VALIDATE, not invent:
check the winning spec against the full KB (the tournament only saw the README + tree). Keep it
unless the KB contradicts it — if a claim is wrong (the metaphor hinges on a capability the code
doesn't have), fix the minimum and record why in concept.tournamentOverride. Fill any missing
fields (e.g. rejectedDirections from the tournament's losing candidates). Do NOT discard a
validated winner to invent your own — the premium judgment already happened, in text, at text
prices. Skip the three-directions step below; the tournament WAS it.
Otherwise (no tournament ran — it fails open), before any rendering, invent THIS repo's
brief and write it into the concept slot of build.json. Each explainer is unique by default, reliable by
construction — never cookie-cutter, never templated (a templated look is a Gate-B
failure). The brief, grounded in what the KB revealed:
metaphor — a visual metaphor that genuinely fits this repo (PhotonLayer →
prism; ruvn → evidence dossier; ruqu → Bloch-sphere orb). A stranger should nod.
palette — colours that fit the metaphor. These are the design-system
expression knobs; assemble-page compiles them into the page's per-repo theme
layer over the shared assets/design-system/design-system.css skeleton. This —
the palette + type knobs you set here — is the page's "theme.css": the
invariants (responsive, accessible, the required sections) live in the shared
skeleton; the expression is what you set in concept.
typePersonality — a display + body + mono pairing that carries the
metaphor's voice.
layoutRhythm — the ordered section archetypes (the page's cadence).
heroConcept — the single emotional opening-image idea.
visuals.hero.prompt in S4, it renders concept.metaphor, literally and concretely — the
metaphor is not decoration you invent and then discard. ternlight authored a genuinely good one
("a maritime signal lamp flashing exactly three states — −1, 0, +1 — across dark water") and then
shipped a hero of generic glowing dots in space: the stock embedding-space cliché, connected to
nothing. The reader's verdict was exact — "I don't know what the lights are meant to be" — and
they were right: the lights meant nothing, because the image had abandoned the idea. If a stranger
cannot look at the hero and get the ONE idea, the hero has failed, however pretty it is. Never
reach for a generic "abstract glowing network / constellation / neural mesh" — that is the tell
that you stopped thinking.copyVoice — the tone/register for all authored text.
tagline — the one line baked into the social card + og:description.
THREE DIRECTIONS, THEN A VERDICT (2026-07-13 — anti-sameness is a design step, not a hope). A single concept pass converges on the house style (dark editorial, cream serif, warm inserts — the wall proves it). So author THREE genuinely divergent art directions before choosing: different metaphor FAMILY (mechanical / spatial / document / organic / optical…), different palette temperature, different layout rhythm. For each, one line of "why it fits THIS repo." Then judge for repo-fit and commit to ONE. Two hard rules on the verdict:
build.json or page for creative direction. The exemplar
bar (INV-05) is a QUALITY bar, not a style guide — imitating a prior build's concept is how
the wall became one page in seven costumes. Record the two rejected directions (one line
each) in concept.rejectedDirections so the choice is auditable.Cue: the brief is specific to THIS repo and the metaphor genuinely fits. A generic brief is a failure here, not at the gate.
Write the thesis and the arc FIRST, then write sections to serve them. The failure this prevents (2026-07-12, cost a whole night): the page was authored section-by-section from repo facts, so it opened INSIDE THE MACHINE — multiplication counts, tokenizers, WASM — for a reader who has never heard of any of it. Three independent judges, shown three competing story angles, were unanimous on the cause: "you cannot rescue an insider-ordered story with better sentences." No amount of rewriting fixed it, because the defect was the ORDER, not the words.
Write into concept.story before Station 3:
thesis — ONE plain sentence a stranger understands, that the whole page proves. Zero jargon.
Not "a 1.58-bit quantized embedding engine" — "a 4.6 MB file, loaded into a web page like an
image, that can tell which sentences mean the same thing — with no server and nothing leaving
your computer."arc — the beats, and they open in THE READER'S WORLD, not the machine's. The winning
shape, every time: a pain they have personally shipped (a search box that returns nothing for
"my card got declined" when the article says "payment failed") → the fix they'd reach for and
hate (rent a hosted AI: a key, a bill, their users' text leaving the box) → the artifact
(a 4.6 MB file you ship with your page) → and ONLY THEN the trick, which now arrives as the
ANSWER to a question they are already asking ("how can that possibly be small enough?").
Trick-as-payoff, never trick-as-premise.closeTheLoop — the concrete example from the opening beat MUST reappear at the end of the
flow diagram. The reader verifies their own comprehension against the pain they were shown 30
seconds earlier instead of taking the payoff on trust. ("Nearest point wins — finds payment
failed.")When the repo is genuinely hard to frame, run the bake-off: author 3 story angles in parallel (subtraction / reader's-world / one-physical-object are good seeds), judge them with 3 distinct lenses (zero-knowledge reader · skeptical editor · art director), and take the winner. It cost 4 minutes and beat an hour of hand-patching.
Write the content along the comprehension arc into the content slot. The
reader asks a sequence of questions; every section answers the next one as it
forms. Never show a low-level detail before the high-level frame that makes it
legible.
THE COMPREHENSION LADDER (ADR-0006 v1.2.0 — altitude control). The reader is a curious FIFTEEN-YEAR-OLD (superseding "a smart developer from a different domain", 2026-09-17: the owner scored two shipped pages 6.5/10 — "it still feels like it's asking me to geek out versus bringing it back to my level ... the whole point of this is to explain it like somebody is 15"). They have never built software. After rungs 1–4 they must be able to say, in their own words: what this is, what it would do FOR THEM, why the trick is clever, and roughly how it works.
Three hard rules, two of them measured deterministically before any vision pass:
Sections 1–4 (hero, problem, whatItIs, insight) assume zero domain
knowledge: no acronym or term of art without a plain-words gloss at first use (INV-20
fails the build on violations, deterministically; the gloss must sit AT first use — an
appositive or dash form — not in a later sentence). The problem section works from
first principles — make the reader FEEL the pain in human, consequence terms BEFORE
any category vocabulary; never name the solution's category before the reader feels the
problem it kills. howItWorks may descend ONE technical level (terms still defined);
useCases/getStarted return to the reader's world — how THEY would use it and exactly
what the experience looks like. Grounding (INV-06) supplies the FACTS, not the
VOCABULARY: translate insider terms; cite the passage, don't parrot its jargon.
SHOW, THEN SAY (2026-07-13 — the reader's verdict on a text-heavy page: "their README is better than this"). No section may run more than ~120 visible words before a visual, a code block, a real artifact, or a structural element carries the next beat. When a mechanism takes more words than that to explain, the words are describing a diagram you haven't drawn yet — draw it, label it, and cut the prose to what the diagram can't say. The page must beat the repo's own README on scannability or it has no reason to exist.
Author all eight sections:
| Reader's question | Section | Medium of its image |
|---|---|---|
| What world am I in? | hero | raster (the metaphor performed — every element maps to a named concept of THIS repo) |
| Why does this exist? | problem | raster (the pain shown through ITS OWN artifacts — the leaked token, the 47 configs, the tangled wiring — never a person reacting to it) |
| What does it actually do? | whatItIs | SVG (the big-idea, whole-thing diagram) |
| Why is it elegant/clever? | insight | SVG (the ONE clever move — the "aha") |
| How is it built / works? | howItWorks | SVG (architecture + flow, descend ONE level) |
| Could I use this? | useCases | REAL ARTIFACT FIRST (screenshot/capture of the repo's own UI, CLI, or output actually running — see the image contract below); generated raster only when the repo has no visible surface, and then it must teach |
| How do I start? | getStarted | SVG (quickstart path to first run) |
| (my AI gets it too) | pack | SVG (the dual-output: page for humans, KB for their AI) |
Grounding is non-negotiable (INV-06). Every claim must be traceable to a KB
passage retrieved via node kb/ask-kb.mjs <slug> "…". Record content.citations
as { claim, passageId }. No invented capabilities, no "lorem", no "TODO", no
placeholder text. As you author howItWorks, the ASCII for the architecture +
flow diagrams falls out naturally — capture it now so S4 can convert it in
parallel.
THE IMAGE CONTRACT (INV-22, 2026-07-13 — every image must teach, or it must not exist.) Born from a real verdict on a shipped page: a warm, competent photo of a man pointing at a laptop scored 91 at the gate and the owner correctly called it "generic drivel — what am I supposed to take away from this?" The gate measured beauty; nobody measured payload. Rules, in force for every raster on the page:
takeaway: line — the one sentence a stranger should
be able to say about THIS repo after looking at the finished image (not the caption — the
pixels). No stateable takeaway → the image is decoration → do not generate it; give the
section a diagram, a real artifact, or nothing.Precondition (probe, fail loud). Before generating raster, the
generate-image tool probes the verified primary gpt-image-2.5-flare
(Images 2.5, confirmed by a real 1536×1024 generation 2026-09-17). Only if that
build-time probe fails does it fall back to gpt-image-2; grok-imagine-image-2.0
covers a missing OpenAI key. Never proceed on an unverified ID; if the whole chain
fails, stop loud with the failing ID.
Raster rungs (emotional) — generate-image, ONE call, no rung argument:
the tool reads every declared rung (visuals.hero + visuals.sections[]) from
build.json itself and generates all of them internally with bounded
concurrency (2026-07-10: firing multiple separate generate-image processes —
one per rung — is WRONG; the tool has no per-rung CLI argument, and doing this
produced redundant concurrent processes racing on the same output files, papered
over by shell-level sleep-polling. Call it once and let it finish). Covers the
hero (1536×1024), the problem (1024×1024), and the use-case scenario
(1024×1024) at quality xhigh (2026-09-17: on Images 2.5 an xhigh hero measured
28.1s, and was clearly sharper with legible on-screen text than gpt-image-2 at medium;
see the QUALITY comment in tools/generate-image.mjs). Valid sizes: 1024×1024,
1024×1536, 1536×1024, auto (the DALL·E-3 1792×1024 is rejected — never use it).
STRUCTURAL RUNGS ARE BESPOKE, AUTHORED, ANIMATED SVG (INV-23, 2026-07-13 — rails on
truth, never on form). The old path funneled every diagram through one renderer and the
owner's verdict on the result was exact: "four different versions of the same process map."
A vertical pill-stack is a LIST wearing a costume; an information shape must dictate its
form. New contract — YOU author each diagram as a standalone SVG file (same output paths:
assets/big-idea.svg, assets/insight.svg, assets/architecture.svg, assets/flow.svg):
data-archetype on the
root <svg> AND in visuals.<slot>.archetype: journey (something travels and
transforms, left→right) · containment (boxes within boxes, layers) · field (a
population of many small things, a few highlighted) · fan (one radiating to many) ·
tree (hierarchy) · exchange (two sides, a broker between). No two diagrams on one
page may share an archetype — the gate fails repetition.
WIDTH-BUDGET EVERY LABEL (2026-07-15, autonomous-wealth-builder + agentic-kit hero
collisions — both from unmeasured text): before writing any , compute its budget —
monospace ≈ 0.62 × font-size per char, bold sans ≈ 0.55 — and verify the string fits its
container at the DESKTOP COLUMN scale (~45% of natural size), not just the full-size stage.
Two same-lane labels need ≥12px gap at column scale. Style micro-labels lowercase with
letter-spacing (caps-styled words like DISK/AGENT trip the INV-20 acronym gate).<style> block — no external JS;
honor prefers-reduced-motion with a static end-state). The data-flow diagram IS the
page's animation. A dot crawling along a dotted line is NOT animation of the argument —
it is the banned decoration (see heroAnim rules) in diagram form.<text> (≥13px at rendered size), <title> + <desc> accessibility
fallback, viewBox set, palette from concept, validate every file with
xmllint --noout before installing. Budget ≤60KB per SVG.curl with $OPENAI_API_KEY; benchmarks show
Sol is genuinely strong at UI polish). Judge both with the same vision model the gate
uses, on takeaway + legibility + craft; install the winner and record
visuals.<slot>.engine = fable|sol with one line of why. If the Sol call fails,
proceed with yours — never block the build on the duel.make-diagrams for that slot and say so in visuals.<slot>.fallback — a working plain
diagram beats a broken beautiful one, but the fallback is an admission, not a choice.The prior make-diagrams path below remains ONLY as that fallback — the big-idea
diagram, the "aha" insight, and the two diagrams that are MANDATORY on every explainer
(INV-18 — the three questions every developer asks):
<slug>-dep-graph.json + <slug>-symbols.json, and<slug>-entrypoints.json.Both are grounded in the repo's REAL structure, never invented. You author the
ASCII (it already fell out of S3); make-diagrams converts to crisp, accessible,
xmllint-clean SVGs. These SVGs are emitted once and reused by both the page AND
the README (S8b) — author once, share.
A DIAGRAM MUST CARRY INFORMATION, OR IT MUST NOT BE DRAWN (2026-07-12 — the deepest
quality bug this pipeline has had). "Grounded in the repo's real structure" is necessary,
not sufficient: it is entirely possible to draw a truthful picture of nothing. chalk,
stronghold, agenticow and ternlight each shipped a gorgeous, animated "N modules · 0
internal links" dependency map — a diagram of an empty graph — because the renderer drew
whatever the graph handed it and nobody asked whether the graph said anything. Two rules
now enforced in make-diagrams:
visuals.architectureDiagram.rows: the concept of how the thing is
built — the 3-4 parts a reader must hold in their head — not the package wiring.visuals.flowDiagram.rows. If you leave it unauthored, the tool falls back
to the install→build→run→test model and honestly retitles it "Build & run lifecycle",
because that is what it is. Shipping a build lifecycle captioned "Data-flow pipeline" is a
lie the vision grader has caught repeatedly. Author the real flow.rows shape (a footgun — read this): renderConcept stacks items vertically and draws a
connecting arrow only between items within the same row. So a connected chain is ONE
row of N items, not N rows of one item (that renders as floating cards with no arrows — a
bulleted list, not a structure):
"rows": [{ "items": ["your sentence", "tokenizer", "add · skip · subtract", "384 numbers"], "connect": true }]
STORY DIAGRAMS (visuals.systemMap, visuals.decision) — answer the questions a reader
actually has (ADR-0014). The dependency graph says how the code is arranged; it cannot say
what this plugs into, what it works with, or how it decides. Author these two when the repo
has a real answer, and OMIT them when it does not:
systemMap → replaces the architecture slot: inputs → one engine (2–4 steps) → the surfaces that
drive it (with their real commands) + a works-with strip + runs-on. Include the hosts,
editors and platforms a reader would WONDER about (does it work with Codex? Windows?), each as
yes/partial with file + a VERBATIM quote, or no with terms to search.decision → replaces the flow slot, for repos that CHOOSE among candidates by a rule (pickers,
routers, schedulers, rankers): 2–6 candidates as gauges against a threshold, one picked, one
skipped for a stated reason, and rule: { file, quote } pointing at the source line that
defines it.
You do not get to assert these. make-diagrams checks every quote against the cloned repo and
runs the "no" searches itself; whatever it cannot confirm is dropped, and if nothing survives the
slot keeps the grounded graph diagram. So quote, do not paraphrase, and prefer fewer true claims.
Shapes are in src/story-diagrams.mjs (validateSystemMap, validateDecision) and a worked
example is tests/fixtures/story-claude-swap.mjs.THE HERO ANIMATION (visuals.heroAnim) — motion that PERFORMS the argument. Author this for
every repo that has a "trick" (almost all of them do). It renders above the fold as a 9s loop and
it is the only motion on the page. Animate the ARGUMENT, never the chrome. Crawling dashed
lines and pulsing dots are decoration; they were shipped twice and correctly called "the weakest
sauce I've seen". What earns its place is the project's one idea, performed: for ternlight, the
model's messy decimal weights (0.0731, −1.24) snap to exactly 0 / −1 / +1; as each
lands, the word beneath it appears — skip · subtract · add; then the multiply sign is struck
through and goes dark: never used.
The shape is deliberately generic — a BEFORE → AFTER transformation, plus the cost it kills — because that is the shape of most interesting repos' tricks, not a ternary-specific one:
"heroAnim": {
"label": "The numbers inside the model",
"chips": [{ "before": "0.0731", "after": "0", "op": "skip", "kind": "zero" },
{ "before": "−1.24", "after": "−1", "op": "subtract", "kind": "neg" },
{ "before": "3.90", "after": "+1", "op": "add", "kind": "pos" }],
"verdict": { "label": "The one expensive move", "symbol": "×", "dead": "never used" },
"kicker": "it never multiplies — and that is why it fits in 4.6 MB"
}
Rules: 3–6 chips. kind ∈ zero|neg|pos (drives colour). Sentence case, never ALL-CAPS — the
deterministic INV-20 acronym gate reads an uppercase word as an acronym and will fail the build
before the vision pass. No heroAnim → no animation band, and the tool will NEVER substitute
another repo's (this content is per-repo and lives in build.json, never in the tool).
THE CHIPS BAND IS THE FLOOR, NOT THE CEILING (2026-07-13 — owner's verdict on a shipped
chips band: "the animation is nothing more than a dotted line. That's worthless. You
punted."). For any repo whose trick is spatial or mechanical (most), author a bespoke
animated SVG SCENE instead (visuals.heroAnim.sceneSvg → assets/hero-scene.svg, same
in-SVG CSS/SMIL rules as INV-23). IMPLEMENTED 2026-09-17 (ADR-0013) — this path had been
specified since 2026-07-13 with no code behind it, so every spatial repo silently got chips or
nothing. make-diagrams now installs the scene and REFUSES it loudly if it lacks a viewBox, real
animation, or a prefers-reduced-motion static end state. Labels inside a scene are page copy
and obey the ladder: plain words, sentence case (ALL-CAPS reads as an acronym to INV-20).
OPTIONAL 3D (visuals.hero3d): an authored ES module mounted OVER the flat scene only when the
viewer has WebGL and has not asked for reduced motion; the scene stays in the DOM as the fallback
and the 3D layer fades it rather than double-drawing. Use 3D only when the subject is genuinely
spatial — it earns nothing on the vision gate, which scores still screenshots: a 6–10s loop in which the mechanism VISIBLY HAPPENS — for
a credential broker, the request plug travels the switchboard and returns with a result
while the key never crosses the vault line; for a quantizer, the messy weights snap to
three states. The chips band is the fallback for repos whose trick is genuinely abstract.
Banned as "performance": a dot moving along a path, pulsing glows, crawling dashes — motion
must CHANGE something the argument depends on (a value, a position across a boundary, a
state), not merely travel.
Cue: every raster image is valid + HTTP 200, every structural SVG renders crisp with its accessible text fallback, and each visual answers its assigned arc question at the right altitude (high → low). A visual that is pretty but answers nothing fails Gate B5 later — catch it here. If either the architecture or the flow diagram is missing, the build is not done (INV-18).
apple-touch-icon
summary_large_image and og:description).node tools/make-favicon.mjs <build-dir> and
node tools/make-social-card.mjs <build-dir> (both run alongside the rest of S4).<slug>-primer.md AND the three structured JSONs
MUST already exist (S1). If the primer is missing, stop loud and return to
Station 1 — never synthesize a placeholder to get past make-dropin.mjs's
line-79 must().node tools/assemble-page.mjs <build-dir>.
This composes concept + content + visuals + brand onto the shared
assets/design-system/design-system.css skeleton + the per-repo theme, wires the
full SEO + social <head> (<title>, meta description, canonical, JSON-LD
SoftwareApplication/SoftwareSourceCode, favicon links, OG + Twitter
summary_large_image pointing at the S5 card), emits root-level sitemap.xml,
robots.txt, and llms.txt, inlines the primer in the download section, and
injects the mandatory ISOvision attribution + CTA footer verbatim (see below).
No string markers (INV-10).node tools/make-pack.mjs <build-dir>. This wraps
kb/make-dropin.mjs via its --no-studio variant (studio-less first — the one
acknowledged engine change; studio media re-packs later, INV-03). The pack ships
the for-ai/ half (<slug>-kb.rvf + idmap + embed sidecar + .passages.jsonl +
.ids.json + the three structured JSONs + ask-kb.mjs + kb-mcp-server.mjs
package.json declaring @ruvector/rvf@^0.2.2 + @xenova/transformers@^2.17.2)
and the for-humans/ half (the authored primer).node ask-kb.mjs <slug> "…" returns real passage TEXT (not
{id,distance}); the MCP server's lookup_symbol, get_entrypoints,
get_dep_graph each return real data (proving the three JSONs shipped); the
primer is present in for-humans/; and the SEO presence check passes
(<title> + meta description + canonical + JSON-LD + OG/Twitter + favicon links +
sitemap.xml + robots.txt + llms.txt all present + well-formed) — or the
station stops loud. The AI pack is a hard deliverable (INV-07).The ISOvision footer is mandatory on EVERY explainer.
assemble-pageinjects it verbatim (design-system §16b). Two lines, always, in order: (1) "Built by Stuart Kerr at ISOvision.ai" (ISOvision.ai→https://isovision.ai); (2) the CTA "Want an explainer for your own repo? Create one →" →https://repoexplainer.isovision.ai. Semantic<footer role="contentinfo">, real<a>links, on-brand tokens, AA contrast, responsive. If it is missing, the page is not done.
Do: node tools/quality-grade.mjs <build-dir>. It renders the assembled
site LOCALLY in a real browser (Playwright — live pixels, not a deployed
URL; there is no pre-grade deploy), takes full-page screenshots at 390px
(mobile) and 1440px (desktop), and vision-scores them against the verbatim
Gate A/B rubric as a harsh critic, returning two scorecards with per-criterion
rationales citing what it SAW.
Gate A — "do they actually get it?" (substance, each 0–100): A1 visual effectiveness · A2 storytelling · A3 clueless→convinced · A4 usefulness-to-ME · A5 arc completeness · A6 implementation-confidence (knows what to run, what they'll SEE, the steps, what's next — INV-19). Gate B — "did someone who gives a shit make this?" (craft / anti-slop, each 0–100): B1 typography & hierarchy · B2 alignment & grid · B3 spacing & rhythm · B4 strength & polish (vs generic AI slop) · B5 imagery craft — including the structural SVGs (crisp, legible, genuinely explanatory) and the 1200×630 social card (on-brand, inviting, tagline legible).
The OPERATOR QUALITATIVE GATE — six YES/NO questions (the owner's words), ALL must be YES or you loop: (1) Would this make me believe I understand this? (2) Would this make it approachable? (3) Would this explain it for somebody who doesn't understand it? (4) Would it give me confidence I understand the architecture? (5) Does it make me smile — "oh, that's cool"? (6) Could someone who knows nothing about this domain read the first four sections and explain the problem and the solution back to me? (ADR-0006 v1.2.0 — the critic answers (6) role-playing a curious fifteen-year-old, not a developer.) These are independent of the numeric axes; a page can clear the numbers and still fail one of these. Two deterministic, FREE gates run before the vision pass: INV-20 — any acronym in the first four sections without a plain-words gloss AT first use; and INV-24 ReadsAtFifteen — those sections must measure Flesch-Kincaid grade ≤ 9.5, no sentence over 30 words, average ≤ 22. Either failure costs zero tokens, charges no grading iteration, and returns the measured numbers for the refine loop to fix.
The bar + the loop (non-negotiable — iteration over a few revs is EXPECTED, not a failure):
headlineScore = the MINIMUM across all axes (the anti-slop floor); meanScore = the mean
(the "as good as the examples" measure). Both gate; the mean is not ignored.page; an A4 "not useful to me" miss re-opens
content; an A6 / B5 / diagram miss re-opens visuals) → re-assemble (assemble-page) →
re-grade (quality-grade) → LOOP until it clears on both devices. Touch only the named
weakness — never a broad reflow that could regress a passing axis.deploy and you are done — whatever the score says.
Delivery is no longer conditional on quality: deploy refuses only on integrity (a page that
did not assemble, a source-identity violation, or a missing scorecard), never on a low grade. A
below-bar page ships to its live URL and the requester receives an honest note naming its weakest
axis in plain words, plus an offer to re-run. This replaced a binary rail under which 56 of 104
hosted builds delivered nothing at ~$5 each — one weak axis could veto an otherwise-finished
page. The retired post-cap protocol (quality.postCapManualFix + ending ok:false for a runner
re-grade) is gone: do not write that key and do not end a run hoping to be rescued.Honesty escape hatch: if a repo genuinely cannot reach the bar on some axis, flag it honestly in the result and the email. Never ship slop and call it done. Two pre-ship eyes gate S7: the vision model and you (the operator), viewing the same screenshots, both agreeing, with mean ≥ 90, min ≥ 85, and all six operator questions YES on both devices. The owner is the post-delivery third eye (S9) — owner rejection re-opens this same surgical loop.
Cue: mean ≥ 90 AND min axis ≥ 85 AND all six operator questions YES on BOTH devices, or an honest flag. Only an already-great page proceeds to deploy.
node tools/publish-repo.mjs <build-dir> — creates the explainer repo +
invites the owner.node tools/deploy.mjs <build-dir> — deploys to its own per-build URL.
Default provider: Netlify (clean auto {repo}-explainer.netlify.app URL,
zero DNS work, git-connected auto-redeploy so the owner's later edits redeploy
themselves). The adapter is provider-agnostic — Vercel is a one-line swap.node tools/repo-seo.mjs <build-dir> — sets GitHub topics + a strong
description on the explainer repo (GitHub is the new AI-world social
media), and emits suggested topic/description improvements for the source
repo (offered, never set directly — INV-16).node tools/readme-enhance.mjs <build-dir> (wraps the readme-enhance skill): an
architectural explanation, the shared Station-4 SVG diagrams (reused, not
re-authored), and an explainer badge linking to the live explainer. May also
carry the Station-8 source-repo topic/description suggestions.node tools/notify.mjs <build-dir> — return the result inline and
email the owner the scorecard + both screenshots + links (live URL, explainer
repo, pack) plus, when present, the README-PR link and the suggested
source-repo topics/description, so the owner can act on the optional offers and
be the third eye.Scheduling only — it never lets one station read another's files; everything lands
in its BuildContext slot.
generate-image
call (bounded concurrency in the tool itself, not multiple parallel processes —
see Station 4 above)..passages.jsonl present so search returns text; the three structured JSONs
present so all four MCP tools return data)."Done" = real screenshots; on both devices mean ≥ 90, min axis ≥ 85, and all six operator questions YES (reported as a normalized 95); the two pre-ship eyes agree; the page is live; and the AI pack ships. If a stranger doesn't smile — or a newcomer can't follow the first four sections — it isn't finished.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (stuinfla/repo-explainer) — no native marketplace selected
npx claudepluginhub p/stuinfla-explainmyrepoOther plugins' skills for the same job