H1Harnessscope: coreweight: 2fix: manual
H1: Hook event names valid
Why this rule exists (Empirical Evidence)
Corpus analysis: 35+ unique invalid event names across ~50 repos. Common: preCommit (git hook name, not Claude hook), sessionStart (wrong casing), postEditHook (invented). Invalid hooks silently never fire — users believe they have protection but don't.
Claude Code Repository Corpus Analysis (2026)
Anti-pattern (Triggers H1)
{ "hooks": { "preCommit": [...] } } // Typo! Silently never fires in Claude Code. Compliant pattern (Passes H1)
{ "hooks": { "PreToolUse": [{ "matcher": "Bash", "hooks": [...] }] } }Verify locally or online
npm install -g agentlint-ai && agentlint check --check H1