Read Then Edit

read-then-edit

claudiawong522 Updated

File contents

read-then-edit

Read a file to review its contents, then make edits to it.

Read Then Edit

This skill combines reading a file first to understand its current state, then making targeted edits based on what you've learned.

When to use this skill

  • You need to understand a file's structure or current content before making changes
  • You want to review code/text before modifying it
  • You're making context-dependent edits that require knowing the full file

Steps

  1. Read the file - Use /read <path> to view the complete file contents
  2. Analyze - Review the structure, format, and content to understand what needs changing
  3. Edit the file - Use /edit <path> with your modifications, using the context from the read step

Tips

  • The read step gives you the full context needed to make precise edits
  • Take note of indentation, formatting, and syntax when reviewing
  • Structure your edit commands with clear markers (like <<< and >>>) to indicate where changes should go
  • This two-step approach reduces errors compared to editing without reviewing first

claudiawong522/skill-autocreation-with-claude-logs/tree/main/output/read-then-edit commit 87b16b1b90

Frequently asked questions

npx skillmds@latest add claudiawong522/read-then-edit