Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Applies multi-file or hard-to-match edits atomically as unified diffs using git apply, after a dry-run check.
45% 50%+5 ptsof test cases passed
Passed 11 of 22 test cases with the skill, and 10 of 22 without it.
3 of 3 safety checks passed
Not used yet
The built-in edit_file does an exact string match on a single file and has no fuzzy
tolerance. For multi-file changes, or when edit_file keeps failing to find the string,
construct a unified diff and apply it atomically with git.
Write the unified diff to a file in the sandbox (use write_file or a heredoc via execute):
diff --git a/path/to/file b/path/to/file
--- a/path/to/file
+++ b/path/to/file
@@ -10,7 +10,7 @@ context line
-old line
+new line
Validate before applying: git apply --check changes.patch
Apply: git apply changes.patch (use -p0 if paths are not a/...b/...).
If git apply rejects the hunk, the surrounding context is stale — read_file the exact
lines again, regenerate the diff with correct context, and retry.
edit_file exact-match struggles.git diff).Always run the verify-changes skill afterwards.
Next to this one in the catalogue, plus more from the same author.