edit_file

Replace an exact substring in a workspace file after user approval.

Updated Feb 9, 2026
One-click install
npx skills add https://github.com/mufarosean/Parallx --skill edit-file
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: edit_file
Source: https://github.com/mufarosean/Parallx/tree/main/.parallx/skills/edit_file
Command: npx skills add https://github.com/mufarosean/Parallx --skill edit-file

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about edit_file

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I replace an exact substring in a file while preserving whitespace?

You can replace exact substrings in a file by providing the relative file path, the verbatim old_content string, and the new_content replacement, ensuring precise whitespace-sensitive matches.

Can I patch configuration values in a file without manual find-and-replace?

Yes, you can safely patch configuration values by replacing exact substrings, eliminating error-prone manual find-and-replace and preventing accidental changes to surrounding text.

Does the exact text replacement require approval before writing changes to the workspace?

Yes, exact text replacement requires explicit user approval before writing changes, ensuring safety and human oversight by confirming the proposed diff before applying modifications.

What is the best way to update a specific code comment across a workspace file?

The best way to update a specific code comment is to provide the exact original text verbatim, matching the known content exactly to ensure only the targeted comment block is modified.

Why does my exact string match fail when editing a file?

Your exact string match fails because the provided old_content does not match the existing file content verbatim; exact replacement requires precise, whitespace-sensitive exact substring matches.