Review Router
Routes reviews to available tools with automatic fallback. The overnight sprint had CodeRabbit rate-limited and Greptile expired on 4/5 golems PRs. Workers fell back randomly. This skill defines the deterministic fallback chain.
Note: Greptile was evaluated but excluded — expired tokens are not auto-recoverable overnight.
Fallback Chain (in order)
CodeRabbit (
coderabbit:code-reviewersubagent orcr review --plain)- Check:
cr --versionsucceeds AND no rate limit in last 5 min - Timeout: 120 seconds
- On failure: log "CodeRabbit unavailable: {reason}", fall through
- Check:
Macroscope (GitHub App — posts as PR comment)
- Check:
gh api repos/{owner}/{repo}/installationsincludes Macroscope - Timeout: 300 seconds (it's slow)
- On failure: log "Macroscope unavailable", fall through
- Check:
superpowers:requesting-code-review (Claude subagent)
- Check: always available (it's a subagent)
- Cost: ~50K tokens per review
- On failure: should not fail, but if it does, fall through
Cursor CLI — Red/Blue Profiles (external tool — read-only audit mode)
- Check:
cursor --versionsucceeds <cursor-max-mode-model>below: substitute Cursor's current Max Mode model ID (verify viacursor agent --helpor the Cursor changelog — IDs change between versions; the user's preference is Cursor on Auto, but Red/Blue audits historically pin to Max Mode for harsher critique).- Red Team (security/reliability):
cursor agent --output-format text --model "<cursor-max-mode-model>" "$(cat ~/.claude/commands/code-review/references/red-team-prompt.md | sed 's/{{REPO_CONTEXT}}/...context.../') DIFF: $(gh pr diff)" - Blue Team (quality/architecture):
cursor agent --output-format text --model "<cursor-max-mode-model>" "$(cat ~/.claude/commands/code-review/references/blue-team-prompt.md | sed 's/{{REPO_CONTEXT}}/...context.../') DIFF: $(gh pr diff)" - Timeout: 180 seconds per profile
- Run BOTH for comprehensive coverage (replaces single generic prompt)
- On failure: WARN — all reviewers exhausted, post to collab and wait
- See
/code-reviewworkflows:workflows/red-team.mdandworkflows/blue-team.md
- Check:
All Reviewers Exhausted
If all 4 tiers fail:
- Log each failure reason
- Post a BLOCKED message in the collab file
- Do NOT merge without review — wait for human or tool recovery
Minimum Review Requirement
2 independent reviews before merge. Preferred: 1 red team + 1 blue team. If only 1 reviewer tool is available, run it with both profiles:
- Pass 1: Red team prompt (security, reliability, crash scenarios)
- Pass 2: Blue team prompt (architecture, quality, test coverage)
Deduplicate findings: red H findings take priority over blue suggestions on the same code.
H/M/L Classification (from overnight retro)
After collecting review findings, classify each:
- HIGH/CRITICAL → Fix immediately, block merge
- MEDIUM → Fix before merge if <15 min effort, else document as follow-up
- LOW → Merge, create follow-up issue if warranted
Usage
# In /pr-loop, after PR creation:
/review-router
# Standalone:
/review-router --pr 42 --repo golems