npx claudepluginhub thisisyoyodev/claude-plugins --plugin claude-ragDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "BUN=$(command -v bun 2>/dev/null || echo \"$HOME/.bun/bin/bun\") && \"$BUN\" run \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" 2>/dev/null || node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\"",
"timeout": 5
}
],
"matcher": ""
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "BUN=$(command -v bun 2>/dev/null || echo \"$HOME/.bun/bin/bun\") && \"$BUN\" run \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" 2>/dev/null || node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\"",
"timeout": 5
}
],
"matcher": ""
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "BUN=$(command -v bun 2>/dev/null || echo \"$HOME/.bun/bin/bun\") && \"$BUN\" run \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" 2>/dev/null || node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\"",
"timeout": 5
}
],
"matcher": ""
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "BUN=$(command -v bun 2>/dev/null || echo \"$HOME/.bun/bin/bun\") && \"$BUN\" run \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" 2>/dev/null || node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\"",
"timeout": 5
}
],
"matcher": ""
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "BUN=$(command -v bun 2>/dev/null || echo \"$HOME/.bun/bin/bun\") && \"$BUN\" run \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" 2>/dev/null || node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\"",
"timeout": 5
}
],
"matcher": ""
}
],
"PostToolUseFailure": [
{
"hooks": [
{
"type": "command",
"command": "BUN=$(command -v bun 2>/dev/null || echo \"$HOME/.bun/bin/bun\") && \"$BUN\" run \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" 2>/dev/null || node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\"",
"timeout": 5
}
],
"matcher": ""
}
]
}"{\"riskFlags\": {\"touchesBash\": false, \"matchAllTools\": true, \"touchesFileWrites\": false}, \"typeStats\": {\"command\": 6}, \"eventStats\": {\"Stop\": 1, \"PostToolUse\": 1, \"SessionStart\": 1, \"SubagentStop\": 1, \"UserPromptSubmit\": 1, \"PostToolUseFailure\": 1}, \"originCounts\": {\"absolutePaths\": 0, \"pluginScripts\": 6, \"projectScripts\": 0}, \"timeoutStats\": {\"commandsWithoutTimeout\": 0}}"