教程 / 实战普通
Claude Code Hooks Examples: Which Mistakes Need a Hook, and How to Build One That Really Stops Them
内容摘要
Claude Code hooks examples from a setup that runs 77 of them: why Claude Code ignores rules in CLAUDE.md, the events a hook can stop, five real hooks with the code and the settings.json entries, how to test a hook by breaking it on purpose, and what not to turn into a hook.