rules-enforcer
by Lauren Nodonly · ★ 0 · updated 3 days ago
Enforces a project's .claude/rules.json: required skills before edits, and doc updates in the same turn
Install
/plugin marketplace add lnodonly/claude-mods/plugin install rules-enforcer@claude-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
tool.callskill.promptclassic.SessionEndclassic.PostCompactsession.startclassic.UserPromptSubmitclassic.Stopclassic.SubagentStopcommand.run- API calls
$.clock.now$.command.register$.env.get$.fs.exists$.fs.list$.fs.read$.fs.stat$.process.run$.session.cwd$.state.get$.state.set$.store.get$.store.set$.tool.register$.ui.notice$.ui.status$.ui.toast- Can see
Edit callsWrite callsNotebookEdit callsBash callsMonitor callsSkill callsevery skillclassic hooksmcp__rules-enforcer__waive_doc_update calls- Reach
- level 2 of 3 runs processesdrives Claudereads filesreads env varsreads mod statepersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/lnodonly/claude-mods
- Path in repo
rules-enforcer- Source commit
22069a7the exact code the scan read- Author
- Lauren Nodonly @lnodonly
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from lnodonly/claude-mods
context-bar
lnodonly/claude-mods
Shows the context window as a stacked bar (with its percentage) and a legend, drawn by modbar; hide or show with /modbar hide|show context-bar
context-diet
lnodonly/claude-mods
Removes escape codes, progress redraws and identical-line runs from Bash output (lossless), and lists the biggest items in context; shows the tokens saved above the prompt through modbar
handoff
lnodonly/claude-mods
A note per project folder for the next session: /handoff writes a full one, and with /handoff auto on exit saves a quick one when work happened; the next session gives Claude the note
modbar
lnodonly/claude-mods
Draws the area above the prompt for other mods: their blocks, packed into configurable rows