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.

Updated 2026-11-16

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.

TypeClaude code mod
Authoraidan-nunn-sys
Repositoryaidan-nunn-sys/claude-config
Popularityno public popularity data yet
CategoryInterface
SecurityReview before installing (68/100)
Rank#4,753 of 9,397 Claude Code mods; #2,035 in Interface
Last commit2026-11-16
Hooks4 events
Sees? calls, every tool call
Draws onnothing

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.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.writewrites files
$.state.get
$.state.set
$.tool.registerdrives Claude
$.ui.askdraws interface
$.ui.toastdraws interface

How do I install rulebook?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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)