fix: correct hooks.json structure per Claude Code documentation #344
Reference in New Issue
Block a user
Delete Branch "fix/hooks-json-structure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Three plugins had incorrect hooks.json structure that caused hooks to fail silently:
hooksarray without matcherhooksarray without matchereventfield)Root Cause
Per Claude Code documentation, the correct structure depends on whether a matcher is used:
Without matcher (direct in event array):
With matcher (nested hooks array):
Changes
eventfieldTest Plan
./scripts/verify-hooks.shpasses🤖 Generated with Claude Code