What is rules-enforcer?
rules-enforcer is a Claude Code mod by lnodonly that enforces a project's .claude/rules.json: required skills before edits, and doc updates in the same turn. It is listed under Interface and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | lnodonly |
| Repository | lnodonly/claude-mods |
| Popularity | no public popularity data yet |
| Category | Interface |
| Security | Review before installing (76/100) |
| Rank | #7,077 of 9,397 Claude Code mods; #2,998 in Interface |
| License | MIT |
| Last commit | 2026-10-16 |
| Hooks | 9 events |
| Sees | Bash calls, Edit calls, Monitor calls, NotebookEdit calls, Skill calls, Write calls, classic hooks, every skill, mcp__rules-enforcer__waive_doc_update calls |
| Draws on | nothing |
Is rules-enforcer safe to install?
rules-enforcer scores 76/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables. It passed 6 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.stat | reads files |
$.process.run | runs processes |
$.session.cwd | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.tool.register | drives Claude |
$.ui.notice | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install rules-enforcer?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/lnodonly/claude-mods claude plugin validate ./claude-mods/rules-enforcer
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add lnodonly/claude-mods && claude plugin install rules-enforcer@claude-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs rules-enforcer for you:
Install the "rules-enforcer" Claude Code mod from https://github.com/lnodonly/claude-mods/tree/main/rules-enforcer. Run claude plugin validate on it first and show me what it can access before you enable it.
More from lnodonly/claude-mods
This repository has 5 Claude Code mods on MCPMods.
- context-bar: Shows the context window as a stacked bar (with its percentage) and a legend, drawn by modbar; hide or show with /modbar (Low risk)
- context-diet: Removes escape codes, progress redraws and identical-line runs from Bash output (lossless), and lists the biggest items (Low risk)
- handoff: A note per project folder for the next session: /handoff writes a full one, and with /handoff auto on exit saves a quick (High risk)
- modbar: Draws the area above the prompt for other mods: their blocks, packed into configurable rows (Review before installing)