New plugin with 7 presets (review, debug, feature, fullstack, research, security, migration), 4 specialized agents, 7 slash commands, 6 skills with reference docs, and Context7 MCP integration for research teams.
3.9 KiB
description, argument-hint
| description | argument-hint |
|---|---|
| Spawn an agent team using presets (review, debug, feature, fullstack, research, security, migration) or custom composition | <preset|custom> [--name team-name] [--members N] [--delegate] |
Team Spawn
Spawn a multi-agent team using preset configurations or custom composition. Handles team creation, teammate spawning, and initial task setup.
Pre-flight Checks
-
Verify that
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1is set:- If not set, inform the user: "Agent Teams requires the experimental feature flag. Set
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1in your environment." - Stop execution if not enabled
- If not set, inform the user: "Agent Teams requires the experimental feature flag. Set
-
Parse arguments from
$ARGUMENTS:- First positional arg: preset name or "custom"
--name: team name (default: auto-generated from preset)--members N: override default member count--delegate: enter delegation mode after spawning
Phase 1: Team Configuration
Preset Teams
If a preset is specified, use these configurations:
review — Multi-dimensional code review (default: 3 members)
- Spawn 3
team-revieweragents with dimensions: security, performance, architecture - Team name default:
review-team
debug — Competing hypotheses debugging (default: 3 members)
- Spawn 3
team-debuggeragents, each assigned a different hypothesis - Team name default:
debug-team
feature — Parallel feature development (default: 3 members)
- Spawn 1
team-leadagent + 2team-implementeragents - Team name default:
feature-team
fullstack — Full-stack development (default: 4 members)
- Spawn 1
team-implementer(frontend), 1team-implementer(backend), 1team-implementer(tests), 1team-lead - Team name default:
fullstack-team
research — Parallel codebase, web, and documentation research (default: 3 members)
- Spawn 3
general-purposeagents, each assigned a different research question or area - Agents have access to codebase search (Grep, Glob, Read), web search (WebSearch, WebFetch), and library documentation (Context7 MCP)
- Team name default:
research-team
security — Comprehensive security audit (default: 4 members)
- Spawn 1
team-reviewer(OWASP/vulnerabilities), 1team-reviewer(auth/access control), 1team-reviewer(dependencies/supply chain), 1team-reviewer(secrets/configuration) - Team name default:
security-team
migration — Codebase migration or large refactor (default: 4 members)
- Spawn 1
team-lead(coordination + migration plan), 2team-implementer(parallel migration streams), 1team-reviewer(verify migration correctness) - Team name default:
migration-team
Custom Composition
If "custom" is specified:
- Use AskUserQuestion to prompt for team size (2-5 members)
- For each member, ask for role selection: team-lead, team-reviewer, team-debugger, team-implementer
- Ask for team name if not provided via
--name
Phase 2: Team Creation
- Use the
Teammatetool withoperation: "spawnTeam"to create the team - For each team member, use the
Tasktool with:team_name: the team namename: descriptive member name (e.g., "security-reviewer", "hypothesis-1")subagent_type: "general-purpose" (teammates need full tool access)prompt: Role-specific instructions referencing the appropriate agent definition
Phase 3: Initial Setup
- Use
TaskCreateto create initial placeholder tasks for each teammate - Display team summary:
- Team name
- Member names and roles
- Display mode (tmux/iTerm2/in-process)
- If
--delegateflag is set, transition to delegation mode
Output
Display a formatted team summary:
Team "{team-name}" spawned successfully!
Members:
- {member-1-name} ({role})
- {member-2-name} ({role})
- {member-3-name} ({role})
Use /team-status to monitor progress
Use /team-delegate to assign tasks
Use /team-shutdown to clean up