Edit And Verify

edit-and-verify

claudiawong522 Updated

File contents

edit-and-verify

Edit a file and immediately read it back to verify the changes were applied correctly.

Edit and Verify

This skill performs a common verification pattern: after editing a file, it reads the file back to confirm the changes were successfully applied.

When to use this skill

  • After making edits to a file, you want to verify the changes took effect
  • You need to see the final state of a file immediately after modification
  • You're debugging file write operations or ensuring edits were persisted correctly

Steps

  1. Edit the file - Make the desired changes to the target file using the Edit tool
  2. Read the file - Immediately read the file back using the Read tool to verify the edit was successful

Tips

  • This pattern is useful when you're unsure if an edit succeeded or want to confirm the exact final state
  • The read operation lets you see syntax highlighting and formatting as it now exists in the file
  • If the read shows unexpected content, the edit may have failed or the path may be incorrect
  • Combine this with other skills when you need to make multiple sequential edits with verification between each one

claudiawong522/skill-autocreation-with-claude-logs/tree/main/output/edit-and-verify commit 0520e1e323

Frequently asked questions

npx skillmds@latest add claudiawong522/edit-and-verify