code-review-agent-teamlisted
Install: claude install-skill citedy/skills
# Multi-Agent Parallel Code Review (Agent Teams)
Spawns a coordinated team of 4 specialized code-reviewer agents using Agent Teams. Teammates can communicate findings to each other and the lead compiles a unified severity-ranked report.
## Step 1: Determine Review Target
Parse `$ARGUMENTS`:
- **No arguments**: Use AskUserQuestion to confirm target:
```
question: "What would you like to review?"
header: "Review Target"
options:
- label: "Uncommitted changes"
description: "Review current git diff (staged + unstaged)"
- label: "Staged changes only"
description: "Review only staged changes (git diff --cached)"
- label: "Enter PR number"
description: "Review a specific pull request"
- label: "Last commit"
description: "Review changes in the most recent commit"
```
- **Number provided** (e.g., `42`): Target is PR #42
- **`--scope` flag**: Limit to specific reviewer types (comma-separated)
---
## Step 2: Capture the Diff
**IMPORTANT:** Save diff to the scratchpad directory, not `/tmp`.
**For uncommitted changes (staged + unstaged):**
```bash
git diff HEAD > $SCRATCHPAD/code-review-diff.txt 2>&1 && echo "done"
```
**For staged changes only:**
```bash
git diff --cached > $SCRATCHPAD/code-review-diff.txt 2>&1 && echo "done"
```
**For PR number:**
```bash
gh pr diff $PR_NUMBER > $SCRATCHPAD/code-review-diff.txt 2>&1 && echo "done"
```
**For last commit:**
```bash
git diff HEAD~1..HEAD > $SCRATCHPAD/code-review-diff.txt 2>&1 && echo "done"
```
Also c