Defined in hooks/hooks.json
{
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | xargs -I {} sh -c 'if [[ {} =~ \\.json$ ]]; then jq empty {} 2>/dev/null || echo \"⚠️ Invalid JSON: {}\"; fi'",
"description": "Validate JSON files after write"
}
],
"matcher": "Write"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": ".claude-plugin/scripts/hooks/session_start.sh",
"description": "Load project context and task status"
}
],
"matcher": ""
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 2
},
"eventStats": {
"PostToolUse": 1,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 2
}
}