Edit

Replace exact strings in files with specified new text.

2|2|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/bishwashere/cowCode --skill edit-bishwashere
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Edit
Source: https://github.com/bishwashere/cowCode/tree/main/skills/edit
Command: npx skills add https://github.com/bishwashere/cowCode --skill edit-bishwashere

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Replacing exact strings in code or documents can be error-prone when matches are not precise or when nothing is edited. This Skill provides deterministic, exact-match replacements, ensuring only the intended text is changed and saving the file when a match is found.

Core Features & Use Cases

  • Exact-match replacements: only exact text occurrences are altered, leaving surrounding content untouched.
  • Safe edits: fails if no matches are found to prevent silent changes.
  • Use case: update a deprecated token across a config file, or fix a typo in a large codebase.

Quick Start

Run the edit skill with the target file path, the exact text to replace, and the new text to insert.

Frequently Asked Questions about Edit

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

FAQPage Schema
How do I replace an exact string in a code file safely?

To replace an exact string safely, provide the target file path, the exact old string to match, and the new text. The edit alters only exact text occurrences and saves the file when a match is found, leaving surrounding content untouched.

Why does my exact string replace operation fail without changing the file?

An exact string replace operation fails when no occurrences of the specified old string are found in the file. This safety mechanism prevents silent changes, ensuring edits only happen when an exact match is successfully located.

What is the best way to update a deprecated token across a config file?

The best way to update a deprecated token across a config file is using exact-match replacement. By specifying the exact token string and its replacement, only the intended text is changed while preserving non-target content.

Can I find and replace text using relative file paths?

Yes, you can find and replace text using relative or absolute file paths. The Skill operates across codebases or documents by locating the target file via the provided path and applying precise text edits.

Does exact string matching modify surrounding content in the document?

No, exact string matching does not modify surrounding content in the document. It performs deterministic, exact-match replacements, ensuring only the specific text occurrences you targeted are altered.