Defined in hooks/hooks.json
{
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/check-branch-status.ts",
"description": "Validates branch status for conflicts and sync issues. Checks for uncommitted changes, untracked files, and unpushed commits before session end."
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/sync-plan-to-issue.ts",
"description": "Automatically creates/updates GitHub issues from plan files. Detects plan file edits and syncs content to GitHub, tracking state to prevent duplicates."
}
],
"matcher": "Write|Edit"
},
{
"hooks": [
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/review-commit.ts",
"description": "Triggers code review guidance after git commits. Detects subagent vs manual commits and provides context-aware review recommendations."
}
],
"matcher": "Bash"
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/commit-task.ts",
"description": "Auto-commits agent work with task context. Creates commits with only files edited by the specific agent, including task prompt and metadata as git trailers."
},
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/check-documentation.ts",
"description": "Analyzes agent file operations and suggests documentation updates. Provides non-blocking recommendations for CLAUDE.md files, agents, and skills that may need updates."
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/guide-requirements-check.ts",
"description": "Adds guidance to Claude on every user prompt to list requirements precisely and consider plan updates. Ensures thorough requirement analysis before implementation."
}
]
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 6
},
"eventStats": {
"SessionEnd": 1,
"PostToolUse": 2,
"SubagentStop": 2,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 6,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 6
}
}