From 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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/essentials:explain-diffThe summary Claude sees in its skill listing — used to decide when to auto-load this 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.
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.npx claudepluginhub nicknisi/claude-plugins --plugin essentialsGenerates a rich, interactive HTML explanation of a diff, branch, PR, or uncommitted changes with Background, Intuition, Code walkthrough, and Quiz sections, published as a hosted Claude Code artifact. Use before creating a PR or when deeply understanding a change.
Generate HTML artifacts for code review, PR explanation, and codebase understanding — rendered diffs with inline annotations, severity-coded findings, refactor risk maps, before/after migration views, and subsystem walkthroughs. Use whenever the user wants to review, explain, or understand a PR, refactor, codebase area, or subsystem — especially before merging, when onboarding others to a change, or when the GitHub diff view doesn't show enough context. Default to attaching an HTML explainer to every non-trivial PR.
Visualizes git diffs, branches, commits, PRs, and ranges as interactive HTML reports with architecture diagrams, KPI dashboards, code review cards, and side-by-side comparisons.