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 GregoryBabonauxv0.3.0MITIn 1 marketplace
Turns a codebase's business rules into plain-language cards citing the code and tests that enforce them. Hooks run after each edit and each Claude response, flagging rules that may have changed; the companion and HTML need Node.js 22 or later.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
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.
Turn the business rules buried in your code into a reference people can read, and keep it true while you code.
English · Français · Español · Deutsch · Português · Italiano
Every product hides its rules in code: a refund window, a lock after five failed logins, a discount cap. Nobody can list them, the comments lie, and the specs are out of date. rulebook gives your coding agent the skills to read the code, write those rules in plain language with the proof attached, and notice when a change in the code touches one of them.
SKILL.md files, alongside superpowers, spec-kit or BMAD.The result is a single HTML file: it works offline, you can email it, and it prints to PDF.
| Map | Dashboard (dark mode) |
|---|---|
![]() | ![]() |
| Unfold domains, policies, rules and edge cases. Drag a node to move its branch. | Key figures, confidence per domain, recent changes, open questions. |
The screenshots come from a fictional shop with planted traps: a comment that announces 30 days while the code applies 7, and dead code. The sample document is in French; yours is written in your project's language.
| Level | Skill | What you get |
|---|---|---|
| 1 | rulebook-map | the business domains, with what each covers and where its code lives |
| 2 | rulebook-extract | the rules of one domain: policies (why) and operating rules (how), checked by a blind audit |
| 3 | rulebook-edge-cases | what happens at the limits of a rule (Given… when… then…) |
| — | rulebook-sync | processes the inbox after code changes |
| — | rulebook-publish | builds the HTML document and, if you have a connector (Notion, Drive…), offers to publish it |
Each level stops for your validation before it writes. rulebook never touches your source code or your tests.
The skills do the judging: your agent reads the code. The companion does the detecting: a small CLI with no AI, run by your agent's hooks and by a git pre-commit hook.
Requirements: git, and Node.js 22 or later for the companion and the HTML. The skills work without Node; you then get the Markdown only.
| You use | Run | You get |
|---|---|---|
| Claude Code (recommended) | /plugin marketplace add GregoryBabonaux/rulebook/plugin install rulebook@rulebook | skills + companion hooks |
| Any agent (Codex, Cursor, Gemini, Copilot, Vibe…) | npx skills add GregoryBabonaux/rulebook | skills, in the project or globally (-g) |
| No skills.sh | npx rulebook-cli skills --yes | skills copied to ~/.agents/skills and ~/.claude/skills |
In the project folder:
npx rulebook-cli init
The command shows what it will write: hooks for the agents it detects, an AGENTS.md block and a git pre-commit hook. Nothing is written until you confirm:
7-day copy clicks
npx claudepluginhub gregorybabonaux/rulebook --plugin rulebookPlugins from other owners that cover similar ground
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.