Validates Claude Code hook configurations to ensure correct schema, event triggers, and script references.
The validate-hooks skill is a specialized utility for developers using Claude Code who want to ensure their automation hooks are configured correctly. It performs a comprehensive audit of the .claude/hooks/hooks.json file, checking for JSON syntax errors, validating specific event types like tool-use and user-prompt-submit, and verifying that all referenced command scripts exist on the local file system. This skill is essential for troubleshooting why specific hooks aren't firing and maintaining clean, reliable AI-driven project workflows.
主要功能
01Command script existence checking
02Regex matcher pattern validation
03Verification of hook events and action types
04Comprehensive hooks.json schema validation
05Support for custom paths and verbose output
062 GitHub stars
使用场景
01Troubleshooting why a Claude Code hook isn't triggering as expected
02Ensuring new automation configurations follow the correct JSON schema
03Validating project-specific script paths within a hook configuration