Design a dynamic research team and plan using agent teams. Provide a research question or topic, optionally with --orchestration "guidance for team composition". Analyzes the question, composes a specialized team, creates an executable research plan — no research is executed, only planned.
Design a dynamic team of research agents and a structured research plan. Targets Claude Code's experimental agent teams feature (TeamCreate, shared task list, delegate mode).
Core Principle: PLAN ONLY — no research is executed. Produce a comprehensive, executable research plan.
Doctrine: The research question dictates the team — never force a fixed roster.
| Variable | Source | Default |
|---|---|---|
| Research question | User input (everything that is NOT a flag) | Required |
ORCHESTRATION | --orchestration "..." flag | Empty (auto-compose) |
OUTPUT_DIR | Fixed | .claude/PRPs/research-plans/ |
--orchestration "..." from input → store as ORCHESTRATION| Signal | Example | Implication |
|---|---|---|
| Comparative ("vs", "compare") | "React vs Vue vs Svelte" | Multiple perspectives needed |
| Evaluative ("best", "optimal") | "Best approach for real-time sync" | Criteria definition needed |
| Exploratory ("how", "what are") | "What are the approaches to..." | Broad survey needed |
| Investigative ("why", "root cause") | "Why does X fail under Y" | Deep-dive analysis needed |
| Quantitative ("benchmark", "cost") | "Performance cost of SSR" | Measurement methodology needed |
GATE: If the research question is too vague to decompose → STOP and ASK for clarification.
| Domain | Indicators | Typical Profiles |
|---|---|---|
| CODEBASE | Project files, patterns, architecture | Code analyst, pattern extractor, dependency mapper |
| TECHNICAL | Libraries, frameworks, protocols | Docs researcher, benchmarker, compatibility analyst |
| MARKET | Products, competitors, pricing | Market analyst, competitive researcher, trend tracker |
| USER_RESEARCH | User needs, behavior, UX | UX researcher, survey analyst, persona builder |
| ARCHITECTURE | System design, scalability | Systems architect, performance analyst, security reviewer |
| MIXED | Spans multiple domains | Combination of above |
| Complexity | Criteria | Team Size | Sub-questions |
|---|---|---|---|
| LOW | Single domain, narrow scope | 2-3 | 3-4 |
| MEDIUM | 2 domains, moderate scope | 3-5 | 4-6 |
| HIGH | 3+ domains, broad scope | 5-7 | 5-7 |
If ORCHESTRATION is set, adjust team composition, domain weighting, and expertise requirements accordingly.
CHECKPOINT: Domain identified, complexity assessed, orchestration applied.
Decompose into 3-7 independently investigable sub-questions.
Rules:
SQ-1 (foundational) ──┬──► SQ-2 (parallel)
├──► SQ-3 (parallel)
└──► SQ-4 (parallel)
│
▼
SQ-5 (synthesis, depends on SQ-2,3,4)
Dependency types: NONE (start immediately), BLOCKED_BY (must wait), INFORMS (benefits from but doesn't require).
Verify sub-questions collectively cover the full scope, don't overlap significantly, and include at least one synthesis sub-question.
CHECKPOINT: 3-7 sub-questions defined, dependencies mapped, coverage verified.
Design researcher profiles. Load the templates and model selection guide:
${CLAUDE_SKILL_DIR}/references/team-templates.md
Each researcher must have: Name, Focus, Sub-questions, Model, Spawn prompt, Output format, Completion criteria.
Every spawn prompt must be self-contained — the agent must execute with ONLY that prompt, no external context.
CHECKPOINT: All researchers defined with complete profiles, spawn prompts self-contained, team covers all sub-questions.
For each task define: ID (RT-{N}), Title, Assignee, Type (RESEARCH/ANALYSIS/SYNTHESIS/REVIEW), Dependencies, Description, Acceptance criteria, Estimated effort (LOW/MEDIUM/HIGH).
Define shared standards: citation format, confidence level tagging (HIGH/MEDIUM/LOW with rationale), contradiction handling, scope boundary enforcement.
CHECKPOINT: Tasks defined with valid DAG dependencies, parallel tasks identified, synthesis task exists.
mkdir -p .claude/PRPs/research-plans
Write the output path to .claude/prp-research-team.state (one line, just the file path) for stop hook integration.
Load the full plan template from:
${CLAUDE_SKILL_DIR}/references/team-templates.md
Write to: .claude/PRPs/research-plans/{topic-slug}.research-plan.md
GATE: Do NOT proceed until the plan has ALL 6 required sections:
## Research Question## Research Question Decomposition## Team Composition## Research Tasks## Team Orchestration Guide## Acceptance CriteriaCHECKPOINT: Plan written with all sections, sentinel file set, no placeholders remain.
Load the user output template from:
${CLAUDE_SKILL_DIR}/references/team-templates.md
Display: file path, question, team composition table, plan overview (domain, complexity, task counts by wave), and execution instructions for both agent teams and manual sequential approaches.
CHECKPOINT: Summary displayed, team shown, execution instructions provided.