Commit Graph
2 Commits
Author SHA1 Message Date
rUvandr c36f4beba7 fix(skills): hooks-automation runs only shipped CLI commands (#5219) (#5222)
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>
2026-12-01 12:28:02 -05:00
Muhammad Zubair 44675e8fd5 test(skills): check that every CLI command a shipped skill runs exists (#4552) (#4553) 2026-10-28 03:50:50 -04:00