Defined in hooks/hooks.json
{
"Stop": [],
"PreToolUse": [
{
"hooks": [
{
"type": "prompt",
"prompt": "${CLAUDE_PLUGIN_ROOT}/hooks/tdd-enforcer-optimized.prompt",
"timeout": 3000,
"description": "TDD enforcer: Ensures tests exist before production code changes (Red-Green-Refactor)"
}
],
"matcher": "Write|Edit|NotebookEdit"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/smart-agent-selector.sh",
"timeout": 5000,
"description": "Smart agent selector: Dynamically discovers and scores all available agents"
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"prompt": 1,
"command": 1
},
"eventStats": {
"PreToolUse": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 1,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}