Your CLAUDE.md says "always run tests" — hooks are how you actually mean it
用Git hooks强制执行测试,比在CLAUDE.md里写规则更可靠,避免违规提交到主分支。
There's a category error hiding in most agent configs: treating a rules file as an enforcement mechanism. It isn't one. CLAUDE.md, AGENTS.md, .cursor/…