Photo of DeepakNess DeepakNess

Update CLAUDE.md after every major change

Unproofread notes

I started adding this instruction in my CLAUDE.md file to update itself after every major change and now it's more consistent and hallucinates less as well.

Self-Maintenance Rule

After every major change (new model, new page, new controller, route changes, migration changes, new test files, architectural shifts), update this CLAUDE.md file to reflect the current state. Specifically:

  • Add new models/controllers/pages/routes to the relevant tables below
  • Update test count if new tests are added
  • Add any new gotchas or patterns to the "Gotchas & Pitfalls" section
  • Update the "Current State" section if the status changes
  • Keep this file as the single source of truth for AI sessions working on this project

I am working in Laravel, so this rule has significantly improved the quality of the code and the model is now a lot more consistent. And this works great with the newly launched Claude Opus 4.6 as well.

Webmentions

What’s this?