Write Team Spec
Convert the brainstorming conversation into a formal spec file for team execution — separate Claude Code instances that work in parallel and communicate via shared task list and mailbox.
Prerequisites: This skill assumes /dream-team:plan has already been run in this session. If the conversation has no brainstorming context (no discussed requirements, no confirmed approach, no validated task breakdown), stop and tell the user: "No brainstorming context found. Run /dream-team:plan <prompt> first to explore requirements and design."
Requires: CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS enabled in settings.
Filename Format
All spec files MUST be named with a date prefix: specs/YYYY-MM-DD-<descriptive-kebab-case>.md
Use today's date. Example: specs/2026-02-07-user-auth-api.md
What To Do
- •Read the spec template at
${CLAUDE_PLUGIN_ROOT}/templates/spec-template.md. - •Read the available agent definitions at
${CLAUDE_PLUGIN_ROOT}/agents/*.md. - •Summarize the agreed plan from the conversation — confirm with the user before writing.
- •Write the spec, filling in all sections from the brainstorming context.
- •Set frontmatter
mode: team. - •Set frontmatter
playwright: trueif the brainstorming decided to use Playwright MCP, otherwiseplaywright: false. - •Design for MAXIMUM INDEPENDENCE between teammates — avoid assigning same-file edits to different agents.
- •Set
plan_approval: truefor high-risk or architectural tasks. - •Size tasks at 5-6 per agent role for optimal productivity.
- •Include Team Configuration and Review Policy sections.
- •Save to
specs/YYYY-MM-DD-<descriptive-kebab-case>.mdusing today's date.
Task Rules
- •Every task must have
Assigned To,Agent Type,Parallel, andPlan Approval - •Set
Parallel: truefor tasks that can run alongside others (no shared file edits) - •Set
Plan Approval: truefor high-risk tasks (architectural decisions, schema changes, security-critical code) - •Set
Depends Onconservatively — only add real dependencies, let parallelism happen naturally - •Every builder task must include a Tests field listing the test file paths and test cases it must produce. Use "N/A" only for tasks with zero testable code (research, docs, config-only).
- •Avoid assigning same-file edits to tasks that can run in parallel
- •Research and architecture tasks should complete before build tasks depend on them
- •After every builder task that writes code, add a review task assigned to the reviewer agent. The review task depends on the builder task it reviews.
- •The second-to-last task MUST be a final code review (reviewer) that depends on all builder tasks
- •The final task should always be assigned to the validator agent, depending on the final review
Team Configuration Guidance
- •Display Mode: Use
split-paneif the user has tmux/iTerm2, otherwisein-process - •Delegate Mode: Set
true(recommended) so the lead only coordinates and never implements directly - •Max Active Agents: Default 6. This caps concurrent agent instances. The orchestrator asks the user to confirm before starting. Can be increased for large projects with many independent workstreams.
- •Rotation After: Default 3. Each agent instance handles at most this many tasks before being retired and replaced with a fresh instance. Prevents context window exhaustion.
Review Policy Defaults
Use these defaults unless the brainstorming conversation specified otherwise:
- •Review After: each task
- •Fix Loop Trigger: Critical and Important
- •Max Retries: 3
- •Skip Review For: research-only tasks
Git
After saving the spec file, commit it:
git add specs/<spec-file>.md git commit -m "spec: <short description of what the spec covers>"
Report
After saving and committing the spec, output:
Spec written (team mode) File: specs/YYYY-MM-DD-<name>.md Tasks: <number of tasks> Complexity: <simple | medium | complex> Config: display=<mode>, delegate=<true|false>, max_agents=<N>, rotation=<N> NOTE: Agent teams require CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in settings. Execute with: /dream-team:build specs/YYYY-MM-DD-<name>.md