Creates a visual, TLDR-first explainer artifact summarizing code changes, features, refactors, migrations, or incidents for teammates. Starts from diffs, PRs, tickets, or Slack threads.
Ships in explainer-artifact. 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; scripts run unread.
A one-page, visual explainer of a change or an incident for people who weren't there. A reader gets what happened, why it matters and what to do in under two minutes of scanning.
This skill owns the story (structure, formatting, content). web-artifacts-builder ($WAB) owns the mechanics (kit, theme, diagrams, build, verify). S = this skill's directory; X = $S/scripts/explainer.py (run it directly; uv handles its dependencies).
The cost is agent round-trips, not builds. A first publish takes 3 turns; each later edit takes 1.
| Turn | What you send (one response, calls run in order) |
|---|---|
| 1 | X start --name <name> [inputs]: paths, every rule file, PR and deploy status, ticket links, git facts with the code diff, and the App.tsx scaffold |
| 2 | Write App.tsx (a new file) + Write specs.json + Bash X build <name> + Read the contact sheet + Artifact publish (private, so a first draft is fine) |
| 3 | Bash X url <name> <url> + any fixes as Edits + X build <name> + publish again; then the reply with the share message |
| edit | Edit App.tsx + X build <name> + Artifact publish (with url from explainer.json) |
start prints the code diff when it's under ~900 lines (tests and generated files left out). Read source files only when it says the diff is too big, or for a why the diff and PR don't show; then add those reads to turn 2 before the Write.start when you already know it's needed.Read the rule files: start printed them. Never re-read a file you wrote.Edit, never sed: a shell edit forces a re-read before the next Edit.verify.sh checks only literal values: write <Src path="…"> and ticket links inline, never through a constant.start prints absolute paths; every shell is fresh, so use them.X refresh <name> re-checks PRs and deploys, rebuilds and lists the prose to update.X list finds the workspace and URL; Read its App.tsx once, then edit turns as above.Every input is a flag of X start, repeatable, all optional:
| Input | Flag | What start does |
|---|---|---|
| A git range | [base] [head], --path <dir> | facts: commits, files, interface lines, link ranges, migrations |
| A PR | --pr 123 / owner/repo#123 / URL | merged or open, merge SHA, and with one PR of this repo, the git range |
| Deploy state | per repo in EXPLAINERS_CONFIG (~/.config/explainers/config.json), or --deploy-check '<cmd {sha}>' for one run | runs it per merged PR: exit 0 deployed, 1 not yet |
| A ticket | --ticket ID / URL; ids in PR titles are found automatically | GitHub issues: fetched inline. Others: the link (the repo's ticket_url in the config) and the fetch to use if needed |
| A Slack thread | --thread <url> | the exact slack_read_thread call to send |
| The page kind | --kind change (default) / incident | which sections the scaffold starts with |
No PR given: the current branch's PR is used. Not in a repo: the story comes from the inputs alone.
EXPLAINERS_DIR/<name>/ (default ~/.local/share/explainers) keeps everything: App.tsx, specs.json, status.ts, explainer.json (inputs and the published URL), the build and <name>.html. Nothing lives in a scratchpad, so any later session can edit the same page and keep its URL.
The scaffold is a starting point, not a form: every slot is a ⟨…⟩ placeholder (verify fails until each is filled or cut). Rename, reorder, merge or cut sections; swap any block; add diagrams, a <TimeChart> or a <Playground> where the story is better told that way. The PR status parts (eyebrow, TL;DR status row, rollout steps) read status.ts, so refresh keeps them true.
references/readability.md): outcome first, takeaways ≤ 25 words, paragraphs ≤ 60, numbers not adjectives, lists ≤ 5, one word per concept, no filler, end on one action.<Tldr> (what broke or changed, why, fix, status, what you do) and the main <BeforeAfter>, in plain words. Then the long version.references/formatting.md): each block makes its point to a reader who reads none of its sentences. One example, values not sentences, outcome first, why last.<Term def> at its first appearance, before any heading, diagram or table uses it.<Ref> link, every code mention a <Src>. Merged is not deployed.group, section titles ≤ 4 words.takeaway, read in order, is one coherent paragraph (verify.sh prints it). If not, reorder or cut.| Section | Kit |
|---|---|
Hero: eyebrow with <Ref> links and status, title, thesis | <Page eyebrow title thesis pills> |
| TL;DR | <Tldr> + <BeforeAfter example rows result> |
| What changed for users (if any) | <BeforeAfter>, a mockup |
| Background: what the system does | one flow diagram in <Figure> + 2 short paragraphs |
| How it works / why it broke | one diagram in <Figure>; causes as <Table> Cause · Evidence · Effect |
| Handover to another owner | <Table> Requirement · Why · Today, then open questions and where the evidence lives |
| What happened (incident) | a timeline: <Table> When · What, or a <TimeChart> with milestones |
| Interface changes | <Changes>, user-facing and developer-facing apart |
| Deprecated & removed | <Deprecations> |
| Rollout status | <Steps> from status.ts, plus what happens after deploy |
| How to check it | <Code>: the one command, query or URL that proves it |
| Risk and rollback | <Table> If · You see · Undo, only real risks |
| Decisions needed | <Table> Question · Who · By, only when something is open |
Pick each type from diagram-types.md (printed by start) by the question its section answers: a request path is a sequence, a status change a state, a migration a db-schema, a rollout a gantt. Never mermaid or hand-rolled boxes.
specs.json array; X build renders it. A rejected spec says what to fix; change the spec, never the output.auth-flow → import { AuthFlow } from '@/diagrams/auth-flow'), so write App.tsx meanwhile. Prompt:Draw these diagrams for an explainer page. No questions, no extra files. Read
$WAB/references/diagram-brief.md, then for each diagram only$DIAGRAM_DESIGN/references/type-<type>.md. Plans:<slug · type · question>. Vocabulary:<terms>. Write each to<workspace>/<slug>.htmlcontaining only the<svg>. From<workspace>, runbash $WAB/scripts/diagram-to-jsx.sh <name> <files>; fix a rejected file once. Never edit the generated .tsx. Reply with only the import lines.
X build <name> bundles and runs verify.sh: placeholders left, story (takeaway paragraph, term order, jargon), <Src> links at a pushed SHA, theme and style, overflow and tiny text at 3 widths, readability ⚠, and one light+dark contact sheet. Fix everything in one pass.
Publish the <name>.html path it prints (never bundle.html) with a one-sentence description; pass url when the workspace has one. Then stop and let the user prune.
The reply after publishing ends with a message the user can paste into Slack as it is. Write it the way a teammate would: 2–4 short sentences in plain words, first person, no headings, bullets, emoji or labels ("TL;DR:", "Status:"). Say what happened and what it means for the reader, where it stands, the one ask (or that there is nothing to do), then the link.
I wrote up why checkout cancelled 312 orders since Mar 3: it only ever tried the first saved card. The fix tries every card; it's merged and goes out with Thursday's deploy. Nothing to do on your side. Details: https://claude.ai/artifact/…
Read only the TL;DR and each section's first line: do you know what happened and what to do next? verify.sh shows no ✗ and no readability ⚠; deprecations say gone vs kept; each diagram's type fits its question.
Then read it as the outsider: after the first two sections, could they explain the problem in one sentence? Does every chart have a sentence under it saying what to notice? Is every number labelled measured or estimated, and cross-checked (references/formatting.md, "Numbers you can defend")? If not, fix it before the first publish: a confusing first version costs the reader's trust.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/explainer-artifact:explainer-artifactfrom explainer-artifact
npx claudepluginhub iamshobe/dotfiles --plugin explainer-artifact