Defined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "npx tsx ${CLAUDE_PROJECT_DIR}/shared/hooks/log-task-call.ts",
"description": "Logs Task tool calls before agent execution. Saves context for later retrieval in SubagentStop hooks."
}
],
"matcher": "Task"
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/lint-all.ts",
"description": "Runs ESLint on entire project at session end. Blocking hook that ensures all code meets linting standards before finishing."
},
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/typecheck-all.ts",
"description": "Runs TypeScript type checking on entire project at session end. Blocking hook that ensures no type errors exist before finishing."
},
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/vitest-all.ts",
"description": "Runs full Vitest test suite at session end. Blocking hook that ensures all tests pass before finishing."
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "npx tsx ${CLAUDE_PROJECT_DIR}/shared/hooks/log-task-result.ts",
"description": "Logs Task tool results after agent completion. Captures agent output and context for analysis."
}
],
"matcher": "Task"
},
{
"hooks": [
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/lint-file.ts",
"description": "Runs ESLint on individual files after Write/Edit operations. Ensures code style and quality standards are met before proceeding."
},
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/typecheck-file.ts",
"description": "Runs TypeScript type checking on individual files after Write/Edit operations. Catches type errors early in development."
}
],
"matcher": "Write|Edit"
},
{
"hooks": [
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/vitest-file.ts",
"description": "Runs Vitest on test files after Write/Edit operations. Ensures tests pass before committing changes."
}
],
"matcher": "Write(**.test.ts)|Write(**.test.tsx)|Edit(**.test.ts)|Edit(**.test.tsx)"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 8
},
"eventStats": {
"PreToolUse": 1,
"SessionEnd": 3,
"PostToolUse": 4
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 6,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 8
}
}