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
Identify the target file - Determine which file needs edits
Plan your changes - Know what changes need to be made in what order
Apply first edit - Make the initial modification to the file
Apply second edit - Make the follow-up modification to the same file
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
1---2name: sequential-file-edits3description: sequential-file-edits4---5# sequential-file-edits67Apply multiple sequential edits to the same file in a single workflow.89# Sequential File Edits1011This 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.1213## When to Use1415- Making related changes that affect multiple parts of a file16- Refactoring code with interdependent modifications17- Updating configuration files with several related updates18- Making progressive improvements to a file1920## Steps21221. **Identify the target file** - Determine which file needs edits232. **Plan your changes** - Know what changes need to be made in what order243. **Apply first edit** - Make the initial modification to the file254. **Apply second edit** - Make the follow-up modification to the same file265. **Verify results** - Check that both edits worked together as intended2728## Tips2930- **Order matters**: Apply edits in a logical sequence, especially if later edits depend on earlier ones31- **Keep context**: Refer to the file content when planning sequential changes32- **Test after**: Verify the file is valid after both edits complete33- **Related changes**: This pattern works best when edits are related to the same goal34- **Clarity**: Use clear, specific edit instructions to avoid conflicts between edits3536## Example Use Cases3738- Adding and then modifying a new function in the same file39- Updating imports and then refactoring code that uses them40- Adding configuration options and then updating documentation41- Making formatting changes followed by logical reorganization
Run npx skillmds@latest add claudiawong522/sequential-file-edits 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.
sequential-file-edits 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.