From hookify
Easily create custom hooks to prevent unwanted behaviors by analyzing conversation patterns or from explicit instructions. Use when the user asks to create a hook, warn about a command, or block a specific behavior.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hookify:hookifyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Easily create custom hooks to prevent unwanted behaviors by analyzing conversation patterns or from explicit instructions.
Easily create custom hooks to prevent unwanted behaviors by analyzing conversation patterns or from explicit instructions.
The hookify skill makes it simple to create hooks without editing complex JSON files. Instead, you create lightweight markdown configuration files that define patterns to watch for and messages to show when those patterns match.
Key features:
When the user asks to hook or warn about something (e.g., "Warn me when I use rm -rf commands" or "Don't use console.log in TypeScript files"):
.claude/hookify.[name].local.md or .gemini/rules/hookify.[name].md).Create a file like .claude/hookify.dangerous-rm.local.md:
---
name: block-dangerous-rm
enabled: true
event: bash
pattern: rm\s+-rf
action: block
---
⚠️ **Dangerous rm command detected!**
This command could delete important files. Please:
- Verify the path is correct
- Consider using a safer approach
- Make sure you have backups
Action field:
warn: Shows warning but allows operation (default)block: Prevents operation from executing---
name: warn-sensitive-files
enabled: true
event: file
action: warn
conditions:
- field: file_path
operator: regex_match
pattern: \.env$|credentials|secrets
- field: new_text
operator: contains
pattern: KEY
---
🔐 **Sensitive file edit detected!**
Ensure credentials are not hardcoded and file is in .gitignore.
bash: Triggers on Bash tool commandsfile: Triggers on Edit, Write, MultiEdit toolsstop: Triggers when the agent wants to stopprompt: Triggers on user prompt submissionall: Triggers on all eventsnpx claudepluginhub andersonlimahw/lemon-ai-hub --plugin hookifyGuides creation of Hookify rules for Claude Code to monitor bash commands, file edits, prompts, and stops using regex patterns, conditions, events, and actions.
Guides users in creating and managing hookify rules — markdown files with YAML frontmatter that define patterns and messages for bash, file, stop, or prompt events.
Guides creation of Hookify rule files with YAML frontmatter, defining patterns, events, and actions for automated responses in Claude Code.