/teams: Agent Teams Presets
$ARGUMENTS
Launches a pre-configured Agent Teams composition for your task. Requires CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1.
Available Presets
| Preset |
Agents |
Use Case |
review |
code-reviewer, security-auditor, performance-optimizer |
PR code review |
debug |
debugger, backend-specialist, incident-responder |
Multi-file bug investigation |
feature |
orchestrator, backend-specialist, frontend-specialist, test-engineer |
Full feature implementation |
fullstack |
backend-specialist, frontend-specialist, database-architect, devops-implementer |
Full-stack task |
research |
technical-researcher, data-analyst, prompt-engineer |
Deep research task |
security |
security-architect, security-auditor, backend-specialist |
Security audit |
migration |
database-architect, backend-specialist, devops-implementer |
Database migration |
See reference/presets.md for detailed ownership, aggregation strategies, and output formats for each preset.
Usage
/teams review # Launch review team on current changes
/teams debug # Launch debug team for current issue
/teams feature add auth # Launch feature team with task context
/teams security # Launch security audit team
Workflow
- Parse
$ARGUMENTS: extract <preset> and optional [task-description]
- Validate preset is one of: review, debug, feature, fullstack, research, security, migration
- Check environment: verify
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS is set; warn if missing
- Display team composition and ownership rules from reference/presets.md
- Confirm with user before launching
- Launch agents: spawn each agent with its assigned scope using the Agent tool:
Agent({ description: "code-reviewer: PR review lead", prompt: "[task + ownership rules]" })
Agent({ description: "security-auditor: security findings", prompt: "[task + domain scope]" })
- Aggregate results: apply the preset's aggregation strategy (consensus, relay, or map-reduce)
- Produce output: write the defined output document (e.g.,
REVIEW.md, DEBUG_REPORT.md)
Error Handling
- If an agent fails or times out: log the failure, continue with remaining agents, note the gap in the output
- If agents produce conflicting findings: the lead agent resolves conflicts; flag unresolved disagreements for user review
Environment
export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
1---2name: teams3description: Launches pre-configured multi-agent teams for code review, debugging, feature development, security audits, and database migrations. Use when the user asks to start a multi-agent workflow, coordinate agent teams, run a team review, or needs parallel agent collaboration on a complex task.4---5
6# /teams: Agent Teams Presets
7
8$ARGUMENTS
9
10Launches a pre-configured Agent Teams composition for your task. Requires `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`.
11
12## Available Presets
13
14| Preset | Agents | Use Case |
15|--------|--------|----------|
16| `review` | code-reviewer, security-auditor, performance-optimizer | PR code review |
17| `debug` | debugger, backend-specialist, incident-responder | Multi-file bug investigation |
18| `feature` | orchestrator, backend-specialist, frontend-specialist, test-engineer | Full feature implementation |
19| `fullstack` | backend-specialist, frontend-specialist, database-architect, devops-implementer | Full-stack task |
20| `research` | technical-researcher, data-analyst, prompt-engineer | Deep research task |
21| `security` | security-architect, security-auditor, backend-specialist | Security audit |
22| `migration` | database-architect, backend-specialist, devops-implementer | Database migration |
23
24See [reference/presets.md](reference/presets.md) for detailed ownership, aggregation strategies, and output formats for each preset.
25
26## Usage
27
28```
29/teams review # Launch review team on current changes
30/teams debug # Launch debug team for current issue
31/teams feature add auth # Launch feature team with task context
32/teams security # Launch security audit team
33```
34
35## Workflow
36
371. **Parse** `$ARGUMENTS`: extract `<preset>` and optional `[task-description]`
382. **Validate** preset is one of: review, debug, feature, fullstack, research, security, migration
393. **Check environment**: verify `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` is set; warn if missing
404. **Display** team composition and ownership rules from [reference/presets.md](reference/presets.md)
415. **Confirm** with user before launching
426. **Launch agents**: spawn each agent with its assigned scope using the Agent tool:
43 ```
44 Agent({ description: "code-reviewer: PR review lead", prompt: "[task + ownership rules]" })
45 Agent({ description: "security-auditor: security findings", prompt: "[task + domain scope]" })
46 ```
477. **Aggregate results**: apply the preset's aggregation strategy (consensus, relay, or map-reduce)
488. **Produce output**: write the defined output document (e.g., `REVIEW.md`, `DEBUG_REPORT.md`)
49
50### Error Handling
51
52- If an agent fails or times out: log the failure, continue with remaining agents, note the gap in the output
53- If agents produce conflicting findings: the lead agent resolves conflicts; flag unresolved disagreements for user review
54
55## Environment
56
57```bash
58export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
59```