hookify-rules

Define regex-based hookify rules with YAML frontmatter to monitor bash, file, and prompt events.

2|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/MomoDaviluke/star-citizen-promotion --skill hookify-rules-momodaviluke
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hookify-rules
Source: https://github.com/MomoDaviluke/star-citizen-promotion/tree/main/.agents/skills/ecc/hookify-rules
Command: npx skills add https://github.com/MomoDaviluke/star-citizen-promotion --skill hookify-rules-momodaviluke

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hookify rules help teams automatically detect and respond to risky patterns by defining regex-based rules and corresponding messages. They enforce guardrails across code and prompts, reducing risky edits and unsafe actions.

Core Features & Use Cases

  • Basic Rule Format: Frontmatter with name, enabled, event, pattern, and a message to display.
  • Event coverage: bash, file, prompt, and more, enabling warnings or blocks when patterns match.
  • Advanced conditions: Supports multiple conditions to refine when a rule triggers.

Quick Start

Create a new hookify rule by adding a file at .claude/hookify.{rule-name}.local.md with the required frontmatter and a cautionary message.

Frequently Asked Questions about hookify-rules

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

FAQPage Schema
How do I define regex rules to guard against risky patterns in code?

You define regex rules using YAML frontmatter with fields like name, enabled, event, pattern, and message to watch for risky patterns in code and prompts. This creates automated guardrails that trigger warnings or blocks when patterns match.

Can I use hookify rules to monitor bash commands and file edits?

Yes, hookify rules can monitor bash commands and file edits across software development pipelines. You specify the target event type in the frontmatter, and the rule triggers warnings or blocks when matching patterns are detected.

What is the best way to enforce security patterns across a development pipeline?

The best way to enforce security patterns is defining regex-based rules with cautionary messages in local markdown files. This approach automatically detects and responds to risky patterns, reducing unsafe actions without manual reviews.

How do I set up a new hookify rule file?

To set up a new hookify rule, create a file at .claude/hookify.{rule-name}.local.md. Include the required YAML frontmatter fields like name, enabled, event, pattern, and a message to display when the rule triggers.

Can I add conditions to refine when a code pattern rule triggers?

Yes, you can add advanced conditions to refine when a hookify rule triggers. These multiple optional conditions work alongside the required pattern field to precisely control when warnings or blocks activate during software development.

Do I need any dependencies to run hookify rules?

No dependencies are required to define hookify rules. You only need to create local markdown files with YAML frontmatter specifying the event, regex pattern, and message to start monitoring risky code and prompt patterns.