Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By crouton-labsv1.0.1GPL-3.0In 1 marketplace
Blocks or warns on Claude actions you don't want, using rules written as markdown files. Lifecycle hooks check each tool call and prompt against these rules, and rules can block commands.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 critical · 3 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
A command runs shell commands (! syntax) when you invoke it
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Prevent unwanted behaviors through lifecycle hooks that check markdown-defined rules before and after tool execution.
Hookify installs lifecycle hooks (PreToolUse, PostToolUse, Stop, UserPromptSubmit, TeammateIdle, TaskCompleted) that evaluate rules stored in markdown files. Rules define patterns to match and actions to take (warn or block).
Rules are discovered by walking up from CWD to home directory:
.claude/hookify.*.local.md (current directory and all parents)~/.claude/hookify.*.local.md (global rules)Changes take effect immediately—no restart needed.
/hookify [behavior] - Create rules from conversation analysis or explicit instructions/hookify:list - Show all configured rules/hookify:configure - Toggle rules on/off interactively/hookify:help - Get help with hookifyLocation: .claude/hookify.{name}.local.md or ~/.claude/hookify.{name}.local.md
---
name: warn-dangerous-rm
enabled: true
event: bash
pattern: rm\s+-rf
action: warn
---
⚠️ **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
---
name: warn-env-credentials
enabled: true
event: file
action: warn
conditions:
- field: file_path
operator: regex_match
pattern: \.env$
- field: new_text
operator: contains
pattern: API_KEY
---
🔐 **Credentials in .env file detected**
Ensure this file is in .gitignore and never committed to version control.
---
name: warn-removed-tests
enabled: true
event: diff
action: warn
conditions:
- field: file_path
operator: regex_match
pattern: \.test\.(ts|js)$
- field: diff
operator: regex_match
pattern: ^-.*\b(it|test|describe)\s*\(
---
⚠️ **Test removal detected**
You're removing test cases. Make sure this is intentional and that test
coverage remains adequate.
The diff field contains a unified diff format where:
- were removed+ were added| Field | Required | Values | Description |
|---|---|---|---|
name | Yes | kebab-case string | Unique identifier (e.g., warn-dangerous-rm) |
enabled | Yes | true | false | Whether rule is active |
event | Yes | bash | file | diff | stop | prompt | teammate_idle | task_completed | all | Which lifecycle events to match |
action | No | warn | block | Default: warn. Block prevents operation |
pattern | No | regex string | Simple pattern for single-condition rules |
conditions | No | array | Complex multi-condition rules (see below) |
Simple pattern is shorthand for a single condition. These are equivalent:
# Simple
event: bash
pattern: rm\s+-rf
# Expanded
event: bash
conditions:
- field: command
operator: regex_match
pattern: rm\s+-rf
| Event | Triggers On | Available Fields | Use Cases |
|---|---|---|---|
bash | Bash tool execution | command | Block dangerous commands (rm -rf, chmod 777) |
file | Edit/Write/MultiEdit | file_path, new_text, old_text, content | Warn on code patterns (console.log), sensitive files |
diff | Edit tool | diff, file_path, old_string, new_string | Match changes in unified diff format (+added, -removed) |
stop | Agent attempts to stop | reason, transcript | Require tests before completion |
prompt | User submits prompt | prompt | Context injection based on user input |
teammate_idle | Teammate about to go idle | content | Force continuation until artifacts produced |
task_completed | Task marked complete | content | Gate completion with verification checks |
all | All events | Field depends on tool | Cross-cutting concerns |
conditions:
- field: command # Which field to check
operator: regex_match # How to match
pattern: rm\s+-rf # What to match
Operators:
regex_match - Python regex patterncontains - Substring presentequals - Exact matchnot_contains - Substring absentstarts_with - Prefix matchends_with - Suffix matchAll conditions must match for rule to trigger (AND logic).
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub crouton-labs/crouton-kit --plugin hookifyPlugins from other owners that cover similar ground