Review a file twice before making edits to understand its full context and structure.
Review and Edit Workflow
This skill helps you make informed edits by thoroughly reviewing a file before making changes.
Steps
First Read - Read the file to get an initial understanding of its content, structure, and purpose
Second Read - Read the file again to identify specific sections you need to modify and confirm the context
Edit - Make your targeted edits with full confidence in the file's structure
When to Use
Making structural changes to code or configuration files
Editing files you're unfamiliar with
Making changes that might have dependencies or side effects
Ensuring you understand the complete file before modifying
Tips
Use the first read to understand the overall structure and purpose
During the second read, take note of exact line numbers and context for your changes
This double-review approach reduces errors and prevents unintended modifications
Consider using this workflow when working with critical files or complex codebases
1---2name: review-and-edit3description: review-and-edit4---5# review-and-edit67Review a file twice before making edits to understand its full context and structure.89# Review and Edit Workflow1011This skill helps you make informed edits by thoroughly reviewing a file before making changes.1213## Steps14151. **First Read** - Read the file to get an initial understanding of its content, structure, and purpose162. **Second Read** - Read the file again to identify specific sections you need to modify and confirm the context173. **Edit** - Make your targeted edits with full confidence in the file's structure1819## When to Use2021- Making structural changes to code or configuration files22- Editing files you're unfamiliar with23- Making changes that might have dependencies or side effects24- Ensuring you understand the complete file before modifying2526## Tips2728- Use the first read to understand the overall structure and purpose29- During the second read, take note of exact line numbers and context for your changes30- This double-review approach reduces errors and prevents unintended modifications31- Consider using this workflow when working with critical files or complex codebases
Run npx skillmds@latest add claudiawong522/review-and-edit 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 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.