AI Development Featured Code Quality Gates: Using Claude Code Hooks to Block Code Smells on Every Write Hooks are the quality enforcement layer most people don't have. I built a PostToolUse hook system that detects complexity, deep nesting, long functions, and duplicate code, then blocks Claude from moving on until it fixes them.