Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By malav2110v2.1.0MIT
Turns a pull request, branch or commit range into a self-contained HTML page that explains what changed and why. Needs gh authenticated for pull requests and Node 22.18+ for its build-time validator; Windows needs WSL or Git Bash.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
An agent skill that turns a code change into one self-contained HTML page that
teaches a reader what changed and why. It runs in Claude Code, Codex, Cursor,
and every other agent the skills installer reaches.

Demo generated by the brag skill.
This started from Geoffrey Litt's explain-diff gist,
which set out the four-section structure, the quiz, the self-contained HTML
output, and the skill's name. This version adds flow-ordered walkthroughs,
verified file:line anchors at the target ref, Mermaid diagrams with
validation, a provenance line, and a set of checks built from specific
failures.
This version also adapts work from Cat Hicks' learning-opportunities skill: three of the quiz question shapes, and the rule that difficulty belongs in the stem rather than in near-identical options. That skill is CC-BY-4.0.
It was written as a Claude Code skill, and SKILL.md keeps that format. Other
agents read the same format now, so npx skills add installs it elsewhere
without changing the file.
AI is helping us write code faster than ever.
That's great, but there's also a side effect: we're generating more code, reviewing bigger changes, and sometimes understanding less of what actually happened.
You open a PR and suddenly there are hundreds, maybe thousands, of changed lines across a bunch of files.
Git shows you the diff file by file.
controller.ts
service.ts
utils.ts
tests...
But that's usually not how the change actually works.
So where do you start?
Which file matters first? What calls what? Why was the change needed? How does the data move through the system?
And that's where PR reviews can start becoming difficult.
For me, PRs have always been one of the best ways to learn a codebase. You look at someone else's changes, follow the flow, understand why they made certain decisions, and slowly build a better mental model of the system.
As AI generates more of the implementation and PRs keep getting larger, I didn't want to lose that learning opportunity.
That's where explain-diff-html came from.
Instead of explaining a change in the order Git happens to show the files, it tries to follow the logical flow of the code.
So instead of:
file A → file B → file C
it might explain it as:
request → handler → service → transformation → result
It looks at the diff, the surrounding code, callers, related definitions, commits, and documentation, then turns all of that into a walkthrough that tries to answer a simple question:
"If I actually want to understand this PR, where should I start and how does everything connect?"
And it's not limited to PRs.
Hand it a bug investigation or an RCA alongside the diff, and it connects the reported failure to the fix.
Where it helps, below, covers that and the other uses.
The goal isn't just to tell you what changed.
The goal is to help make PR reviews, debugging, and code investigation a learning opportunity again.
Point it at a pull request, a branch, or a commit range. It reads the diff, then the code around it, and writes a single page with four sections:
The output is one HTML file with the CSS and JavaScript inline. It opens with a double click, reads on a phone, and follows the reader's light or dark system theme. Nothing needs a server, a build step, or a network round trip, apart from Mermaid.
Mermaid is the diagramming library these pages use for state, entity-relationship, sequence, and flow diagrams. A page carrying one of those loads Mermaid from a CDN, so it needs network for those diagrams to draw. Everything else on the page, including the hand-built diagrams and the quiz, works offline.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (malav2110/explain-diff-html) — no native marketplace selected
npx claudepluginhub p/malav2110-explain-diff-htmlPlugins from other owners that cover similar ground