Defined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/stop.py",
"timeout": 2000,
"description": "Blocks completion until wave validation gates are satisfied"
}
],
"description": "Shannon wave validation gate enforcement"
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/precompact.py",
"timeout": 15000,
"description": "Triggers CONTEXT_GUARDIAN agent to create Serena MCP checkpoint with complete session state",
"continueOnError": false
}
],
"description": "Shannon context preservation - Saves comprehensive checkpoint before auto-compaction to prevent information loss"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/post_tool_use.py",
"timeout": 3000,
"description": "Detects and blocks mock usage in test files to enforce functional testing"
}
],
"matcher": "Write|Edit|MultiEdit",
"description": "Shannon NO MOCKS testing philosophy enforcement"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/session_start.sh",
"timeout": 5000,
"description": "Loads using-shannon meta-skill to enforce Shannon workflows"
}
],
"description": "Shannon V5 meta-skill loader - loads using-shannon into every session"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/user_prompt_submit.py",
"timeout": 3000,
"description": "Injects North Star goal, active wave context, and auto-activates forced-reading-protocol for large prompts (>3000 chars) or large file references (>5000 lines)"
}
],
"description": "Shannon context injection and forced reading protocol activation (v5.6)"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 5
},
"eventStats": {
"Stop": 1,
"PreCompact": 1,
"PostToolUse": 1,
"SessionStart": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 5,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}