Minimal Diff Engine

Use when mutating existing files, data, or documents — edits, fixes, refactors, conversions. Do NOT use when creating a brand-new artifact from scratch, or when

iamkarp Updated

File contents


name: minimal-diff-engine description: Use when mutating existing files, data, or documents — edits, fixes, refactors, conversions. Do NOT use when creating a brand-new artifact from scratch, or when the format/full rewrite IS the explicit task.

minimal-diff-engine

Smallest safe change. Smaller deltas are easier to verify and less likely to cause regressions that trip a verifier.

Rules

  • Patch, do not rewrite.
  • Target, do not sweep — touch only what the task requires.
  • Preserve formatting, ordering, and surrounding content unless changing it is the task.
  • One conceptually atomic change at a time.

Discipline

Before mutation: list the exact files/objects to touch and state why each is necessary.

After mutation: inspect the diff or resulting state; revert any unrelated edit (whitespace, reordering, incidental reformatting). Unrelated changes are a common cause of verifier failure.

iamkarp/agent-os-skill-lift commit 9c2080154c

Frequently asked questions

npx get-skill add iamkarp/minimal-diff-engine