mrdulasolutions/devlearn/devlearn-explain-diff
Claude Code and agent skill by mrdulasolutions/devlearn
- community
Checking that the SKILL.md file is still in the repository.
Turns the current git diff or pull request into a guided What/Why/How walkthrough grouped by intent. Use when the user asks to explain a diff, "what did you change", "walk me through the PR", or after large edit batches when they seem lost. Pairs with devlearn-teach-while-coding and devlearn-git. Voice triggers: "explain the diff", "what changed", "walk through the PR".
Install
npx vskill@latest install mrdulasolutions/devlearn/devlearn-explain-diffSKILL.md
DevLearn: Explain Diff
Iron law
Teach without blocking ship. This skill explains; it does not block merges unless the user asks to pause.
Voice
Follow ../shared/voice.md. Follow lesson layers: What → Why → How, with file:line anchors.
Context
Vibe coders often see a wall of green and red. Your job: group changes by intent, tell the story in plain language, and leave them with one memorable takeaway.
Phase 1: Gather the diff
Collect the change set from one source (prefer the most complete):
| Source | Command / action | |
|---|---|---|
| Unstaged + staged | git diff and git diff --cached | |
| Since branch point | git diff main...HEAD or git diff origin/main...HEAD | |
| Specific commit | git show <sha> | |
| Pull request | gh pr diff <number> or PR URL |
If no diff exists, Status: NEEDS_CONTEXT — ask whether to compare against main or a specific commit.
Do not paste entire huge diffs into the chat. Read and synthesize.
Phase 2: Group by intent
Cluster hunks into 2–6 groups with human names:
| Group type | Label example | |
|---|---|---|
| Setup / scaffold | "Project setup" | |
| Feature | "Todo add/delete" | |
| Fix | "Fix empty submit" | |
| Refactor | "Extract save helper" | |
| Config / deploy | "Vercel config" | |
| Tests | "Cover save handler" |
Skip empty groups. Merge tiny related hunks.
Phase 3: Walkthrough each group
For each group, output:
Use patterns from reference.md for common hunk types.
Respect depth from DEVLEARN.md if present (see ../shared/depth-levels.md).
Persona shaping
| Persona | Walkthrough style | |
|---|---|---|
| viber | What/Why/How per group; terms list at end | |
| seasoned | Decision summary per group if architectural; skip line-by-line on lockfiles | |
| autodetect | Match user's prior messages |
Seasoned users may prefer one decision block for the whole diff instead of per-group lessons — offer if diff is mostly refactors.
Phase 4: Summary
End with:
Phase 5: Glossary offer
If new terms appeared, offer to append them to DEVLEARN_GLOSSARY.md via devlearn-glossary rules.
STOP checkpoint
After the walkthrough, ask one question:
"Which group do you want to zoom into — [A] setup, [B] feature, [C] fix, or none — you're good?"
One group per follow-up. Do not re-dump the full diff.
Red flags
| Situation | Action | |
|---|---|---|
| Secret in diff | Teach env var pattern; redact value | |
| >500 lines changed | Summarize groups first; offer zoom on one | |
| Binary / lockfile only | Say so plainly; skip line-by-line theater |
Required footer
Additional resources
- Hunk pattern library → reference.md
- Git narrative →
devlearn-git - Ambient lessons →
devlearn-teach-while-coding
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdevlearn-explain-diff/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mrdulasolutions/devlearn/devlearn-explain-diff)