Defined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/pre-tool-use/pre-tool-use.sh",
"description": "Security scanner and cost guard - blocks sensitive file access and dangerous commands"
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-end/session-end.sh",
"timeout": 60000,
"description": "Log session statistics to CSV and optionally sync to Google Sheets"
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/post-tool-use/post-tool-use.sh",
"description": "Quality automator - auto-run linters and validate code quality"
}
]
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-start/session-start.sh",
"description": "Log session start context and development environment"
}
],
"matchers": {
"source": [
"startup",
"clear"
]
}
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt-submit/user-prompt-submit.sh",
"description": "Auto-detect ticket numbers from user messages"
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": true,
"touchesFileWrites": false
},
"typeStats": {
"command": 5
},
"eventStats": {
"PreToolUse": 1,
"SessionEnd": 1,
"PostToolUse": 1,
"SessionStart": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 5,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 4
}
}