hooks
4 articles
Claude Code Hooks Field Guide — 8 Automation Hooks That Stop AI from Forgetting Things
CLAUDE.md is a suggestion. Hooks are commands. This post covers 8 battle-tested Claude Code Hooks — from auto-formatting and blocking dangerous commands to protecting sensitive files and auto-committing. Copy, paste, done.
Git Hooks Changed How You Write Code. AI Hooks Are Doing It Again.
Git hooks work even when you forget they exist. AI hooks make your Claude Code follow rules even when it forgets. ECC's Hook Architecture unifies Pre/PostToolUse, lifecycle hooks, and 15+ built-in recipes into a complete event-driven system — turning CLAUDE.md suggestions into actual enforcement.
Boris's Ultimate Claude Code Customization Guide — 12 Ways to Make Your AI Editor Truly Yours
Claude Code creator Boris Cherny posted a 12-tweet thread breaking down why engineers love Claude Code: extreme customizability — hooks, plugins, LSPs, MCPs, skills, custom agents, output styles, 37 settings, 84 env vars, all committable to git for team sharing.
Matt Pocock's Git Guardrails: Stop Claude Code from Accidentally Nuking Your Repo with git push --force
Matt Pocock (TypeScript guru, Ralph Loops evangelist) released a Claude Code skill: git-guardrails. It uses a PreToolUse hook to intercept dangerous git commands (push, reset --hard, clean -f, etc.), so you can safely let your AI agent run in YOLO mode inside Docker Sandbox without worrying about it blowing up your git history. One command to install, more reliable than any prompt engineering.