Copy-paste Claude Code hook examples: auto-format after edits, block dangerous commands, and the Stop hook that forces a final check without an infinite loop. Real settings.json config.
Claude Code Hooks: Real Examples (PostToolUse, Stop, PreToolUse)