Defined in ./hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/before-md-write.sh"
}
],
"matcher": "Write",
"filePathMatcher": "**/*README*.md"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/before-md-write.sh"
}
],
"matcher": "Write",
"filePathMatcher": "**/*SETUP*.md"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/before-md-write.sh"
}
],
"matcher": "Write",
"filePathMatcher": "**/claude.md"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/before-md-write.sh"
}
],
"matcher": "Write",
"filePathMatcher": "**/CLAUDE.md"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/before-destructive.sh"
}
],
"matcher": "Bash",
"commandMatcher": ".*rm\\s+-[^\\s]*r[^\\s]*f.*"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/before-destructive.sh"
}
],
"matcher": "Bash",
"commandMatcher": ".*rm\\s+-[^\\s]*f[^\\s]*r.*"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/before-destructive.sh"
}
],
"matcher": "Bash",
"commandMatcher": ".*git\\s+push.*"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/before-destructive.sh"
}
],
"matcher": "Bash",
"commandMatcher": "(?i).*DROP\\s+(TABLE|DATABASE).*"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/before-destructive.sh"
}
],
"matcher": "Bash",
"commandMatcher": "(?i).*DELETE\\s+FROM.*"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/before-destructive.sh"
}
],
"matcher": "Bash",
"commandMatcher": "(?i).*TRUNCATE\\s+TABLE.*"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/session-start.sh"
}
]
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 11
},
"eventStats": {
"PreToolUse": 10,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 11,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 11
}
}