Executes custom commands across all tool interactions and session lifecycle events.
/plugin marketplace add shakes-tzd/htmlgraph/plugin install htmlgraph@htmlgraphDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "HTMLGRAPH_HOOK_TYPE=Stop uv run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/track-event.py\""
}
],
"matcher": ""
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "uv run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/pretooluse-integrator.py\"",
"comment": "Route Task() calls to spawner agents (gemini, codex, copilot)"
}
],
"matcher": ""
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "uv run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-end.py\""
}
],
"matcher": ""
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "uv run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/posttooluse-integrator.py\""
}
],
"matcher": ""
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "uv run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-start.py\""
}
],
"matcher": ""
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "uv run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/subagent-stop.py\""
}
],
"matcher": ""
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "uv run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/user-prompt-submit.py\"",
"comment": "CIGS analysis and workflow guidance"
}
],
"matcher": ""
}
]
}{
"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": 7
}
}