Install
1
Install the plugin$
npx claudepluginhub anthropics/claude-plugins-official --plugin cockroachdbWant just this hook?
Then install: npx claudepluginhub u/[userId]/[slug]
Risk Indicators
Modifies files
Source
Defined in hooks/hooks.json
Configuration
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-sql.py",
"timeout": 10
}
],
"matcher": "mcp__cockroachdb-toolbox__cockroachdb-execute-sql"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/check-sql-files.py",
"timeout": 15
}
],
"matcher": "Write|Edit|MultiEdit"
}
]
}Summary
{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 2
},
"eventStats": {
"PreToolUse": 1,
"PostToolUse": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 2,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}Stats
Stars1
Forks1
Last CommitMar 12, 2026