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 grixuv0.6.0MITIn 1 marketplace
Turns a mistake Claude repeats into a rule that warns or blocks the action next time. Its hooks run on every tool call, prompt and finished response; it is a fork of the official hookify plugin.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 critical · 2 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
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
hooks, rules, guardrails, safety, regex-patterns, mistake-prevention, pretooluse, block-commands ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
Turn "don't do X" into a rule Claude Code enforces. You describe the behavior, in a sentence or by
pointing at a mistake Claude just made, and hookify writes a small markdown rule file. Its built-in
hooks read those files on every tool call and either show a warning or block the action. You never
edit settings.json or write a hook script.
This is a fork of the official hookify plugin. See What this fork adds.
In Claude Code, run:
/plugin marketplace add grixu/cc-toolkit
/plugin install hookify@cc-toolkit
Hookify needs Python 3.9 or later, available as python3 on your PATH. It has no other dependencies.
Ask for a rule:
/hookify:hookify Block rm -rf
Claude asks whether to warn or block and whether the rule is for the team or just you, then writes
a rule file such as .claude/hookify.block-rm-rf.rule.md (team) or
.claude/hookify.block-rm-rf.local.md (you).
Try it. You do not need to restart: hookify re-reads the rule files on every tool call.
Run rm -rf /tmp/hookify-test
Claude Code shows Hookify: Blocked operation by rule: block-rm-rf, and the command does not run.
Claude receives the rule's message as the reason.
Run /hookify:hookify with no arguments to have Claude scan the current conversation for things you
corrected and propose rules for them.
A rule is a markdown file. The YAML frontmatter says when the rule fires; the body is the message.
---
name: block-rm-rf
enabled: true
event: bash
pattern: rm\s+-rf
action: block
---
Do not run rm -rf. Delete specific files by name, or ask the user first.
To check more than one thing, use conditions. A rule fires only when every condition matches.
---
name: warn-hardcoded-secret
enabled: true
event: file
conditions:
- field: file_path
operator: regex_match
pattern: \.tsx?$
- field: new_text
operator: regex_match
pattern: (API_KEY|SECRET|TOKEN)\s*=\s*["']
---
Read secrets from environment variables, not string literals.
| Key | Values | Default |
|---|---|---|
name | Unique name. Also used to override a rule (see below) | unnamed |
enabled | true, false | true |
event | bash, file, prompt, stop, all (see below) | all |
action | warn shows the message and lets the action run; block stops it | warn |
pattern | A regular expression checked against the event's main field | none |
conditions | A list of field, operator, pattern | none |
| Event | Fires when | Main field for pattern | Other fields | What block does |
|---|---|---|---|---|
bash | Claude runs a Bash command | command | none | Denies the command |
file | Claude calls Edit, Write or MultiEdit | new_text (the text being written) | file_path, old_text (Edit only) | Denies the edit |
prompt | You submit a prompt | prompt | none | Shows the message; the prompt still goes through |
stop | Claude finishes its turn | none, use conditions | transcript (the whole session log) | Makes Claude keep working, with your message as the reason |
all | Any of the above | content (file edits only) | any of the above | Same as the matching event |
Patterns are Python regular expressions. They match anywhere in the field and ignore case. The other
operators, contains, not_contains, equals, starts_with and ends_with, compare literal text
and are case-sensitive.
Write patterns unquoted, as in the examples above. Inside double quotes, write \\ for each
backslash, as YAML requires.
Every field, operator and parser rule is in references/rule-syntax.md. Ready-made rules are in examples/.
| File | Applies to | Commit it? |
|---|---|---|
<project>/.claude/hookify.<name>.local.md | You, in this project | No. Add .claude/*.local.md to your .gitignore |
<project>/.claude/hookify.<name>.rule.md | Everyone working on this project | Yes |
~/.claude/hookify.<name>.local.md | You, in every project | Not in a project repository |
Hookify ignores files without the hookify. prefix or the .local.md / .rule.md suffix. When two
rules share a name, the one higher in the table wins. To switch off a team rule for yourself, create a
.local.md file with the same name and enabled: false.
/hookify:hookify writes project rules only. Create rules in ~/.claude/ by hand.
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 grixu/cc-toolkit --plugin hookifyPlugins from other owners that cover similar ground