/use-html-theme:html-explain [topic]from use-html-theme
Build a read-only explainer page as one self-contained HTML file, with diagrams, figures, and small widgets where prose is not enough, confirming the target before generating. Use when an explanation should be a shareable page, such as "explain the design we landed as a page", "make an explainer for this spec", or "deep dive on X as a page". Not for inline explanations (explain) or pages that collect decisions (html-codesign).
Ships in use-html-theme. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One .html file that explains something as well as it can be explained —
read-only, no decision round-trip, opened anywhere by anyone. "Read-only"
governs the contract, not the medium: the page carries whatever makes
the subject land, including annotated diagrams, small multiples, charts,
build-up sequences, and interactive widgets the reader can manipulate.
The objective function is clarity, not coverage and not compliance with
the canon in references/. Those principles are aids. A page that breaks
one of them and lands is better than a page that satisfies all of them and
doesn't.
✓ "Explain the retry design we landed — as a page I can send the team"
✓ "Write up what the load tests showed"
✓ "Make an explainer for this spec"
✓ "Deep dive on the caching decision, with diagrams"
✗ An explanation that belongs inline in chat → the explain skill (which
hard-rules itself to chat and hands the page case here)
✗ A page whose job is to collect a decision → html-codesign
✗ Open questions to work through conversationally → question-walkthrough
Run references/_shared/context-triage.md in full. It classifies recent
context, produces a confidence verdict, and defines the gate.
context-triage.md
delivery-close.md
The gate always fires — including when this skill was invoked explicitly and including when an argument named the topic. An argument shortens the question; it never removes it. Rendering a whole page about the wrong artifact is the expensive mistake this one question prevents.
The gate is TWO turns, never one. Same-turn prose may never render — when a turn ends in a tool call the user can receive only the dialog. So: turn 1 delivers the candidate targets as the turn's final content, with no tool call after it; turn 2 opens with AskUserQuestion. Write each option to name its own target ("Deep dive on the backoff design") rather than "the first one", so the dialog still makes sense if the pre-read is lost.
If triage finds mostly unanswered questions, say so and offer
html-codesign — and offer question-walkthrough alongside it, since
resolving them in chat is a first-class answer. If it finds a mix, offer
both page types.
Before writing a word of the page, list the material the explanation will
be built from, and read the real artifacts: the diff, the spec, the test
output, the design doc, the code. Pull them with Read/Grep/Glob and
git log / git show / git diff.
Produce a working outline — the sections, and what each has to establish. This is for you, not the reader; it exists so steps 3–5 have something to operate on.
Never explain from memory of the conversation when the artifact is on disk. Reconstructed examples are how explainers drift from what shipped.
Run references/difficulty-map.md. Rate each outline section by how hard it
is intrinsically — for a stranger, assuming it is written well — name
what kind of hard it is, and allocate the page's budget accordingly.
This has to happen before the draft for two reasons. Critiquing a draft can only find difficulty you introduced by writing badly; it cannot find difficulty that belongs to the subject. And a difficulty list written before the draft is pre-registered — step 7's enrichments must trace back to it, so a figure can never be justified after the fact.
The kind-of-hard column also selects the principles: it names them directly.
Collect the two or three that recur across rows and write against those.
references/explanatory-canon.md is indexed by symptom for exactly this.
Be spiky. A map where everything rates the same is a map that wasn't made. If you can't say which part is hardest, go back to the artifacts.
Write it, spending the budget from step 3. The hardest one or two sections get the clear majority of the words.
Read the draft as someone who was never in this conversation — because that is who opens the file.
The failure mode has a name — the curse of knowledge — and it is the single most likely thing to go wrong here: you cannot un-know the subject, so you compress exactly the step the reader needed. Hunt for it specifically:
Fix these in the prose first. Do not reach for a visual to rescue a passage that is simply badly written — an unclear paragraph with a diagram beside it is two unclear things.
Re-read the sections rated hardest in step 3 the most carefully — that is where a reader actually falls out.
Now ask the question that makes this a page and not a document:
This is HTML. What here would land better as something other than prose?
Walk the outline and look for the places where prose is genuinely working too hard: spatial relationships, parallel structure across many cases, change over time, a mechanism with moving parts, quantities to compare, a process with branches, a parameter whose effect is the point.
Consult references/enrichment-ladder.md — it ranks the options from
"annotate the text" up to "build a manipulable model", with the cost of
each — and references/visual-encoding.md for anything where a mark's
position or size stands for a number.
This is a hard rule, not a preference. Every enrichment must trace to a row in step 3's difficulty map rated ●● or higher, or to a defect step 5 found. Uniform enrichment is a failure: a diagram beside an already-clear paragraph adds load without adding understanding, and buries the figures that are doing real work.
The test, per element:
Remove it. Is the passage meaningfully harder to understand? No → it does not ship.
For an interactive control there is a stricter version, because a control costs the reader an action before it pays anything:
Does manipulating this change what the reader understands? If the insight arrives from looking at the default state, it is a figure, not a widget. Ship the figure.
Steps 5–7 work section by section. This one reads the finished page as a single object, and asks four questions the per-section passes structurally cannot:
Follow the same cascade html-codesign uses (../html-codesign/references/theming.md
in the sibling skill): the use-html-theme session theme if one is active, else its
persistence file (.claude/use-html-theme.local.md), else the neutral
built-in style in the scaffold. Never mix themes. Do NOT force the theme
picker just for an explainer page.
Birchline ships an explainer overlay —
../use-html-theme/references/themes/birchline/explain.md. Apply it when
Birchline is the active theme; its warm-editorial register suits long-form
explanation better than anything else in this plugin.
Technical-minimal and High-contrast-dark have no explainer overlay, and
the cascade handles that by deriving the scaffold's components from that
theme's tokens.md. That is deliberate, not a gap: an explainer's
components vary with its subject, so beyond Birchline there is not yet a
fixed vocabulary worth hand-tuning.
Start from assets/explainer-scaffold.html. Then open or screenshot the
result and actually look: figure/caption collisions, overflow on narrow
widths, a widget that doesn't respond, a diagram that lost its labels. The
scaffold guarantees structure, not layout.
Give the file path, name the two or three principles you wrote against and which difficulty rows the enrichments were spent on, and offer the obvious next moves — go deeper on a section, add a figure somewhere it was thin, or restyle under a different theme.
Then close out per references/_shared/delivery-close.md: the full absolute
path on its own line (never relative — the reader is often not in the shell
that made the file), and a short prose list of what they might want next.
Those offers are strictly conditional — open it in the browser only when this
session runs on the user's own machine (same gate for copying the path to
the clipboard), add it to shelf only when that skill is
installed (if it isn't, don't mention it at all), and where to save it
whenever the file sits somewhere temporary or anywhere you chose rather
than the user. The save recommendation is read from context, never a fixed
ranking. The next moves above lead; these come after them.
.html, embedded CSS/JS/assets, no external
requests, no build step. It must work from file://, an artifact host, or
an email attachment. Diagrams are inline SVG; images are data: URIs;
interactivity is vanilla JS. No CDN, no webfont link.dataviz when it is present — and fall through
silently to references/visual-encoding.md when it is not. See the
delegation rule there; dataviz is bundled with Claude Code and does not
exist on Codex, so the fallback is load-bearing, not decorative.<meta name="color-scheme" content="light">; dark → dark. (iOS Safari auto-darkens pages that
don't declare.):focus-visible; respect
prefers-reduced-motion; every figure has a text equivalent in its
caption or body; identity is never carried by color alone; interactive
controls are keyboard-operable.file:// with the network off, with nothing missing?color-scheme meta present, and does it match the theme?shelf only if that skill is installed (and unmentioned if
not)?dataviz is present. It carries a
runnable colorblind/contrast validator this skill has no equivalent for.
Use it when it's there.dataviz is not on disk. It is compiled into the Claude Code binary
and materializes at a versioned temp path when invoked. It is absent on
Codex entirely. Do not "simplify" the fallback away on the grounds that
the delegate exists — on half the fleet it doesn't.references/_shared/context-triage.md — the shared preflight; the routing
authority between this skill and html-codesign.html-codesign (this plugin) — the sibling that collects decisions.use-html-theme (this plugin) — owns the page's look.explain (explain plugin, this marketplace) — the same job inline in
chat, and the source of the concrete-anchored anatomy this skill renders.dataviz (bundled with Claude Code) — quantitative charts, when present.references/_shared/delivery-close.md — the shared close-out: absolute
path, then the conditional convenience offers.references/difficulty-map.md — step 3: rating intrinsic difficulty and
allocating the page's budget.references/explanatory-canon.md — clarity principles, indexed by symptom.references/visual-encoding.md — encoding rules + the dataviz carve.references/enrichment-ladder.md — what to reach for, and what it costs.assets/explainer-scaffold.html — the page skeleton to start from.Citations in this skill are relative to the citing file. From this
SKILL.md, the shared targets live in the sibling skills:
../html-codesign/references/theming.md (the theme cascade step 9
follows) and ../use-html-theme/references/themes/birchline/explain.md
(the Birchline explainer overlay); from references/, shared targets
gain one more level (../../html-codesign/references/theming.md),
while in-skill siblings stay short (difficulty-map.md,
../SKILL.md).
When the skill is installed via symlink, the .. segments resolve
through the OS to the real plugin tree, so the relative forms above
just work. When resolving lexically instead, anchor on the realpath
of this SKILL.md first, then apply the relative path. If the skill
was copied without its siblings (no ../html-codesign/ beside it),
fall back to locating the install source — the plugin tree the copy
came from — and resolve the shared targets there.
assets/explainer-scaffold.html (opens in a new tab)references/_shared/context-triage.md (opens in a new tab)references/_shared/delivery-close.md (opens in a new tab)references/difficulty-map.md (opens in a new tab)references/enrichment-ladder.md (opens in a new tab)references/explanatory-canon.md (opens in a new tab)references/visual-encoding.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub smorinlabs/smorinlabs-skills --plugin use-html-theme3 skills in this plugin
/html-codesignBuild a self-contained HTML page for reviewing unanswered questions, choosing options, adding notes, and exporting decisions. Use when the user asks for a codesign or decision page to compare designs, plans, or priorities asynchronously. Confirm the question set before generating. Not for settled material (html-explain), decisions walked through in chat (question-walkthrough), or signing Apple binaries./use-html-themeOffer a small catalog of visual themes and apply the chosen one to every HTML page, artifact, mockup, or email generated in the session, saving the choice for the project with user consent. Use when the user asks to generate or restyle HTML and no theme has been chosen yet, or asks to preview or switch themes. Not for markdown, JSON, or non-HTML output, or when the user said [notheme].Other plugins' skills for the same job