Review a file's contents twice, then make two sequential edits to implement changes.
Review and Edit File
This skill helps you carefully review a file before making changes, then apply edits in two steps.
When to use this skill
You need to understand a file's current state before modifying it
You want to make multiple related changes with distinct steps
You're making edits that benefit from reviewing the context twice
You want to ensure changes are applied correctly with verification between edits
Steps
First Read - Read the file to understand its structure and current content
Second Read - Read the file again to verify details or catch anything missed initially
First Edit - Apply the first set of changes to the file
Second Edit - Apply the second set of changes to complete your modifications
Tips
Use the first read to identify the overall structure and what needs to change
Use the second read to pinpoint exact line numbers or sections for editing
Consider breaking complex changes into two logical edit operations
This pattern is especially useful for files with interdependent sections
Each edit should be a coherent change that could stand alone if needed
Example workflow
1. Read: Examine the entire file structure
2. Read: Identify specific sections that need modification
3. Edit: Update the first logical section or set of related changes
4. Edit: Complete remaining changes in the second section
1---2name: review-and-edit-file3description: review-and-edit-file4---5# review-and-edit-file67Review a file's contents twice, then make two sequential edits to implement changes.89# Review and Edit File1011This skill helps you carefully review a file before making changes, then apply edits in two steps.1213## When to use this skill1415- You need to understand a file's current state before modifying it16- You want to make multiple related changes with distinct steps17- You're making edits that benefit from reviewing the context twice18- You want to ensure changes are applied correctly with verification between edits1920## Steps21221. **First Read** - Read the file to understand its structure and current content232. **Second Read** - Read the file again to verify details or catch anything missed initially243. **First Edit** - Apply the first set of changes to the file254. **Second Edit** - Apply the second set of changes to complete your modifications2627## Tips2829- Use the first read to identify the overall structure and what needs to change30- Use the second read to pinpoint exact line numbers or sections for editing31- Consider breaking complex changes into two logical edit operations32- This pattern is especially useful for files with interdependent sections33- Each edit should be a coherent change that could stand alone if needed3435## Example workflow3637```381. Read: Examine the entire file structure392. Read: Identify specific sections that need modification403. Edit: Update the first logical section or set of related changes414. Edit: Complete remaining changes in the second section42```
Run npx skillmds@latest add claudiawong522/review-and-edit-file in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
review-and-edit-file It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
claudiawong522 (@claudiawong522) published this skill. Their other Agent Skills are listed on their SkillMD profile.