Visual explainer
Build one HTML file that makes a hard thing click, and that a team can mark up and hand back. Two things have to be true at the end: a reader who didn't understand the topic does afterwards, and a reviewer can tell you exactly where you lost them.
Prose is the default for a reason — it's fast to write. It's also where complexity goes to hide. The job here is to force the ideas into forms that can't hide: a sequence you can step through, a threshold you can drag past, a quantity you can see next to something familiar.
Workflow
- Scope it (below) — the single hardest step, and the one that determines whether the artifact is useful or just pretty.
- Write the explanation spine before any HTML.
- Choose a visual form per section, reading
references/visual-patterns.md. - Read
references/house-style.mdand write markup against the house theme. It's the default look — reach forfrontend-designonly when someone explicitly wants to depart from it. - Build the single HTML file — into
/mnt/user-data/outputs/on claude.ai, or the project directory in Claude Code. - Inject the theme and review layer:
python3 ${CLAUDE_SKILL_DIR}/scripts/add_comments.py <file> --theme --doc-id <slug>. - Run the self-check, then present the file and say how to review it.
- Offer the Word / Google Doc export in the same message — one line, not a separate conversation. Most people don't know it exists, so an unoffered export is an export nobody uses.
${CLAUDE_SKILL_DIR} is this skill's own directory. Claude Code substitutes it
automatically; on surfaces that don't, use the real path to this skill folder.
Never call the scripts by a bare relative path — the working directory is the
user's project, not the skill.
The HTML explainer is the primary deliverable. The Word / Google Doc file is a secondary export off the same source — build the explainer first, offer the doc after, and don't skip straight to the document because it feels more familiar.
Scope it first
Answer these before writing anything. Pull the answers from context if they're there; if the topic is ambiguous and the answer changes the artifact, ask — one round, batched, using the elicitation tool rather than prose questions.
- The one thing. If the reader remembers a single sentence, what is it? Write that sentence down. If you can't, you don't understand the topic well enough to explain it — go read more first.
- Who's reading, and what do they already know? "The product team" is not an answer. Engineers who need the mechanism, PMs who need the tradeoffs, and execs who need the decision get three different artifacts. If it's genuinely mixed, build a depth toggle (see below) rather than averaging into something that serves nobody.
- What decision does this inform? Explainers with no decision behind them turn into trivia. If there's a decision, the artifact should end pointed at it.
- What's the thing people currently get wrong? The best explainers are shaped around a specific misconception, not around a neutral survey of the topic. This is where the paired "what people picture / what actually happens" panel earns its place.
Where the content comes from
Accuracy is the whole value proposition — a beautifully rendered wrong mental model is worse than nothing, because it spreads.
- Internal or product-specific topic: ask for the source material (spec, RFC, dashboard, thread) rather than reconstructing it from plausibility. Say plainly what you'd need.
- Public topic that may have moved since your knowledge cutoff: search, and prefer primary sources.
- Numbers you don't have: draw the structure and label it illustrative. Never invent specific figures for a real system — someone will quote them in a planning meeting three weeks later.
- Uncertainty is content. "We don't know whether X" belongs in the artifact, marked as such. Product teams make worse decisions when an explainer launders a guess into a diagram.
The explanation spine
Structure carries more of the comprehension load than any individual visual. Use this order unless there's a reason not to — it front-loads payoff and defers detail, which is how people actually read.
- The one sentence. Above the fold, in the largest type on the page. Not a title — the actual claim.
- Why it matters / what breaks without it. Two or three lines. Earn the reader's next thirty seconds.
- The anchoring model. One analogy or one diagram that gives them somewhere to put everything else. Exactly one — a second competing metaphor undoes the first.
- The mechanism, in at most five steps. Each step gets its own visual and one short paragraph. If it needs more than five, you're explaining two things; split the artifact or nest the detail.
- Where it goes wrong. Failure modes, tradeoffs, edge cases. This is the section experts skip to, and the one that proves you understand the topic.
- Terms. Inline, on first use — a dotted underline revealing a one-line definition on hover and tap. A glossary at the bottom gets read by nobody, because leaving the paragraph is exactly what a confused reader won't do.
- Open questions. What's unresolved, what needs a decision, what you're unsure about. This is where review comments naturally land, so leave the door open deliberately.
Depth toggle
For mixed audiences, a Skim / Full control in the header that shows or hides
.deep blocks earns its complexity. Keep the skim path complete on its own —
skim readers should get a coherent story, not a story with holes where the
detail was. Persist nothing; default to skim.
Building it
One self-contained HTML file. No build step, no framework, no external requests — it has to work as an artifact, as an email attachment, and offline on someone's laptop in a meeting.
- Inline SVG for diagrams and charts, hand-rolled. Vanilla JS. See
references/visual-patterns.mdfor the recipes and which form fits which idea, andreferences/house-style.mdfor the theme's classes, tokens and page skeleton. - No
localStorageorsessionStorage— they fail in artifacts. Reader-facing state lives in JS variables; the review layer handles its own persistence via the artifact storage API. - Responsive to ~380px. Visuals that only work at 1400px will be read on a phone in a standup.
- Meet the accessibility floor in
references/visual-patterns.mdwhile building, not as a retrofit: labelled SVG, real<button>s, live regions for changing values, reduced-motion honoured. - Add
data-vx-rootto the content container, anddata-vx-commentableplusdata-vx-labelto every figure. Skipping this is the most common way the review layer ends up half-useless — reviewers can then only comment on captions, not on the visual that confused them. - Build in the export hooks as you go, not later:
data-vx-step-counton steppers,data-vx-step-labelon the element naming the current state,data-defon glossary terms,data-vx-export="skip"on controls. These cost nothing now and are what let the Google Doc export capture each interactive state as its own labelled figure. Retrofitting them means re-reading the whole file.
Adding the review layer
python3 ${CLAUDE_SKILL_DIR}/scripts/add_comments.py explainer.html --doc-id retrieval-v1
This injects text-selection commenting, a comment sidebar, tag chips, replies, resolve, and JSON export. Idempotent — re-run it after every content edit rather than hand-editing the injected block.
Always pass a stable --doc-id so comments survive a rebuild. Read
references/comments.md for the reviewer flow, the markup the layer reads, and
the export schema. Don't reimplement any of this inline; the anchoring logic
handles multi-node selections and repairs anchors when text shifts, which is
fiddly to get right and silently broken when it isn't.
When you're handed a comments file
Someone will come back with <doc-id>-comments.json. Read the triage workflow
in references/comments.md before editing — the instinct to work through
comments top-to-bottom produces a patchwork, and a cluster of "confusing" in one
section usually means that section's form is wrong rather than its wording.
Exporting to Word or Google Docs
For sharing with people who won't open an artifact.
python3 ${CLAUDE_SKILL_DIR}/scripts/export_docx.py explainer.html --content-only # check the mapping
python3 ${CLAUDE_SKILL_DIR}/scripts/export_docx.py explainer.html \
--title "How retrieval works" --comments retrieval-v1-comments.json \
--out ./retrieval-explainer.docx
Offer this every time you deliver an explainer. One line at the end of the message is enough. It's the step most often skipped, and the reason people think the feature doesn't exist.
Dependencies don't ship with this skill: playwright with Chromium for
figure capture, and python-docx for the build. Run with --content-only
first: it writes content.json and reports what it found before the build
step, so a missing dependency surfaces as a clear message rather than a failed
build. If a dependency is missing and can't be installed, say so plainly and
deliver the HTML.
A headless browser renders and captures every figure, walks interactive steppers
through each state so each becomes its own labelled image, lifts hover-only term
definitions into a Terms table, and appends open review comments severity-sorted.
The builder writes a plain, neutral document; references/docx-export.md covers
matching a house style, the Drive import path, the markup that improves export
fidelity, and the content-fidelity rules. Producing a .docx is not the same as
creating a Google Doc, so say what you actually made and how to convert it.
Self-check before presenting
Go through this honestly; each line is a real failure mode, not ceremony.
- Does the top of the page state the actual claim, in one sentence, before any preamble?
- Could a reader who skipped every visual still follow it? Could a reader who only looked at the visuals get the gist? Both should be yes.
- Is every visual doing work text couldn't? Delete any that are illustration. A chart of two numbers is a sentence wearing a costume.
- Does every interaction reveal something not already written in the caption?
- Are all axes labelled with units, and is every estimate visibly marked as one?
- Is there a number in here you can't source? Fix it or mark it.
- Does it survive at 380px wide, keyboard-only, and with reduced motion?
- Is every figure commentable, with a label a human would recognise?
- Does the "where it goes wrong" section contain something a skeptical expert would nod at?
- Chanel's rule: remove one thing. Usually the third visual in a row that does the same job as the first two.
Presenting it
Link the file with present_files, then in two or three lines: the one-sentence
claim, what's interactive, and how to review — select text and press c,
comment on figures directly, then Export JSON or Copy for Claude and
send it back. Reviewers won't discover the comment layer on their own; the
sidebar hint helps, but say it once in chat too.
Don't summarize the explainer's content back at them. They're about to read it.