Standardizes project guardrails and automated workflows by creating custom regex-based rules for Claude Code.
Hookify Rule Writing is a specialized skill for defining automated triggers and guardrails within Claude Code environments. It enables developers to configure specialized markdown files that monitor bash commands, file edits, and session terminations in real-time. By implementing regex patterns and multi-field conditions, this skill helps prevent dangerous operations, enforces coding standards, and provides contextual guidance exactly when the AI needs it most. Whether you are blocking unsafe terminal commands or requiring checklists before task completion, this skill ensures Claude adheres to your project's specific constraints and best practices.
Key Features
01Multi-condition logic supporting regex_match, contains, and exact string equals.
02Custom markdown feedback for real-time warnings and operation blocking.
03Dynamic rule management via YAML frontmatter for rapid workflow adjustments.
040 GitHub stars
05Regex-based pattern matching for bash commands, file edits, and user prompts.
06Event-driven triggers for terminal actions, file operations, and session stops.
Use Cases
01Creating automated pre-completion checklists that Claude must verify before stopping a session.
02Preventing accidental execution of dangerous terminal commands like 'rm -rf' or privilege escalation.
03Enforcing security best practices by blocking hardcoded API keys and sensitive data in configuration files.