skim_patch
Apply edited text to a specific anchored span in a skimmed file, ensuring the file hasn't changed since expansion. Newlines are preserved and a new handle is returned.
Instructions
Replace exactly one anchored span (or literal "L-" range) of a skimmed file on disk.
This is what verbatim-in-context buys: the span you expanded IS what the file contains, so an edit built from it applies safely. Expand the span first, edit that exact text, then patch. The write is refused if the file on disk no longer matches this handle's snapshot (drift -> clean error; re-open and rebuild the patch). Newline style (LF/CRLF) is preserved, the result is re-skimmed and verified, and a fresh handle for the new content is returned. Set SKIM_PATCH_DISABLED=1 to turn this tool off for read-only mounts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchor | Yes | ||
| handle | Yes | ||
| new_text | Yes |