Explain any topic simply for a newcomer — a concept, a system, a process, or part of a codebase — and save it as an HTML page with compiled architecture, workflow, sequence, data-flow, and lifecycle diagrams. Use when the user types /explain <topic>.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Explain the topic for someone seeing it for the first time, in plain terms. No filler.
Write for a reader with ADHD: little working memory to spare, and attention that leaves
the moment the payoff is unclear. They should get the idea fast and still remember it
tomorrow. The output is one self-contained HTML file under ~/explain/.
Diagrams are compiled, not drawn. You describe what a diagram means; compile.py
computes every pixel. For anything the compiler can build, never hand-write <svg>, and
never write coordinates, viewBox, or path data.
Topic: $ARGUMENTS
If the topic is empty, take it from the conversation; if there is nothing to take, ask.
Research. Ground every claim in a source you actually checked: files in the repo, docs, or pages you read. If the topic is code, read the code.
Draft the prose to ~/explain/<topic-slug>/doc.draft.html — plain HTML, no CSS, no
JS — following Writing for attention below. Where a picture beats a paragraph, put a
placeholder alone on its own line:
{{diagram: pipeline.architecture.json}}
Skip the diagram when the prose already says it.
Skim the draft as the reader would. Read only the <h1>, the TL;DR, and the
<h2>s. If that alone doesn't teach the topic, fix the headings before going on.
Write one JSON per placeholder beside the draft, named <name>.<type>.json, with
semantics only. See reference.md for fields, rule codes, and a worked example per
type. When explaining code, cite it with src: "path/to/file.py:42"; the path is
checked against --root.
Compile with compile.py from the base directory given when this skill was invoked:
python3 <skill base dir>/compile.py ~/explain/<topic-slug>/doc.draft.html [--root <repo>]
--root is only needed when diagrams cite src. It writes index.html beside the
draft. Keep the draft and JSONs so the page can be regenerated.
Fix by rule code. A non-zero exit lists every problem with its fix. Edit the JSON
(shorten a label, move a node's row, correct a src, split the diagram) and re-run
until clean.
Report the output path.
Every rule here either cuts what the reader must hold in mind or makes the idea stick. Working memory is the bottleneck, so the numbers below are targets that protect it, not caps to contort prose around.
Page shape, in this order:
<h1>: the topic as a plain question or claim.<h2> the section's takeaway as a sentence
("Tokens expire after an hour", not "Expiry"), so skimming the headings alone teaches
the topic.Sentences and paragraphs
Keep the main path short. Put caveats, edge cases, and history in
<details><summary>Go deeper: …</summary>…</details> so the main path stays a few minutes'
read. Cut whatever doesn't serve the TL;DR.
Pair each diagram with its sentence. Put the placeholder right after the sentence it illustrates, and have that sentence say what to look at ("Follow the token from left to right").
The compiler checks labels, widths, overlaps, and references, and names the fix for each. These are the judgment calls it can't make:
rank and row unless the default layout reads badly. Then hint every node or
none, and keep connected nodes on different ranks."back": true.The compiler handles structure, not numbers. For a bar or line chart, hand-write inline
<svg> in the draft; the compiler leaves it alone. Style it yourself: a font-family,
fill:currentColor, width near 900px, and ~16px text to match the prose.
README.md (opens in a new tab)compile.py (opens in a new tab)examples/auth.architecture.json (opens in a new tab)examples/demo.draft.html (opens in a new tab)examples/deploy.workflow.json (opens in a new tab)examples/ingest.dataflow.json (opens in a new tab)examples/login.sequence.json (opens in a new tab)examples/order.lifecycle.json (opens in a new tab)reference.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/agent-skills:explainfrom agent-skills
npx claudepluginhub itsmostafa/agent-skills --plugin agent-skills13 skills in this plugin
/adhdUse when the user asks for ADHD-friendly answers, says they have ADHD, feels overwhelmed, loses focus in long replies, or asks for responses that are shorter, easier to scan, or "just tell me what to do." Shapes replies so the answer comes first, steps are small and numbered, and nothing buries the next action./bruhRestate the last message in plain human language, with no jargon./create-prGroup uncommitted changes into logical conventional commits, push them to a feature branch, and open a GitHub pull request with a release-please friendly description. Use when the user types /create-pr or asks to commit their changes and open a PR./evidence-reviewReview a code change against its spec and the repo's own conventions, and report only findings you have proven: reproduced bugs, unmet requirements, code nothing needs, and broken house rules, ending in a PASS or FIX verdict./minimalistUse before writing, editing, fixing, refactoring, or reviewing ANY code, including small routine changes you could make without help: those are exactly where over-building slips in. Keeps the change minimal: YAGNI, reuse what the codebase already has, stdlib and native platform features before custom code or new dependencies, shortest working diff. Also use when the user asks for the simplest way, invokes YAGNI, or complains about over-engineering or bloat. Not for non-coding requests.
/readme-marketerRewrites technical READMEs to improve conversion, user onboarding, and product marketing.