Executes bash commands and modifies files before, after, or instead of specific tool uses and user prompts.
/plugin marketplace add signalcompose/claude-tools/plugin install code@claude-toolsDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/dev-cycle-stop.sh",
"timeout": 10000
}
],
"matcher": ""
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/check-pr-review-gate.sh"
}
],
"matcher": "Bash"
},
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/check-gitignore-security.sh",
"timeout": 3000
}
],
"matcher": "Bash"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/dev-cycle-context-monitor.sh",
"timeout": 3000
}
],
"matcher": "Bash|Edit|Write|Read|Grep|Glob|NotebookEdit|WebFetch|WebSearch"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/enforce-code-review-rules.sh",
"timeout": 5000
}
],
"matcher": ""
},
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/dev-cycle-guard.sh",
"timeout": 5000
}
],
"matcher": ""
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 6
},
"eventStats": {
"Stop": 1,
"PreToolUse": 2,
"PostToolUse": 1,
"UserPromptSubmit": 2
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 6,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 1
}
}