Writing Hookify Rules

Guides developers in creating custom automation rules and guardrails for Claude Code using the Hookify plugin syntax.

Writing Hookify Rules provides a comprehensive framework for defining custom triggers and guardrails within Claude Code. By using markdown files with YAML frontmatter, developers can configure the Hookify plugin to monitor bash commands, file edits, and session completion events. This skill provides the syntax for simple and advanced multi-condition rules, helping teams prevent dangerous operations, maintain code quality through regex-based warnings, and enforce project-specific workflows or checklists directly within the AI's execution environment.

主要功能

01Comprehensive YAML frontmatter syntax for rule definition
02Contextual message templates with markdown support for agent guidance
03Advanced multi-condition logic using regex and substring operators
04Event-based triggers for bash, file edits, prompts, and completion
05Standardized naming and organization patterns for project-level rules
060 GitHub stars

使用场景

01Preventing dangerous terminal commands like recursive deletions or privilege escalation
02Flagging debug code, sensitive credentials, or anti-patterns during file edits
03Enforcing pre-flight checklists and validation steps before a task is marked complete