Claude Code Team Builder
What This Skill Produces
For any software project, this skill generates a complete .claude/ directory:
.claude/
├── CLAUDE.md ← project context Claude reads every session
├── settings.json ← orchestration + autonomy configuration
├── agents/
│ ├── orchestrator/AGENT.md ← mandatory: plans, assigns, validates
│ ├── problem-solver/AGENT.md ← mandatory: self-healing, task repair
│ ├── test-engineer/AGENT.md ← mandatory: validates every feature
│ ├── documentation-writer/AGENT.md ← mandatory: PRDs before development
│ └── [project-specific]/AGENT.md
├── skills/
│ ├── run/SKILL.md ← autonomous execution loop
│ ├── status/SKILL.md ← project state reporting
│ ├── dashboard/SKILL.md ← visual progress tracker
│ ├── deploy/SKILL.md ← workflow skill
│ ├── test/SKILL.md ← workflow skill
│ ├── review/SKILL.md ← workflow skill
│ └── [domain skills]/SKILL.md ← project-specific
└── workspace/ ← result files, progress.log, orchestrator_state.json
CLAUDE.md is the most important output — project context read at every session start: tech stack, domain concepts, agent routing, project completion criteria, available commands, and conventions.
Agents use the subfolder structure (agents/[name]/AGENT.md). Each agent carries its own handoff protocol. Four agents are mandatory on every project: orchestrator, problem-solver, test-engineer, documentation-writer.
Skills are two kinds:
- Execution skills —
/run, /status, /dashboard — orchestration and monitoring
- Workflow skills —
/deploy, /test, /review, /migrate — developer workflows
- Domain skills — tailored to what this project does (e.g.,
/process-refund, /onboard-vendor)
settings.json controls orchestration behavior: autonomy mode, milestone auto-advance, retry policy, and the self-healing pipeline.
This skill does NOT create:
- PRDs, architecture documents, or specs (the documentation-writer agent does that)
- Source code or project scaffolding (the dev agents do that)
- Any artifact outside
.claude/
Phase 1: Discovery
Choose a mode — ALWAYS ask the user before doing anything else:
This is mandatory. Regardless of how the user triggers the skill — whether they say "set up a new project" or "build a team for my SaaS app" or paste a full project description unprompted — always present the mode choice first. Do not skip this step. Do not infer the mode from how the user started the conversation.
"To set up your project, I can work in two ways:
- Paste mode: Share everything you know — description, tech stack, requirements, constraints — and I'll infer the rest.
- Q&A mode: I'll ask you questions one section at a time. More thorough, better output for complex projects.
Which do you prefer?"
If the user already pasted a project description in their first message, still ask — they may want Q&A mode to fill in gaps they didn't think of. If they confirm paste mode, proceed with what they already shared.
Paste mode
The user pastes a project description. Extract answers to the question bank from what they provide, then ask only for critical gaps — at most 3 follow-ups. If something is genuinely unclear, make a reasonable assumption and state it explicitly.
Q&A mode
Ask questions from the question bank (references/question-bank.md) one section at a time. Present each section as a numbered list. Don't ask a question whose answer is already obvious from prior answers.
Required to proceed (minimum viable discovery):
- What are you building? (type + purpose)
- What's the tech stack? (frontend, backend, database)
- What are the highest-risk or most complex technical areas?
Everything else can be inferred with reasonable defaults.
Phase 2: Determine Agents
Always include (mandatory):
orchestrator — plans, assigns tasks, validates results, drives the execution loop
problem-solver — self-healing: rewrites failed tasks, splits complex tasks, fixes acceptance criteria
test-engineer — validates every feature
documentation-writer — PRDs before development, specs for client handoff
Add based on tech stack and complexity:
| Signal |
Add |
| Web app with distinct UI and API |
frontend-developer + backend-developer |
| Full-stack framework (Next.js, Nuxt, SvelteKit) |
fullstack-developer (preferred for vertical slicing) |
| Data-heavy schema / complex queries |
database-architect |
| Any deployment / CI/CD |
devops-engineer |
| Client deliverable / payment code / sensitive logic |
code-reviewer |
| Payments, billing, financial logic is central |
payments-engineer (domain specialist) |
| Real-time / live streaming / WebSockets |
streaming-engineer (domain specialist) |
| Existing client design system |
design-system-integrator (domain specialist) |
| Auth, OAuth, compliance |
auth-security-engineer (domain specialist) |
| ML, AI features, data science |
ml-engineer (domain specialist) |
| iOS/Android/React Native |
mobile-developer |
Team size: 5–6 agents for simple projects (4 mandatory + 1–2 dev), 6–8 for medium, 8–10 for complex multi-surface projects.
Critical rule on agent descriptions:
The description field is what Claude uses to route tasks. It must name the specific technologies and task types. A generic description like "backend API development" is useless. A good one says:
"Next.js App Router API routes, Prisma ORM queries, and Stripe Connect webhook handling. Use for any server-side logic, database work, or payment processing on the TaskFlow project."
Every agent file must reference the project's name, stack, and domain.
Model assignment by cognitive demand:
Not every agent needs the same model. Assign based on the reasoning complexity of the work:
| Tier |
Model |
Agents |
Why |
| Planning |
opus (or sonnet) |
orchestrator, problem-solver |
Task decomposition, failure diagnosis, and dependency reasoning require the strongest planning ability. Use opus if the user's model balance preference allows it; otherwise sonnet. |
| Execution |
sonnet |
All developer agents, devops-engineer |
Focused code generation within a well-defined scope. Sonnet handles this well. |
| Validation |
sonnet (or haiku) |
test-engineer, code-reviewer, documentation-writer |
Checking criteria against output, reviewing code patterns, writing structured docs. Haiku is sufficient for simple validation tasks if the user wants to optimize cost. |
Ask the user during discovery (question 11) for their preference. Default: sonnet for all agents. If they want cost optimization, drop validation agents to haiku. If they want maximum quality, upgrade planning agents to opus.
Phase 3: Determine Skills
Execution skills — always included:
| Skill |
Purpose |
/run |
Autonomous execution loop with state reconciliation |
/status |
Project state reporting |
/dashboard |
Visual progress tracker (HTML) |
Workflow skills — include when the condition is met:
| Skill |
Include when |
/deploy |
Project has a deployment pipeline or hosting target |
/test |
Project has (or will have) automated tests |
/review |
Client project or code quality is a priority |
/migrate |
Project has a relational database |
/pr |
Project uses GitHub/GitLab and PRs |
/seed |
Project has database seed data for development |
/changelog |
Client expects release notes or versioned deliverables |
Domain skills — derive from the project's key workflows:
Think: "What multi-step task will this developer repeat many times?"
Examples by domain:
- E-commerce:
/process-refund, /add-product, /sync-inventory
- SaaS / multi-tenant:
/onboard-tenant, /audit-usage, /manage-subscription
- Marketplace:
/approve-vendor, /process-payout, /handle-dispute
- Streaming/media:
/check-stream-health, /rotate-cdn-keys
- Data/analytics:
/generate-report, /run-pipeline, /validate-schema
- Auth-heavy:
/audit-permissions, /rotate-keys
Create 1–3 domain skills based on what the project actually does.
Phase 4: Generate Files
Generation rule: copy structural sections verbatim
Templates contain two kinds of content:
- Placeholders — text in
[brackets] like [Project Name], [tech stack], [test framework]. Replace these with project-specific values.
- Structural sections — named blocks that define how agents and skills behave. These must be copied verbatim into the generated files. Do not paraphrase, shorten, summarize, or rewrite them in your own words.
Structural sections that must be copied verbatim from the templates:
| Template |
Sections to copy verbatim |
| orchestrator |
Task Sizing Rules, State Management, State Summarization, Execution Loop, Self-Healing Pipeline, Handoff Protocol |
| problem-solver |
Self-Healing Workflow, Handoff Protocol |
| All other agents |
Handoff Protocol |
| /run skill |
Execution Loop (all steps including Reconcile State, Self-healing pipeline) |
| /dashboard skill |
How the dashboard works, Important |
| CLAUDE.md |
Task Sizing (copy general rules, then add project-specific lines below them) |
Why this matters: These sections contain reasoning rules, not just descriptions. If the orchestrator gets a paraphrased summary instead of the full Task Sizing Rules, it can't reason about edge cases during replanning. If an agent gets a shortened Handoff Protocol, it may skip writing result files. The templates are precise because the rules need to be precise.
After replacing placeholders and copying structural sections, verify each generated file by checking that every structural section listed above is present and complete — not shortened, not reworded.
4A: Agent files (subfolder structure)
Create .claude/agents/[name]/AGENT.md for each agent. Use the templates in references/templates/agents.md. Replace all placeholders with project-specific content. Copy all structural sections verbatim per the rule above.
4B: Skill files
Create .claude/skills/[skill-name]/SKILL.md for each skill. Use the templates in references/templates/skills.md. Each skill should:
- Have a clear trigger description (the
description frontmatter field)
- Walk through its workflow step by step
- Reference the project's actual commands, paths, and conventions
- Be short — workflow skills are usually 30–60 lines
4C: CLAUDE.md — the project brain
Use references/templates/claude-md.md as the structure. It must include:
- Project summary — 2–3 sentences. What it is, who it's for, current status.
- Tech stack — complete list
- Key domain concepts — entities and business rules (3–8 concepts)
- Agent routing — explicit rules with orchestrator as highest priority
- Available skills — list of
/commands with one-line descriptions
- Project conventions — file structure, naming, what NOT to do
- Project completion criteria — deterministic stopping point for the orchestrator
- Task sizing — copy general rules from template verbatim, then add project-specific lines below them (per the generation rule above)
- Current focus — placeholder the user updates as the project evolves
Keep CLAUDE.md under 130 lines. Dense but scannable.
4D: settings.json
{
"autonomy": {
"mode": "supervised",
"auto_advance_milestones": true,
"escalation_enabled": true
},
"retry_policy": {
"max_retries": 4,
"strategy": "classify-then-act",
"simple_failure_retry": 1
},
"self_healing": {
"enabled": true,
"pipeline": ["simple-retry", "refine-instructions", "split-task", "reassign-agent", "escalate"],
"invoke_problem_solver": "structural-failures-only"
},
"model_tiers": {
"planning": "sonnet",
"execution": "sonnet",
"validation": "sonnet"
}
}
The mode field accepts three values:
"supervised" — pauses for human input at milestone boundaries and on escalation (default)
"autonomous" — auto-advances milestones when acceptance criteria pass, only escalates on catastrophic failure
"strict-autonomous" — escalation disabled entirely; the problem-solver handles everything
The model_tiers field controls which model each agent class uses:
"planning" — orchestrator, problem-solver (options: "opus", "sonnet")
"execution" — all developer agents, devops (options: "sonnet", "haiku")
"validation" — test-engineer, code-reviewer, documentation-writer (options: "sonnet", "haiku")
- Default:
"sonnet" for all tiers. For cost optimization, set validation to "haiku". For maximum quality, set planning to "opus".
4E: workspace directory and dashboard
Create .claude/workspace/ as an empty directory. Copy references/templates/dashboard.html into .claude/workspace/dashboard.html. Do NOT generate dashboard HTML from scratch — always use the fixed template.
The orchestrator will populate the workspace with:
orchestrator_state.json — persistent state across sessions
progress.log — task transition log
dashboard.html — fixed template, reads tasks.json and progress.log dynamically
[task-id].result.md — individual agent result files
Phase 5: Validate and Summarize
Before finishing, verify:
- ✅ All structural sections from templates are present and complete in generated files (see Phase 4 generation rule)
- ✅
orchestrator agent has: State Management, State Summarization, Task Sizing Rules, Execution Loop, Self-Healing Pipeline, Handoff Protocol — all verbatim
- ✅
problem-solver agent has: Self-Healing Workflow, Handoff Protocol — verbatim
- ✅ All other agents have: Handoff Protocol — verbatim
- ✅ Every agent uses subfolder structure (
agents/[name]/AGENT.md)
- ✅ Every agent description references this project's actual tech stack and domain
- ✅ CLAUDE.md Task Sizing has general rules plus project-specific lines
- ✅ CLAUDE.md includes agent routing, skill list, domain concepts, completion criteria, and conventions
- ✅ settings.json includes autonomy, retry, self-healing, and model tier configuration
- ✅
dashboard.html in workspace is the fixed template copied from references/templates/dashboard.html
- ✅ Execution skills (
/run, /status, /dashboard) included
- ✅ At least 2 workflow/domain skills created
- ✅ No PRDs, specs, architecture docs, or source code created
- ✅ Total files ≤ 25
Then summarize:
- What agents were created and why
- What skills were created and what they do
- What's in CLAUDE.md
- What autonomy mode is set and how to change it
- Suggested first action: run
/run --plan to generate the task decomposition, review it, then /run to start execution
Reference Files
references/question-bank.md — full discovery question bank, organized by category
references/templates/agents.md — agent file templates for each role (including orchestrator + problem-solver)
references/templates/skills.md — skill file templates for execution, workflow, and domain skills
references/templates/claude-md.md — CLAUDE.md structure template
references/templates/dashboard.html — fixed dashboard template (copy to workspace, do not regenerate)
1---2name: claude-code-team-builder3description: Builds a complete AI development environment for a software project — agents, custom skills, CLAUDE.md project context, orchestration layer, and routing rules. Triggers when someone says 'set up a new project', 'build a team for [project]', 'create project setup', 'scaffold my AI team', or describes a client project and wants Claude Code configured for it. Produces a full .claude/ configuration with project context, agent routing, autonomous execution support, and slash commands tailored to the project's domain and workflow.4---56# Claude Code Team Builder78## What This Skill Produces910For any software project, this skill generates a complete `.claude/` directory:1112```13.claude/14├── CLAUDE.md ← project context Claude reads every session15├── settings.json ← orchestration + autonomy configuration16├── agents/17│ ├── orchestrator/AGENT.md ← mandatory: plans, assigns, validates18│ ├── problem-solver/AGENT.md ← mandatory: self-healing, task repair19│ ├── test-engineer/AGENT.md ← mandatory: validates every feature20│ ├── documentation-writer/AGENT.md ← mandatory: PRDs before development21│ └── [project-specific]/AGENT.md22├── skills/23│ ├── run/SKILL.md ← autonomous execution loop24│ ├── status/SKILL.md ← project state reporting25│ ├── dashboard/SKILL.md ← visual progress tracker26│ ├── deploy/SKILL.md ← workflow skill27│ ├── test/SKILL.md ← workflow skill28│ ├── review/SKILL.md ← workflow skill29│ └── [domain skills]/SKILL.md ← project-specific30└── workspace/ ← result files, progress.log, orchestrator_state.json31```3233**CLAUDE.md** is the most important output — project context read at every session start: tech stack, domain concepts, agent routing, project completion criteria, available commands, and conventions.3435**Agents** use the subfolder structure (`agents/[name]/AGENT.md`). Each agent carries its own handoff protocol. Four agents are mandatory on every project: orchestrator, problem-solver, test-engineer, documentation-writer.3637**Skills** are two kinds:38- *Execution skills* — `/run`, `/status`, `/dashboard` — orchestration and monitoring39- *Workflow skills* — `/deploy`, `/test`, `/review`, `/migrate` — developer workflows40- *Domain skills* — tailored to what this project does (e.g., `/process-refund`, `/onboard-vendor`)4142**settings.json** controls orchestration behavior: autonomy mode, milestone auto-advance, retry policy, and the self-healing pipeline.4344**This skill does NOT create:**45- PRDs, architecture documents, or specs (the documentation-writer agent does that)46- Source code or project scaffolding (the dev agents do that)47- Any artifact outside `.claude/`4849---5051## Phase 1: Discovery5253### Choose a mode — ALWAYS ask the user before doing anything else:5455This is mandatory. Regardless of how the user triggers the skill — whether they say "set up a new project" or "build a team for my SaaS app" or paste a full project description unprompted — **always present the mode choice first.** Do not skip this step. Do not infer the mode from how the user started the conversation.5657> "To set up your project, I can work in two ways:58> - **Paste mode**: Share everything you know — description, tech stack, requirements, constraints — and I'll infer the rest.59> - **Q&A mode**: I'll ask you questions one section at a time. More thorough, better output for complex projects.60>61> Which do you prefer?"6263If the user already pasted a project description in their first message, still ask — they may want Q&A mode to fill in gaps they didn't think of. If they confirm paste mode, proceed with what they already shared.6465### Paste mode66The user pastes a project description. Extract answers to the question bank from what they provide, then ask only for critical gaps — at most 3 follow-ups. If something is genuinely unclear, make a reasonable assumption and state it explicitly.6768### Q&A mode69Ask questions from the question bank (`references/question-bank.md`) one section at a time. Present each section as a numbered list. Don't ask a question whose answer is already obvious from prior answers.7071**Required to proceed (minimum viable discovery):**721. What are you building? (type + purpose)732. What's the tech stack? (frontend, backend, database)743. What are the highest-risk or most complex technical areas?7576Everything else can be inferred with reasonable defaults.7778---7980## Phase 2: Determine Agents8182**Always include (mandatory):**83- `orchestrator` — plans, assigns tasks, validates results, drives the execution loop84- `problem-solver` — self-healing: rewrites failed tasks, splits complex tasks, fixes acceptance criteria85- `test-engineer` — validates every feature86- `documentation-writer` — PRDs before development, specs for client handoff8788**Add based on tech stack and complexity:**8990| Signal | Add |91|---|---|92| Web app with distinct UI and API | `frontend-developer` + `backend-developer` |93| Full-stack framework (Next.js, Nuxt, SvelteKit) | `fullstack-developer` (preferred for vertical slicing) |94| Data-heavy schema / complex queries | `database-architect` |95| Any deployment / CI/CD | `devops-engineer` |96| Client deliverable / payment code / sensitive logic | `code-reviewer` |97| Payments, billing, financial logic is central | `payments-engineer` (domain specialist) |98| Real-time / live streaming / WebSockets | `streaming-engineer` (domain specialist) |99| Existing client design system | `design-system-integrator` (domain specialist) |100| Auth, OAuth, compliance | `auth-security-engineer` (domain specialist) |101| ML, AI features, data science | `ml-engineer` (domain specialist) |102| iOS/Android/React Native | `mobile-developer` |103104Team size: 5–6 agents for simple projects (4 mandatory + 1–2 dev), 6–8 for medium, 8–10 for complex multi-surface projects.105106**Critical rule on agent descriptions:**107The `description` field is what Claude uses to route tasks. It must name the specific technologies and task types. A generic description like "backend API development" is useless. A good one says:108109> "Next.js App Router API routes, Prisma ORM queries, and Stripe Connect webhook handling. Use for any server-side logic, database work, or payment processing on the TaskFlow project."110111Every agent file must reference the project's name, stack, and domain.112113**Model assignment by cognitive demand:**114Not every agent needs the same model. Assign based on the reasoning complexity of the work:115116| Tier | Model | Agents | Why |117|---|---|---|---|118| Planning | opus (or sonnet) | `orchestrator`, `problem-solver` | Task decomposition, failure diagnosis, and dependency reasoning require the strongest planning ability. Use opus if the user's model balance preference allows it; otherwise sonnet. |119| Execution | sonnet | All developer agents, `devops-engineer` | Focused code generation within a well-defined scope. Sonnet handles this well. |120| Validation | sonnet (or haiku) | `test-engineer`, `code-reviewer`, `documentation-writer` | Checking criteria against output, reviewing code patterns, writing structured docs. Haiku is sufficient for simple validation tasks if the user wants to optimize cost. |121122Ask the user during discovery (question 11) for their preference. Default: sonnet for all agents. If they want cost optimization, drop validation agents to haiku. If they want maximum quality, upgrade planning agents to opus.123124---125126## Phase 3: Determine Skills127128### Execution skills — always included:129130| Skill | Purpose |131|---|---|132| `/run` | Autonomous execution loop with state reconciliation |133| `/status` | Project state reporting |134| `/dashboard` | Visual progress tracker (HTML) |135136### Workflow skills — include when the condition is met:137138| Skill | Include when |139|---|---|140| `/deploy` | Project has a deployment pipeline or hosting target |141| `/test` | Project has (or will have) automated tests |142| `/review` | Client project or code quality is a priority |143| `/migrate` | Project has a relational database |144| `/pr` | Project uses GitHub/GitLab and PRs |145| `/seed` | Project has database seed data for development |146| `/changelog` | Client expects release notes or versioned deliverables |147148### Domain skills — derive from the project's key workflows:149150Think: *"What multi-step task will this developer repeat many times?"*151152Examples by domain:153- **E-commerce**: `/process-refund`, `/add-product`, `/sync-inventory`154- **SaaS / multi-tenant**: `/onboard-tenant`, `/audit-usage`, `/manage-subscription`155- **Marketplace**: `/approve-vendor`, `/process-payout`, `/handle-dispute`156- **Streaming/media**: `/check-stream-health`, `/rotate-cdn-keys`157- **Data/analytics**: `/generate-report`, `/run-pipeline`, `/validate-schema`158- **Auth-heavy**: `/audit-permissions`, `/rotate-keys`159160Create 1–3 domain skills based on what the project actually does.161162---163164## Phase 4: Generate Files165166### Generation rule: copy structural sections verbatim167168Templates contain two kinds of content:169- **Placeholders** — text in `[brackets]` like `[Project Name]`, `[tech stack]`, `[test framework]`. Replace these with project-specific values.170- **Structural sections** — named blocks that define how agents and skills behave. These must be **copied verbatim** into the generated files. Do not paraphrase, shorten, summarize, or rewrite them in your own words.171172Structural sections that must be copied verbatim from the templates:173174| Template | Sections to copy verbatim |175|---|---|176| orchestrator | Task Sizing Rules, State Management, State Summarization, Execution Loop, Self-Healing Pipeline, Handoff Protocol |177| problem-solver | Self-Healing Workflow, Handoff Protocol |178| All other agents | Handoff Protocol |179| /run skill | Execution Loop (all steps including Reconcile State, Self-healing pipeline) |180| /dashboard skill | How the dashboard works, Important |181| CLAUDE.md | Task Sizing (copy general rules, then add project-specific lines below them) |182183**Why this matters:** These sections contain reasoning rules, not just descriptions. If the orchestrator gets a paraphrased summary instead of the full Task Sizing Rules, it can't reason about edge cases during replanning. If an agent gets a shortened Handoff Protocol, it may skip writing result files. The templates are precise because the rules need to be precise.184185After replacing placeholders and copying structural sections, verify each generated file by checking that every structural section listed above is present and complete — not shortened, not reworded.186187### 4A: Agent files (subfolder structure)188189Create `.claude/agents/[name]/AGENT.md` for each agent. Use the templates in `references/templates/agents.md`. Replace all placeholders with project-specific content. Copy all structural sections verbatim per the rule above.190191### 4B: Skill files192193Create `.claude/skills/[skill-name]/SKILL.md` for each skill. Use the templates in `references/templates/skills.md`. Each skill should:194- Have a clear trigger description (the `description` frontmatter field)195- Walk through its workflow step by step196- Reference the project's actual commands, paths, and conventions197- Be short — workflow skills are usually 30–60 lines198199### 4C: CLAUDE.md — the project brain200201Use `references/templates/claude-md.md` as the structure. It must include:2022031. **Project summary** — 2–3 sentences. What it is, who it's for, current status.2042. **Tech stack** — complete list2053. **Key domain concepts** — entities and business rules (3–8 concepts)2064. **Agent routing** — explicit rules with orchestrator as highest priority2075. **Available skills** — list of `/commands` with one-line descriptions2086. **Project conventions** — file structure, naming, what NOT to do2097. **Project completion criteria** — deterministic stopping point for the orchestrator2108. **Task sizing** — copy general rules from template verbatim, then add project-specific lines below them (per the generation rule above)2119. **Current focus** — placeholder the user updates as the project evolves212213Keep CLAUDE.md under 130 lines. Dense but scannable.214215### 4D: settings.json216217```json218{219 "autonomy": {220 "mode": "supervised",221 "auto_advance_milestones": true,222 "escalation_enabled": true223 },224 "retry_policy": {225 "max_retries": 4,226 "strategy": "classify-then-act",227 "simple_failure_retry": 1228 },229 "self_healing": {230 "enabled": true,231 "pipeline": ["simple-retry", "refine-instructions", "split-task", "reassign-agent", "escalate"],232 "invoke_problem_solver": "structural-failures-only"233 },234 "model_tiers": {235 "planning": "sonnet",236 "execution": "sonnet",237 "validation": "sonnet"238 }239}240```241242The `mode` field accepts three values:243- `"supervised"` — pauses for human input at milestone boundaries and on escalation (default)244- `"autonomous"` — auto-advances milestones when acceptance criteria pass, only escalates on catastrophic failure245- `"strict-autonomous"` — escalation disabled entirely; the problem-solver handles everything246247The `model_tiers` field controls which model each agent class uses:248- `"planning"` — orchestrator, problem-solver (options: `"opus"`, `"sonnet"`)249- `"execution"` — all developer agents, devops (options: `"sonnet"`, `"haiku"`)250- `"validation"` — test-engineer, code-reviewer, documentation-writer (options: `"sonnet"`, `"haiku"`)251- Default: `"sonnet"` for all tiers. For cost optimization, set validation to `"haiku"`. For maximum quality, set planning to `"opus"`.252253### 4E: workspace directory and dashboard254255Create `.claude/workspace/` as an empty directory. Copy `references/templates/dashboard.html` into `.claude/workspace/dashboard.html`. Do NOT generate dashboard HTML from scratch — always use the fixed template.256257The orchestrator will populate the workspace with:258- `orchestrator_state.json` — persistent state across sessions259- `progress.log` — task transition log260- `dashboard.html` — fixed template, reads tasks.json and progress.log dynamically261- `[task-id].result.md` — individual agent result files262263---264265## Phase 5: Validate and Summarize266267Before finishing, verify:268- ✅ All structural sections from templates are present and complete in generated files (see Phase 4 generation rule)269- ✅ `orchestrator` agent has: State Management, State Summarization, Task Sizing Rules, Execution Loop, Self-Healing Pipeline, Handoff Protocol — all verbatim270- ✅ `problem-solver` agent has: Self-Healing Workflow, Handoff Protocol — verbatim271- ✅ All other agents have: Handoff Protocol — verbatim272- ✅ Every agent uses subfolder structure (`agents/[name]/AGENT.md`)273- ✅ Every agent description references this project's actual tech stack and domain274- ✅ CLAUDE.md Task Sizing has general rules plus project-specific lines275- ✅ CLAUDE.md includes agent routing, skill list, domain concepts, completion criteria, and conventions276- ✅ settings.json includes autonomy, retry, self-healing, and model tier configuration277- ✅ `dashboard.html` in workspace is the fixed template copied from `references/templates/dashboard.html`278- ✅ Execution skills (`/run`, `/status`, `/dashboard`) included279- ✅ At least 2 workflow/domain skills created280- ✅ No PRDs, specs, architecture docs, or source code created281- ✅ Total files ≤ 25282283Then summarize:284- What agents were created and why285- What skills were created and what they do286- What's in CLAUDE.md287- What autonomy mode is set and how to change it288- Suggested first action: run `/run --plan` to generate the task decomposition, review it, then `/run` to start execution289290---291292## Reference Files293294- `references/question-bank.md` — full discovery question bank, organized by category295- `references/templates/agents.md` — agent file templates for each role (including orchestrator + problem-solver)296- `references/templates/skills.md` — skill file templates for execution, workflow, and domain skills297- `references/templates/claude-md.md` — CLAUDE.md structure template298- `references/templates/dashboard.html` — fixed dashboard template (copy to workspace, do not regenerate)