writing-hookify-rules

Define markdown-based hookify rules to monitor Claude interactions across events.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hookify rules provide a simple, declarative way to define patterns and messages to guard Claude interactions. Rules are stored as .claude/hookify.{rule-name}.local.md files and are applied automatically during tool use.

Core Features & Use Cases

  • Define rules with fields like name, enabled, event, pattern, and optional conditions.
  • Support multiple events (bash, file, stop, prompt) and precise, actionable messages.
  • Real-world use: block dangerous prompts, warn on sensitive data patterns, or guide users toward safe prompts.

Quick Start

Create a new hookify rule by adding a local Markdown file at .claude/hookify.{name}.local.md with your pattern, conditions, and 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 define markdown rules to monitor Claude interactions and block dangerous prompts?

Markdown rules to monitor Claude interactions are defined by creating local files at .claude/hookify.{name}.local.md with fields like name, enabled, event, pattern, conditions, and messages to guard tool use.

What events can hookify rules apply to during Claude workflows?

Hookify rules can apply to bash, file, prompt, and stop events during Claude workflows, allowing you to monitor interactions and trigger precise, actionable messages when patterns or conditions are matched.

How do I create multi-condition rules for Claude security patterns?

Multi-condition rules for Claude security patterns are created by adding optional conditions fields alongside pattern and message metadata in your markdown file, enabling complex matching logic for sensitive data or dangerous prompts.

Do I need any external dependencies to enforce hookify rules across bash and file events?

No external dependencies are required to enforce hookify rules across bash and file events; rules are stored as local markdown files and applied automatically during tool use within the Claude environment.

What is the best way to guide users toward safe prompts using declarative patterns?

The best way to guide users toward safe prompts is defining declarative markdown rules with frontmatter metadata and precise messages, which automatically warn or block interactions based on matched patterns.

Can I disable a specific hookify rule without deleting the markdown file?

Yes, you can disable a specific hookify rule without deleting the markdown file by setting the enabled field in the rule's frontmatter metadata to false, stopping its application during Claude interactions.