By wrxck
Detects phrases signaling corrections or frustrations with Claude's behavior (like 'don't do that') and automatically writes preventive hooks to .claude/settings.json, enforcing better outputs in all future interactions without manual setup.
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
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub wrxck/behavior-hooksA persistent knowledge brain for Claude Code, backed by Trilium Notes. Standards, decisions, lessons learned, and per-app context that survive across sessions and grow over time. Includes a setup wizard, an MCP server with brain_recall / brain_remember / brain_scan_transcripts tools, and a discipline skill that makes Claude actually use it.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Memory compression system for Claude Code - persist context across sessions
Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.