/plugin marketplace add mwguerra/claude-code-plugins/plugin install mwguerra-plugin-usage-tracker-plugin-usage-tracker@mwguerra/claude-code-pluginsDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bun run ${CLAUDE_PLUGIN_ROOT}/scripts/log-stop.ts",
"timeout": 3
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bun run ${CLAUDE_PLUGIN_ROOT}/scripts/log-pre-tool.ts",
"timeout": 3
}
],
"matcher": "*"
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "bun run ${CLAUDE_PLUGIN_ROOT}/scripts/log-session-end.ts",
"timeout": 5
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bun run ${CLAUDE_PLUGIN_ROOT}/scripts/log-post-tool.ts",
"timeout": 3
}
],
"matcher": "*"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bun run ${CLAUDE_PLUGIN_ROOT}/scripts/log-session-start.ts",
"timeout": 5
}
]
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "bun run ${CLAUDE_PLUGIN_ROOT}/scripts/log-subagent-stop.ts",
"timeout": 3
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "bun run ${CLAUDE_PLUGIN_ROOT}/scripts/log-user-prompt.ts",
"timeout": 3
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": true,
"touchesFileWrites": false
},
"typeStats": {
"command": 7
},
"eventStats": {
"Stop": 1,
"PreToolUse": 1,
"SessionEnd": 1,
"PostToolUse": 1,
"SessionStart": 1,
"SubagentStop": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 7,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}