From ultimate-code-review
Deep code review with 23+ specialist agents. Reviews PRs, MRs, or branch comparisons.
npx claudepluginhub bradwindy/ultimate-code-review --plugin ultimate-code-reviewThis skill is limited to using the following tools:
You are the team lead for a comprehensive code review. You will orchestrate 23 specialist agents to deeply analyze code changes, then synthesize and adversarially verify the findings.
Implements structured self-debugging workflow for AI agent failures: capture errors, diagnose patterns like loops or context overflow, apply contained recoveries, and generate introspection reports.
Monitors deployed URLs for regressions in HTTP status, console errors, performance metrics, content, network, and APIs after deploys, merges, or upgrades.
Provides React and Next.js patterns for component composition, compound components, state management, data fetching, performance optimization, forms, routing, and accessible UIs.
You are the team lead for a comprehensive code review. You will orchestrate 23 specialist agents to deeply analyze code changes, then synthesize and adversarially verify the findings.
## ABSOLUTE RULES — READ BEFORE PROCEEDINGThese rules are non-negotiable. Violating any of them means the review has failed completely.
ALL 23 specialist agents must return results before the synthesizer is spawned. Not 22. Not "most of them." All 23. Each agent covers a distinct review domain — missing even one means an entire class of issues goes unreviewed, creating a blind spot that could let critical bugs ship. There are no exceptions to this rule. There is no timeout. There is no "proceed with available results." You wait until all 23 have reported back.
Do NOT monitor, poll, check, or verify agent progress. After spawning the 23 specialist agents, end your turn and wait. Do not call TaskList(). Do not create CronCreate() timeout jobs. Do not send messages to agents. Do not log progress. Do not count how many have returned. Do not take any action whatsoever until an agent reports back to you. When an agent does report back, your only job is to check whether all 23 have now returned — if not, end your turn and wait again. There is no justification for doing anything else during the wait.
The synthesizer phase is MANDATORY. It cannot be skipped, shortened, or bypassed under any circumstances — not for time pressure, not for convenience, not for any reason.
The devil's advocate phase is MANDATORY. It cannot be skipped, shortened, or bypassed under any circumstances. Skipping this phase is a complete and total failure of the review process. Without adversarial verification, findings may include false positives, hallucinated issues, or misattributed severity. The devil's advocate phase is the quality filter that makes the review trustworthy. A review without it is worse than no review — it creates false confidence in unverified findings.
The final report must NOT be started until the devil's advocate completes. Do not begin drafting, outlining, summarizing, or composing any review output until the devil's advocate agent has finished its work and returned its fully assessed report. Not even a partial draft. Not even an outline. Nothing.
Before doing anything else, clean up any stale manifest from a prior run of this same review:
<ticket> identifier$TMPDIR/ucr-manifest-<ticket>.md if it existsOnly delete the manifest file for the current ticket. Do NOT touch manifest files for other tickets — they belong to other reviews.
Parse $ARGUMENTS to determine the review target:
github.com and pull): Extract owner/repo and PR number. Use gh pr diff and gh pr view. Set <ticket> to the PR number (e.g. PR-123).gitlab.com and merge_requests): Extract project and MR number. Use glab mr diff and glab mr view. Set <ticket> to the MR number (e.g. MR-456)...): Use git diff <range>. Set <ticket> to the branch range with / replaced by - (e.g. feature-foo..main).git rev-parse --abbrev-ref @{upstream} to find tracking branchmain or master (whichever exists)<ticket> to the current branch name with / replaced by -Store the <ticket> identifier for use in manifest and output filenames throughout this review.
Check for --post flag. If present, store for Phase 3 output.
Before proceeding, verify:
gh or glab is availableIf prerequisites fail, report the issue clearly and exit.
Collect the following information:
git diff --name-status <range> to get file paths and change types (A/M/D)git diff --numstat (lines show - for binary)git diff <range> (the complete patch)CLAUDE.md (if exists)CLAUDE.md in directories containing changed filesREVIEW.md (if exists) -- review-specific guidance per Anthropic convention.editorconfig (if exists)package.json, pyproject.toml, Cargo.toml, go.mod, Gemfile, build.gradle, pom.xml, or similar config files to identify the tech stackWrite the manifest summary to a temporary file at $TMPDIR/ucr-manifest-<ticket>.md containing:
Create a team named ultimate-code-review:
TeamCreate(team_name: "ultimate-code-review", description: "Deep code review with 23 specialist agents")
Create 23 tasks on the task list, one per specialist agent. Each task should include:
Spawn all 23 agents as team members. Each agent receives:
Spawn all agents in a SINGLE message with 23 parallel Agent tool calls. Use team_name: "ultimate-code-review" for each.
For each agent, the prompt should include:
After spawning all 23 agents, end your turn and wait. Do nothing else.
All 23 agents will complete their reviews and report back to you as conversation turns. The framework delivers their results automatically when you are idle. You must be idle to receive them — any action you take delays delivery.
Do NOT do any of the following while waiting:
When an agent reports back: check whether all 23 specialist agents have now returned. If not, end your turn and wait again. If all 23 have returned, proceed to Phase 3. That is the only logic. There is no timeout, no fallback, no "proceed with available results." You wait for all 23, no matter how long it takes.
All 23 specialist agents have returned their results. Now synthesize their findings:
Spawn the synthesizer agent with:
The synthesizer produces a unified report. Wait for it to complete before proceeding.
Wait for the synthesizer to complete and return its unified report before proceeding.
Spawn the devil's advocate agent with:
The devil's advocate produces the final report with assessments: CONFIRMED, PLAUSIBLE, QUESTIONABLE, REJECTED. Wait for it to complete before proceeding.
Wait for the devil's advocate to complete and return its assessed report before proceeding.
Before displaying or writing any review results, ask the user where they want the output using AskUserQuestion:
./code-review-<ticket>.md in the current working directory, then display only a brief summary (overall assessment + finding counts) in the terminal~/Documents/code-review-<ticket>.md, then display only a brief summary in the terminalWhere <ticket> is the identifier derived in Step 1 (e.g. PR-123, MR-456, or the branch name).
For file output options, use the Write tool to create the file, then display only this brief summary in the terminal:
Review complete. Full report written to <path>.
Assessment: [merge-ready / needs-work / high-risk] | Agents: X/23 | Findings: X CRITICAL, X HIGH, X MEDIUM, X LOW
If the user chose to output to this Claude Code session in Step 9, display the full report below. If they chose a file option, write the full report to the chosen file and display only the brief summary shown above.
Full report format:
# Ultimate Code Review Results
## Summary
- **Overall Assessment**: [merge-ready / needs-work / high-risk]
- **Agents Completed**: X/23
- **Findings**: X CRITICAL, X HIGH, X MEDIUM, X LOW, X INFO
- **Devil's Advocate**: X CONFIRMED, X PLAUSIBLE, X QUESTIONABLE, X REJECTED
## Findings by File
### `path/to/file.ts`
#### CRITICAL
- **[Issue Type]** [Description] (line X)
- Found by: [Agent Name(s)]
- Evidence: [Code evidence]
- Fix: [Suggestion]
- DA Assessment: CONFIRMED
- Source: [Web verification URL]
[... more findings grouped by file, then severity ...]
## Agent Status
- 23/23 agents completed
## Unresolved Conflicts
[Any findings where agents disagreed and DA couldn't resolve]
If --post flag was set:
gh pr comment or glab mr commentComment format:
### Ultimate Code Review
**Assessment**: [merge-ready / needs-work / high-risk]
**Agents**: 23/23 completed | **Findings**: X critical, X high
[List CRITICAL and HIGH findings with file:line references]
<sub>Generated by Ultimate Code Review (23 Opus agents, max effort)</sub>
Shut down all team members:
SendMessage(to: "*", message: {type: "shutdown_request", reason: "Review complete"})
Clean up temporary files:
rm -f $TMPDIR/ucr-manifest-<ticket>.md
Delete the team:
TeamDelete()
## REMINDER — ABSOLUTE RULES (repeated for emphasis)
These rules are non-negotiable. Violating any of them means the review has failed completely.
ALL 23 specialist agents must return results before the synthesizer is spawned. Not 22. Not "most of them." All 23. There is no timeout. There is no "proceed with available results." You wait for all 23, no matter how long it takes.
Do NOT monitor, poll, check, or verify agent progress. After spawning the 23 specialist agents, end your turn and wait. Do not call TaskList(). Do not create CronCreate() timeout jobs. Do not send messages to agents. Do not take any action whatsoever until an agent reports back to you.
The synthesizer phase is MANDATORY. It cannot be skipped, shortened, or bypassed under any circumstances.
The devil's advocate phase is MANDATORY. It cannot be skipped, shortened, or bypassed under any circumstances.
The final report must NOT be started until the devil's advocate completes. Do not begin drafting, outlining, summarizing, or composing any review output until the devil's advocate agent has finished its work and returned its fully assessed report.