/explain:explain [options|deeper|steps] [target]from explain
Explain a concept, code change, finding, or set of options in chat using concrete examples and enough context to act. Use when the user asks "explain X", "give me a before and after", "show examples of these options", "what's the bigger picture", or "how do I do this", including follow-ups asking for more context. Not for polishing technical prose (clear-technical-communication), manual testing guides (manual-test-guide), or HTML explainer pages (html-explain).
Ships in explain. 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.
Deliver explanations in a fixed, concrete-anchored anatomy: succinct, just enough context, always with a real example — never an unanchored abstraction.
explain right after an
explanation is a follow-up: the target is what was just explained (see
the gap diagnosis below). Otherwise it is the code, change, finding, or
option set being pointed at: Glob/Grep to find it, Read to load it; for
changes, pull the real diff via git diff, git log, or git show.Every default-mode answer has exactly these parts, in order (the other modes define their own shapes in the table below):
Inferred from the target (workflow step 2); explicit arguments are
/explain options …, /explain deeper, /explain steps ….
| Mode | Fires when | Output shape |
|---|---|---|
| default | a concept, change, finding, or piece of code | the five-part anatomy above |
| options | a set of alternatives (A/B/C, competing designs, open questions) | per option: a worked example plus context; then one recommendation with why; the runner-up named when the call is close; pros/cons/risks/confidence when it feeds a decision |
| deeper | the bigger picture is asked for explicitly | why this exists at all, what breaks without it, the key decisions and their whys, the mental model — then back down to one concrete example |
| steps | "how do I do X" / operator instructions | numbered steps with exact copy-pasteable commands; when both parties act, split into "what I can do" vs "what you must do". Manual testing steps are out of scope — hand off to manual-test-guide |
A bare explain (or explain <guidance>) issued right after an
explanation — from this skill in any mode, or any explanation the assistant
just gave — is a follow-up: the answer wasn't enough to act on. "Right
after" means the immediately preceding answer; anything older is a cold
start.
Re-read the prior answer and diagnose what's blocking the action, then name the guess in half a line. The common gaps, in the order to try them:
A follow-up keeps the prior answer's mode shape — remedies change the content (frame, language, example), not the mode; only an explicit ask changes the mode.
Rewrite over append. Restating the whole explanation with the expansion woven in is usually clearer — a bigger-picture reframe restructures the answer, it doesn't sit under it. Append only when the delta is small, clear, and self-contained. Either way, never repeat prior material unimproved.
The rest of the reading rules:
deeper, "how does it actually work", accepting the
closing go-deeper offer) — go straight there; diagnosis yields. ("How
does it actually work" takes the anatomy with a mechanism walkthrough as
the example.)| Thought | Reality |
|---|---|
| "An illustrative example is fine" | Pull the real artifact. Invented examples are how explanations drift from the code. |
| "More context makes it clearer" | Past just-enough, context buries the example. Offer deeper instead. |
| "The example would be long, so I'll describe it" | Trim the example; don't replace it with prose. |
| "I'll restate the code line by line" | That's narration, not explanation. Say why; show before/after. |
| "The mode is ambiguous; I'll pick one silently" | Torn between two modes → one question first. |
| "They asked again — I'll say it again, better" | Diagnose first: too specific → step back; jargon → plain words; thin example → sharpen it. |
manual-test-guide (repo-hygiene plugin, this marketplace) — owns manual
testing steps (the steps-mode carve-out).html-explain (use-html-theme plugin, this marketplace) — where the
"inline in chat, always" rule sends you when the user explicitly wants the
explanation as a shareable page: a self-contained HTML explainer with
diagrams and figures. Same concrete-anchored spirit, different medium.references/examples.md — worked outputs (default and options mode) plus
a follow-up diagnosis walkthrough to calibrate against.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub smorinlabs/smorinlabs-skills --plugin explain