Writing Hookify Rules

Create and maintain hookify rules for Claude prompt interactions.

Updated May 15, 2026
One-click install
npx skills add https://github.com/nachopalmeri/agents-system --skill writing-hookify-rules-nachopalmeri
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Writing Hookify Rules
Source: https://github.com/nachopalmeri/agents-system/tree/main/.agents/skills/writing-hookify-rules
Command: npx skills add https://github.com/nachopalmeri/agents-system --skill writing-hookify-rules-nachopalmeri

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing Hookify Rules enables teams to define clear, actionable guardrails for Claude interactions by expressing expected prompts, patterns, and messages in a standardized format.

Core Features & Use Cases

  • Frontmatter-driven rule templates that define name, enabled, event, pattern, and conditions, plus a guidance message.
  • Support for basic and advanced rule formats, including multi-condition rules with various field operators.
  • Workflow guidance for creating, refining, and deploying local hookify rules that monitor bash, file, stop, and prompt events.

Quick Start

Create a hookify rule file in your project root at .claude/hookify.{name}.local.md with frontmatter fields and a sample message body.

Frequently Asked Questions about Writing Hookify Rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create pattern-matching rules to monitor Claude prompt interactions?

Hookify rules use markdown frontmatter to define event types, pattern-matching conditions, and guidance messages for Claude interactions. They monitor bash commands, file edits, stops, and prompts to enforce standardized guardrails.

What events can I target with hookify rules for Claude?

Hookify rules can target bash, file, stop, and prompt events. You specify the event type in the frontmatter to monitor specific Claude interactions and apply pattern-based conditions to trigger guidance messages.

Can I use multiple conditions in a single hookify rule?

Yes, advanced hookify rule formats support multi-condition rules with various field operators. This allows you to combine multiple pattern-matching conditions to create complex monitoring logic for Claude interactions.

What is the best way to structure a hookify rule file?

The best way to structure a hookify rule file is using frontmatter-driven templates with required fields like name, enabled, event, pattern, and conditions, followed by a guidance message body in the markdown content below the frontmatter.

Do I need any dependencies to deploy local hookify rules?

No external dependencies are required to deploy local hookify rules. You create markdown files with proper frontmatter fields and guidance messages directly in your project root at .claude/hookify.{name}.local.md to start monitoring Claude events.

Why are my hookify rules not triggering on Claude prompt events?

Hookify rules may not trigger if frontmatter fields like event type, enabled status, or pattern conditions are incorrectly specified. Verify that your event typing matches prompt events and conditions use valid field operators for pattern-matching.