Surgical Patch

Drift-safe editor for a hot, shared, possibly-remote file (e.g. prod main.py that's AHEAD of your local checkout). Applies a data-driven list of exact-match edits with three guarantees — idempotent (sentinel no-op), exact (every anchor must match a precise count or it aborts writing nothing), and reversible (timestamped backup + verify-or-rollback). Works locally or over ssh. Use when Ian says "patch the live file", "surgically edit main.py", "apply this change to prod without clobbering", "the server file is ahead of mine", or before any edit to a shared file multiple lanes touch.

iansteitz1-eng aa7d1b6 8 files · 18.6 KB Updated

File contents

iansteitz1-eng/aria-skills/tree/main/surgical-patch commit aa7d1b6e7d

Frequently asked questions

npx skillmds@latest add iansteitz1-eng/surgical-patch