quorum
Skill2 starsChanged 6 months agoMITView on GitHub
Synthesize, deduplicate, and prioritize automated code-review findings on GitHub pull requests. Use whenever the user mentions Bugbot, Copilot code review, Devin reviewer, or other review bots, bot review triage, duplicate or noisy review comments, reviewer consensus or quorum, Quorum DAG exploration, root-cause analysis or pattern sweeps on PR findings, or asks to summarize, dedupe, cluster, rank, synthesize, or explore automated PR feedback — even if they do not name a specific tool.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- GTuritto/quorumtheir own version, first seen Sep 6, 2026
- drewdrewthis/claude-skillstheir own version, first seen Apr 22, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- drewdrewthis/claude-skills★ 2same name
- GTuritto/quorum★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 16
You match; you do not re-review: Do not judge whether findings are valid, and do not drop findings you disagree with.
- Very specific: line 40
Read references/clustering-rubric.md in full before clustering — it defines the single-fix test, merge/don't-merge rules, the output …
- Very specific: line 46
Do not include quorum. Do not omit findings you think are false positives.
- Very specific: line 84
If the repo has this Quorum CLI built and linked, prefer the shortcut commands over hand-writing the long explore --repo --pr --scored form.
- Very specific: line 98
Add --scored path/to/clusters.scored.json if no synthesis comment exists yet or the user has a local scored file.
- Very specific: line 99
Add --min-quorum 1 when testing on PRs where all findings are single-reviewer findings.
- Very specific: line 100
Run quorum canvas .quorum/runs/<run-id> to regenerate/open the Canvas for an existing run without rerunning cloud agents.
- Very specific: line 102
If quorum is not on PATH but this repo is checked out, use node dist/src/cli.js in place of quorum from the Quorum repo root.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Quorum — bot review synthesis
Multiple review bots (Bugbot, Copilot, Devin, …) comment on the same PR with overlapping findings. This skill turns that noise into one prioritized, consensus-scored synthesis.
Pipeline: fetch (script) → cluster (you) → validate & score (script) → post (script).
Core design rules — do not violate these:
- You are the clustering judge, but quorum is computed in code. Never compute or state quorum counts yourself;
validate_partition.pyderives it from distinct reviewers per cluster. - Precision over recall on merges. A false merge fabricates reviewer consensus, which poisons the product's core signal. When uncertain, don't merge.
- You match; you do not re-review. Do not judge whether findings are valid, and do not drop findings you disagree with. Every finding lands in exactly one cluster.
- Clustering failure never blocks the synthesis. Fallback path is all-singletons.
Preconditions
ghCLI authenticated with access to the repo (gh auth status), plusjqand Python 3 (python3; plainpythonon Windows — substitute in the commands below).- A target PR. Use the number/URL the user gave; otherwise resolve from the current branch with
gh pr view --json number,headRepository,url. If ambiguous, ask.
Work in a scratch directory (e.g. /tmp/quorum-<pr>/, or your harness's scratchpad directory) so intermediate JSON doesn't pollute the repo.
Step 1 — Fetch findings
scripts/fetch_findings.sh OWNER/REPO PR_NUMBER findings.jsonProduces normalized records: {id, reviewer, login, file, lines, outdated, body, hunk, url, comment_id, node_id}. IDs look like bugbot-1, devin-2.
- The bot allow-list is a case-insensitive regex on the comment author login, default
cursor\[bot\]|copilot|devin, overridable via theQUORUM_BOTSenv var. - If 0 findings match but the script's stderr lists authors that are clearly review bots, set
QUORUM_BOTSto match those logins and re-run. Do not proceed on an empty set — instead tell the user what was found and which expected reviewers haven't commented yet (bots finish at different times; suggest re-running after all have reported). - Findings are line-anchored review comments only; top-level bot summary comments are deliberately ignored in v0.
Step 2 — Cluster (you are the judge)
Read references/clustering-rubric.md in full before clustering — it defines the single-fix test, merge/don't-merge rules, the output schema, and worked examples.
Then write clusters.json yourself, following the rubric exactly. Reminders:
- Strict JSON, exact schema, every finding ID in exactly one cluster.
- Singletons are normal. Most clusters will be singletons.
- Do not include quorum. Do not omit findings you think are false positives.
Step 3 — Validate & score
python3 scripts/validate_partition.py findings.json clusters.json -o clusters.scored.jsonThe script enforces the partition invariant and schema, applies the confidence gate (multi-finding clusters with match_confidence < 0.7 are split back into singletons), computes quorum per cluster, sorts by (quorum desc, severity desc), and writes clusters.scored.json.
- Exit ≠ 0: the violations are named on stderr. Fix
clusters.jsonand re-run. - After two failed attempts: regenerate
clusters.jsonas all singletons (one cluster per finding,match_type: "singleton",match_confidence: 1.0) and proceed. Never block on clustering.
Step 4 — Post
python3 scripts/post_synthesis.py OWNER/REPO PR_NUMBER clusters.scored.json --dry-run--dry-run prints the rendered comment without touching GitHub. In an interactive session, show the user the rendered synthesis (or a tight summary of it) before posting, unless they already said to post/comment. When running non-interactively (e.g. claude-code-action), post directly.
To post for real, drop --dry-run. The script:
- Upserts a single synthesis comment, idempotent via a hidden
<!-- quorum:synthesis -->marker — re-runs update in place, never spam. - Adds 👀 reactions to the original bot comments belonging to quorum ≥ 2 clusters (the in-thread visual cue that another reviewer agrees).
- Embeds the scored clusters JSON in a collapsed
<details>block — the machine-readable surface for downstream agents. --minimizeadditionally collapses non-primary duplicate comments as DUPLICATE. This hides other bots' comments, so treat it as opt-in: only with explicit user consent.
Step 5 — Report and offer follow-ups
Summarize in conversation: findings → clusters, quorum tiers, the top finding. Then offer the natural next actions:
- Fix now — implement fixes for quorum ≥ 2 clusters in this session.
- Cloud DAG exploration — run root-cause and pattern-sweep agents on the cloud DAG runner with
quorum run-pr PR_URL(orquorum plan-pr PR_URLfirst for a no-cloud dry plan). - Log the run for the eval flywheel (below).
Step 6 — Cloud DAG follow-up (optional)
If the repo has this Quorum CLI built and linked, prefer the shortcut commands over hand-writing the long explore --repo --pr --scored form.
run-pr and post-pr call the exploration backend and need its key — CURSOR_API_KEY (the default backend) or ANTHROPIC_API_KEY with --provider anthropic / QUORUM_PROVIDER=anthropic. quorum auth persists keys to a config file so they don't need exporting each shell. plan-pr and canvas call no backend and need no key.
quorum plan-pr https://github.com/OWNER/REPO/pull/N
quorum run-pr https://github.com/OWNER/REPO/pull/N
quorum post-pr https://github.com/OWNER/REPO/pull/N
quorum canvas .quorum/runs/<run-id>plan-prrecovers the embeddedclusters.scored.jsonfrom the existing<!-- quorum:synthesis -->PR comment, writes the DAG/report/Canvas, and does not call the cloud backend.run-prruns the cloud DAG and writes local artifacts/Canvas, but does not post an exploration comment by default.post-prruns the DAG and upserts the PR exploration comment.- Add
--scored path/to/clusters.scored.jsonif no synthesis comment exists yet or the user has a local scored file. - Add
--min-quorum 1when testing on PRs where all findings are single-reviewer findings. - Run
quorum canvas .quorum/runs/<run-id>to regenerate/open the Canvas for an existing run without rerunning cloud agents.
If quorum is not on PATH but this repo is checked out, use node dist/src/cli.js in place of quorum from the Quorum repo root. If the command says no synthesis comment was found, run Steps 1-4 first or pass --scored.
Dogfood logging (recommended)
Append {pr, findings.json, clusters.scored.json} to .quorum/log/<date>-pr<N>.json (gitignored) or a path the user prefers. Every bad merge the user spots becomes a new worked example in the rubric — the skill improves from exactly the failures that matter.
Known v0 simplifications
- Quorum denominator = reviewers with ≥ 1 finding on this PR. A bot that reviewed and found nothing isn't counted (its implicit "looks fine" is real signal, but capturing it needs review-event data — later).
- Force-pushes can orphan comment anchors (
outdated: truein records). Re-run Step 1 after a push. - Two bots sharing a false positive still count as quorum 2 — consensus is signal, not truth. The log exists to measure exactly this.
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.

