CLAUDE.md as a Living Document
Every time you correct Claude, follow up with: “Update your CLAUDE.md so you don’t make that mistake again.” Claude is eerily good at writing rules for itself. It will add specific, actionable constraints — not vague guidelines. Each correction becomes a permanent guardrail. The habit is simple:- Claude makes a mistake
- You correct it
- You tell it to update CLAUDE.md
- The mistake doesn’t happen again
The Skill Creation Threshold
If you do something more than once a day, make it a skill or slash command. Examples that should become skills:/techdebt— Scan for duplicated code, dead imports, inconsistent patterns- A context-dump skill that syncs relevant info from Slack, Google Drive, or GitHub into a format Claude can consume
- Analytics agents that write dbt models from plain-language descriptions
- A deployment checklist skill that runs pre-deploy validations
Conversation History Mining
Your conversation history lives in~/.claude/projects/. Every session is stored and searchable.
Search across sessions to find patterns:
- Instructions that get violated repeatedly — these need hooks, not CLAUDE.md entries
- Approaches that keep failing — add them as explicit “Don’t do X” rules
- Patterns that emerge across sessions — candidates for skills
Periodic CLAUDE.md Review
Use thereview-claudemd skill to automate this. It launches parallel Sonnet subagents that analyze your recent conversations and surface:
- Violations — rules in CLAUDE.md that Claude ignored
- Missing rules — corrections you made that aren’t captured yet
- Stale entries — rules that no longer apply to the current codebase
The Feedback Cycle
The full loop looks like this:| Stage | What happens |
|---|---|
| Correction | You fix a mistake in a session |
| CLAUDE.md update | The correction becomes a permanent rule |
| Fewer corrections | Future sessions hit the same issue less |
| Skill creation | Repeated patterns become reusable skills |
| Institutionalized knowledge | The team benefits, not just you |
← Prev: Autonomous Tasks · Next: Invocation Quality →