skills/explain-deeply/SKILL.md
Explain how a feature, flow, or concept works by grounding in source-of-truth and walking top-down with diagrams. TRIGGER when: user says explain/walk me through/ELI5/help me understand; user wants to understand how a feature, flow, or system works; user wants intuition or first principles. SKIP when: user wants a diagnosis/fix/action; user wants a one-line definition they can already apply; quick spot-check or confirmation.
npx skillsauth add preetamnath/agent-skills explain-deeplyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Read the source of truth before explaining. Walk top-down from the biggest-picture frame to the specific question, layer by layer, with diagrams as the spine.
This skill overrides default output formatting (lead-with-the-answer, bullet-first, terse fragments) while the user is building understanding. Write in paragraphs. Revert to default output when they shift to action, diagnosis, or a new subject.
Decide what to read. For each check below, ask: would reading change the explanation? If no, skip it.
The first two compose — "how does our app use Stripe's new API" needs both repo code and current docs.
Restate what the user is asking, as a specific commitment. Not "you want to know about auth" but "you want to understand how OAuth tokens flow from login through the middleware to the protected route." If their premise is wrong, say so and redirect. If they already framed it, sharpen — don't restart. For atomic definition questions ("what is a closure"), one line is enough.
Default shape: open with the biggest-picture frame (2–4 sentences), then go layer-by-layer toward the specific question. Continue until the specific question is fully answered, in context of the bigger picture.
When the topic has no natural layers (definitions, single-mechanism concepts), compress: motivation → mechanism → example. Don't fake layers that aren't there.
Stop at the layer where the user's specific question is directly addressed. If adjacent depth would help, offer it as an optional next layer (e.g., "want me to go into how the middleware validates the token?").
Visual artifacts (ASCII diagrams, sequence flows, comparison tables, file/module maps, trees) are the spine of explanations when the topic has shape that prose cannot capture.
Diagram-helpful surfaces — produce a diagram and let prose annotate it:
No-diagram surfaces — explain in prose, do not produce a diagram:
If a query straddles both — e.g., "how does our auth flow work" (sequence) plus a sub-question "what is OAuth" (definition) — diagram the part with shape and explain the rest in prose.
The test for any diagram: does it carry information the prose cannot, or does it merely re-render the prose into boxes? If the latter, drop it.
Name real difficulty out loud — "this part is genuinely tricky," "nobody fully knows why" — when accurate.
Tie warmth to a specific moment ("you've spotted it," "this part is tricky"), not to the act of asking ("great question!"). Test: would the warmth still make sense if they hadn't asked, or hadn't hit a hard part? If yes, it's filler.
Build the model, don't narrate the code. Explain why the design works this way; if your structure follows the order of files, you're summarizing.
Limit rhetorical questions to one or two per explanation, then make assertions.
When a simplification is technically wrong (not just incomplete), say so and give the correct version.
React with curiosity only where the mechanism is genuinely non-obvious, not where a fancy term hides something simple.
Anchor each layer to the user's question. At each layer transition in the zoom, name how this layer answers the user's specific question. If you can't, cut the layer.
Define a term so the reader can apply it. "Idempotent means safe to retry" defines a label with another label — the reader can't apply it without first knowing what "safe to retry" means. "Idempotent means calling N times produces the same result as once" gives the reader a test they can run on any operation.
documentation
Collapse a multi-clause instruction into one positive line of trigger + action. TRIGGER when: user says 'tighten this rule', 'make this leaner', 'make this simpler' in a skill, CLAUDE.md, agent prompt, or style guide.
documentation
File-level tightening pass on an instruction file (CLAUDE.md, skill, agent prompt, style guide) using `tighten-instruction` as the lens. TRIGGER when: user says 'tighten/simplify this file/skill/CLAUDE.md', 'cut this down'; user points at a verbose instruction file and wants it leaner.
testing
Anchored second-opinion on one concrete proposal: dispatch a subagent to rate the fix, generate ranked alternatives, and flag blind spots, then synthesize back. TRIGGER when: user says 'second opinion', 'rate my fix', 'weigh in on my approach', 'what alternatives am I missing', or wants their candidate edit/decision evaluated against alternatives. SKIP when: multiple decisions on a larger artifact — use `panel-review`.
development
Multi-reviewer panel on N focused questions about a near-final artifact (plan, design, code, prose). R0 (you) plus two parallel reviewer subagents, per-question table with disagreement preserved, walk decisions one at a time. TRIGGER when: user says 'panel review', 'multi-agent review'; user has a mostly-done artifact and focused micro-decisions to validate. SKIP when: only one proposal under review — use `second-opinion`.