Defined in ./.claude/hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python .claude/hooks/pre_tool_use.py",
"description": "Security gates for dangerous operations"
}
],
"matcher": "Bash|Write|Edit"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python .claude/hooks/post_tool_use_format.py",
"description": "Auto-formatting after file operations"
}
],
"matcher": "Write|Edit"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "python .claude/hooks/user_prompt_submit.py",
"description": "Pre-prompt enrichment with context packs"
}
],
"matcher": "*"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 3
},
"eventStats": {
"PreToolUse": 1,
"PostToolUse": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 3
}
}