Defined in ./hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/pre-commit-validation.sh",
"comment": "Validate build, lint, and tests before git commit"
}
],
"comment": "Hook 2: Pre-commit validation (enabled by default)",
"matcher": "Bash"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/auto-format.sh",
"comment": "Format files with project-specific formatter"
}
],
"comment": "Hook 1: Auto-format files after editing (enabled by default)",
"matcher": "Edit|Write"
},
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/auto-lint.sh",
"comment": "Run linter and report issues"
}
],
"comment": "Hook 3: Auto-lint verification (opt-in, disabled by default)",
"matcher": "Edit|Write"
},
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/build-verification.sh",
"comment": "Verify TypeScript/build after changes"
}
],
"comment": "Hook 4: Build verification (opt-in, disabled by default)",
"matcher": "Edit|Write"
},
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/test-auto-run.sh",
"comment": "Run relevant tests after code changes"
}
],
"comment": "Hook 5: Test auto-run (opt-in, disabled by default)",
"matcher": "Edit|Write"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 5
},
"eventStats": {
"PreToolUse": 1,
"PostToolUse": 4
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 5,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 5
}
}