Minimal diff builder
Skill markoblogo/abvx-agent-skills/skills/minimal-diff-builder
Build the smallest correct code diff without overengineering, broad refactors, unnecessary dependencies, or speculative abstractions. Use when the user wants a minimal patch, small reviewable diff, stdlib-first implementation, or shortest-path fix that still preserves security, accessibility, trust-boundary validation, and data safety.From its SKILL.md
npx -y skills add markoblogo/abvx-agent-skills --skill minimal-diff-builderAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
3.5 KB, 640 tokens by cl100k_base, as published. Nobody here has run it
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-gatefirst when the task is long, autonomous, or the repo baseline may already be broken. - Use
test-driven-executionalongside this skill when the main risk is behavior drift rather than overbuilding. - Use
overengineering-reviewafter implementation when the user wants a separate simplification pass on the resulting diff.
Ladder
Stop at the first rung that fully solves the task:
- Does this need to exist at all, or can the requirement be narrowed?
- Does the standard library already solve it?
- Does the native platform already solve it?
- Does an existing repo dependency already solve it?
- Can the solution stay as a tiny local change?
- 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
- Restate the narrow task in one sentence.
- Check the ladder from top to bottom before writing code.
- Choose the smallest implementation that fully meets the task.
- Keep the diff local:
- avoid broad renames or structural churn;
- avoid adding files unless they clearly improve correctness or verification;
- avoid speculative "future-proofing".
- If you intentionally leave out a heavier design, say what was skipped and the threshold that would justify adding it later.
- 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.
- Run the narrowest meaningful verification first, then broader relevant checks.
Anti-Patterns
- building a reusable framework for a one-off task;
- adding configuration for a value that does not vary;
- wrapping stdlib or platform behavior in a thin custom abstraction;
- adding a new helper file when a local function would do;
- inflating the explanation after keeping the code small.
Final Report
Include:
- what path on the ladder was used;
- what heavier options were intentionally skipped;
- verification run;
- residual threshold for when a bigger design would become justified.
What ships with it: 2 files
2.5 KB alongside SKILL.md
agents/
- openai.yaml251 B
- SKILL_CARD.md2.2 KB