/explainer-page:explainer-pagefrom explainer-page
Builds a textbook-style interactive HTML explainer page that teaches one technical concept through linked representations (colour-coded notation used identically in prose, maths, figures, tables and code; figures and tables drawn from one data source and highlighted together on hover; runnable code with its real output; margin notes, callouts and check-yourself questions). Use only when the person explicitly asks for a page, artifact, HTML, visual or interactive explainer, lesson page, or textbook-style page that teaches a concept, for example "make an interactive page explaining attention", "build a visual explainer for joint distributions", "turn this derivation into a textbook page". Do not use for explanations answered in chat, quizzes or flashcards without a page, dashboards, apps, slide decks, or documents.
Ships in explainer-page. 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.
Produce one self-contained HTML page that teaches one concept the way a good illustrated textbook does: every idea shown in words, in symbols, in a picture and in code, with each symbol keeping the same colour wherever it appears, and with the picture, the table and the code all drawn from the same numbers.
This skill defines the page's structure and voice completely. Write the page as described here, not in a question-and-answer, interview or drill format, whatever format other instructions set for chat replies.
assets/template.html: a complete, working page (theme, layout, contents sidebar, notation colours, MathJax, code highlighting, and helpers for linked tables, isometric 3D bars, node diagrams, sliders and code cells). Every page starts as a copy of it.references/components.md: each component with the markup to paste and when to use it. Read it before writing the page.One concept per page; a page has 3 to 6 numbered sections. Before writing, settle in a few lines of notes:
List every symbol the page uses and give each one a role. Roles map to colours, and the mapping never changes within a page:
| Role | Class / macro | Use for |
|---|---|---|
| input | .in, \inp{} | given or observed quantities: data, features, the previous token |
| output | .out, \outp{} | targets, predictions, the next token |
| parameter | .prm, \prm{} | weights, biases, learned or tunable values, knobs on a slider |
| function | .fn, \fn{} | models, operators, the function being studied |
| probability | .pr, \pr{} | probabilities, scores, losses: the numbers a reader reads off |
Leave indices, constants and plain arithmetic uncoloured. A symbol's colour is the same in prose (<span class="in">), maths (\inp{x}), figure labels and table headers, and code comments may name the role. Introduce each symbol in words the first time it appears.
Copy assets/template.html and replace only these parts:
<title> and the <h1> in the top bar: a short name for the concept.CONTENT START and CONTENT END.DATA object: the worked numbers, defined once.drawFigures() and writeCode(): draw every figure and table, and write every code cell, from DATA.Keep the <style> block, the shell, and the helper functions. Add CSS only for something no component covers, using the existing colour tokens.
Each section follows this order, skipping steps that do not apply:
<details>.The last section ends with what the concept leads to next, in one or two sentences.
Add interaction only where acting on the page shows something prose cannot:
data-key (a table cell and its bar, a node and its row) so hovering one highlights both. Use it whenever two figures show the same numbers.DATA live.Never add motion or controls for decoration.
DATA, so they cannot disagree.0.2, not 0.20). When the language is available, run the code and paste its real output; otherwise compute the output from DATA in writeCode(), formatted as the language prints it.When a headless browser is available, render the page and look at it:
mjx-container elements), the figures drew with readable labels, nothing overlaps, and the page has no horizontal scroll at phone width.Fix what you see before delivering.
<!doctype html>, <html>, <head> and <body> tags: start with <title>, the font <link> and <style>, then the page, then the scripts. The template already follows the rest of the artifact rules: colour tokens on :root with dark-mode overrides and color-scheme, scripts only from cdnjs and jsdelivr, a sticky header offset by the safe area, and a copy button that falls back to selecting the code..html file and give its path. It opens directly in a browser.Load only what the page uses, from these sources:
cdn.jsdelivr.net/npm/[email protected]/es5/tex-svg-full.js), already in the template. It renders to SVG, needs no stylesheet, and bundles every TeX extension, so it makes no runtime fetches (artifact pages block them).cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js), already in the template; its colours come from the template's CSS.No external stylesheets other than Google Fonts; all other CSS is inline. The template's helpers (isoBars, matrixTable, nodeGraph, linkKeys) draw plain SVG and cover most figures without a library.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub harshitmywork17/claude-mods --plugin explainer-page