What is rulebook?
rulebook is a Claude Code mod by aidan-nunn-sys that hard rules on tool calls, kept in ~/.claude/rulebook.json; Claude adds a rule when you correct it. /rules lists or removes them. It is listed under Interface and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | aidan-nunn-sys |
| Repository | aidan-nunn-sys/claude-config |
| Popularity | no public popularity data yet |
| Category | Interface |
| Security | Review before installing (68/100) |
| Rank | #4,753 of 9,397 Claude Code mods; #2,035 in Interface |
| Last commit | 2026-11-16 |
| Hooks | 4 events |
| Sees | ? calls, every tool call |
| Draws on | nothing |
Is rulebook safe to install?
rulebook scores 68/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 4 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 no processes | Pass |
| Writes files or config | Review |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.state.get | |
$.state.set | |
$.tool.register | drives Claude |
$.ui.ask | draws interface |
$.ui.toast | draws interface |
How do I install rulebook?
- 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/aidan-nunn-sys/claude-config claude plugin validate ./claude-config/mods/rulebook
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/aidan-nunn-sys/claude-config && claude --plugin-dir ./claude-config/mods/rulebook
Or ask Claude to set it up
Paste this into Claude Code and it installs rulebook for you:
Install the "rulebook" Claude Code mod from https://github.com/aidan-nunn-sys/claude-config/tree/main/mods/rulebook. Run claude plugin validate on it first and show me what it can access before you enable it.
More from aidan-nunn-sys/claude-config
This repository has at least 9 Claude Code mods on MCPMods.
- agent-radar: One live line above the prompt per running subagent: time, tool count and what it's doing. /radar shows every agent and (Low risk)
- blast-radius: Holds risky Bash commands and shows what they would change before they run. (Review before installing)
- handoff: /handoff writes a handoff document for the next session: goal, state, decisions, open items, next steps. (High risk)
- hud: One line under the prompt: permission-mode arrows, context weather bar, prompt-cache countdown and a pomodoro mascot (High risk)
- mission-control: /mission opens a live map of the main agent, its subagents and every tool call. (Low risk)
- tps: Tokens per second: live reading in the status line, and /tps for averages and history per model. (Low risk)
- where-am-i: A live recap above the prompt: goal, doing now, waiting on you, next. /where for a longer one. (Low risk)
- xagent: Dispatch tasks to Codex and opencode. (High risk)