writing-hookify-rules

Create Hookify rule files with markdown frontmatter for event-based guardrails.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hookify rules let you detect risky or unwanted patterns in prompts, shell commands, file edits, and stop events without manually reviewing every interaction.

Core Features & Use Cases

  • Pattern-based guardrails: Define regex or multi-condition rules to warn, block, or guide behavior when specific text appears.
  • Flexible event coverage: Target bash, file, stop, prompt, or all events depending on where the trigger should apply.
  • Practical use cases: Create protections for dangerous commands, sensitive file edits, debug logging, deployment reminders, or custom workflow checks.

Quick Start

Ask for a Hookify rule that matches your target pattern and writes the complete .claude/hookify.name.local.md file with the correct frontmatter and 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 custom guardrails to block risky bash commands in Claude?

You can create guardrails by generating Hookify rule files with markdown frontmatter and a message body. These rules apply regex pattern matching to bash commands, triggering warnings or guided responses when unwanted text appears.

What is a Hookify rule and how does it detect unwanted prompt patterns?

A Hookify rule is a markdown file with YAML frontmatter that detects unwanted patterns using regex or multi-condition logic. It targets prompt content, shell commands, file edits, and stop events to warn or guide behavior without manual review.

Can I use regex conditions to warn about sensitive file edits automatically?

Yes, you can configure Hookify rules with regex conditions to target file edit events. The rule's frontmatter specifies the event type and conditions, while the message body delivers the warning when the sensitive file edit pattern is matched.

How do I write markdown frontmatter for Hookify rules targeting multiple events?

Valid frontmatter requires name, enabled, event, and optional action or conditions fields. You can set the event field to bash, file, stop, prompt, or all, allowing a single rule to apply custom workflow checks across multiple interaction types.

What are the limitations of using Hookify rules for deployment reminders?

Hookify rules depend on valid markdown frontmatter and regex pattern matching to function. They are limited to detecting specified text patterns in bash, file, stop, and prompt events, meaning complex contextual deployment logic cannot be evaluated.

Do I need dependencies to set up custom workflow checks for debug logging?

No dependencies are required to set up custom workflow checks. You simply need to define a Hookify rule with the correct markdown frontmatter and message body to detect debug logging patterns and trigger the appropriate guided response.