Executes bash commands and modifies files at key Claude Code events including sessions, tools, and notifications.
/plugin marketplace add mgd34msu/goodvibes-plugin/plugin install goodvibes@goodvibes-marketDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/dist/stop.js\"",
"timeout": 10
}
],
"matcher": "*"
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/dist/pre-compact.js\"",
"timeout": 5
}
],
"matcher": "*"
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/src/pre-tool-use-directive-drain.mjs\"",
"timeout": 3
}
],
"matcher": "*"
},
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/tool-update.mjs\""
}
],
"matcher": "Bash"
},
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/dist/pre-tool-use.js\""
}
],
"matcher": "Read|Edit|Write|Glob|Grep|WebFetch"
},
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/secrets-commit-guard.mjs\"",
"timeout": 3
}
],
"matcher": "Bash"
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/dist/session-end.js\"",
"timeout": 10
}
],
"matcher": "*"
}
],
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/dist/notification.js\"",
"timeout": 5
}
],
"matcher": "*"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/dist/session-start.js\"",
"timeout": 10
}
],
"matcher": "*"
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/dist/subagent-stop.js\"",
"timeout": 10
}
],
"matcher": "*"
}
],
"SubagentStart": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/dist/subagent-start.js\"",
"timeout": 10
}
],
"matcher": "*"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/dist/user-prompt-submit.js\"",
"timeout": 5
}
],
"matcher": "*"
},
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/src/user-prompt-submit-directives.mjs\"",
"timeout": 5
}
],
"matcher": "*"
}
],
"PostToolUseFailure": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/dist/post-tool-use-failure.js\"",
"timeout": 5
}
],
"matcher": "Bash"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": true,
"touchesFileWrites": true
},
"typeStats": {
"command": 14
},
"eventStats": {
"Stop": 1,
"PreCompact": 1,
"PreToolUse": 4,
"SessionEnd": 1,
"Notification": 1,
"SessionStart": 1,
"SubagentStop": 1,
"SubagentStart": 1,
"UserPromptSubmit": 2,
"PostToolUseFailure": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 14,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 2
}
}