Read a file, then make two sequential edits to refine its contents.
Read Then Edit Twice
This skill reads a file and applies two consecutive edits to it, useful for iterative refinement or multi-step transformations.
Workflow
Read the file - Start by examining the complete file contents to understand the current state
First edit - Make the first set of changes or transformations to the file
Second edit - Apply a second round of edits to further refine the contents
When to use this skill
Refining code - Read code, then fix issues in two passes (e.g., syntax, then logic)
Text revisions - Read a document, edit for clarity, then edit for style
Progressive improvements - Make incremental changes that build on each other
Multi-step transformations - When changes are easier to reason about in separate steps
Tips
Review the initial file content carefully before making edits to plan your changes
Consider making the first edit address structural issues and the second address details
Keep edits focused and descriptive so changes are easy to track
If you need more than two edits, this pattern can be repeated for additional refinement passes
1---2name: read-then-edit-twice3description: read-then-edit-twice4---5# read-then-edit-twice67Read a file, then make two sequential edits to refine its contents.89# Read Then Edit Twice1011This skill reads a file and applies two consecutive edits to it, useful for iterative refinement or multi-step transformations.1213## Workflow14151. **Read the file** - Start by examining the complete file contents to understand the current state162. **First edit** - Make the first set of changes or transformations to the file173. **Second edit** - Apply a second round of edits to further refine the contents1819## When to use this skill2021- **Refining code** - Read code, then fix issues in two passes (e.g., syntax, then logic)22- **Text revisions** - Read a document, edit for clarity, then edit for style23- **Progressive improvements** - Make incremental changes that build on each other24- **Multi-step transformations** - When changes are easier to reason about in separate steps2526## Tips2728- Review the initial file content carefully before making edits to plan your changes29- Consider making the first edit address structural issues and the second address details30- Keep edits focused and descriptive so changes are easy to track31- If you need more than two edits, this pattern can be repeated for additional refinement passes
Run npx skillmds@latest add claudiawong522/read-then-edit-twice 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.
read-then-edit-twice 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.