# Review And Edit File

> review-and-edit-file

- Skill: `claudiawong522/review-and-edit-file` (Agent Skill)
- Install (CLI): `npx skillmds@latest add claudiawong522/review-and-edit-file`
- Raw SKILL.md: https://api.skillmd.com/api/skills/claudiawong522/review-and-edit-file/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: claudiawong522 (https://skillmd.com/u/claudiawong522)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/claudiawong522/review-and-edit-file

---

# review-and-edit-file

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

1. **First Read** - Read the file to understand its structure and current content
2. **Second Read** - Read the file again to verify details or catch anything missed initially
3. **First Edit** - Apply the first set of changes to the file
4. **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
```

