Writing Hookify Rules

Create and test hookify rules for monitoring and moderating prompts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hookify rule creation streamlines content moderation by providing structured, reusable patterns to detect and respond to risky prompts in AI interactions.

Core Features & Use Cases

  • Define basic to advanced hookify rules using YAML frontmatter and Markdown messages.
  • Support for simple event patterns (bash, file, prompt) and advanced multi-condition rules.
  • Use cases include preventing dangerous commands, flagging sensitive data patterns, and guiding user interactions.

Quick Start

Write a hookify rule file named hookify.dangerous-local.local.md that flags a dangerous command pattern and displays a warning message.

Frequently Asked Questions about Writing Hookify Rules

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

FAQPage Schema
How do I write rules to moderate and flag risky AI prompts?

You define hookify rules using YAML frontmatter and Markdown messages to build structured patterns that detect risky prompts. This approach provides reusable content moderation rules to reduce risk in AI-assisted workflows.

What are hookify rules and how do they monitor AI commands?

Hookify rules are structured, reusable patterns that monitor and moderate prompts and commands in AI interactions. They use event types like bash, file, and prompt to detect dangerous patterns or sensitive data and display warning messages.

Can I use regex to detect sensitive data patterns in AI prompts?

Yes, you can use regex to create advanced hookify rules that flag sensitive data patterns. By defining multi-condition rules, you can reliably detect specific text patterns and guide user interactions to ensure prompt safety.

How do I prevent dangerous bash commands in automated AI workflows?

You prevent dangerous bash commands by writing hookify rule files that target bash event patterns. These rules detect risky command structures and display actionable warning messages to stop unsafe execution in AI-assisted workflows.

What is the best way to test multi-condition hookify rules for prompt safety?

The best way to test multi-condition hookify rules is to follow a comprehensive guide covering basic and advanced formats. Implement clear, actionable examples for your event types and message structures to ensure reliable, safe rule patterns.

Do I need any specific dependencies to create hookify rules?

No dependencies are required to create hookify rules. You can define safe rule patterns using standard YAML frontmatter and Markdown message formats without needing additional tools or external libraries.