bulma-code-review
Skill1 starsChanged 49 days agoMITView on GitHub
Adaptive PR review via gh: one PR on the main thread, one fresh subagent per extra PR, one verdict artifact each (REQUEST_CHANGES / APPROVE / DEFER). Use when /bulma-code-review with PR URLs, numbers, or the current branch.
In this repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/bulma-feature-delivery/adapters/claude.mdCLAUDE.md
- architectSkill
- before-and-afterSkill
- blast-radiusSkill
- bulma-busSkill
- bulma-developerSkill
- bulma-fdSkill
- bulma-feature-deliverySkill
- bulma-goalSkill
- bulma-hostSkill
- bulma-lstmSkill
- bulma-memorySkill
- bulma-qaSkill
- bulma-reviewerSkill
- bulmaSkill
- bulma-triageSkill
- diagnoseSkill
- figure-it-outSkill
- grill-with-docsSkill
- howSkill
- interrogateSkill
- kevinSkill
- no-commentsSkill
- principle-fix-root-causesSkill
- principle-prove-it-worksSkill
- principle-sequence-verifiable-unitsSkill
- receiving-code-reviewSkill
- tddSkill
- technical-writingSkill
- thermo-nuclear-code-quality-reviewSkill
- to-issuesSkill
- to-prdSkill
- typescript-best-practicesSkill
- unslopSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
Every verdict body includes the executing reviewer's Model and Reasoning effort rows.
- Distinctive: line 46
Phases run in order: Do not start a phase before the previous one is done.
- Very specific: line 47
Read the room before approving: Follow PREFLIGHT.md before pass selection and again before publishing.
- Very specific: line 56
Never dismiss another reviewer's review.
- Very specific: line 60
Patch bind: After Phase 10, every finding goes through scripts/bind-findings.py.
- Very specific: line 68
High-risk critic: When scripts/classify-risk.py prints high, spawn the critic before verdict.
- Distinctive: line 88
Follow EVIDENCE.md for test and rollout proof.
- Very specific: line 89
The gate script decides, not memory: Every review POST runs as scripts/gate.py ...
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Bulma Code Review
Sequential phases per PR. Depth adapts to review history.
Multi-PR: one subagent per PR (see §0).
CI fork: GRAPH.md · LOOP.md. Pending required CI
allows pinned code review, then waits with retained analysis and does not post. Red CI still DEFERS.
CI that cannot be read is unverified: review continues, and the artifact says so. It does not defer on its own. Draft DEFER is unchanged.
Invariants — never break
- Subagents. Multi-PR: one fresh subagent per PR; the orchestrator must not review diffs itself. Single-PR: at most one high-risk critic (nodes/critic.md). That spawn is not a second GitHub artifact and does not fan out.
- Exactly one artifact per PR — one review (inline comments in the same call) or one issue comment. Never both. Never two of either on the same PR. Dismissing my own stale approval and resolving my own fixed threads are state changes, not artifacts.
- Never APPROVE while any required check is failed, pending, unknown or unverified.
out_of_scopeis not unknown: the repo's own workflows never build or test PRs into this base (PREFLIGHT.md §CI out of scope). - Never invent a finding. A finding with no concrete trigger is dropped in silence — not downgraded, not mentioned.
- Nits never block, and most stay silent. A nit reaches the PR only inside the
collapsed Nits block (§9), only with a concrete
path:line, max 5 per run, and never changes the verdict. Always silent regardless: praise, generic refactor advice, speculative perf, pre-existing debt the diff neither changed nor broke. A break this diff causes in an unchanged file (a caller, a test) is not pre-existing; it is a finding withcause_path/cause_line(§5 Phase 10). "Could be cleaner" is silent except the one code-judo nit in Phase 8, which must name a layer, branch, or helper to delete. - Voice. GitHub text and chat follow Voice (just above §9). Teammate
English on the PR. Chat:
bulma-memory. Never caveman. Never a form. - Fixed output template (§9). Section order never changes; empty sections vanish.
Every verdict body includes the executing reviewer's
ModelandReasoning effortrows. Resolve both throughbulma-host; useunknownper unavailable field. - Phases run in order. Do not start a phase before the previous one is done.
- Read the room before approving. Follow PREFLIGHT.md
before pass selection and again before publishing. Verdicts are APPROVE,
REQUEST_CHANGES or DEFER only; never a COMMENT review. An open change
request does not skip the diff: review the code and DEFER
reason=review_pendingwhen it is clean. A dismissed change request is closed and never blocks. Unresolved threads and unanswered questions still block approval (DEFERreview_pending). A thread whose author approved this head does not. QABLOCKED(could not run) never gates. A status whose text starts withFAILdoes not by itself block approval. Never dismiss another reviewer's review. Never post a Deferred comment for an access or tooling error.--forcecannot bypass these approval gates. - My own open findings never expire silently. A prior finding of mine is dropped only after it is re-verified against the head SHA (§4.2).
- Patch bind. After Phase 10, every finding goes through
scripts/bind-findings.py. Apath:linethat is not in this pass's patch (or a carry-forward allow-path) cannot be inline. A defect this diff causes elsewhere carriescause_path/cause_lineand lands in the script'sbodybucket. Exit 3 means a blocker or major sits outside the inline set: it still blocks APPROVE. Binding failure is not evidence that a High disappeared. A finding with noaxismust be completed before publishing. - High-risk critic. When
scripts/classify-risk.pyprintshigh, spawn the critic before verdict. The critic walks contracts, integration/state, and security/data-loss on one spawn, without voting findings off. When the script printslow, skip the spawn. High risk with no completed critic posts nothing that run (retry once first), markercritic=failed. - Approve the reviewed head only. Pin the full reviewed SHA, re-review
any new commits, and verify CI execution on that SHA. Skipped or missing
build/test jobs are not green, unless
ci-scope.pyproves the base is out of scope. Recheck before promotion and retry too. - Own Critical/High means no approval. Reconcile body, inline comments, carried findings and critic output with the verdict before POST.
- Sensitive paths stay off the PR. Workflows, Terraform, auth,
billing/seats and secrets are listed by
classify-risk.py --human-signoff. That list goes in STATE and the private job report only. It does not DEFER, does not block APPROVE, and is not a review row. Use the full PR file list, including renames, even during light review. - Preserve the checkout. Review through pinned source reads. Never edit, stage, switch, stash, reset, clean, rebase or move existing branches in the user's checkout. Fetch commits and run checks in an isolated review checkout. Inspect changed scripts and configuration before executing them. Follow EVIDENCE.md for test and rollout proof.
- The gate script decides, not memory. Every review POST runs as
scripts/gate.py ... && gh api .../reviews(nodes/publish.md). Exit 1 → do not APPROVE (REQUEST_CHANGES for a defect, DEFER for CI). Exit 4 → DEFERreason=review_pending, linking the open change request or thread. Exit 5 → DEFERreason=ci_unknown, CInot verified (tooling); other read errors stay in the private job report. Another bot's approval never turns an APPROVE into a COMMENT. Never post an APPROVE the gate did not pass, and never post a COMMENT review. - Dismiss my approval only for a code defect on a new head. A blocked pass, a DEFER, or an open change request does not dismiss it. Dismiss only when this pass posts REQUEST_CHANGES for a blocker or major and that approval's commit is not the live head (PREFLIGHT.md §Retire my stale approval).
- A flip needs a full look. APPROVE after my own REQUEST_CHANGES, or
after an older DEFER or COMMENT of mine for
coverage,uncertaintyorcritic_failed, needs a deep pass on the full PR diff. A delta-only light pass or an empty commit cannot clear it. - Converge, do not loop. One finding per defect class, with its other
instances. A published finding is carried, never re-posted as new. A rebase that keeps the same change re-verifies the ledger only. From my third REQUEST_CHANGES on a PR, new majors in lines unchanged since my first pass do not block, and the body asks the author to rethink the area (nodes/pass_decision.md §Convergence). Proven blockers always block. - Project knowledge stays in the project. Repo rules come from the
repo's own files, including
REVIEW.md. Domain facts come from the## Gotchassection of project memory (bulma-memory). This skill carries no product, company or vendor knowledge.
Caps
| Budget | Deep | Light |
| Full files read | 15 (highest churn first) | 4 (only to confirm a suspicion) + carry-forward re-reads (§4.2, ≤10, outside the cap) |
| Codegraph / caller queries | 8 | 3 |
| Findings published | 10 (blockers first) | 10 |
| Nits published | 5, collapsed block, never inline | 5 |
| Neighbour test files | inspect changed exports' tests and API contract mocks, within existing file/query caps | same |
| Critic (risk=high only) | 1 spawn, 4 Reads, 2 new blockers | same |
Large PR (additions + deletions > 2500 or changedFiles > 25): keep the caps,
review hotspots first (auth, permissions, data writes, migrations, public API,
money, PII), and declare uncovered files in the Coverage block.
Very large PR (more than 50 changed files, more than 5000 changed lines, or a
diff the GitHub API refuses with HTTP 406): a deep pass runs in batches of at
most 15 files, each with the deep caps, and merges them into one review
artifact (nodes/batches.md). Only scripts/batch-plan.py
decides this. Smaller PRs never batch.
Where the rest lives
SKILL.md carries the invariants and the caps. Each step is its own file so a pass loads only what it needs.
| Step | File |
| 0. Multi-PR fan-out (orchestrator only) | nodes/fanout.md |
| 1. Resolve the PR | nodes/resolve.md |
| 2. State to pass decision (deep or light) | nodes/pass_decision.md |
| 3. Gates, before reading any diff | nodes/gates.md |
| 4. Patches, risk, then Reads after spec | nodes/fetch.md |
| 4b. Batched deep pass, very large PRs only | nodes/batches.md |
| 5. Spec checklist, then axes, then bind | nodes/review.md |
| 6. High-risk critic (no-op when low) | nodes/critic.md |
| 7-8. Severity, coverage, verdict | nodes/verdict.md |
| 9. Publish, one artifact per PR | nodes/publish.md |
| CI wait | nodes/wait_ci.md · LOOP.md |
| Reference | File |
| Voice and wording | references/VOICE.md |
| Isolated checks, regression and rollout evidence | references/EVIDENCE.md |
| Chat summary shape | references/CHAT.md |
| Failure modes | references/FAILURES.md |
| Graph and edges | GRAPH.md |
| STATE | STATE.schema.md · templates/STATE.md |
Correctness, Standards, and Self-verify are never skippable. A large diff is not a reason.
Loaded by another reviewer
A caller that borrows this engine's phases (nodes/review.md, references/EVIDENCE.md, nodes/verdict.md) instead of running the whole skill still owns the approval gates. Hand over, with those files:
- references/PREFLIGHT.md, including §Sensitive changes
- the
classify-risk.py --human-signoffJSON for the full PR file list and patch, kept in the private job report and STATE, not in the GitHub review scripts/gate.pyandscripts/bind-findings.py
The caller runs the gate before its own APPROVE. A nonempty sensitive-path list does not block the caller. A caller that cannot run the gate does not approve; it posts REQUEST_CHANGES for a blocker/major or DEFERs. It does not post a Deferred comment for an access or tooling error.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

