Configures automated rules and safety guardrails for Claude Code to monitor commands, file edits, and project workflows.
The Hookify Rules skill provides a comprehensive framework for defining custom triggers and guardrails within the Claude Code environment. By utilizing markdown-based rule files with YAML frontmatter, it allows developers to intercept bash commands, monitor file modifications for specific patterns (like console logs or exposed API keys), and enforce project-specific checklists during the agent's execution. This skill is essential for maintaining code quality, preventing the accidental execution of dangerous shell commands, and automating the review process for common coding pitfalls.
Key Features
01Create YAML-frontmatter rules to monitor bash, file, stop, and prompt events
02Define complex multi-condition triggers using regex, substring, and exact match operators
03Configure custom actions including warnings or blocking operations to prevent errors
04Manage project-specific rules via local markdown files stored in the .claude directory
05Deliver rich markdown-formatted guidance and suggestions when specific patterns are detected
062 GitHub stars
Use Cases
01Preventing accidental execution of dangerous shell commands like rm -rf or unauthorized privilege escalation
02Enforcing coding standards by warning against debug logs, eval(), or insecure patterns in production code
03Implementing mandatory completion checklists to ensure tests are run and documentation is updated before Claude finishes a task