/essentials:explain-difffrom essentials
Creates a rich, self-contained HTML explainer for diffs, PRs, branches, or commits with background, intuition diagrams, a code walkthrough, and an interactive quiz.
Ships in essentials. 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.
None: SKILL.md is the whole skill.
Create a rich, interactive HTML explanation of a code change. The reader may be a teammate encountering the codebase for the first time or the author checking their own understanding — the document should serve both.
Pin down exactly what to explain before writing anything:
gh pr diff <number> for the diff, gh pr view <number> for the title, description, and discussiongit diff <base>...<branch> against the repo's default branchgit show <sha>git diff HEAD); if clean, the current branch against the default branchThen explore beyond the diff: read the touched files in full, their callers, and the subsystem they belong to. The Background section lives or dies on your understanding of the surrounding system, not just the delta.
The explanation has four sections, in this order:
Background — Explain the existing system this change slots into. The reader's familiarity is unknown, so layer it: a deep background for beginners (marked as skippable for readers who already know the system), then a narrower background directly relevant to the change.
Intuition — Explain the core idea of the change: what problem existed, what insight the change embodies, why this approach. Focus on the essence, not the full details. Use concrete examples with toy data, and use figures and diagrams liberally.
Code — A high-level walkthrough of the changes. Group and order them for understanding — by concept or data flow — not by file order in the diff.
Quiz — Five interactive multiple-choice questions testing whether the reader understood the substance. Medium difficulty: answerable only by someone who actually understood the change, but no gotchas. On click, reveal whether the answer was correct with a short explanation either way — the feedback is where the learning happens.
Produce a single self-contained HTML file:
/tmp/YYYY-MM-DD-explanation-<slug>.html.open <path> on macOS) and tell the user the path.Write with the clarity and flow of Martin Kleppmann — engaging, classic style, with smooth transitions between sections. Use callouts for key concepts, definitions, and important edge cases.
<pre> tags for code blocks. If a custom-styled div is used instead, its CSS must include white-space: pre or pre-wrap, or the browser will collapse every newline into a single line. Before saving the file, scan each code block in the HTML source and confirm its whitespace handling.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
diff-explainer, code-review, learning, documentation, pr-review
6 skills in this plugin
/handoffCompact the current conversation into a handoff document for another agent to pick up. Use when the user says "hand this off", "wrap up", "save context", "continue later", "pass this to another session", "I need to stop here", "pick this up later", or when a session is ending with unfinished work. Also use when context is getting long and the user wants to start fresh without losing progress./prototypeBuild a throwaway prototype to answer a design question before committing to real implementation. Generates either a runnable terminal app (for state machines, data models, business logic) or several radically different UI variations on one route (for visual/layout decisions). Use when the user wants to prototype, spike, POC, sanity-check a data model, mock up a UI, explore design options, or says "prototype this", "spike this out", "let me play with it", "try a few designs", "sketch this in code", "I want to try something before building it for real", "quick and dirty version", or "validate this approach" — even if they don't use the word "prototype."/socratic-tutorSocratic tutor that drills the user until they deeply understand a change — the problem, the solution, the design decisions, the edge cases, and what it impacts. Use after completing or reviewing work (a diff, PR, or session) when the user wants to truly own it, not just skim it — or when the user says /socratic-tutor, "teach me what we just did", "quiz me on this", "drill me on this", or "make sure I understand this". Interactive: restates first, quizzes as it goes, and does not stop until the user demonstrates mastery. For a written explainer to read or share instead of a live quiz, use explain-diff./squad-reviewReview the current branch with six specialist lenses (security, correctness, conventions, tests, architecture, duplication), then put every finding through an adversarial verifier that tries to refute it — so what reaches you has already survived a skeptic. Use when the user asks for a thorough, deep, or paranoid review, a review before merging or shipping, a "real" review, or wants to know what a review would catch that a quick pass misses. Costs 12 agents; for a fast single-pass read, use the built-in code-review skill instead./thermo-nuclear-code-quality-reviewRun an extremely strict maintainability review for abstraction quality, giant files, and spaghetti-condition growth. Use when the user explicitly asks for a thermo-nuclear review, thermonuclear review, deep code quality audit, or an especially harsh maintainability review. Not for ordinary review requests — those belong to the built-in code-review skill. This file is also the canonical rubric loaded by the thermo-nuclear-code-quality-review agent.npx claudepluginhub nicknisi/claude-plugins --plugin essentialsOther plugins' skills for the same job