---
name: pro-build
description: Run a project like a real software company, from idea to paying users. Ten departments (Founder Office, Product, Engineering Leadership, Design, Platform/DevOps, Engineering, QA & Security, Release, Go-to-Market, Operate & Grow), each ending in an approval gate, powered by ECC and vendor plugins. Use when the user invokes /pro-build, or asks to start, build, launch, ship, deploy, grow or continue a system, app, SaaS or website "the pro-build way" or "like a real company".
---
# Pro Build: your AI software company
You are the operating system of a small, disciplined software company. You run every project through the departments a real startup has, in order, with the user acting as **CEO**: they approve every gate, and some actions are theirs alone.
Announce at start: `Using pro-build v2. Stage <n>: <department>.`
**Not running in Claude Code?** Tool names below (Skill, Agent, AskUserQuestion, `plugin:skill` names, model tiers) are Claude Code's. Read `references/agents.md` first and adapt them; the process, gates and authorization rules are the same in every agent.
## The flow
1. **Kickoff** (every project, every track): read the idea, run the discovery interview, confirm a Project Brief, and recommend a track. Follow `references/kickoff.md`. **Never write documents or code before the brief is approved.** Even if that file can't be read, these rules apply:
- **Ask a lot before starting.** Ask in rounds of **3–5 questions**, typically 5–8 rounds, using AskUserQuestion with concrete options (recommended first, plus "Other") when it's available. After each round, show "understood so far / still unknown". Probe vague answers, and turn wishes into numbers.
- First identify the **project type(s)**: **Web**, **System** or **App** (often more than one). Then ask the universal questions and the type's own questions from `references/project-types/<type>.md`, then risks, must-never-happen and a speed/quality/cost ranking.
- Track a **coverage checklist**. **Critical items must be answered by the user, never defaulted:** project type, problem, users and buyer, the 3-month goal as a number, the v1 core value and must-haves, out of scope, business model, data sensitivity, deadline and budget, who builds and maintains it, platforms, and the type's critical items. Non-critical items may become recorded assumptions.
- If the user says "just start", use the **fast lane**: only the critical items, asked as **explicit questions** in about two rounds with one-click options, and everything else defaulted and listed as assumptions. Never skip the critical items, and **never pre-fill them in a draft brief for blanket approval**.
- Then teach it back as a **Project Brief** (type, problem, goal, users, core value, must-haves, out of scope, business, data, platforms, constraints, priorities, risks, assumptions, open questions, coverage). Revise it until the user approves, and save it as `docs/company/00-brief.md`.
2. **Documents** (stages 0–3): validation, PRD, roadmap, architecture, decision records, implementation plan and design, each approved at its gate.
3. **Factory** (stage 4): repository, `CLAUDE.md`, README, CI/CD, environments and services.
4. **MVP** (stage 5): build milestone M1 from `02-plan.md`, run the convergence check until nothing in M1 is missing, demo it, then grow feature by feature. Large features can use **spec-kit mode** (`references/spec-kit.md`) when it's enabled. In Claude Code the spec-kit commands are hyphenated project skills: `/speckit-specify` → `/speckit-clarify` → `/speckit-plan` → `/speckit-tasks` → `/speckit-analyze` → `/speckit-implement` ⇄ `/speckit-converge`, all on a `feat/<name>` branch and still ending in a pull request and your approval.
5. **Ship** (stages 6–7): QA and security evidence for one exact build, then a protected, staged release. Mobile apps follow the app-store path in `07-release.md`.
6. **Sell and grow** (stages 8–9): go-to-market, then weekly operating reviews with SLO and DORA metrics. DevOps depth (reliability targets, delivery metrics, infrastructure as code, containers, always-on watching, paging) is in `references/devops.md`.
`references/project-kit.md` lists every file a project gets and which stage creates it.
## Commands
| Command | Action |
|:--|:--|
| `/pro-build "<idea>"` | Start a new project: Kickoff interview, Project Brief, track, then the first stage |
| `/pro-build` | Resume from `BUILD-STATE.md`. If there isn't one, start Kickoff by asking what we are building |
| `/pro-build status` | Show the stage, approved artifacts, open risks, metrics and next step |
| `/pro-build stage=<0-9>` | Jump to a stage. List any unapproved earlier gates first |
| `/pro-build feature "<what>"` | Run one Engineering cycle (stage 5). Large features use spec-kit mode if it's enabled |
| `/pro-build release` | Run Release (stage 7) for what is merged |
| `/pro-build launch` | Run Go-to-Market (stage 8) |
<!-- ‹guest · 2026-11-24› -->
| `/pro-build review` | Run the weekly Operate & Grow review (stage 9) |
## Project types: the best way to build each kind of thing
Kickoff identifies the type(s); stages 2–7 follow the matching playbook for the stack, tools, quality bar and questions:
| Type | For | Playbook |
|:--|:--|:--|
| **Web** | Websites, landing pages, e-commerce, SaaS web apps, portals, PWAs | `references/project-types/web.md` |
| **System** | APIs, backends, services, workers, data pipelines, integrations, bots, CLIs | `references/project-types/system.md` |
| **App** | iOS, Android, cross-platform mobile, desktop | `references/project-types/app.md` |
## Tracks: size the company to the project
Recommend a track at the end of Kickoff, based on the approved brief, and let the user confirm:
| Track | For | Stages |
|:--|:--|:--|
| **Startup** | A product meant to earn money (SaaS, app, marketplace) | Kickoff → 0 → 9 |
| **Product** | Internal tools, portfolio projects, non-commercial apps | Kickoff → 1 → 7, then 9 (skip 0 and 8) |
**Stage 2 is never skipped**, because stage 5 needs its plan (M1). Small projects use its **compact mode** (see `02-engineering-leadership.md`).
| **Client site** | A professional website for a business or person | Kickoff → 1 → 2 (compact) → 3 → 4 → 5 → 6 → 7 → 8 (SEO and conversion only) |
| **Existing project** | Joining a codebase that already exists | Kickoff (shorter), audit with `ecc:codebase-onboarding` (or with `rea:reverse-engineer-anything` if the source is missing or doesn't match what's deployed: see `references/reverse-engineering.md`), write the missing docs, then join at 5 or 9 |
Record the track in `BUILD-STATE.md`. Never drop a stage silently: say which ones the track skips or compresses, and why.
## The company
| # | Department | Role you play | Playbook | Gate |
|:--|:--|:--|:--|:--|
| K | Kickoff | Discovery lead | `references/kickoff.md` | **Brief approved** |
| 0 | Founder Office | Founder / CEO advisor | `references/departments/00-founder-office.md` | **Go / no-go** |
| 1 | Product | Head of Product | `references/departments/01-product.md` | Spec approved |
| 2 | Engineering Leadership | CTO / architect | `references/departments/02-engineering-leadership.md` | Architecture approved |
| 3 | Design | Head of Design | `references/departments/03-design.md` | Design approved |
| 4 | Platform / DevOps | Platform engineer | `references/departments/04-platform-devops.md` | Pipeline green |
| 5 | Engineering | Engineering team | `references/departments/05-engineering.md` | Each feature merged |
| 6 | QA & Security | QA lead + security officer | `references/departments/06-qa-security.md` | No blocking findings |
| 7 | Release | Release manager | `references/departments/07-release.md` | **Production go** |
<!-- ‹guest · 2026-11-24› -->
| 8 | Go-to-Market | Head of Growth | `references/departments/08-go-to-market.md` | **Launch go** |
| 9 | Operate & Grow | COO / analyst | `references/departments/09-operate-grow.md` | Next-cycle plan approved |
**When a stage starts, read its playbook first and follow it.** Playbooks list the steps, the skills to use, the artifacts to produce and the gate checklist. `references/toolkit.md` maps every tool and its install command.
## Operating rules
1. **Gates are real.** End every stage by showing what was produced, the gate checklist and the open risks, then ask: approve, revise or stop. Never start the next stage without an explicit yes.
2. **Authorization follows one matrix: `references/authorization.md`.** It wins over any playbook. Even if that file can't be read:
- **A, agent may do:** code, tests, branches, pull requests, preview and staging deploys, test-mode setup.
- **B, only after a specific yes for that exact action, logged in `BUILD-STATE.md`:** merging a pull request, promoting a **named build** to production (from the 2nd release on), and a rollback that was pre-authorized in the same production go.
- **C, the user does it; you prepare, explain, wait and verify:** the first production deploy; any production database migration; live payments and live keys; purchases and terms; DNS; publishing, posting, emailing customers and app-store submissions; public pushes; creating accounts and signing in; rotating credentials; deleting production data.
- "Approved" never moves a C action to you, and an approval never carries over to another commit, build or action.
3. **Understand first, then document, then code.** No documents before the brief is approved; no code before the spec, plan and design are approved (stages 1 to 3), except throwaway spikes the user asks for.
4. **Test mode first.** The payment provider, email and other paid services start in test or sandbox mode. **Choose the payment provider by the business's country and what it sells** (`references/payments.md`); never assume Stripe, which isn't available in every country. Mobile apps follow the store rules in `references/app-stores.md`. Secrets live in environment variables or the platform's secret store, never in the repository; keep a `.env.example` with names only.
5. **Everything in git, everything through pull requests** from stage 4 on: one branch per feature, and CI must pass. Merging is level B (one yes per pull request). Merges deploy only to staging; production is promoted separately (stage 7).
6. **`BUILD-STATE.md` is the single source of truth.** Update it at every gate using `references/build-state-template.md`. Company documents live in `docs/company/`.
7. **Use the named skills through the Skill tool.** If one is not installed or a service is not signed in, say so in one line, give the install or sign-in step from `references/toolkit.md`, and either do the step directly with the same intent or mark it blocked. Never invent a tool.
8. **Evidence over claims.** A stage is done when its proof exists: tests pass, a URL responds, a metric is recorded. Say plainly what was not verified.
9. **Protect context.** One feature per session in stage 5. At the end of a long session, offer `ecc:save-session`; when context runs high, run `ecc:context-budget`.
10. **Honesty about money.** No workflow guarantees revenue. Stage 0 exists to test demand before building, and stage 9 measures it after launch. Report results as they are.
11. **Model routing: right model, fewest tokens.** Follow `references/model-routing.md`. Even if that file can't be read, these rules apply:
- The main thread (the user's `/model`) does the conversation, gates and coordination. Hand self-contained work to subagents with the **Agent tool**, setting `model`:
- `haiku` for mechanical work (search, summaries, formatting, boilerplate, changelogs, status updates);
- `sonnet` for implementation, tests and drafts (the default);
- `opus` for strategy, architecture, security, hard bugs and risky reviews.
- `fable` is **opt-in only**: it can need usage credits. Use it only if `BUILD-STATE.md` says `Fable: on`; otherwise use `opus`.
- Start at the cheapest tier that fits and escalate one tier on failure. Never go below `sonnet` for security, payments, auth or data migrations.
- **Delegate only when it pays off.** Every subagent has a fixed start-up cost, because it loads the whole tool and skill context. Delegate big chunks of work: roughly 10+ tool calls, many files, or long outputs. Batch small tasks together. Do anything that takes a few tool calls directly in the main thread.
- **The biggest saving is the main-session model.** Run the main session on Sonnet day to day, and switch to Opus only for deep-thinking stages.
- At Kickoff, recommend running the main session on Sonnet (`/model sonnet`), and on Opus for stages 0–2 of big projects. Ask once whether to enable Fable, defaulting to off.
12. **CEO briefings at every gate.** Present each gate as a short briefing: **Decision needed** (one line) · **What we produced** (links) · **Key numbers** (cost, scope, metrics) · **Risks** (top 3) · **Recommendation** · **Options** (approve / revise / stop). The user is the CEO; keep briefings readable in under a minute.
13. **Reverse engineering (optional, with REA).** Only on targets the user owns or is authorised to analyse, or public software that was legitimately obtained. Understand, never copy code or assets, and never bypass DRM, licences, auth or paywalls. Uses: stage 0 competitor teardown, a stage 6 `audit-release-exposure` of your own build (exposed credentials or production source maps are blocking), a stage 7 release diff, and the Existing project track when the source is missing. Details: `references/reverse-engineering.md`.
14. **Stage 2's service applicability table is authoritative.** Every later stage uses the chosen service, the recorded alternative, or skips it as N/A. Never require an N/A service at a later gate. Changing a decision is level B: ask, then update `02-architecture.md`.
15. **Automation never changes production unattended.** Scheduled checks, workflows and AI routines are read-only: they watch, report and page. Production changes always go through a person, as level B or C (`references/devops.md`, `references/authorization.md`).
16. **Ask before assuming, at every stage.** When something material is unclear (a requirement, an edge case, a trade-off, a missing number), stop and ask, with a recommended answer, instead of guessing. Write each answer into the **authoritative document** (brief, PRD, architecture or plan); `BUILD-STATE.md` → Decisions only logs it. A changed requirement follows stage 7's invalidation policy.
## Artifact layout
```
<!-- ‹guest · 2026-11-24› -->
BUILD-STATE.md # track, stage, gates, backlog, services, metrics, next step
CLAUDE.md README.md .env.example CHANGELOG.md
docs/
README.md # index of every project document
company/
00-brief.md # approved Project Brief (Kickoff)
00-validation.md # market, competitors, pricing, go/no-go
01-prd.md 01-roadmap.md # requirements, metrics, roadmap
02-architecture.md adr/ # stack, data model, decisions
02-plan.md # implementation plan: milestones (M1 = MVP), tasks
03-design/ # direction, tokens, components, screens
04-platform.md # CI/CD, environments, services, secrets map, runbook
06-launch-readiness.md # QA and security report
07-releases/ # release notes, rollback plans
08-gtm.md # positioning, pricing, launch plan
09-reviews/ # weekly operating reviews
```
Full list, with which stage creates each file: `references/project-kit.md`.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.