A structured AI-powered development workflow for building fullstack apps from idea to deployment β using Claude Code slash commands that automatically wire up the right agent, skill, and context at every phase.
AI Dev Orchestrator turns a rough app idea into a production-ready fullstack project through 14 sequential phases β each one a slash command that adopts the correct agent role, loads the right skill document, and scopes to the exact context it needs.
The workflow starts with /discover, an interactive concept refinement session that clarifies your app before any code or requirements are written. Every phase from there builds on the last: BRD β architecture β schema β backend modules β tests β UI design β frontend β deployment.
Three ways to run it:
| Mode | How | Best for |
|---|---|---|
| Phase by phase | Run each /phaseN command manually, review output, proceed |
Production-grade builds with full control |
| Start manual, finish auto | Run early phases manually, then /continue for the rest |
When you want to review BRD and architecture before handing off |
| Full auto | /discover then /build |
Rapid prototyping and scaffolding |
Stack the phases are calibrated for:
Core β scaffolded in every project:
- Backend: Node.js + TypeScript + Express 5 + Prisma (MongoDB) + Zod + Swagger
- Frontend: React Router v7 + TypeScript + Tailwind CSS + shadcn/ui + Vite
Optional β included only when the concept requires it:
- Redis β caching, rate limiting, or session storage
- Socket.IO β real-time features (chat, live updates, notifications)
/discover captures whether these are needed via the Integrations and Feature Scope categories β phases use that to decide what to scaffold.
If your team uses a different stack, update skills/MODULE_TEMPLATE.md and skills/API_STANDARD.md before running any phases β those two files are where the conventions live.
Start with /discover. It interviews you about your app idea and writes docs/concept.md β the structured input that every phase depends on. Phase 1, /build, and /continue will all hard-stop if this file doesn't exist.
Once the concept is solid, each phase command handles everything automatically:
- Adopts the correct agent role (Business Analyst, Backend Engineer, QA Engineer, etc.)
- Reads the relevant skill document for that phase
- Scopes to exactly the right context from
docs/ - Knows what artifact to produce and where to save it
For example, /phase4b-backend-modules AUTH:
- Adopts the Backend Engineer agent
- Reads
MODULE_TEMPLATE.md - Reads your BRD and architecture doc, scoped to the AUTH module
- Generates Zod schemas, routes, controllers, and middleware
You review the output, make corrections, and move to the next phase.
# Always start here β refine until concept is solid:
/discover <your rough app idea>
/discover # run again to add or clarify more
/discover # run as many times as needed
# Then proceed phase by phase:
/phase1-brd
/phase2-planning
/phase3-architecture
/phase4a-db-schema all
/phase4b-backend-modules <MODULE_NAME> | all
/phase5-backend-testing <MODULE_NAME> | all
/phase6-migrations
/phase7-ui-design <optional: design rules>
/phase8-frontend-api <MODULE_NAME> | all
/phase9-pages <PAGE_NAME> | all
/phase10-frontend-testing <MODULE_OR_PAGE_NAME> | all
/phase11-e2e
/phase12-review <optional: what to review>
/phase13-docs
/phase14-deployment
# Start any new session β re-orients Claude with project state, stale items, and next action:
/resume
# Mid-project requirement changes:
/phase-change add bulk CSV export to REPORTS β finance team needs it for audits
# Log a manual override when you correct the AI's output:
/log-decision "Phase 3 | AI used String[] for User.roles | Changed to separate Role model | Reason: roles need their own permission attributes"
/fix-bugs all # auto-fix compile/test failures until required checks pass
Want to skip the manual phase-by-phase flow entirely? See
/buildbelow. Already started manually and want to finish in one go? See/continue. Build finished but checks are failing? Run/fix-bugs allafter/buildor/continue.
The required first step before any build. Run it as many times as needed until your concept is solid β then proceed to Phase 1 or /build.
- Takes your rough app idea and asks 2β4 targeted clarifying questions via interactive prompts
- Writes a structured
docs/concept.mdcovering users, features, monetization, integrations, and constraints - Ends with a readiness assessment β tells you what's clear, what's still vague, and whether to run again or proceed
- On re-runs, reads existing
docs/concept.mdand asks about gaps β never overwrites confirmed content
/discover <your rough app idea> # first run β seed the concept
/discover # subsequent runs β refine and fill gaps
/discover a SaaS invoicing tool for freelancers
# β asks about user roles, monetization, integrations, MVP scope
# β writes docs/concept.md, reports what's still vague
/discover
# β reads concept.md, asks follow-up questions about the remaining gaps
# β updates concept.md, reports: "Ready for Phase 1"
/phase1-brd # or /build
Beta:
/buildruns all 14 phases sequentially in guarded mode by default. Pass--fast-modeto skip non-mandatory review prompts only; strict completion gates still apply. Requires/discoverto have been run first.
/build executes every phase from BRD to deployment in a single command β the fastest way to generate a complete project scaffold once your concept is defined.
- Reads
docs/concept.mdβ fails if it doesn't exist (run/discoverfirst) - Parses
$ARGUMENTSinto run mode and optional Phase 7 design rules (--fast-modeand optional|||delimiter) - Runs all 14 phases in order, enforcing strict completion/parity gates in both guarded and fast modes
- Uses fast mode only to skip non-mandatory review prompts
- Runs
/checkpointbetween phases to preserve context across the long session - Writes a
BUILD Startedrow todocs/progress.mdimmediately when/buildstarts - Writes a
BUILD Finishedrow only after the strict completion audit passes - On strict-gate failure, outputs
=== BUILD FAILED ===, lists missing items/blockers, and suppressesBUILD Finished
/build
/build --fast-mode
/build <design rules>
/build --fast-mode ||| <design rules>
# Guarded mode, no design rules
/build
# Fast mode, no design rules
/build --fast-mode
# Guarded mode, design rules passed to Phase 7
/build dark mode default, minimal sidebar, mobile first
# Fast mode, design rules passed to Phase 7
/build --fast-mode ||| dark mode default, minimal sidebar, mobile first
- Required: run
/discoveruntildocs/concept.mdexists and concept is solid - Optional: drop reference images (
.png,.jpg,.webp) intodocs/design-references/β Phase 7 reads them automatically for style extraction - Required:
templates/api/must have a workingpackage.jsonβ Phase 4a runsnpm installinsidetemplates/api/before runningprisma generate
| Output | Phase |
|---|---|
docs/brd.md β Business Requirements Document |
1 |
docs/project-plan.md β Sprint plan and dependency map |
2 |
docs/architecture.md β Data models, routes, auth strategy |
3 |
prisma/schema/*.prisma β Prisma model files |
4a |
| Backend modules β routes, controllers, Zod schemas | 4b |
| Backend test suites | 5 |
prisma/seed.ts β Seed data script |
6 |
docs/seed-data.md β Test accounts and seed data reference |
6 |
docs/ui-design.md β Style guide, wireframes, user flows |
7 |
| Frontend API modules β hooks, types, service layer | 8 |
| Page components | 9 |
| Frontend test suites | 10 |
| E2E test suites | 11 |
| Code review report | 12 |
| README, API docs, onboarding guide, change management guide | 13 |
| Dockerfiles, Docker Compose, CI/CD config | 14 |
/build |
Per-phase | |
|---|---|---|
| Speed | Fast β one command | Slower β phase by phase |
| Control | None β AI decides everything | Full β review and correct at each gate |
| Output quality | Good for scaffolding, needs post-review | Higher β human-in-the-loop at every gate |
| Best for | Prototyping, exploring ideas quickly | Production-grade builds |
Recommended pattern: Use /build to generate a full scaffold fast, then use per-phase commands to refine, fix, or regenerate specific phases. Run /resume after the build completes to see the full phase log and spot anything that needs attention.
Beta:
/continueresumes remaining phases in guarded mode by default. Pass--fast-modeto skip non-mandatory review prompts only; strict completion gates still apply during the resumed run.Requires:
docs/concept.mdβ run/discoverfirst if you haven't already.
Use /continue when you've started the manual phase-by-phase flow and want to hand off the rest to Claude in one go.
- Reads
docs/progress.mdto build a completion map - Parses
$ARGUMENTSinto run mode and optional Phase 7 design rules (--fast-modeand optional|||delimiter) - Prints a summary of which phases will be skipped, re-run (stale), or executed
- Executes only the remaining phases in order β skipping complete ones, re-running stale ones
- Enforces strict completion/parity gates in both guarded and fast modes
- Uses fast mode only to skip non-mandatory review prompts
- Runs
/checkpointbetween phases and emits=== CONTINUE COMPLETE ===only after strict completion audit passes - On strict-gate failure, outputs
=== CONTINUE FAILED ===and stops without emitting continue-complete output
/continue
/continue --fast-mode
/continue <design rules>
/continue --fast-mode ||| <design rules>
Design-rule parsing mirrors /build: if ||| is present, everything after it is treated as Phase 7 rules; otherwise recognized flags are removed and remaining text is used as rules. If Phase 7 is already complete, design rules are ignored.
# You've finished Phase 1 manually β continue the rest
/continue
# You've finished Phases 1-3 and want to pass design rules for Phase 7
/continue dark mode default, minimal sidebar
# Resume in fast mode
/continue --fast-mode
Before executing, /continue prints what it found:
=== CONTINUE BUILD ===
Mode: {CONTINUE_MODE}
Completed (will skip): 1, 2, 3
Stale (will re-run): 5
Pending (will run): 4a, 4b, 6, 7, 8, 9, 10, 11, 12, 13, 14
Starting from: Phase 4a
/build |
/continue |
|
|---|---|---|
| Starting point | Always Phase 1 | Reads docs/progress.md and skips complete phases |
| Use when | Starting fresh from an idea | You've already run some phases manually |
| Stale phases | N/A | Re-runs automatically |
Beta:
/fix-bugsruns an automatic triage + patch loop to resolve build/test failures until required checks pass, or until a hard blocker is reached.
Use /fix-bugs after /build, /continue, or any phase run that leaves compilation or test failures.
- Reads project context (
docs/progress.md,docs/brd.md,docs/architecture.md) to keep fixes aligned with the current design - Runs checks in strict order: API build -> API tests -> app typecheck -> app build -> mocked E2E -> live E2E
- Applies minimal targeted patches and immediately re-runs the failed check
- Repeats automatically until all required checks pass
- Appends a
Bug Fixrow todocs/progress.mdwith pass/fail outcome and check summary
/fix-bugs all
/fix-bugs backend
/fix-bugs frontend
/fix-bugs phase:9
/buildcompleted buttypecheck,build, or tests fail- Multiple cross-phase regressions after regenerating modules/pages
- You want one command to stabilize the generated scaffold before manual review
βββ README.md
βββ .claude/
β βββ settings.json # Claude Code workspace settings
β
βββ .ai/ # Orchestrator β add to .gitignore (tool only, not project output)
β βββ CLAUDE.md # Auto-loaded by Claude Code β project context
β βββ .claude/commands/ # Slash commands
β β βββ phase1-brd.md # BRD generation
β β βββ phase2-planning.md
β β βββ phase3-architecture.md
β β βββ phase4a-db-schema.md # Prisma models + prisma generate
β β βββ phase4b-backend-modules.md # Zod schemas, routes, controllers
β β βββ phase5-backend-testing.md
β β βββ phase6-migrations.md
β β βββ phase7-ui-design.md
β β βββ phase8-frontend-api.md
β β βββ phase9-pages.md
β β βββ phase10-frontend-testing.md
β β βββ phase11-e2e.md
β β βββ phase12-review.md
β β βββ phase13-docs.md
β β βββ phase14-deployment.md
β β βββ resume.md # Session resume β project state, stale items, next action
β β βββ phase-change.md # Log requirement changes & get impact reports
β β βββ log-decision.md # Log manual AI overrides to docs/decision-log.md
β β βββ discover.md # Iterative concept refinement β required before phase1 or build
β β βββ build.md # [BETA] Full project scaffold β all 14 phases in one command
β β βββ continue.md # [BETA] Resume build β skips completed phases, runs remaining
β β βββ fix-bugs.md # [BETA] Automated stabilization loop until checks pass
β β βββ checkpoint.md # Session summary β context preservation between phases
β β
β βββ agents/ # AI agent role definitions (9 roles)
β β βββ business-analyst.md
β β βββ project-manager.md
β β βββ software-architect.md
β β βββ backend-engineer.md
β β βββ qa-engineer.md
β β βββ ui-designer.md
β β βββ frontend-engineer.md
β β βββ technical-writer.md
β β βββ devops-engineer.md
β β
β βββ skills/ # Reusable skill documents
β β βββ BRD_FORMAT.md # BRD structure, module IDs, GWT criteria
β β βββ MODULE_TEMPLATE.md # Backend file structure, Zod, controller patterns
β β βββ API_STANDARD.md # Frontend hooks, service layer, Zod copy rules
β β βββ ARCHITECTURE_STANDARD.md
β β βββ FRONTEND_TESTING.md
β β βββ E2E_PATTERNS.md
β β βββ ... # More skills added as you refine conventions
β β
β βββ docs/ # Sample only β shows expected output structure and file descriptions
β β βββ concept.md # /discover output β structured app concept, required before Phase 1
β β βββ brd.md # Phase 1 output
β β βββ project-plan.md # Phase 2 output
β β βββ architecture.md # Phase 3 output
β β βββ ui-design.md # Phase 7 output (style guide + wireframes combined)
β β βββ design-references/ # Phase 7 reads images from docs/design-references/ at project root
β β βββ seed-data.md # Phase 6 output β test credentials & seed reference
β β βββ progress.md # Progress log (auto-updated after each phase)
β β βββ changes.md # Change audit trail (created by /phase-change)
β β βββ decision-log.md # Manual override log (created by /log-decision)
β β
β βββ AI-Assisted Fullstack Development Workflow.md # Full playbook reference
β
βββ docs/ # Generated project artifacts (BRD, architecture, progress) β COMMIT THIS
β βββ design-references/ # Drop reference images here before running Phase 7
β βββ ... # All other docs created here as you run phases
β
βββ templates/
βββ api/ # Backend project β phases write Prisma schemas, modules, Zod here
βββ app/ # Frontend project β phases write hooks, pages, services here
What to commit:
docs/andtemplates/contain your project artifacts β commit and push them..ai/is the orchestrator tool β add it to.gitignoreso it doesn't get committed with your project code.
Templates:
templates/api/is the backend project root andtemplates/app/is the frontend project root. All generated code lands directly inside these folders β no copying required. The.ai/folder is the orchestrator; leave it untouched.
- VSCode with Claude Code
- Node.js v18+
- npm or bun
- Git
- A project idea to build
- Fork this repo β
templates/api/is your backend project andtemplates/app/is your frontend project. All generated backend code (Prisma schemas, modules, Zod) goes intotemplates/api/. All generated frontend code (hooks, pages, services) goes intotemplates/app/..ai/is the orchestrator β do not modify it.docs/is generated at the repo root. - Open in VSCode with Claude Code installed
- Starter templates β
templates/api/andtemplates/app/are ready to use as-is β phases write directly into them. No copying required. - Run
/discover: type/discoverfollowed by your rough app idea β answer the questions, run again until concept is solid - Run
/phase1-brd: generates the BRD fromdocs/concept.mdβ review it carefully, it drives everything downstream - Continue through phases in order, using the slash commands
Every phase automatically logs its completion to docs/progress.md:
| Phase | Name | Scope | Status | Timestamp | Notes |
|-------|-----------------|-------------|-------------|---------------------|----------------------------------|
| BUILD | Build Run | all | π Started | 2026-02-18 09:02:11 | /build started (GUARDED) |
| 1 | BRD | β | β
Complete | 2026-02-18 09:08:35 | 5 modules, 32 requirements |
| 2 | Planning | β | β
Complete | 2026-02-18 09:15:09 | 3 sprints, 4 risks flagged |
| 4a | DB Schema | all | β
Complete | 2026-02-19 10:03:27 | 6 models, prisma generate OK |
| 4b | Backend Module | AUTH | β
Complete | 2026-02-19 10:24:18 | Login, register, JWT |
| 4b | Backend Module | USERS | β
Complete | 2026-02-19 10:41:52 | CRUD + avatar upload |
| 5 | Backend Testing | AUTH | β οΈ Stale | 2026-02-19 11:10:03 | Tests OK | Stale: phase 4b AUTH re-run 2026-02-20 14:32:40 |
| BUILD | Build Run | all | π Finished | 2026-02-20 16:47:19 | /build finished (GUARDED, started: 2026-02-18 09:02:11) |
Status values:
β Completeβ phase finished and not invalidated by subsequent changesβ οΈ Staleβ phase was completed but a dependency was re-run or a change was logged that requires re-running this phaseπ Changedβ written by/phase-changeto record a requirement changeπ Startedβ written by/buildwhen a full build run startsπ Finishedβ written by/buildwhen that full build run completes
Run /resume at the start of any session to see a summary of complete, stale, and pending phases β and the exact next command to run.
When requirements change or new features are added, use /phase-change:
/phase-change add bulk CSV export to REPORTS β finance team needs it for audits
This command:
- Updates the BRD β adds or modifies requirements, never renumbers IDs
- Updates architecture β if models or routes are affected
- Writes to
docs/changes.mdβ a timestamped change entry with:- What changed
- Why (business context)
- Which requirements/modules were affected
- Exact phases that need re-running
- Logs to progress.md β a
π Changedrow - Outputs an impact report β so you know exactly what to action next
The docs/changes.md file is your audit trail β it answers "why does this exist?" months later.
When you correct or override AI output during any phase, log it:
/log-decision "Phase 3 | AI used String[] for User.roles | Changed to separate Role model | Reason: roles need their own permission attributes"
Use | to separate fields:
- Phase β which phase you were in
- What AI generated β brief description of the original output
- What I changed β what you manually corrected
- Reason β why you made the change
- Pattern (optional) β if this keeps happening, note it here
This appends a formatted entry to docs/decision-log.md. When the same correction appears twice, encode it into the relevant skill document (skills/MODULE_TEMPLATE.md, skills/ARCHITECTURE_STANDARD.md, etc.) so the AI won't repeat the mistake on the next phase run.
/phase1-brd
Requires: docs/concept.md β run /discover first.
Agent: Business Analyst | Skill: BRD_FORMAT | Reads: docs/concept.md | Output: docs/brd.md
Generates a complete BRD with module IDs, requirement IDs, Given/When/Then acceptance criteria, error states, user stories, and a Page Manifest. User stories map every user-facing interaction to a page β this becomes the source of truth for what Phase 7 designs and Phase 9 builds.
Gate:
/phase2-planning
Agent: Project Manager | Skill: β | Reads: docs/brd.md | Output: docs/project-plan.md
Generates module breakdown, task estimates, sprint plan, dependency map, and risk register.
Gate: Review estimates and build order.
/phase3-architecture
Agent: Software Architect | Skill: ARCHITECTURE_STANDARD | Reads: docs/brd.md, docs/project-plan.md | Output: docs/architecture.md
Designs data models, ERD, API route map, auth strategy, and error standards. If skills/ARCHITECTURE_STANDARD.md doesn't exist yet, this phase creates it.
Gate: Review model relationships, API surface completeness, auth guards.
/phase4a-db-schema all | <MODEL_NAME>
Example: /phase4a-db-schema all or /phase4a-db-schema User
Agent: Backend Engineer | Skill: MODULE_TEMPLATE (Step 1) | Reads: docs/architecture.md (data models + ERD) | Output: prisma/schema/[entity].prisma files
Generates all Prisma schema files from the architecture doc's data models, defines all relations, and runs npx prisma generate. Run with all to process every model in dependency order.
Gate: All FK references resolve, relations are consistent on both sides, prisma generate succeeds.
/phase4b-backend-modules <MODULE_NAME> | all
Example: /phase4b-backend-modules AUTH or /phase4b-backend-modules all
Agent: Backend Engineer | Skill: MODULE_TEMPLATE | Reads: docs/brd.md (module section), docs/architecture.md | Output: module code
Requires Phase 4a to be complete. Generates Zod schemas, routes, controllers, and middleware β using the already-generated Prisma client. Pass a module name for one module, or all to generate every module in dependency order.
Gate: /phase12-review before generating more.
/phase5-backend-testing <MODULE_NAME> | all
Example: /phase5-backend-testing AUTH or /phase5-backend-testing all
Agent: QA Engineer | Skill: TESTING_CONVENTIONS | Reads: docs/brd.md (acceptance criteria), Phase 4b module code, docs/architecture.md
Generates behavioral unit tests, integration tests, and Zod validation tests. Pass a module name for one module, or all to test every module. If a project-local skills/TESTING_CONVENTIONS.md doesn't exist yet, this phase creates it.
Gate: Run tests. Confirm they pass AND the test quality is good.
/phase6-migrations
Agent: Backend Engineer | Skill: MIGRATION_TEMPLATE | Reads: docs/brd.md, docs/architecture.md, Phase 4a schemas, Phase 4b modules | Outputs: prisma/seed.ts, docs/seed-data.md
Auto-detects database type. SQL: generates migration scripts, rollback scripts, and seed data. MongoDB: skips migrations (Prisma handles schema), generates Prisma seed scripts for all models with per-environment data (dev/staging/test). Does not generate index verification scripts β prisma db push handles indexes.
Also generates docs/seed-data.md β a quick reference documenting:
- Auto-generated test account credentials (username/password for each role)
- Default bootstrap data (organizations, teams, etc.)
- Environment-specific seed data summary (dev/staging/test)
- How to reset the database locally
- Common testing scenarios
Gate: SQL: migrations run up and down cleanly. MongoDB: seed data passes Zod validation, FK relationships are consistent. Reference docs/seed-data.md is created and test accounts are documented.
/phase7-ui-design <optional: design rules>
Examples:
/phase7-ui-designβ generate designs using defaults/phase7-ui-design mobile first, dark mode default/phase7-ui-design minimal sidebar
Before running: drop any reference images (.png, .jpg, .webp, etc.) into docs/design-references/. Phase 7 reads them automatically.
Agent: UI Designer | Reads: docs/brd.md (Page Manifest from user stories), docs/architecture.md, docs/design-references/ | Output: docs/ui-design.md
Generates everything in a single file: the Style Guide (exact Tailwind classes, shadcn variants, hex colors), wireframes, user flows, component inventory, responsive behavior, and state designs. Automatically reads any images in docs/design-references/ and extracts colors, typography, spacing, and component patterns β visual style only, never features. Custom design rules (e.g., "mobile first", "dark mode default") override extracted styles. Phase 9 also reads docs/design-references/ as a visual consistency check when generating pages.
Gate: Does every page in the Page Manifest have a wireframe? Is every style guide rule specific enough to produce identical results across independently prompted pages?
/phase8-frontend-api <MODULE_NAME>
Example: /phase8-frontend-api AUTH
Agent: Frontend Engineer | Skill: API_STANDARD | Reads: docs/brd.md (module section), Phase 4b Zod schemas, docs/architecture.md
Copies Zod schemas from backend, generates TypeScript types, endpoint configs, service layer, React Query hooks, and mock data factories for one module.
Gate: Do copied Zod schemas exactly match the backend?
/phase9-pages <PAGE_NAME>
Example: /phase9-pages DashboardPage or /phase9-pages LoginPage
Agent: Frontend Engineer | Reads: docs/brd.md (module section), docs/ui-design.md (wireframe + style guide), docs/design-references/, Phase 8 hooks/types
Builds one page at a time using Tailwind + shadcn/ui, following the style guide exactly. Reads docs/design-references/ images as a visual consistency check. Implements all states: loading, empty, error, populated.
Gate: Does the page match the design? After the first page, run /phase12-review before generating more.
/phase10-frontend-testing <MODULE_OR_PAGE_NAME>
Example: /phase10-frontend-testing DashboardPage
Agent: QA Engineer | Skill: FRONTEND_TESTING | Reads: docs/brd.md (acceptance criteria), Phase 9 page, Phase 8 mock data
Generates behavioral frontend tests with Playwright (user-visible flows, state coverage, validation, and accessibility checks). Phase 10 uses mocked network responses (frontend-only validation) and should not depend on a live backend.
Gate: Run npm run typecheck, npm run build, and npm run test:e2e -- --grep @phase10-mocked in templates/app/.
/phase11-e2e
Agent: QA Engineer | Skill: E2E_PATTERNS | Reads: docs/brd.md, docs/architecture.md, docs/ui-design.md
Generates E2E test suites covering user flows, happy paths, error paths, cross-module integration, and auth flows. Phase 11 is live-backend integration testing and should run against a reachable backend API.
Gate: Run npm run typecheck, npm run build, and npm run test:e2e -- --grep @phase11-live in templates/app/ against a running backend.
/phase12-review <optional: what to review>
Examples:
/phase12-review first backend module AUTH/phase12-review full backend track/phase12-review first frontend page DashboardPage/phase12-review(auto-detects checkpoint based on progress)
Agent: Software Architect | Skill: REVIEW_CHECKLIST | Reads: docs/brd.md, docs/architecture.md, relevant code
Reviews code for security, performance, consistency, missing pieces, and API contract alignment. Run this at checkpoints β not just at the end.
Gate: All critical issues resolved before proceeding.
/phase13-docs
Agent: Technical Writer | Skill: DOC_TEMPLATES | Reads: docs/brd.md, docs/architecture.md, docs/seed-data.md, docs/progress.md, docs/changes.md (if exists), Phase 4b Zod schemas
Generates comprehensive project documentation:
- README.md β project overview, tech stack, setup instructions, project structure
- API documentation β endpoints, request/response examples, auth requirements, error codes
- Environment variables documentation β all required
.envvariables - Developer onboarding guide β includes test account reference (from
docs/seed-data.md), running tests, and adding new modules - Architecture decision records β key decisions and rationale
- Change Management Guide (if applicable) β documents how to use
/phase-changefor mid-project requirement changes, referencesdocs/changes.mdaudit trail
Key integration: The onboarding guide includes:
- Setup steps that reference
docs/seed-data.mdfor test credentials - Instructions for using
/phase-changeto log requirement changes mid-project - How the
/phase-changecommand automatically updates BRD, architecture, and creates audit trail entries
Gate: Does the README setup actually work? Do API doc examples match reality? Is the onboarding guide complete enough for a new developer?
/phase14-deployment
Agent: DevOps Engineer | Skill: INFRA_STANDARD | Reads: docs/brd.md, docs/architecture.md, Phase 13 docs
Generates Dockerfiles, Docker Compose, CI/CD pipeline, env templates, health checks, and production deployment checklist.
Gate: Does Docker Compose work locally? Does CI/CD match your infrastructure?
/discover (required β run until concept is solid)
βββ Phase 1 β BRD (VERIFY)
βββ Phase 2 β Planning
βββ Phase 3 β Architecture
βββ Backend Track: Phase 4a β 4b β 5 β 6 (can run in parallel with Phase 7)
βββ Design Track: Phase 7
β
Both tracks complete β Phase 8 β 9 β 10 β 11 β 12 β 13 β 14
After Phase 3, the backend track and design track can run in parallel (two separate Claude Code sessions).
Backend track order: Phase 4a generates all Prisma models first β Phase 4b generates modules one by one against the stable schema.
Run /phase12-review at these points β don't wait until the end:
| When | Why |
|---|---|
| After first backend module (4b) | Catch pattern-level issues before generating more modules |
| After backend track (Phases 4a-6) | Cross-module consistency, migration correctness |
| After first frontend page | Catch UI pattern issues before generating more pages |
| After frontend track (Phases 8-10) | Cross-page consistency, API contract alignment |
| After E2E (Phase 11) | Final security + performance sweep |
Skills are reusable reference documents encoding your conventions. They survive across projects and improve over time.
| Skill | Status | Used In |
|---|---|---|
BRD_FORMAT.md |
β Ready | Phase 1 |
MODULE_TEMPLATE.md |
β Ready | Phase 4a, 4b |
API_STANDARD.md |
β Ready | Phase 8 |
ARCHITECTURE_STANDARD.md |
β Ready | Phase 3, 4a, 4b, 12 |
Project skills/TESTING_CONVENTIONS.md |
Created/updated per project | Phase 5 |
FRONTEND_TESTING.md |
Ready | Phase 10 |
Style Guide (in ui-design.md) |
Created per-project by Phase 7 | Phase 9 |
MIGRATION_TEMPLATE.md |
Add when ready | Phase 6 |
E2E_PATTERNS.md |
Ready | Phase 11 |
REVIEW_CHECKLIST.md |
Add when ready | Phase 12 |
DOC_TEMPLATES.md |
Add when ready | Phase 13 |
INFRA_STANDARD.md |
Add when ready | Phase 14 |
Skills you don't have yet won't block you β if a skill file is absent, the phase generates its own conventions from scratch and you can extract them into a skill doc afterward. After your first project, extract patterns from what worked into new skill docs.
Add a skill: Create a .md file in skills/ (Purpose β Rules β Templates β Examples β Anti-patterns). The relevant phase command will pick it up automatically.
Add a agent: Create a .md file in agents/ (Identity β Perspective β Priorities β What You Produce β What You Do Not Do).
Refine over time: When you correct the AI's output, note what you changed. If the same correction happens twice, add a rule to the relevant skill doc.