What does this skill do?

The Hookify Skill Rules allow you to create and configure declarative rules in Markdown with YAML frontmatter that monitor bash commands, files, and user prompts. When a pattern matches, the rule displays a warning to Claude or blocks the operation entirely, preventing dangerous actions such as `rm -rf`, credential exposure, or forgotten debug code before changes are confirmed.

Dangerous Commands
Detects and blocks commands such as `rm -rf` or privilege escalations using `sudo` before they are executed.
Debug code
Look for console.log, debugger, or other forgotten debugging traces before committing changes.
Sensitive Files
Protects .env files, credentials, and private keys by alerting you when they are modified or exposed.
Automatic Reminders
Add reminders when tasks are completed, such as running the full suite of tests before closing the job.

Usage examples

🛡️ Block dangerous command
Create a rule that blocks any `rm -rf` command in my project.
🔍 Detect debug code
Create a rule that checks for `console.log` and `debugger` before committing.
🔐 Protect the .env file
Set up a rule that notifies you if someone edits a .env file and adds an API key.
⏱️ Test Reminder
Create an automatic reminder to run `npm test` when you finish a task.

Features

Declarative Rules in Markdown Define templates using YAML frontmatter and a Markdown body, which Claude reads as context when triggered.
Multiple events Monitor Bash commands, file editing, user prompts, and the "stop" event all with a single system.
Advanced Settings Combine fields such as `file_path` or `new_text` with the `regex_match` and `contains` operators to create complex rules.
Suspension of Operations Rules with the `action: block` attribute halt the operation completely until the user confirms or modifies their action.
Management Using Slash Commands Create rules with /hookify, list the active ones with /hookify-list, and enable or disable them with /hookify-configure.

Frequently asked questions

The skill supports five events: bash (commands), file (file editing), stop (task termination), prompt (user message), and all (all of the above).
Adds "action: block" to the rule's YAML frontmatter. The operation will be paused until the user confirms or modifies their action.
No. The rules are saved as .local.md files in the .claude/ folder. We recommend adding .claude/*.local.md to .gitignore to keep them local.
Yes. Run /hookify without any arguments, and the skill will analyze the current conversation to suggest a rule that makes sense in the context.
Hookify Rules — Pattern Monitoring with Claude AI

¿Prefieres escuchar el contenido? Genera la narración de audio con un clic.