explain-diff
Skill1 starsChanged 4 months agoMITView on GitHub
Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.
16 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- eugenelim/agent-ready-repotheir own version, first seen Nov 8, 2026
- jorgenschaefer/skillstheir own version, first seen Nov 1, 2026
- lucaslimafons/skillstheir own version, first seen Nov 1, 2026
- OlliTapio/claude_skillstheir own version, first seen Oct 26, 2026
- SwiftyJunnos/skillstheir own version, first seen Oct 20, 2026
- rhvdbergh/claude-skillstheir own version, first seen Oct 16, 2026
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- arturlimaaa/skills★ 1100% same
- aadityad12/claude-skills★ 016% same
Wrote their own version · 14
- claesbackman/AI-research-feedback★ 523same name
- eugenelim/agent-ready-repo★ 28same name
- CheckPickerUpper/skills★ 9same name
- flpbalada/fb-skills★ 8same name
- yogan/agent-skills★ 2same name
- lucaslimafons/skills★ 1same name
- SwiftyJunnos/skills★ 1same name
- tyom/skills★ 1same name
- abdelkareemkobo/kareem-skills★ 0same name
- jorgenschaefer/skills★ 0same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- add-umami-analyticsSkill
- amazon-writingSkill
- brand-namingSkill
- creativity-rejectionismSkill
- explain-diff-notionSkill
- explain-notionSkill
- explainSkill
- fetch-paperSkill
- ml-paper-writingSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Don't use ASCII diagrams. Always use simple HTML designs for your diagrams, HTML lists for lists of things, etc.
- Very specific: line 27
Before saving the file, scan each code block in the HTML source and confirm its CSS includes white-space: pre or pre-wrap.
- Distinctive: line 29
Use callouts for key concepts or definitions, important edge cases, etc.
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Explain Diff
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
- Background: Explain the existing system relevant to this change. (You should broadly explore surrounding code for this.) We don't know how much the reader already knows, so include a deep background for beginners (note that it can be skipped if the reader is already familiar), and then a more narrow background directly relevant to the change.
- Intuition: Explain the core intuition for the code change. The focus here is to explain the essence, not the full details. Use concrete examples with toy data. Use figures and diagrams liberally.
- Code: Do a high-level walkthrough of the changes to the code. Group/order the changes in an understandable way.
- Quiz: Come up with five questions that test the reader's knowledge of this PR. This should be medium difficulty, difficult enough that you actually need to understand the substance of the PR to answer them, but not gotchas. The goal is to help the reader make sure that they've actually understood. These should be presented as interactive multiple-choice questions, and when the user clicks, it tells them whether they were correct and gives feedback.
Format:
- Output a single self-contained HTML file which includes CSS and JavaScript. Make the whole thing one long page with section headers and a table of contents. Don't use tabs for the top-level structure. Basic responsive styling so you can view it on a phone is nice too. Put the file in a global place on my computer outside of the code repo, and make sure the filename always starts with today's date in
YYYY-MM-DD-format, because it helps keep the files time-sorted and out of version control. For example: /tmp/2026-01-12-explanation-<slug>.html - Please write with the clarity and flow of Martin Kleppmann, making it engaging and written in classic style. Transitions between sections should be smooth.
- Some tips on diagrams. Ideally, you should pick a small number of diagram families that can be reused throughout the explanation to explain various cases. Some useful kinds of diagrams:
- A very simplified version of the UI that the user sees in the app, to explain UI changes.
- A system diagram showing data flow or communication between components. Make sure to include example data here!
- Don't use ASCII diagrams. Always use simple HTML designs for your diagrams, HTML lists for lists of things, etc.
- For code blocks, always use
<pre>tags. If you use a custom styled div instead, it must havewhite-space: pre-wrapin its CSS, or the browser will collapse all newlines into a single line. Before saving the file, scan each code block in the HTML source and confirm its CSS includeswhite-space: preorpre-wrap.
- For code blocks, always use
- Use callouts for key concepts or definitions, important edge cases, etc.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

