explain-diff
Skill6 starsChanged 3 months agoMITView on GitHub
Translate a DriftReport JSON into a plain-English markdown narrative suitable for pasting into a PR description, chat thread, or bug report. Read-only template render — no LLM call, no filesystem mutation. Pairs with `doctor` via the `--explain` flag, or runs standalone against any DriftReport produced by `bin/compute-drift.sh` / `bin/retrofit.sh --json` / `bin/doctor.sh --json`. TRIGGER when the user says "explain the drift", "summarize doctor in plain English", "what does this drift report mean", "narrate the drift", "translate the drift report", "human-readable drift", "explain what nyann found", "make doctor output paste-friendly", "give me a drift summary for the PR", "/nyann:explain-diff". Do NOT trigger on "what's drifted" alone — that's `doctor` / `retrofit --report-only` (which produce the raw structured report this skill consumes). Do NOT trigger on "fix the drift" — that's `retrofit`.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- eugenelim/agent-ready-repotheir own version, first seen Oct 3, 2026
- yogan/agent-skillstheir own version, first seen Sep 11, 2026
- claesbackman/AI-research-feedbacktheir own version, first seen Aug 26, 2026
- abdelkareemkobo/kareem-skillstheir own version, first seen Aug 18, 2026
- tyom/skillstheir own version, first seen Aug 13, 2026
- tryonelove/skillstheir own version, first seen Aug 6, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- claesbackman/AI-research-feedback★ 491same name
- Filip-Podstavec/claude-leverage★ 68same name
- eugenelim/agent-ready-repo★ 24same name
- flpbalada/fb-skills★ 8same name
- yogan/agent-skills★ 2same name
- aryankeluskar/skills★ 1same name
- tyom/skills★ 1same name
- abdelkareemkobo/kareem-skills★ 0same name
- OlliTapio/claude_skills★ 0same name
- tryonelove/skills★ 0same name
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 repository41 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-team-sourceSkill
- bootstrap-projectSkill
- check-prereqsSkill
- cleanup-branchesSkill
- commitSkill
- diagnoseSkill
- diff-profileSkill
- doctorSkill
- explain-stateSkill
- fleet-retrofitSkill
- fleetSkill
- gen-ciSkill
- gen-claudemdSkill
- gen-dependency-updaterSkill
- gen-devcontainerSkill
- gen-templatesSkill
- gh-protectSkill
- hotfixSkill
- iac-applySkill
- iac-planSkill
- inspect-profileSkill
- learn-profileSkill
- migrate-profileSkill
- new-branchSkill
- optimize-claudemdSkill
- prSkill
- record-decisionSkill
- releaseSkill
- retrofitSkill
- route-docsSkill
- settingsSkill
- setupSkill
- shipSkill
- suggestSkill
- syncSkill
- sync-team-profilesSkill
- undo-bootstrapSkill
- undoSkill
- wait-for-pr-checksSkill
- watchSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Read-only template render.
- Distinctive: line 96
When the user asks for "the drift in plain English":
- Very specific: line 99
If the user asks for a "one-line summary" instead, count the ## What's drifted bullets — the section count IS the summary number.
- Very specific: line 100
If the user asks "should I worry about Minor items" → no, those are CC-style informational checks.
- Very specific: line 101
If the report is clean (no ## What's drifted section appears), the narrative says so explicitly — don't editorialise.
“Common” is measured: kept by at least 6 in 10 of the 10 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
Read-only template render. Wraps bin/explain-diff.sh.
When to trigger
- User has a DriftReport (from doctor / retrofit / compute-drift) and wants prose.
- User wants to paste a doctor summary into a PR body or chat without sharing raw JSON.
- User explicitly asks for "the drift in plain English".
When NOT to trigger
- User is asking "is this repo healthy" → that's
doctor(which can chain into this via--explain). - User wants to mutate / fix → that's
retrofit. - User wants LLM-polished output → this skill is template-only by design (no LLM). If the user wants prose with more nuance, suggest reading the markdown output and editing by hand.
Invocation
Three call shapes:
1. Direct: file path
bin/explain-diff.sh --file path/to/drift.json2. Pipe from a producer
bin/compute-drift.sh --target . --profile default | bin/explain-diff.sh -3. Via doctor (recommended path)
bin/doctor.sh --target . --profile default --explaindoctor --explain is preferred because it also forwards the computed health score and trend delta into the narrative header line — the same numbers text-mode shows at the foot of its output.
--explain is mutually exclusive with --json on doctor; if both are passed, doctor dies with a clear error.
Output shape
Markdown (default) — three sections:
- Header — target + profile + (optional) health score + trend
- What's drifted — one bullet per drift category, ordered by severity. Each bullet has a lead phrase (
Action required:,Worth fixing:,Drifted:,Minor:) and up to 5 concrete items. If a category has more than 5 items, an "...and N more" line appears. - What you can do — ordered action items that map to nyann skills (
nyann:retrofit,nyann:optimize-claudemd, etc.)
JSON (--format json) — the DriftNarrative shape (schemas/drift-narrative.schema.json). Useful for chat-bot integrations or custom renderers that want the same source-of-truth without re-parsing the prose.
Severity → lead-phrase mapping
| Severity | Lead | Sources |
| critical | "Action required:" | missing[], broken links, claude_md=error |
| high | "Worth fixing:" | misconfigured[], claude_md=warn / absent, subsystem errors |
| medium | "Drifted:" | orphans, staleness, misplaced[] |
| low | "Minor:" | non-compliant history (informational; nyann doesn't rewrite history) |
| info | (suppressed in markdown) | reserved for downstream filtering via the JSON shape |
The mapping is intentionally fixed (no profile-level override) so a narrative pasted into a PR reads the same regardless of which profile produced the underlying report.
Reading the output back to the user
When the user asks for "the drift in plain English":
- Print the markdown block as-is. It's already formatted for human consumption.
- If the user asks for a "one-line summary" instead, count the
## What's driftedbullets — the section count IS the summary number. E.g. "3 categories drifted: hooks (critical), claude_md (high), history (informational)." - If the user asks "should I worry about Minor items" → no, those are CC-style informational checks; nyann doesn't rewrite history.
- If the report is clean (no
## What's driftedsection appears), the narrative says so explicitly — don't editorialise.
Limits
- Template-only. No LLM smoothing — accept slightly mechanical phrasing as the cost of offline-safe rendering.
- Per-section items capped at 5 in the markdown output; the full list is in the JSON shape if a consumer needs it.
- Health score / trend are optional — if the caller doesn't supply them, the score line is suppressed (not faked to zero).
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.

