npx claudepluginhub share-skills/pi --plugin piDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/capture-decision.sh",
"timeout": 10
}
],
"matcher": "*"
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact.sh",
"timeout": 5
}
],
"matcher": "*"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/capture-tool-result.sh success",
"timeout": 5
}
],
"matcher": "Bash"
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/capture-subagent.sh stop",
"timeout": 5
}
]
}
],
"SubagentStart": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/capture-subagent.sh start",
"timeout": 5
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/capture-prompt.sh",
"timeout": 5
}
]
}
],
"PostToolUseFailure": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/capture-tool-result.sh failure",
"timeout": 5
}
],
"matcher": "Bash"
}
]
}"Captures user prompts, decisions, bash tool results (success/failure), subagent start/stop, and pre-compact state via bash scripts on 7 lifecycle events."