Quick Use
Edit ~/.claude/settings.json and add hooks:
{
"hooks": {
"PostToolUse": [{
"matcher": "Write|Edit",
"command": "npx biome check --write $CLAUDE_FILE_PATH 2>/dev/null || true"
}]
}
}Intro
Claude Code Hooks are shell commands that run automatically before or after tool use. This collection offers 20+ ready-to-use hook recipes: auto-formatting, running tests, security scanning, Slack notifications, and more. Copy them into settings.json and go. Ideal for developers who want to enforce code quality and automate repetitive tasks.
Source & Thanks
Community-maintained collection based on the official Claude Code docs. Contributions welcome — share your hook recipes!