/plugin marketplace add Git-Fg/thecattoolkit/plugin install thecattoolkit@thecattoolkitDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "sh -c 'if command -v uv >/dev/null 2>&1; then uv run ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/protect-files.py; elif command -v python3 >/dev/null 2>&1; then python3 ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/protect-files.py; else echo \"Skipping hook: python not found\" && exit 0; fi'",
"timeout": 10000
},
{
"type": "command",
"command": "sh -c 'if command -v uv >/dev/null 2>&1; then uv run ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/security-check.py; elif command -v python3 >/dev/null 2>&1; then python3 ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/security-check.py; else echo \"Skipping hook: python not found\" && exit 0; fi'",
"timeout": 10000
}
],
"matcher": "Edit|Write"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "sh -c 'if command -v uv >/dev/null 2>&1; then uv run ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/type-check-on-edit.py; elif command -v python3 >/dev/null 2>&1; then python3 ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/type-check-on-edit.py; else echo \"Skipping hook: python not found\" && exit 0; fi'",
"timeout": 30000
}
],
"matcher": "Edit|Write"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 3
},
"eventStats": {
"PreToolUse": 2,
"PostToolUse": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 3,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}