minimal-diff-builder
Skill16 starsChanged 5 months agoMITView on GitHub
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.
In this repository94 other files it gives its agents.
- agent-friction-ledgerSkill
- agent-learning-layer-triageSkill
- agent-operations-contractSkill
- agents-best-practicesSkill
- agent-tool-contract-reviewSkill
- anti-slop-reviewSkill
- architecture-deepening-reviewSkill
- assumption-excavationSkill
- authorized-security-routerSkill
- book-to-skillSkill
- bounded-evaluationSkill
- bounded-growth-loopSkill
- bounded-orchestration-contractSkill
- brief-first-executionSkill
- browser-verificationSkill
- bug-evidence-protocolSkill
- codex-review-loopSkill
- compaction-survivalSkill
- complexity-optimizerSkill
- confidence-fragility-reviewSkill
- context-degradation-reviewSkill
- corporate-surfaceSkill
- delivery-baseline-auditSkill
- delivery-preflight-gateSkill
- design-critique-polishSkill
- designmd-brand-kitSkill
- design-register-bootstrapSkill
- diagnoseSkill
- doc-grounded-grillingSkill
- doc-to-lora-evaluatorSkill
- durable-context-maintenanceSkill
- dynamic-workflow-packetsSkill
- editorial-surfaceSkill
- evidence-ledger-researchSkill
- filesystem-context-disciplineSkill
- fluid-interaction-reviewSkill
- frontend-product-builderSkill
- frontend-taste-layerSkill
- git-native-context-contractSkill
- goal-loop-designerSkill
- graph-guided-code-readingSkill
- handoffSkill
- happy-handoffSkill
- html-brief-artifactSkill
- html-diagram-artifactSkill
- hypothesis-diversificationSkill
- idea-to-ship-gatesSkill
- knowledge-base-enrichmentSkill
- lean-context-layoutSkill
- local-inference-tuningSkill
- loop-hardening-contractSkill
- loopops-protocolSkill
- loop-readiness-reviewSkill
- lottie-motion-builderSkill
- motion-review-gateSkill
- overengineering-reviewSkill
- personal-workspace-routerSkill
- phase-spec-executionSkill
- pipeline-readiness-gateSkill
- plan-to-issuesSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 15 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Default to the smallest correct change, not the most expandable design.
- Very specific: line 24
Use delivery-preflight-gate first when the task is long, autonomous, or the repo baseline may already be broken.
- Very specific: line 25
Use test-driven-execution alongside this skill when the main risk is behavior drift rather than overbuilding.
- Very specific: line 26
Use overengineering-review after implementation when the user wants a separate simplification pass on the resulting diff.
- Distinctive: line 30
Stop at the first rung that fully solves the task:
- Distinctive: line 37
Only then write new custom code, still at the smallest useful scope.
- Distinctive: line 41
Prefer deletion, inlining, and reuse over new layers.
- Distinctive: line 42
Do not add a dependency for a small utility problem unless the user explicitly wants it.
- Distinctive: line 43
Do not introduce interfaces, factories, configs, or extension points without a real second use.
- Distinctive: line 44
Prefer one-file or one-surface changes when they remain readable.
- Distinctive: line 46
If two options are similarly small, pick the more edge-case-correct one.
- Distinctive: line 50
Do not simplify away:
- Distinctive: line 61
Check the ladder from top to bottom before writing code.
- Distinctive: line 63
Keep the diff local:
- Distinctive: line 64
avoid broad renames or structural churn.
- Distinctive: line 65
avoid adding files unless they clearly improve correctness or verification.
- Distinctive: line 67
If you intentionally leave out a heavier design, say what was skipped and the threshold that would justify adding it later.
- Distinctive: line 71
Run the narrowest meaningful verification first, then broader relevant checks.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
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.

