1---2name: observe-before-editing3description: Observe Before Editing4---567# Observe Before Editing89Before editing code to fix a bug, confirm what the system *actually produced*.1011## Pattern1213Outputs don't lie. Code might. Check outputs first.1415## DO16171. Check if expected directories exist: `ls -la .claude/cache/`182. Check if expected files were created: `ls -la .claude/cache/learnings/`193. Check logs for errors: `tail .claude/cache/*.log`204. Run the failing command manually to see actual error215. Only then edit code2223## DON'T2425- Assume "hook didn't run" without checking outputs26- Edit code based on what you *think* should happen27- Confuse global vs project paths (check both: `.claude/` and `~/.claude/`)2829## Source Sessions3031- a541f08a: Token limit error was invisible until manual run revealed it32- 6a9f2d7a: Looked in wrong cache path (`~/.claude/` vs `.claude/`), assumed hook failure33- a8bd5cea: Confirmed hook worked by finding output files in project cache34- 1c21e6c8: Verified Artifact Index indexing by checking DB file exists3536---3738**Source:** [`parcadei/Continuous-Claude-v3`](https://github.com/parcadei/Continuous-Claude-v3) → `.claude/skills/observe-before-editing/SKILL.md`
Run npx skillmds@latest add parcadei/observe-before-editing 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.
Observe Before Editing It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: makes network calls, reads secrets. 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.
parcadei (@parcadei) published this skill. Their other Agent Skills are listed on their SkillMD profile.