writing-hookify-rules

Define Hookify rules in .claude/hookify.{rule-name}.local.md files.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/onelee85/my-skills --skill writing-hookify-rules-onelee85
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-hookify-rules
Source: https://github.com/onelee85/my-skills/tree/main/claude-plugins-official/plugins/hookify/skills/writing-rules
Command: npx skills add https://github.com/onelee85/my-skills --skill writing-hookify-rules-onelee85

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hookify rules define patterns to watch for and messages to show when those patterns match. Rules are stored in .claude/hookify.{rule-name}.local.md files.

Core Features & Use Cases

  • Define and manage rule metadata such as name, enabled status, event type, and patterns.
  • Support simple and advanced formats with optional conditions to refine matches.
  • Use cases include guiding user prompts, guarding bash commands, and auditing file edits.

Quick Start

Create a new file at .claude/hookify.{name}.local.md with proper frontmatter and a message body, then test by triggering the corresponding Hookify event.

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 Hookify rules to watch for patterns and show messages?

Hookify rules support five event types: bash, file, stop, prompt, and all. You specify the target event in the YAML frontmatter to determine when the rule body evaluates conditions and triggers its message.

What is the required format for Hookify rule files?

You test Hookify rules by triggering the corresponding event specified in the frontmatter, such as executing a bash command or editing a file. This validates that your pattern conditions correctly match and display the intended message.

Can I use Hookify rules to guard bash commands and audit file edits?

Yes, Hookify rules can guard bash commands and audit file edits by defining patterns for bash or file events. The rule evaluates optional conditions against the event payload and displays a custom message to guide or warn the user.

How do I enable or disable specific Hookify rules?

You manage Hookify rule metadata, including the enabled status, directly within the YAML frontmatter of the local markdown file. Setting the enabled flag controls whether the rule actively watches for its defined patterns and events.