Defined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Review the conversation for two conditions:\n\n1. VERIFICATION: If the agent claimed work is 'complete', 'fixed', 'passing', or 'done', check if verification commands (test, build, lint) were run with actual output shown BEFORE the claim.\n\n2. FINISHING WORKFLOW: If the conversation involved executing a plan (look for 'executing-plans', 'subagent-driven-development', or similar workflow language), check if 'finish-branch' skill was used to present the 4 options (merge, PR, keep, discard).\n\nReturn {\"decision\": \"block\", \"reason\": \"Missing verification evidence (core:verification)\"} if condition 1 fails.\nReturn {\"decision\": \"block\", \"reason\": \"Plan execution detected but finish-branch not used. Use workflow:finish-branch to present merge/PR/keep/discard options.\"} if condition 2 fails.\nReturn {\"decision\": \"approve\"} if all conditions pass or don't apply.",
"timeout": 30
}
],
"matcher": "*"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh"
}
],
"matcher": "startup|resume|clear|compact"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"prompt": 1,
"command": 1
},
"eventStats": {
"Stop": 1,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 1,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 1
}
}