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 Updated 21 repo stars

File contents

weikinhuang/dotfiles commit fcd057a806

Frequently asked questions

npx get-skill add weikinhuang/apply-patch-format