# Sequential File Edits

> sequential-file-edits

- Skill: `claudiawong522/sequential-file-edits` (Agent Skill)
- Install (CLI): `npx skillmds@latest add claudiawong522/sequential-file-edits`
- Raw SKILL.md: https://api.skillmd.com/api/skills/claudiawong522/sequential-file-edits/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/sequential-file-edits

---

# sequential-file-edits

Apply multiple sequential edits to the same file in a single workflow.

# Sequential File Edits

This skill handles making multiple related edits to a file in sequence, which is useful when you need to refactor, update, or modify content across different sections of the same file.

## When to Use

- Making related changes that affect multiple parts of a file
- Refactoring code with interdependent modifications
- Updating configuration files with several related updates
- Making progressive improvements to a file

## Steps

1. **Identify the target file** - Determine which file needs edits
2. **Plan your changes** - Know what changes need to be made in what order
3. **Apply first edit** - Make the initial modification to the file
4. **Apply second edit** - Make the follow-up modification to the same file
5. **Verify results** - Check that both edits worked together as intended

## Tips

- **Order matters**: Apply edits in a logical sequence, especially if later edits depend on earlier ones
- **Keep context**: Refer to the file content when planning sequential changes
- **Test after**: Verify the file is valid after both edits complete
- **Related changes**: This pattern works best when edits are related to the same goal
- **Clarity**: Use clear, specific edit instructions to avoid conflicts between edits

## Example Use Cases

- Adding and then modifying a new function in the same file
- Updating imports and then refactoring code that uses them
- Adding configuration options and then updating documentation
- Making formatting changes followed by logical reorganization

