Writing pages of CLAUDE.md files will never work as well as setting up a direct hook. When rules live in documentation, an agent spots contradictions in legacy code and invents excuses to bypass them. Only an assertion written straight into hooks can outright reject the write, with no room for debate.
On the exact same ticket, running bare only passed a single check. Stacking on all the constraints bumped that up to eight checks. Even after every single check ran green, three defects still slipped right through. I think counting on prompts to make a model behave sensibly is wishful thinking. Where things are most fragile, forty lines of code should block the write dead right before it happens.