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 skymanbpv0.42.0MITIn 1 marketplace
Stops the agent from editing unread files, hardcoding secrets or force-pushing past hooks, instead of relying on prompts. Hooks run on every tool call and before each reply ends, denying or blocking violations; it says its guards fail open.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
2 cautions to review before installing
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
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Rules your coding agent physically cannot ignore. A Claude Code plugin — and an LLM-agnostic rule pack — that stops reactive patching, guessed citations, surface-level "fixes" and premature "done" claims by intercepting the agent's own tool calls, not by asking it nicely.
Every "be rigorous" instruction you put in a prompt shares one flaw: the model decides whether to follow it. Under pressure — a long session, a compacted context, a failing test at 2am — it decides not to, and tells you it did.
cc-enforcer moves the important half of that contract out of the prompt and
into the harness. Claude Code hooks run before each tool call and before
each reply is allowed to end. A violation returns a real deny / block
verdict, so the agent cannot reason, apologise, or "just this once" its way past
it.
Twelve rules. Ten of them backed by a hook. Zero dependencies, standard library only, and every guard fails open — a bug in the discipline can never brick your agent.
LLM coding agents (Claude Code, Cursor, Copilot, Cline, Aider…) fail in predictable, nameable ways. Each row is a behaviour this plugin was built to make impossible rather than discouraged:
| Lazy pattern | What it looks like in practice | Answer |
|---|---|---|
| Reactive patching | Sees a bug, wraps it in try/except, declares done. | rule 03 + 09, PreToolUse DENY |
| Guessed citations | Cites files, line numbers or APIs that do not exist. | rule 01 + 05, /cc-enforcer:verify (on demand); Stop layer (g) catches a false edit claim |
| Keyword-search-only | Greps once, edits, never reads the surrounding architecture. | rule 04 + 08, PreToolUse DENY |
| Memory dependence | Acts on stale recollection instead of re-reading the file. | rule 04 + 08, read-before-edit gate (the first edit of each file in a session) |
| Root-cause bypass | sleep for races, --no-verify for hooks, swallowed exceptions. | rule 03, PreToolUse(Bash) DENY |
| Half-finished work | Stops at "should work", leaves TODOs, skips the whole flow. | rule 07, Stop layer (d) |
| Premature done-claim | "Fixed" without re-running the failing case or comparing evidence. | rule 06, Stop layers (a)/(c) |
| Stale references | Changes a symbol; leaves its docs, tests and translations behind. | rule 12, Stop layer (i) |
Effect goal: an agent that either does the disciplined thing or visibly fails to — never one that quietly skips a step and reports success.
The reasoning contract, as plain Markdown in rules/. Ten of the
twelve are backed by a hook; rules 02 and 05 are text-level discipline.
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 skymanbp/cc-enforcer --plugin cc-enforcerPlugins from other owners that cover similar ground