explain-diff

explain-diff is a skill for Claude Code from thettwe/nyann. It costs 228 tokens per session (1,310 once invoked), scanned A, original, MIT.

A read-only converter that turns a DriftReport JSON file—a report about differences from a project baseline—into plain-English Markdown.

In plain words
What is it for?
It helps describe reports from repository checks, including health scores and trend changes, in text that others can read and paste.
Why use it?
It removes the need to interpret raw JSON when explaining repository drift in a pull request, chat, or bug report.

Skill for Claude Code

Written for Claude Code: arguments in frontmatter.

Part of the nyann plugin — 41 skills, 41 commands, 3 hooks shipped together

Good fit It helps describe reports from repository checks, including health scores and trend changes, in text that others can read and paste.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thettwe/nyann/explain-diff
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thettwe/nyann --skill explain-diff
Clone the repo
git clone --depth 1 https://github.com/thettwe/nyann

Made for: Claude Code.

Or install nyann, the plugin that ships this one along with the rest of its 41 skills, 41 commands, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for explain-diff

README.md
[![agentmods](https://agentmods.dev/badge/skills/thettwe/nyann/explain-diff/github.svg)](https://agentmods.dev/skills/thettwe/nyann/explain-diff)
Your own site
<a href="https://agentmods.dev/skills/thettwe/nyann/explain-diff"><img src="https://agentmods.dev/badge/skills/thettwe/nyann/explain-diff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for explain-diff

Your own site · 80×15
<a href="https://agentmods.dev/skills/thettwe/nyann/explain-diff"><img src="https://agentmods.dev/badge/skills/thettwe/nyann/explain-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 228 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,310 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00228 $0.01310
Opus 5.5 $0.00091 $0.00524
Sonnet 5.5 $0.00046 $0.00262
Haiku 4.5 $0.00023 $0.00131

Measured 3mo ago against content hash 3393e8f98b7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

explain-diff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/explain-diff/SKILL.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.json

2. 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 --explain

doctor --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:

  1. Header — target + profile + (optional) health score + trend
  2. 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.
  3. 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.

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 108 lines · 228 tokens per session scan A 3393e8f98b7f

Subscribe to this mod's changes

explain-diff is a skill published in the GitHub repository thettwe/nyann (7 stars, last pushed 23d ago), licensed MIT. It adds 228 tokens to every session and 1,310 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

explain-diff compared with skills from other repositories

explain-diff next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
explain-diffthettwe/nyannSkill723d agoMITA228Claude Code
daily-workingtms-tungnguyen3/daily_workingSkill52mo agoMITA98Claude Code
chief-strategy-officercbrock84/headcountSkill2.6ktodayMITA93Claude Code
paid-advertisingcbrock84/headcountSkill2.6ktodayMITA78Claude Code
interface-craftcbrock84/headcountSkill2.6ktodayMITA79Claude Code
vendor-managementcbrock84/headcountSkill2.6ktodayMITA69Claude Code
sxonowork-studio/notfair-pluginSkill4.3k14d agoMITA211Claude Code