/dream-team:build <path-to-spec>from dream-team
Executes an implementation plan from a spec file by detecting the execution mode (sequential, delegated, or team) and running the corresponding strategy. Pass the spec file path as an argument.
Ships in dream-team. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
If no arguments were provided, stop immediately and tell the user: "Usage: /dream-team:build ". Do not proceed.
Execute an implementation plan by reading a spec file and running the strategy matching its declared mode.
SPEC_PATH: $ARGUMENTS
PLUGIN_ROOT: ${CLAUDE_PLUGIN_ROOT}
AGENT_MANIFEST: ${CLAUDE_PLUGIN_ROOT}/agents/MANIFEST.md
MODE_DIR: ${CLAUDE_PLUGIN_ROOT}/skills/build/modes
Agent spawning has real cost — each sub-agent consumes tokens for context loading, tool calls, and reporting. Before dispatching, ask: "Is this task complex enough to justify a separate agent?" A one-line config change does not need a builder agent, a review agent, and a validation agent. Use judgment:
SPEC_PATH is provided, stop and ask the user to provide it.mode, complexity, type, playwright, frontend-design, spec-version, and branch.spec-version is missing from frontmatter, log a warning ("spec written before spec-version was introduced — consider updating") but proceed normally. This ensures backwards compatibility.branch is present in frontmatter, this is a resumed build — see Resuming a Build below.mode, read the matching strategy file — MODE_DIR/sequential.md, MODE_DIR/delegated.md, or MODE_DIR/team.md — and follow it. Do NOT read the other two mode files; they do not apply to this build. Mode files are read with the Read tool, so they refer to the plugin root as PLUGIN_ROOT (the resolved path above) and to AGENT_MANIFEST by name.playwright and frontend-design frontmatter flags are handled inside the mode strategy file — follow its instructions for when to apply the Playwright and Frontend Design blocks. If a flag is false or missing, do NOT mention Playwright or frontend design to agents.branch: feat/<spec-name> into the spec file's frontmatter to mark the build as started.TASK_TRACKING as native or state-files.native: use TaskCreate to register every task from the spec's ## Step by Step Tasks section, and TaskUpdate with addBlockedBy to set dependencies per each task's Depends On field. state-files: the task state files written at build start are the task list — nothing more to register.## Validation Commands and verify ## Acceptance Criteria.If the spec's frontmatter contains a branch field, this is a resumed build:
.md extension, e.g., specs/2026-03-14-my-feature.md → specs/.build-state/my-feature).<task-id>.json file).native only (in state-files mode the state files already are the task list — skip to step 6): use TaskCreate to re-create tasks, setting their status from the state files:
"completed" tasks: create with status completed. Set the task description to the saved description field from the state file (this preserves agent reports and context)."in_progress" tasks: create with status in_progress. Set the description to the saved description (if any) plus a note: "RESUMED: This task was interrupted in a previous session. Check git log and changed files to determine what was completed before continuing.""pending" tasks: create normally.native only: set dependencies via TaskUpdate addBlockedBy per each task's dependsOn field from the state files.If the state directory does not exist but branch does, fall back to git-history-based resume: check out the branch, inspect commits with git log, and infer progress from what files exist and what tests pass.
TaskCreate/TaskUpdate/TaskList/TaskGet are disabled by default for current models and only present when the user sets CLAUDE_CODE_ENABLE_TODO_TOOLS=1 (or runs an older model). Detect once, before creating any tasks:
TaskCreate, TaskUpdate, and TaskList. If they are not listed, run ToolSearch with select:TaskCreate,TaskUpdate,TaskList.TASK_TRACKING = native. Follow the mode file as written; the TaskCompleted hook persists build state.TASK_TRACKING = state-files. The build-state files are the task list, and PLUGIN_ROOT/bin/task-state.js replaces the Task* tools. Wherever this skill or the mode file says:
addBlockedBy → nothing to do; the task state files from On Build Start hold names, agent types, and dependsOn.in_progress via TaskUpdate → node PLUGIN_ROOT/bin/task-state.js SPEC_PATH start <task-id>node PLUGIN_ROOT/bin/task-state.js SPEC_PATH next (lists ready, blocked, and in-progress tasks)completed (an agent returned, or you finished the task yourself) → pipe the agent's final report into complete. This replaces the TaskCompleted hook, which never fires without the Task* tools:
node PLUGIN_ROOT/bin/task-state.js SPEC_PATH complete <task-id> <<'REPORT'
<the agent's [agent-type: X] report, verbatim>
REPORT
CLAUDE_CODE_ENABLE_TODO_TOOLS=1 to use Claude Code's native task tools)."[agent-type: <type>] report as your final message."Build state is persisted to disk so builds can resume from a fresh session. State directory: specs/.build-state/<spec-name>/ (derived by stripping the date prefix and .md extension from the spec filename).
After creating the feature branch and before creating tasks (required in both TASK_TRACKING modes — in state-files mode these files are the only task list):
_meta.json with: specFile (spec path), branch (feature branch name), mode (from frontmatter), startedAt (current ISO timestamp), lastUpdated (same as startedAt), compactions (0).## Step by Step Tasks section, write a <task-id>.json file with: name (task name), status "pending", agentType (from spec Agent Type field, or "sequential" for sequential mode), startedAt null, completedAt null, lastUpdated (current ISO timestamp), description null, commitSha null, filesChanged [], dependsOn (array of task IDs from the Depends On field).native: the TaskCompleted hook automatically updates the task state file to "completed" with the agent's description, timestamp, and commit info. You do NOT need to manually update state files for task status transitions — the hook handles it.state-files: run task-state.js complete as described in Task Tracking. It does what the hook does (state file, audit log, markdown table formatting).After committing code, record the commit on the task: node PLUGIN_ROOT/bin/task-state.js SPEC_PATH commit <task-id> <sha> (sets commitSha and filesChanged).
Delegated mode: Builder and debugger agents running in worktrees MUST commit their own changes inside the worktree before marking the task complete. The orchestrator then merges the worktree branch back into the feature branch. Read-only agents do not commit.
Team mode, explicit team (TeamCreate): Agents do NOT touch git. All git operations are handled by the orchestrator (teammates have no worktree isolation).
Team mode, implicit team: builder and debugger teammates run in worktrees (their agent definitions set isolation: "worktree"), so they commit inside the worktree like delegated mode, and the orchestrator merges the worktree branch after review approval (see the team mode file's Worktree Merge). All other agents work in the main directory and do not touch git.
Before executing any tasks:
branch field. If yes, check out that branch — this is a resumed build (see Resuming a Build above).branch field, create a new feature branch:
git checkout -b feat/<spec-name-without-date>
Derive the branch name from the spec filename. For example, specs/2026-02-07-user-auth-api.md becomes feat/user-auth-api.branch: feat/<spec-name> into the spec file's YAML frontmatter (before the closing ---). This marks the spec as "build started" so it can be resumed if interrupted.branch field in frontmatter, check it out and add the field.Commit after each task passes review — never before review approval. This ensures only reviewed code enters the history.
Use this commit message format:
git add <files changed by the task>
git commit -m "<type>(<scope>): <what changed>"
Where <type> is one of: feat, fix, refactor, test, docs, chore. Keep the first line under 72 characters. Do NOT include internal task IDs in commit messages.
After all acceptance criteria pass, do NOT merge or push. Report the branch name and let the user decide what to do next.
Regardless of mode, after all tasks are done:
## Validation Commands. Record output.## Acceptance Criteria. Mark pass/fail.## Documentation Requirements — verify the docs agent produced all required documentation.Build Complete
Spec: <spec file path>
Mode: <sequential | delegated | team>
Branch: feat/<spec-name>
Tasks: <completed>/<total>
Commits: <number of commits on branch>
Results:
- [x] <acceptance criterion 1> — PASS
- [x] <acceptance criterion 2> — PASS
- [ ] <acceptance criterion 3> — FAIL: <reason>
Validation:
- <command 1> — <result>
- <command 2> — <result>
Status: <ALL PASS | ISSUES FOUND>
If all criteria passed, suggest next steps: merge to main, create a PR, or keep the branch for further work.
If any acceptance criteria failed, list what needs to be fixed and ask the user how to proceed.
What SKILL.md sets; muted values are Claude Code's defaults
node ${CLAUDE_PLUGIN_ROOT}/hooks/validate_build_complete.jsnode ${CLAUDE_PLUGIN_ROOT}/hooks/cleanup_worktrees.jsnpx claudepluginhub ratler/dream-team --plugin dream-team6 skills in this plugin
/debugUse when encountering a bug, test failure, unexpected behavior, or when the user asks for help debugging. Hypothesis-driven — reproduce, investigate, fix, verify. Standalone — works outside the plan/spec/build workflow./planStart here — use when the user wants to build something new or plan a feature. Collaborative brainstorming that explores requirements, constraints, and approach through natural dialogue before any spec is written./spec-delegatedUse after /dream-team:plan to write a delegated execution spec (orchestrator + sub-agents). No arguments needed — picks up conversation context from the brainstorming session./spec-sequentialUse after /dream-team:plan to write a sequential execution spec. No arguments needed — picks up conversation context from the brainstorming session./spec-teamUse after /dream-team:plan to write a team execution spec (parallel Claude instances). No arguments needed — picks up conversation context from the brainstorming session.Other plugins' skills for the same job