/alexop-skills:orchestrated-reviewfrom alexop-skills
Orchestrated multi-agent code review modeled on Cloudflare's system. Risk-tiers the diff, filters noise, fans out specialist reviewers (security, performance, code quality, docs, tests, release, AGENTS.md), and consolidates everything through a coordinator judge pass into one structured verdict. Use for "orchestrated review", "multi-agent code review", "deep review", "review like Cloudflare", "thorough AI code review", or to review a GitHub PR with severity-graded findings and an approve/block decision.
Ships in alexop-skills. 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; scripts run unread.
A Cloudflare-style code review: tier the change, filter noise, fan out specialist
reviewers in parallel, adversarially verify every critical finding, then let a
coordinator dedupe, judge severity, and decide. Unlike check (a quick 2–4
reviewer pass), this runs a real coordinator judge pass over structured findings
and emits an approve/block verdict — and on PR re-runs it is aware of its own
previous review.
This skill uses the Workflow tool to orchestrate the agents — that is the explicit opt-in. Do not ask the user to opt in again.
$ARGUMENTS may contain:
gh)--comment → after reviewing a PR, post the verdict back to the PRRun the prep script that ships with this skill. <skill-dir> is the directory
containing this SKILL.md — resolve it to an absolute path from wherever the
skill is installed (it is NOT relative to the user's repo):
bash <skill-dir>/scripts/prep-review.sh <PR-or-empty>
It builds the unified diff, splits per-file patches, strips noise, classifies
files, and assigns a risk tier. The last stdout line is the path to
manifest.json. Read it. If tier is "none", tell the user there's nothing
to review and stop. If oversized is true, warn the user that review quality
degrades on very large diffs and suggest splitting the change — then continue.
Show the user the tier, the selected reviewers, and any dropped files — be transparent about what is and isn't being reviewed (silent truncation reads as "covered everything" when it didn't).
| Tier | Trigger | Reviewers run |
|---|---|---|
trivial | ≤10 lines, ≤20 files | 1 general reviewer |
lite | ≤100 lines, ≤20 files | code-quality, documentation, tests |
full | anything bigger, or any security-sensitive path | security, performance, code-quality, tests, documentation — plus release / agents-md only when relevant files changed |
If AGENTS.md or CLAUDE.md exists at the repo root, read it. Pass its review-relevant
content as customInstructions so every reviewer respects project conventions.
Only when reviewing a PR:
Break-glass: check whether any human comment says break glass
(gh pr view <n> --json comments). If so, skip the review, report that a
human forced approval, and stop. (Hotfix escape hatch — see references/architecture.md.)
Previous review: fetch the most recent verdict this skill posted, so the coordinator can run an incremental re-review (fixed findings drop, unfixed ones persist):
gh api "repos/{owner}/{repo}/issues/<n>/comments" --paginate \
--jq '[.[] | select(.body | contains("<!-- orchestrated-review -->"))] | last | {id, body}'
If a comment is found, pass its body as previousReview in the workflow
args, and remember its id for step 6.
Invoke the Workflow tool with the shipped script and the manifest as args:
scriptPath: <skill-dir>/scripts/review-workflow.mjs (absolute path)args: the parsed manifest.json object, plus customInstructions from
step 2 and previousReview from step 3 (when present).The workflow fans out the tier's reviewers in parallel (each emits structured
findings with critical/warning/suggestion severity), adversarially
verifies every critical finding with a refuter agent, then a coordinator
deduplicates, re-categorizes, drops false positives, applies the re-review
rules, and returns the verdict.
The workflow returns { summary, decision, decisionReason, findings[] }. Render
(the HTML comment marker is required — re-review detection in step 3 depends on it):
<!-- orchestrated-review -->
# 🤖 Orchestrated Review — <DECISION>
<summary> _(<decisionReason>)_
## 🔴 Critical
- `file:line` — **title**. detail
## 🟡 Warnings
- `file:line` — **title**. detail
## 🟢 Suggestions
- `file:line` — **title**. detail
Map the decision to an outcome:
| Decision | Meaning |
|---|---|
approved | clean / trivial suggestions only |
approved_with_comments | suggestions, or warnings without production risk |
minor_issues | multiple warnings — a risk pattern, fix before merge |
significant_concerns | a critical item or safety risk — blocks merge |
Omit empty severity sections. If findings is empty, just show the summary and ✅.
On a re-review, surface how many previous findings were resolved (the summary
includes it).
--comment and PR mode)If step 3 found a previous verdict comment, update it in place instead of stacking a new one:
gh api "repos/{owner}/{repo}/issues/comments/<id>" -X PATCH -F body=@<verdict-file>
Otherwise post fresh: gh pr comment <n> --body-file <verdict-file>.
For significant_concerns, also surface that it would block merge. Never request
changes or unapprove on the user's behalf without their say-so — default to a comment.
references/architecture.md — how this maps to Cloudflare's design (tiers, rubric, noise filtering, verification, break-glass, re-reviews, injection hardening) and what to tune.references/reviewers.md — the specialist reviewer roster, model tiers, and their "What to Flag / What NOT to Flag" charters.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (alexanderop/skills) — no native marketplace selected
npx claudepluginhub p/alexanderop-alexop-skills17 skills in this plugin
/screenshotting-appsGenerates annotated screenshot documentation for web apps and websites — local dev servers or live sites. Use when asked to "screenshot the app", "document the app", "visual docs", "screenshot documentation", "show me the app", "screenshot <url>", or "document this website".
/blog-generatorGenerates a self-contained, deeply-technical "deep dive" blog post as a single offline-capable HTML file — AstroPaper aesthetic, light/dark toggle, Mermaid diagrams (CDN), Shiki syntax highlighting (CDN ESM). Use when the user types "$blog" or "$blog-post", asks to "write a blog post", "deep dive blog", "generate a blog post about how X works", "explain X in a blog post so I can rebuild it", "in-depth post about", or wants a long-form publishable HTML article reverse-engineering a codebase, library, or architecture (not a quick summary, not an interactive walkthrough)./c4-architectureGenerate architecture documentation using C4 model Mermaid diagrams. Use when asked to create architecture diagrams, document system architecture, visualize software structure, create C4 diagrams, or generate context/container/component/deployment diagrams. Triggers include "architecture diagram", "C4 diagram", "system context", "container diagram", "component diagram", "deployment diagram", "document architecture", "visualize architecture"./checkReview current changes with parallel subagents/clone-repoVendor a library's source code into the current repo as a git subtree under `repos/<name>/`, then wire it into AGENTS.md as reference material so coding agents read real source instead of fighting stale docs. Use when the user types "$clone-repo <url>", "/clone-repo <url>", "vendor <url>", "clone <url> as a subtree", "add <url> as reference for the agent", "feed <url> to the agent", "just clone the repo <url>", or otherwise asks to set up a third-party repo as agent-readable context./fix-pipelineCheck GitHub pipeline status and plan fixes if failing