Install any skill in seconds. Free to start, no credit card required.
Get Started Free →openakita/edit-file
Edit file by exact string replacement. Finds old_string and replaces with new_string. Safer and more token-efficient than write_file for modifying existing files. Auto-handles Windows CRLF line endings.
Passed 16 of 19 test cases with the skill, and 15 of 19 without it.
2 fixed17 passed either way3 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
Before performing a string replacement edit on an unfamiliar file src/server.js, what preliminary step should be taken first?
| Checked | Without skill | With skill |
|---|---|---|
| Recommends using read_file to verify file contents first | Missed | Passed |
The instructions your model reads when the skill loads.
精确字符串替换式编辑文件。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| path | string | 是 | 文件路径 |
| old_string | string | 是 | 要替换的原文本(须精确匹配) |
| new_string | string | 是 | 替换后的新文本 |
| replace_all | boolean | 否 | 是否替换所有匹配项(默认 false) |
修改函数名:
{
"path": "src/main.py",
"old_string": "def old_name():",
"new_string": "def new_name():"
}
批量替换变量名:
{
"path": "src/config.py",
"old_string": "old_var",
"new_string": "new_var",
"replace_all": true
}
test cases passed, vs 15 / 19 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.