minimal-diff-builder

minimal-diff-builder is a skill for Claude Code, Codex from markoblogo/abvx-agent-skills. It costs 66 tokens per session (736 once invoked), scanned A, original, MIT.

A guide for making the smallest code change that correctly solves a well-defined task. It favors existing code, platform features, and standard-library tools before adding new layers or dependencies.

In plain words
What is it for?
Use it for small patches, dependency-sensitive work, and local fixes where a short, reviewable diff is appropriate.
Why use it?
It limits overengineering, broad refactors, unnecessary packages, and speculative abstractions that make a change harder to review and maintain.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/markoblogo/abvx-agent-skills/minimal-diff-builder
Any agent
npx skills add markoblogo/abvx-agent-skills --skill minimal-diff-builder
Clone the repo
git clone --depth 1 https://github.com/markoblogo/abvx-agent-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-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/minimal-diff-builder.svg)](https://agentmods.dev/skills/markoblogo/abvx-agent-skills/minimal-diff-builder)
Your own site
<a href="https://agentmods.dev/skills/markoblogo/abvx-agent-skills/minimal-diff-builder"><img src="https://agentmods.dev/badge/skills/markoblogo/abvx-agent-skills/minimal-diff-builder.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 736 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00066 $0.00736
Opus 5 $0.00033 $0.00368
Sonnet 5 $0.00013 $0.00147
Haiku 4.5 $0.00007 $0.00074

Measured 5d ago against content hash 4fbdf028a18e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

minimal-diff-builder 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 5d 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-builder/SKILL.md · 89 lines

How it starts

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

Minimal Diff Builder

Default to the smallest correct change, not the most expandable design.

Use When

  • the user asks for the simplest implementation, shortest path, or least code;
  • the task is local and well scoped;
  • dependency avoidance matters;
  • the repo already risks overbuilding or abstraction creep.

Pair With

  • Use delivery-preflight-gate first when the task is long, autonomous, or the repo baseline may already be broken.
  • Use test-driven-execution alongside this skill when the main risk is behavior drift rather than overbuilding.
  • Use overengineering-review after implementation when the user wants a separate simplification pass on the resulting diff.

Ladder

Stop at the first rung that fully solves the task:

  1. Does this need to exist at all, or can the requirement be narrowed?
  2. Does the standard library already solve it?
  3. Does the native platform already solve it?
  4. Does an existing repo dependency already solve it?
  5. Can the solution stay as a tiny local change?
  6. Only then write new custom code, still at the smallest useful scope.

Core Rules

  • Prefer deletion, inlining, and reuse over new layers.
  • Do not add a dependency for a small utility problem unless the user explicitly wants it.
  • Do not introduce interfaces, factories, configs, or extension points without a real second use.
  • Prefer one-file or one-surface changes when they remain readable.
  • Preserve existing repo patterns when they are already simple enough.
  • If two options are similarly small, pick the more edge-case-correct one.

Hard Exceptions

Do not simplify away:

  • trust-boundary validation;
  • error handling that prevents data loss;
  • security-sensitive checks or secret handling;
  • accessibility basics on user-facing surfaces;
  • anything the user explicitly asked to retain.

Workflow

  1. Restate the narrow task in one sentence.
  2. Check the ladder from top to bottom before writing code.
  3. Choose the smallest implementation that fully meets the task.
  4. Keep the diff local:
    • avoid broad renames or structural churn;
    • avoid adding files unless they clearly improve correctness or verification;
    • avoid speculative "future-proofing".
  5. If you intentionally leave out a heavier design, say what was skipped and the threshold that would justify adding it later.
  6. For non-trivial logic, leave behind one small runnable check:
    • one focused test, or
    • one assert-based demo/self-check if that fits the repo better.
  7. Run the narrowest meaningful verification first, then broader relevant checks.

Read the full file on GitHub · 89 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 89 lines · 66 tokens per session scan A 4fbdf028a18e

Subscribe to this mod's changes

minimal-diff-builder is a skill published in the GitHub repository markoblogo/abvx-agent-skills (15 stars, last pushed 11d ago), licensed MIT. It adds 66 tokens to every session and 736 once invoked, about $0.0003 per session on Opus 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

weave

Parallel strand orchestration — decompose a task into 3+ independently scoped strands, fan out real subagents (worktree-isolated when they write files), and coordinate through a session file and Insight Capsules. Use ONLY when the user explicitly invokes it by name or slash command.

entropyvortex/meta-llm-charter · 59 tokens

coding-agents-farm

To orchestrate parallel coding-agent farms (Claude, Codex, Copilot, Gemini, etc.) on isolated git worktrees.

griddynamics/rosetta · 32 tokens

mcp-media-inbox-triage

Find media, partnership, and high-intent requests buried in a shared Gmail inbox, summarize the useful ones, and route them to the right owner through Zapier MCP.

zapier/gtm-cheat-codes · 43 tokens

customer-deck-builder

Build tailored customer-facing sales or customer success decks from approved account context and generate the presentation with Gamma through Zapier MCP.

zapier/gtm-cheat-codes · 29 tokens

premortem

First-principles premortem on a high-stakes plan: assume failure 6–18 months out, reconstruct causal death chains, surface hidden assumptions, deliver a revised reversibility-weighted plan. Use ONLY when the user explicitly invokes it by name or slash command.

entropyvortex/meta-llm-charter · 59 tokens

bcc-plan-spar

BCC align+lock+review PLAN.md for one slice (no product code). Slash: /bcc-plan-spar · chat: bcc:plan-spar · "lock PLAN" · spar the plan. Args: rounds=N (auto-review cap), review=self|subagent|cli|auto|off. Grill until clear enough (no default Q&A quota). Hand off to bcc-clean-cut after human APPROVE.

bo-cao/breaking-coding-chaos · 91 tokens