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 byme8v0.1.0MITIn 1 marketplace
PreToolUse guards that enforce coding-agent laws: comment policy, workaround ledger, scoped search, safe deletions, edit-tools-only, no polling loops, short foreground commands
Claude loads one when your task matches it, or you run it by name.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
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.
disabled_lawsComma-separated guard names to switch off: bash, comment, workaround, edit-tools, polling-loop
stringdefault
A Claude Code plugin: one Native AOT PreToolUse guard that enforces coding-agent laws on Bash, PowerShell, Write, Edit and MultiEdit calls.
| Guard | Tools | Rules |
|---|---|---|
comment | Write, Edit, MultiEdit | RULE-comment-policy |
workaround | Write, Edit, MultiEdit | RULE-workaround-ledger |
edit-tools | Bash, PowerShell | RULE-edit-tools-only |
bash | Bash, PowerShell | RULE-scoped-search RULE-scratch-temp RULE-outright-denials RULE-dedicated-rm RULE-worktree-rm RULE-item-folder-owned |
polling-loop | Bash | RULE-no-polling-loop |
Each rule is described in docs/claude-md-snippet.md; paste that block into ~/.claude/CLAUDE.md.
PATHonFailure on the guard hook)claude plugin marketplace add byme8/claude2
claude plugin install law@byme8
Then restart Claude Code. At session start build.cs hashes the guard sources and, when the installed guard is missing or stale, publishes it (Native AOT, falling back to JIT) into <plugin data>/bin/law.exe — that name on every OS. The first session waits about a minute; later sessions skip the build until the sources change.
The guard hook sets onFailure: block, so while the guard is missing every guarded call is refused. The build log is ~/.claude/plugins/data/<plugin-id>/build.log.
disabled_laws plugin option (/config): comma-separated guard names to switch off.~/.config/claude-law/allow.list: absolute script paths the bash guard lets run, one per line.BACKLOG_WORK_ROOT: control root for the orchestrator rules, default ~/Develop/Work.LAW_REFUSED_DELETIONS_LEDGER: refused-deletion log, default ~/.local/state/claude-law/refused-deletions.md.dotnet publish law.cs -o ./bin
dotnet run tests/law.tests.cs
dotnet run build.cs -- . <data-dir>
claude --plugin-dir .
The tests drive bin/law (override with LAW_TEST_BINARY) and write a decision snapshot to tests/artifacts/.
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.
Plugins from other owners that cover similar ground