Read a file to review its contents, then make edits to it in a single workflow.
Read and Edit File
This skill combines reading a file with editing it, useful when you need to review content before making modifications.
When to use this skill
You need to see the current content of a file before deciding what changes to make
You're making targeted edits based on the existing structure
You want to understand the context before modifying
Steps
Read the file - View the complete file contents to understand its structure and current state
Edit the file - Make your desired modifications based on what you learned from reading
Tips
Use this when edits are context-dependent or you're unfamiliar with the file structure
The read step helps prevent accidental overwrites of important content
Consider what specific changes you want to make while reading to keep the workflow efficient
1---2name: read-and-edit-file3description: read-and-edit-file4---5# read-and-edit-file67Read a file to review its contents, then make edits to it in a single workflow.89# Read and Edit File1011This skill combines reading a file with editing it, useful when you need to review content before making modifications.1213## When to use this skill14- You need to see the current content of a file before deciding what changes to make15- You're making targeted edits based on the existing structure16- You want to understand the context before modifying1718## Steps191. **Read the file** - View the complete file contents to understand its structure and current state202. **Edit the file** - Make your desired modifications based on what you learned from reading2122## Tips23- Use this when edits are context-dependent or you're unfamiliar with the file structure24- The read step helps prevent accidental overwrites of important content25- Consider what specific changes you want to make while reading to keep the workflow efficient
Run npx skillmds@latest add claudiawong522/read-and-edit-file 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-and-edit-file 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.