What problem does it solve?
This Skill provides comprehensive guidance and examples for creating, refining, and managing Hookify rules, enabling users to effectively customize agent behavior and enforce project standards.
Core Features & Use Cases
- Rule Definition: Learn the structure and syntax for defining Hookify rules, including frontmatter fields like
name, event, pattern, and conditions.
- Event Handling: Understand how to trigger rules based on different events (
bash, file, stop, prompt).
- Pattern Matching: Master the use of regex for precise pattern matching in commands, file content, and user prompts.
- Use Case: A developer needs to ensure that no sensitive API keys are accidentally committed to version control. They use this Skill to learn how to write a
file event Hookify rule that checks for patterns like API_KEY in .env files and warns or blocks the commit.
Quick Start
Use the writing hookify rules skill to create a new rule that warns about the use of rm -rf in bash commands.