minimal-diff

minimal-diff is a skill for Claude Code, Codex from benjaminard/fable-skills. It costs 59 tokens per session (592 once invoked), scanned A, original, MIT.

A rule for keeping code changes limited to the requested fix or feature.

In plain words
What is it for?
Use it whenever editing code to avoid unrequested refactoring, extra options, abstractions, cleanup, or hypothetical compatibility work.
Why use it?
Smaller, focused changes are easier to review, test, and safely merge, with less chance of unrelated problems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it whenever editing code to avoid unrequested refactoring, extra options, abstractions, cleanup, or hypothetical compatibility work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benjaminard/fable-skills/minimal-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 benjaminard/fable-skills --skill minimal-diff
Clone the repo
git clone --depth 1 https://github.com/benjaminard/fable-skills

Made for: Claude Code, Codex.

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 minimal-diff

README.md
[![agentmods](https://agentmods.dev/badge/skills/benjaminard/fable-skills/minimal-diff/github.svg)](https://agentmods.dev/skills/benjaminard/fable-skills/minimal-diff)
Your own site
<a href="https://agentmods.dev/skills/benjaminard/fable-skills/minimal-diff"><img src="https://agentmods.dev/badge/skills/benjaminard/fable-skills/minimal-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 minimal-diff

Your own site · 80×15
<a href="https://agentmods.dev/skills/benjaminard/fable-skills/minimal-diff"><img src="https://agentmods.dev/badge/skills/benjaminard/fable-skills/minimal-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 592 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.00059 $0.00592
Opus 5.5 $0.00024 $0.00237
Sonnet 5.5 $0.00012 $0.00118
Haiku 4.5 $0.00006 $0.00059

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

Security

Grade A, and why

minimal-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 1mo 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/minimal-diff/SKILL.md · 30 lines

How it starts

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

Minimal Diff

Do the simplest thing that works well, and only the thing that was asked. The size of your diff should be proportional to the size of the request.

The rules

  1. No unrequested work. Do not add features, refactor, or introduce abstractions beyond what the task requires. A bug fix does not need surrounding cleanup. A one-shot operation does not need a helper function. If you notice something worth fixing nearby, mention it in your summary; do not fix it in the same change.
  2. No hypothetical futures. Do not design for requirements that do not exist yet. Avoid premature abstraction and half-finished generalization. The second use case, when it arrives, will tell you what the abstraction should be; guessed abstractions are usually wrong.
  3. No impossible-scenario handling. Do not add error handling, fallbacks, or validation for situations that cannot happen. Trust internal code and framework guarantees. Validate at system boundaries (user input, external APIs) and nowhere else.
  4. Change the code, not around it. Do not add feature flags, compatibility shims, wrapper layers, or "v2" copies when you can simply change the code. Dead paths and parallel versions are debt from the moment they land.
  5. Match the surroundings. Write code that reads like the file it lives in: same naming, same idiom, same comment density. A correct change in a foreign style is still a costly change.
  6. Comments state constraints, not narration. Only write a comment for something the code cannot show, like an external constraint or a non-obvious invariant. Never comment what the next line does, where the code came from, or why your change is correct. That last kind is you talking to a reviewer, and it is noise the moment the change merges.

The pre-submit check

Before finishing, read your own diff hunk by hunk and ask of each one: does the task fail without this?

  • If yes, keep it.
  • If no, but it fixes something real and separate: revert it, and note the finding in your summary as a suggested follow-up.
  • If no, and it is stylistic: revert it without comment.

Read the full file on GitHub · 30 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. 1mo ago First seen · 30 lines · 0 tokens per session scan A c0439ea39aeb

Subscribe to this mod's changes

minimal-diff is a skill published in the GitHub repository benjaminard/fable-skills (34 stars, last pushed 3mo ago), licensed MIT. It adds 59 tokens to every session and 592 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

alterlab-qiime2-amplicon

Runs 16S/ITS amplicon (microbiome) analysis with the QIIME 2 distribution (2026.7; the "amplicon" distribution was renamed "qiime2" in 2026.4) in the correct order: manifest import, cutadapt trim-paired primer removal BEFORE dada2 denoise-paired (trunc-len chosen from the demux quality .qzv), feature-classifier…

AlterLab-IEU/AlterLab-Academic-Skills · 270 tokens

alterlab-paper-writer

Drafts and revises academic papers through a 12-agent pipeline with hardened LaTeX output (apa7 class, PDF compiled from LaTeX), supporting IMRaD, literature review, theoretical, case study, policy brief, and conference paper structures, APA 7.0 (default), Chicago, MLA, IEEE, and Vancouver citation formats, bilingual…

AlterLab-IEU/AlterLab-Academic-Skills · 271 tokens

alterlab-imaging-data-commons

Query and download public cancer imaging data from the NCI Imaging Data Commons (IDC) using the idc-index Python package, filtering by metadata, visualizing in-browser, and checking licenses, with no authentication required. Use when obtaining large-scale radiology (CT, MR, PET) or digital pathology DICOM datasets for…

AlterLab-IEU/AlterLab-Academic-Skills · 90 tokens

alterlab-phylogenetics

Build phylogenetic trees end-to-end from raw sequences — MAFFT multiple sequence alignment, optional TrimAl trimming, IQ-TREE 3 maximum-likelihood inference with model selection and bootstraps, FastTree for large datasets, then visualize with ETE3 or FigTree. Use when reconstructing trees from sequences (FASTA) for…

AlterLab-IEU/AlterLab-Academic-Skills · 152 tokens

alterlab-molecular-dynamics

Runs and analyzes molecular dynamics simulations with OpenMM and MDAnalysis — setting up protein and small-molecule systems, assigning force fields, running energy minimization and production MD, and analyzing trajectories (RMSD, RMSF, contact maps, free energy surfaces). Use when simulating protein or ligand…

AlterLab-IEU/AlterLab-Academic-Skills · 98 tokens

alterlab-pyhealth

Develops, tests, and validates clinical machine learning models with the PyHealth 2.x healthcare AI toolkit. Use when working with electronic health records (EHR), clinical prediction tasks (mortality, readmission, length of stay, drug recommendation), medical coding systems (ICD, NDC, ATC, CCS), physiological signals…

AlterLab-IEU/AlterLab-Academic-Skills · 132 tokens