What problem does it solve?
Enables safe, targeted in-place edits of files by replacing an exact substring, eliminating error-prone manual find-and-replace and ensuring whitespace-sensitive matches are respected.
Core Features & Use Cases
- Exact-match replacement: Replace only when the existing content matches the provided old_content exactly, preventing accidental changes.
- Approval workflow: Requires user confirmation before writing changes to ensure safety and human oversight.
- Use Case: Update a configuration key or correct a specific code comment across a file where the exact original text is known and must be matched verbatim.
Quick Start
Use the edit_file skill to replace the exact string old_content with new_content in path/to/file and show me the proposed diff for approval before applying the change.