From team-orchestrator
Use when facing a task that could benefit from parallel work - decides whether to use subagents or agent teams, then composes the right team from the role pool based on task analysis
How this skill is triggered — by the user, by Claude, or both
Slash command
/team-orchestrator:orchestrating-workThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Route tasks to the cheapest effective execution mode. Default to subagents. Escalate to teams only when inter-agent communication is genuinely needed.
Route tasks to the cheapest effective execution mode. Default to subagents. Escalate to teams only when inter-agent communication is genuinely needed.
Core principle: Start cheap (subagent), escalate only with clear signals (team).
digraph decision {
"Task arrives" [shape=box];
"Single focused task?" [shape=diamond];
"Subagent" [shape=box style=filled fillcolor=lightgreen];
"2+ independent tasks?" [shape=diamond];
"Parallel subagents" [shape=box style=filled fillcolor=lightgreen];
"Need inter-agent communication?" [shape=diamond];
"Agent Team" [shape=box style=filled fillcolor=lightyellow];
"Which pattern?" [shape=diamond];
"Task arrives" -> "Single focused task?";
"Single focused task?" -> "Subagent" [label="yes"];
"Single focused task?" -> "2+ independent tasks?" [label="no"];
"2+ independent tasks?" -> "Parallel subagents" [label="yes, no shared state"];
"2+ independent tasks?" -> "Need inter-agent communication?" [label="depends"];
"Need inter-agent communication?" -> "Agent Team" [label="yes"];
"Need inter-agent communication?" -> "Parallel subagents" [label="no"];
"Agent Team" -> "Which pattern?";
}
When routing to subagents, you MUST choose the right subagent_type and mode based on whether the task requires code modification.
| Agent Role | Can Modify Code? | subagent_type | Use For |
|---|---|---|---|
researcher | NO (read-only) | Explore | Search, read, investigate |
reviewer | NO (read-only) | general-purpose | Review code, report issues |
devil-advocate | NO (read-only) | general-purpose | Challenge findings |
implementer | YES | general-purpose | Build features, write code |
debugger | YES | general-purpose | Fix bugs, patch code |
finisher | YES | general-purpose | Write tests, handle edge cases |
architect | NO (design only) | general-purpose | Design interfaces, plan |
integrator | YES | general-purpose | Fix cross-module issues |
Critical: Read-only tasks use Explore (faster, cheaper). Code-modification tasks MUST use general-purpose (has Edit, Write, Bash tools).
Read-only subagent (research):
Task tool:
subagent_type: Explore
description: "Investigate auth module"
prompt: |
You are a researcher. Investigate the authentication module at src/auth/.
Find: how tokens are handled, where sessions are stored, any security gaps.
Report findings with file:line references and confidence levels.
DO NOT modify any files.
Code-modifying subagent (implement):
Task tool:
subagent_type: general-purpose
description: "Implement user profile endpoint"
prompt: |
You are an implementer. Build the user profile API endpoint.
Requirements:
- GET /api/profile/:id returns user profile
- Include validation and error handling
- Write tests
File ownership: only edit files in src/api/profile/ and tests/api/profile/
Commit your changes when done.
Report: files changed, tests passing, any concerns.
Parallel subagents (mixed read/write):
# Subagent 1: read-only research
Task tool (Explore): "Investigate why login is slow"
# Subagent 2: code modification
Task tool (general-purpose): "Fix the N+1 query in user list endpoint"
# Subagent 3: code modification
Task tool (general-purpose): "Add input validation to signup form"
When dispatching multiple code-modifying subagents in parallel, you MUST assign non-overlapping file ownership to prevent conflicts:
Subagent A owns: src/api/users/ tests/api/users/
Subagent B owns: src/api/orders/ tests/api/orders/
Subagent C owns: src/components/ tests/components/
Rule: NO subagent edits files outside its assigned scope.
Include this constraint explicitly in the dispatch prompt.
After subagent returns:
If you started with parallel subagents but encounter any of these:
→ Convert to agent team. This is the natural transition point.
Before launching any team, validate these rules derived from management theory:
| # | Rule | Source | Check |
|---|---|---|---|
| 1 | Thinking + Action + People roles all covered | Belbin | At least 1 agent per category |
| 2 | No implementation before plan approval | Tuckman | Stage gates enforced |
| 3 | Team/Direction/Structure/Context/Coaching validated | Hackman | 5 conditions met |
| 4 | Falling behind → reduce scope, never add agents | Brooks | No panic-spawning |
| 5 | Team structure mirrors desired architecture | Conway | Split by module/layer |
| 6 | Max 7 agents, default 3-4 | Two-Pizza | Hard cap enforced |
| 7 | Devil-advocate review mandatory | Psych Safety | reviewer or devil-advocate present |
| 8 | Retrospective generated and persisted | Agile Retro | session-reflection runs at end |
| 9 | Lead manages max 4 direct reports | Span of Control | Hierarchy for larger teams |
| 10 | Every agent has specialty + general context | T-Shaped | System prompt has both sections |
| Signal | Pattern | Skill |
|---|---|---|
| "investigate", "research", "analyze", "review" | Research & Review | team-orchestrator:research-and-review |
| "build", "implement", "new feature", "module" | Feature Development | team-orchestrator:feature-development |
| "bug", "debug", "why does", "root cause" | Competing Hypotheses | team-orchestrator:competing-hypotheses |
| "frontend + backend", "full-stack", "API + UI" | Cross-Layer | team-orchestrator:cross-layer-collaboration |
Agents are organized by Belbin category:
Thinking roles:
architect — Plant: creative solutions, system designreviewer — Monitor-Evaluator: critical evaluation, flaw detectionresearcher — Specialist: deep investigation, evidence gatheringAction roles:
implementer — Implementer: translates plans to working codedebugger — Shaper: hypothesis-driven debugging, root causefinisher — Completer-Finisher: edge cases, tests, polishPeople roles:
coordinator — Coordinator: team lead, task delegation, synthesisintegrator — Teamworker: cross-module consistency, conflict resolutiondevil-advocate — Psychological safety: mandatory dissent, challenge assumptions| Scenario | Size | Composition |
|---|---|---|
| Simple research | 2 | lead + 1 researcher |
| Standard investigation | 3-4 | coordinator + researchers + devil-advocate |
| Feature development | 3-5 | coordinator + architect + implementers + reviewer |
| Adversarial debugging | 3-6 | coordinator + debuggers + devil-advocate |
| Cross-layer feature | 4-5 | coordinator + FE impl + BE impl + finisher + integrator |
| Large-scale (7+) | Split | Meta-lead → sub-leads → agents (hierarchy) |
Before TeamCreate, verify:
digraph lifecycle {
rankdir=LR;
"Forming" [shape=box label="Forming\nSpawn agents\nAssign roles"];
"Storming" [shape=box label="Storming\nPlan debate\nDevil's advocate"];
"Norming" [shape=box label="Norming\nPlan approved\nConventions locked"];
"Performing" [shape=box label="Performing\nParallel execution\nTask list drives"];
"Adjourning" [shape=box label="Adjourning\nVerify + Retro\nCleanup"];
"Forming" -> "Storming" -> "Norming" -> "Performing" -> "Adjourning";
}
Stage gates:
.claude.md, team cleaned up| Mode | Token Cost | When Worth It |
|---|---|---|
| Single session | Baseline | Sequential, simple tasks |
| Parallel subagents | 2-5x | Independent research, no communication |
| Agent team (3-4) | 5-15x | Complex, needs debate/coordination |
| Agent team (5-7) | 15-30x | Large features, cross-layer, deep debugging |
Rule: If subagents can solve it, don't use a team. Teams are for when communication between workers adds genuine value.
REQUIRED: Use team-orchestrator:session-reflection at session end to persist learnings.
Team pattern skills:
npx claudepluginhub labrinyang/team-ochestractorAutomatically analyzes task complexity to decide Subagent vs Agent Teams for parallel code reviews, collaborative debugging, and cross-layer frontend/backend/testing development.
Guides composing agent teams for complex tasks with predefined roles: Orchestrator, Explorer, Frontend (React), Backend (Rails), iOS/Swift, Android/Kotlin, Database.
Use when a task benefits from multiple Claude instances collaborating with peer-to-peer messaging - parallel research, multi-module features, cross-layer changes, or competing hypothesis debugging. Not for simple independent tasks (use parallel-execution) or sequential tasks (use delegated-execution).