← Claude-aholics
>_ CLAUDE-AHOLICS · FREE TOOL

HOOKS
COOKBOOK

Hooks are the most underused thing in Claude Code: shell commands that fire automatically on events — after an edit, before a command, when a task finishes. Pick a recipe, get the exact config to paste into your settings.

Free · no signup · runs in your browser
Paste into .claude/settings.json

  
Where it goes: merge this into .claude/settings.json in your repo (or ~/.claude/settings.json for all projects). If you already have a "hooks" block, add these entries into it. Events: PreToolUse can block an action; PostToolUse runs after; Stop fires when Claude finishes; UserPromptSubmit runs on each prompt. The matcher targets tools (e.g. Edit|Write, Bash).

Want the full hook + guardrail kit?

Format-on-edit, secret-scanners, command guards and CI hooks — pre-wired in the power-user pack.

Browse Overclock →
Hooks Cookbook · Claude-aholics. Unofficial — not affiliated with Anthropic. A Metate Group brand.