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.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Stop telling Claude the same thing twice.
A Claude Code plugin that detects when you're unhappy with something Claude did, and writes an enforceable hook to make sure it never happens again.
You've written your CLAUDE.md. You've been clear about your rules. And yet:
Co-Authored-By to commits when you said not togit add . when you told it to stage specific filesYou correct it. It apologizes. It does it again next session.
CLAUDE.md is a suggestion. Hooks are the law.
The difference between "please don't do this" in a markdown file and a PreToolUse hook is the difference between a polite sign and a locked door. One relies on Claude reading, understanding, and consistently applying your preferences across every session. The other runs a shell command that blocks the action before it happens.
| Behavior | Hook Type | Example |
|---|---|---|
| Deploying to the wrong environment | PreToolUse (MCP) | Block fleet_deploy for production app |
| Pushing to protected branches | PreToolUse (Bash) | Block git push origin main |
| Running dangerous commands | PreToolUse (Bash) | Block rm -rf, DROP TABLE, etc. |
| Modifying files it shouldn't | PreToolUse (Write/Edit) | Block writes to config files |
Using git add . | PreToolUse (Bash) | Block broad staging commands |
| Adding unwanted code patterns | PostToolUse (Write/Edit) | Warn on added comments, console.logs |
| Skipping safety hooks | PreToolUse (Bash) | Block --no-verify |
For things that can't be hooked (style preferences, communication tone), it saves a memory instead - but it's honest about the difference.
Add to your settings:
{
"enabledPlugins": {
"behavior-hooks@wrxck-claude-plugins": true
}
}
Or if you already have the wrxck-claude-plugins marketplace configured, enable it from the plugin menu.
gh repo clone wrxck/behavior-hooks
| CLAUDE.md | behavior-hooks | |
|---|---|---|
| Enforcement | Advisory - Claude reads it and tries to follow it | Mandatory - hook runs before the action, blocks if violated |
| Persistence | Claude may forget across sessions or after context compaction | Hooks persist in settings files, survive every session |
| Specificity | Natural language, open to interpretation | Exact tool name + pattern match + shell condition |
| Feedback loop | You notice the violation, correct it, hope it sticks | You correct once, the hook prevents recurrence forever |
| Scope | Per-project | Per-project or global, your choice |
CLAUDE.md is still valuable for guidelines, preferences, and context. But for hard rules - things Claude must never do - hooks are the only reliable mechanism.
MIT
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.
behavior-hooks@wrxck-claude-plugins is listed by wrxck/claude-plugins — review the source before installing
npx claudepluginhub wrxck/claude-plugins --plugin behavior-hooksPlugins from other owners that cover similar ground