MITupdated 7d ago
A review that applies only generic taste misses the point in an org with standing rules: the org has already decided how it wants its code to look, ship, and fail. Pull those decisions first; then review.
What can you do with Reviewing With Org Rules?
name: reviewing-with-org-rules description: Review code against the org's standing rules. Use when reviewing a PR, diff, or change in a bonez-connected org, when asked whether code follows the org's conventions, or before approving, merging, or signing off on anything non-trivial.
Reviewing with org rules
A review that applies only generic taste misses the point in an org with standing rules: the org has already decided how it wants its code to look, ship, and fail. Pull those decisions first; then review.
Before reading the diff
Mount the rules and knowledge for the repo under review with bonez:context:
{"scope": "<repo_id>", "include": ["rules", "knowledge"]}
- rules β the org's standing repo and review rules. These are your review checklist's spine.
- knowledge β gotchas and decisions for this repo: the difference between "weird code" and "deliberate code".
Judgment
- Org rules outrank your defaults. Flag violations of THEIR rules before stylistic preferences. When a rule contradicts what you'd normally suggest, the rule wins β and cite it, so the author sees it's the org speaking, not you.
- Run the deliberate-weirdness check. Before flagging something odd, look for the decision that explains it β the knowledge band, or
bonez:searchon the touched area. If a decision explains it, don't flag it; cite the decision instead. Re-litigating settled decisions is review noise. - Search the touched area for known gotchas. A past incident or documented trap in the exact file being changed is the single highest-value review comment you can make (
finding-prior-artworkflow, scoped to the diff's files). - No rules mounted β no rules. An unavailable marker on the rules band means the review ran without org rules β say so in the review summary rather than silently reviewing on taste alone.
- Rules are editable, not just readable. A stale or wrong standing rule is a finding too: propose the fix through
bonez:rules(updatesupersedes in place β never save a duplicate;deleteexpires, nothing is erased). Rules writes are binding guidance mounted into every session in the org β write conservatively and confirm with the user first. Writes need aread+writekey (a read-only or read+memory key gets a clearwrite_scope_requirederror, not a silent no-op). Note for Codex specifically: there is no automatic permission prompt gating this call the way the Claude Code leg has β confirming with the user before calling is on you, not the harness. - Size the risk with the graph. For diffs touching shared symbols or public contracts, run
impact-analysis(callers, blast radius, tests-for) and let the radius set the review bar: a 3-caller internal helper and a 300-dependent contract do not deserve the same scrutiny. - Cite what you flag. Every rule- or knowledge-based comment should carry its vendor URL (
citing-bonez-sources) so the author can read the source, not argue with you.
When to stop
Rules applied, weirdness checked against knowledge, blast radius sized for risky hunks. Don't turn every review into an archaeology dig β prior-art depth belongs on the risky parts of the diff, not every line.
Install
Add Reviewing With Org Rules to your client. Pick the one you use.
npx skills add bonez-io/ai-pluginInstalls every skill in the repository, then prompts for which to keep.
/plugin marketplace add bonez-io/ai-pluginAdds the repository as a plugin marketplace; install individual plugins with `/plugin install`.
git clone https://github.com/bonez-io/ai-plugin
cp -r codex/skills/reviewing-with-org-rules ~/.claude/skills/A skill is a plain directory. Copy it into `.claude/skills/` in a project or in your home directory.
Score
71 / 100
Good