Apply Patch Format

When to reach for the `apply_patch` tool over `edit` / `write`, plus the strict Codex patch shape (`*** Begin Patch ... *** End Patch` envelope with `@@` hunks). Use for multi-file refactors, rename + edit combos, large diffs against one file, or any task where the model would otherwise stack many `edit` calls in a row. Do not use for single-line targeted edits, binary content, hand-written patches from memory, or hunks without unique surrounding context.

weikinhuang fcd057a 8.2 KB Updated

File contents

weikinhuang/dotfiles/tree/main/config/pi/skills/apply-patch-format commit fcd057a806

Frequently asked questions

npx skillmds@latest add weikinhuang/apply-patch-format