| name | description |
|---|---|
update-claude-md |
ALWAYS keep CLAUDE.md updated - both project structure AND learnings/corrections. Automatic on every commit. |
CLAUDE.md is the source of truth for how to work in this codebase. It contains:
- Project structure and architecture
- How to run, build, deploy
- Corrections and learnings (things Claude got wrong and shouldn't repeat)
- Make the commit for the user's changes
- Check if CLAUDE.md needs updating
- If yes: Update it, then make a SEPARATE commit with message "Update CLAUDE.md"
Structure changes:
- New files, directories, or architecture
- New APIs, commands, or interfaces
- Changes to setup, build, or deployment
- New environment variables
Learnings and corrections:
- User corrected a mistake → add to CLAUDE.md so it doesn't happen again
- Discovered a project convention → document it
- Found a gotcha or edge case → note it
- Bug fixes that don't change architecture
- Minor refactors
- Dependency bumps
- Keep updates minimal
- Maintain existing format
- If no CLAUDE.md exists, create one
- CLAUDE.md update is ALWAYS a separate commit
- When user corrects you, ask: "Should I add this to CLAUDE.md?"