# Read And Edit File

> read-and-edit-file

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

---

# read-and-edit-file

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
1. **Read the file** - View the complete file contents to understand its structure and current state
2. **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

