| name | review |
| description | Parallel three-perspective code review via sub-agent orchestration. Dispatches Test Review, Code Review, and Impact Review sub-agents in parallel โ each independently re-reads all shared context. Merges reports, highlights contradictions for human adjudication. Use after task completion, before merge, or before release. Trigger words: review, check, ๆๅ
ณ, ๅๅธๅ, ๅฎๆๅผๅ, ้ชๆถ, code review. |
Review: Parallel Three-Perspective Review
๐ฅท Complete all finish work before merge or release.
Dispatches three independent review sub-agents in parallel โ Test Review, Code Review, Impact Review โ each re-reading all shared context from scratch. Merges their reports into a single comprehensive review. Issue sync and release follow-through require current-turn explicit authorization.
Outcome Contract
- Outcome: Merged three-perspective review report โ test quality, implementation quality, and impact analysis โ with contradictions highlighted for human adjudication
- Done when: All three sub-agent reports produced, merged report presented, local file updates completed or listed as follow-up, remote actions completed only if explicitly authorized
- Evidence: Test/lint/typecheck/build output, code diff analysis, updated files
- Output: Structured merged report with per-perspective sections, contradiction block (if any), and unified recommendation
Prerequisites
- Code is complete (by
tdd or manual)
- Uncommitted changes exist (staged or unstaged)
Runtime Note
"Parallel sub-agents" refers to independent re-reading of shared context (anti-patterns #34, #35), not concurrent execution. If your runtime supports true parallel dispatch, dispatch all three simultaneously. If not, execute sequentially โ the independence guarantee comes from re-reading shared context from disk, not from execution timing.
Process Summary
Step 1 โ Collect context: Apply the Skill Entry Protocol. Read diff (staged + unstaged), README, package.json, Makefile, CI configs. If the diff contains an Issue reference, read the PRD path from the Issue body's Meta โ PRD field and load it. Gather available shared context paths (PRD, Story, Issues, CONTEXT.md, ADRs). PRD quality check: if PRD Traceability shows Created by: /story (minimal PRD), note that requirements may not be decision-complete โ review acceptance criteria coverage with extra care.
Step 2 โ Dispatch three parallel review sub-agents: Dispatch all three (see Runtime Note and Three Sub-Agents below).
Step 3 โ Merge reports: Concatenate the three reports. Do not auto-resolve contradictions โ flag them explicitly for human adjudication. See Report Merge Rules.
Step 4 โ Present merged report: Show the full merged report to the user with per-perspective sections, verification status, contradiction block, and unified recommendation.
Step 5 โ Authorization gate: Ask the user what to do next. Options: approve and merge, fix issues then re-review, proceed to release. Local doc updates are allowed when necessary; remote actions require current-turn explicit authorization.
Step 6 โ Execute authorized actions: Perform only actions the user explicitly requested in the current turn โ local file updates, issue sync, release follow-through. If the review passes and the Issue belongs to a PRD's Child Issues, update the Issue's status in the PRD's Sliced into list to โ Done. If all Child Issues are โ Done, update the PRD Status to Done.See Authorization Boundaries.
See REFERENCE.md for detailed sub-agent instructions, checklists, and report templates.
Three Sub-Agents
Each sub-agent is an independent review perspective. They run in parallel, each re-reading all shared context from scratch (PRD, Story, Issues, CONTEXT.md, ADRs, diff). No sub-agent sees another sub-agent's output until the merge step.
| Sub-Agent | Focus Area |
|---|
| Test Review | Test quality, boundary coverage, test design reasonableness, naming, isolation, mock usage |
| Code Review | Implementation quality, security, performance, code conventions, error handling, readability |
| Impact Review | Change scope, regression risk, compatibility, architecture health (local to this change), tech debt introduced, release strategy (feature flags, canary, rollback plan). Suggests /improve-architecture for global architecture concerns |
Sub-Agent Independence
Every sub-agent shares no state and re-reads all shared context from disk โ see anti-patterns.md #34, #35. The re-read checklist is in REFERENCE.md Sub-Agent Common, plus each chapter's role-specific addition.
Report Merge Rules
Concatenate the three sub-agent reports as distinct sections. If two or more reach conflicting conclusions on the same item, extract them into a Contradictions block โ present both sides, never auto-resolve (the human adjudicates). Derive a single recommendation; if sub-agents disagree, the recommendation is "Request Changes" and the disagreement goes in Contradictions. See REFERENCE.md Chapter 5 for the merge steps, contradiction format, and merged-report template.
Authorization Boundaries
Default review is local inspection only. Local doc/PRD/CONTEXT/ADR updates are allowed only when the review verified the underlying change. Issue close/status/label changes and all release actions require explicit user authorization in the current turn. See REFERENCE.md Chapter 6 for the full boundary table.
Hard Rules
- Security first: Block immediately on any security issue. Code Review Sub-Agent runs the full Security Checklist in REFERENCE.md before approving any diff. Security-sensitive changes must include rollback path, audit trail, and regression test (anti-pattern #18).
- Test coverage: New code must have tests. Test Review Sub-Agent verifies this independently.
- Evidence first: Every conclusion needs evidence. Run actual commands โ never say "should work" (anti-pattern #6).
- Don't assume: Derive from code/config, don't guess.
- Verify the artifact, not just the source: "tests pass, code looks right" is not done. Report each layer's status separately โ source tests, build/package, CI, runtime โ a missing layer is an explicit gap, not passing evidence (anti-pattern #17).
Integration Review
When all vertical slices of a PRD are complete, perform extra checks beyond single-slice review (cross-slice data flow, shared state consistency, full PRD acceptance criteria coverage, integration test coverage, dependency order). See REFERENCE.md for details. State explicitly: "Integration Review โ checking slices for PRD ."
Gotchas
| What happened | Rule |
|---|
| Sub-agent reused context from another sub-agent | Independence rule: each sub-agent re-reads all shared context from scratch (anti-pattern #35) |
| Contradictions silently resolved in merge | Report Merge Rules: extract to Contradictions block, present both sides |
| Said "should work" without verification | Hard Rules: run verification commands |
| Assumed project commands | Step 1: extract from config |
| Didn't check security issues | Hard Rules: Security first โ Code Review Sub-Agent runs Security Checklist |
| Impact Review drifts into global architecture review | Impact Review scope: local impact only. Suggest /improve-architecture for global concerns |
| Sub-agents run sequentially when parallel is possible | Runtime Note: dispatch in parallel if runtime supports it; sequential is acceptable fallback |
| PRD not updated after review | Step 6: update local files when authorized |
| Issues closed without authorization | Authorization Boundaries: close/status/label requires current-turn authorization |
| Sub-agent skipped re-reading shared context | Independence rule: never cache file reads from previous skill or sub-agent (anti-pattern #34, #35) |
Output
Review complete.
โโ Test Review โโ <Test Review Sub-Agent report>
โโ Code Review โโ <Code Review Sub-Agent report>
โโ Impact Review โโ <Impact Review Sub-Agent report>
โโ Contradictions โโ <both sides, or "No contradictions">
โโ Verification โโ Tests / Lint / Typecheck / Build: <pass/fail>
โโ Findings โโ new terms, new decisions, updated files, synced issues
Recommendation: Approve / Request Changes / Comments
Next: User decides โ merge/release, or fix issues and re-review.
```
The full merged-report template (with all fields and next-step branches) is in [REFERENCE.md Chapter 5](REFERENCE.md).