The init-installed hooks-automation skill told agents to run nine hooks
subcommands and `metrics score`, none of which the CLI registers. Three
of them did harm: Grep matchers ran a failing command on every search,
the check-protected PreToolUse example exited 1 (which Claude Code does
not treat as a block), and the pre-push gate read an empty truth score
and always passed.
- drop the pre-search, post-search, MCP Integration and Memory
Coordination hook sections and both Grep matchers
- protected files use Claude Code permissions.deny instead
- the pre-push gate blocks on the test suite's exit code
- debugging example lists hooks instead of a missing validate-config
- baseline 25 -> 15; regression test checks the skill has no unknown
commands
Reported by @z4forzubair.
Co-authored-by: r <r@x>