/rulebook:rulebook-edge-casesfrom rulebook
Documents edge cases, boundary conditions, and corner cases for business rules in rulebook/. Probes code for limit values, nulls, time zones, rounding, and concurrency issues.
Ships in rulebook. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For each target rule, find the situations where its behaviour is not obvious and state, from the code, what actually happens. Facts only: you describe the system, you do not fix it.
CLI. rulebook … below means the rulebook CLI: rulebook, or npx --yes rulebook-cli@latest. Without Node, use the manual column of references/cli.md.
PAY-R012) or a whole domain (ACC). Read the cards and their evidence.
If rulebook/.index.json exists, run rulebook check first; pending detections go to
rulebook-sync before you add cases on top of stale cards.< vs <=, the exact limit value, one past it;references/data.md, read only): rows sitting exactly on a limit,
nulls, values outside what the code accepts, states no branch handles — real cases to
cite as counts and ids, never personal data.Edge cases. section:
- **<rule id>.E<n>** Given <situation>, when <action>, then <outcome>. — <confidence> — <path>:<line>
path:line or path:start-end — never a list like path:3,9
(the card would lose its confidence). Pick the line that decides.verified only when a test asserts exactly that case; otherwise read (or inferred).Open questions. for a human to decide.rulebook index
and fix any warning (without the CLI: check each new line against the format in
references/card-template.md), then run rulebook build.rulebook/rulebook.html first, then the
new cases per rule and the new open questions, and ask what to correct. Apply the
corrections, then run rulebook index and rulebook build again.rulebook build, so the document matches the cards. Never edit the HTML yourself (references/cli.md).Edge cases. and Open questions. sections of the target cards..E<n>; never renumber.| Mistake | Instead |
|---|---|
| Restating the rule ("refund refused after 14 days") | A limit: "delivered exactly 14 days ago → accepted" |
verified because the code is obvious | verified needs a test |
| Silently treating a gap as intended | Write the fact, and ask in Open questions. |
references/audit.md (opens in a new tab)references/card-template.md (opens in a new tab)references/cli.md (opens in a new tab)references/data.md (opens in a new tab)references/hotspots.md (opens in a new tab)references/ids.md (opens in a new tab)references/okf.md (opens in a new tab)references/policy-vs-rule.md (opens in a new tab)references/vocabulary.md (opens in a new tab)references/writing-style.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gregorybabonaux/rulebook --plugin rulebook5 skills in this plugin
/rulebook-extractUse when rulebook/index.md exists and the business rules of one or more domains must be written down — "extract the rules", "document the business rules of ORD", "règles de gestion", "règles métier" — or when a domain listed in the map has no rulebook/<CODE>-*.md file yet./rulebook-mapUse when a codebase's business rules are to be documented and no rulebook/index.md exists yet, or when asked to map, list or split the business domains of an application ("what are the domains", "cartographie des domaines", first step of a rulebook)./rulebook-publishUse when asked to publish, share, export, regenerate or send the rulebook / business-rules reference ("publier le référentiel") — as an HTML page, a PDF, or to Notion, Google Drive, Confluence or another documentation tool./rulebook-syncUse when rulebook/inbox.md has pending detections ("traiter l'inbox", "mettre à jour les règles"), when a hook or `rulebook check` reports that a rule "may have changed", "may have been removed" or "possible new rule", or when asked to sync, realign or update the rulebook after code changes.Other plugins' skills for the same job