plugins/agent-teams/commands/team-review.md
Orchestrate a multi-reviewer parallel code review where each reviewer focuses on a specific quality dimension. Produces a consolidated, deduplicated report organized by severity.
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is set$ARGUMENTS:
<target>: file path, directory, git diff range (e.g., main...HEAD), or PR number (e.g., #123)--reviewers: comma-separated dimensions (default: security,performance,architecture)--base-branch: base branch for diff comparison (default: main)git diff {range} --name-only to get changed filesgh pr diff {number} --name-only to get changed filesTeammate tool with operation: "spawnTeam", team name: review-{timestamp}Task tool to spawn a teammate:
name: {dimension}-reviewer (e.g., "security-reviewer")subagent_type: "agent-teams:team-reviewer"prompt: Include the dimension assignment, target files, and diff contentTaskCreate for each reviewer's task:
TaskList periodically)Present consolidated report:
## Code Review Report: {target}
Reviewed by: {dimensions}
Files reviewed: {count}
### Critical ({count})
[findings...]
### High ({count})
[findings...]
### Medium ({count})
[findings...]
### Low ({count})
[findings...]
### Summary
Total findings: {count} (Critical: N, High: N, Medium: N, Low: N)
Send shutdown_request to all reviewers
Call Teammate cleanup to remove team resources