Hookify Rule Writing
Official
生産性とワークフロー
Enforces development guardrails and automates project-specific workflows by defining custom triggers for Claude Code.
The Hookify Rule Writing skill enables developers to create sophisticated, automated guardrails within Claude Code using markdown-based rule files. By defining patterns for bash commands, file edits, and session transitions, users can guide Claude to follow best practices, avoid dangerous operations, and maintain project consistency. This skill provides the syntax and structural guidance necessary to implement everything from simple regex-based warnings for console logs to complex multi-condition checks for security-sensitive file modifications, ensuring Claude acts as a highly specialized and safe pair programmer.
主な機能
01Context-aware triggers for bash commands, file edits, and session completion
0231,862 GitHub stars
03Advanced pattern matching using Python-flavored regex and conditional operators
04Dynamic rule updates that take effect instantly without restarting the session
05Local-first configuration using familiar Markdown and YAML frontmatter
06Customizable action modes to either warn the AI or block prohibited operations
ユースケース
01Enforcing coding standards by flagging debug statements, sensitive keys, or prohibited library usage
02Creating mandatory pre-completion checklists to ensure tests and documentation are updated before stopping
03Preventing the execution of dangerous shell commands like destructive deletions or privilege escalation