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/claude-plugins --plugin behavior-hooksAutonomous security auditor. Scans a GitHub repo for vulnerabilities, triages false positives, writes a PoC, fixes each confirmed bug in its own PR, independently reviews the fix, and merges when the review is clean.
Create detailed Mermaid diagrams for architecture, flows, ERDs, and more — and improve READMEs with visual documentation
Git workflow - commit validation, conventional commits, PR creation, releases, code review
Mines your Claude Code history, config, and session transcripts, spots the workflows you keep repeating, and forges them into the right artifact — a skill, subagent, hook, slash command, workflow, or a full publishable plugin. Local-only analysis; hands off to mcp-forge, behavior-hooks, and matts-second-brain where they fit.
Turn any repo into rich, brand-matched promo videos. Scaffolds a config-driven Remotion + ffmpeg pipeline, inherits the repo's colours, fonts, logo and copy, and renders multiple aspect ratios (16:9, 9:16, 1:1, 4:5) with a live in-browser tuning UI.
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
Memory compression system for Claude Code - persist context across sessions
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
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.