npx claudepluginhub leo-songye-li/sp-governance --plugin sp-governanceDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node \"$CLAUDE_PLUGIN_ROOT\"/scripts/run.cjs \"$CLAUDE_PLUGIN_ROOT\"/scripts/sp-pm-allowlist-guard.mjs",
"timeout": 5
}
],
"matcher": "*"
},
{
"hooks": [
{
"type": "command",
"command": "node \"$CLAUDE_PLUGIN_ROOT\"/scripts/run.cjs \"$CLAUDE_PLUGIN_ROOT\"/scripts/sp-route-guard.mjs",
"timeout": 5
}
],
"matcher": "Agent"
},
{
"hooks": [
{
"type": "command",
"command": "node \"$CLAUDE_PLUGIN_ROOT\"/scripts/run.cjs \"$CLAUDE_PLUGIN_ROOT\"/scripts/sp-destructive-guard.mjs",
"timeout": 5
}
],
"matcher": "Bash"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "node \"$CLAUDE_PLUGIN_ROOT\"/scripts/run.cjs \"$CLAUDE_PLUGIN_ROOT\"/scripts/sp-bootstrap-guard.mjs",
"timeout": 5
}
],
"matcher": "*"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": true,
"touchesFileWrites": false
},
"typeStats": {
"command": 4
},
"eventStats": {
"PreToolUse": 3,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}