# 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

- Skill: `iamkarp/minimal-diff-engine` (Agent Skill)
- Install (CLI): `npx get-skill add iamkarp/minimal-diff-engine`
- Raw SKILL.md: https://api.skillmd.com/api/skills/iamkarp/minimal-diff-engine/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: iamkarp (https://skillmd.com/u/iamkarp)
- Updated: 2026-12-03
- Page: https://skillmd.com/skills/iamkarp/minimal-diff-engine

---

---
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.

