@thierrynakoa/fire-flow 10.0.0 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +9 -9
- package/ARCHITECTURE-DIAGRAM.md +7 -4
- package/COMMAND-REFERENCE.md +33 -13
- package/DOMINION-FLOW-OVERVIEW.md +581 -421
- package/QUICK-START.md +3 -3
- package/README.md +102 -45
- package/TROUBLESHOOTING.md +264 -264
- package/agents/fire-executor.md +200 -116
- package/agents/fire-fact-checker.md +276 -276
- package/agents/fire-phoenix-analyst.md +394 -0
- package/agents/fire-planner.md +145 -53
- package/agents/fire-project-researcher.md +155 -155
- package/agents/fire-research-synthesizer.md +166 -166
- package/agents/fire-researcher.md +144 -59
- package/agents/fire-roadmapper.md +215 -203
- package/agents/fire-verifier.md +247 -65
- package/agents/fire-vision-architect.md +381 -0
- package/commands/fire-0-orient.md +476 -476
- package/commands/fire-1a-new.md +216 -0
- package/commands/fire-1b-research.md +210 -0
- package/commands/fire-1c-setup.md +254 -0
- package/commands/{fire-1a-discuss.md → fire-1d-discuss.md} +35 -7
- package/commands/fire-3-execute.md +55 -2
- package/commands/fire-4-verify.md +61 -0
- package/commands/fire-5-handoff.md +2 -2
- package/commands/fire-6-resume.md +37 -2
- package/commands/fire-add-new-skill.md +2 -2
- package/commands/fire-autonomous.md +20 -3
- package/commands/fire-brainstorm.md +1 -1
- package/commands/fire-complete-milestone.md +2 -2
- package/commands/fire-cost.md +183 -0
- package/commands/fire-dashboard.md +2 -2
- package/commands/fire-debug.md +663 -663
- package/commands/fire-loop-resume.md +2 -2
- package/commands/fire-loop-stop.md +1 -1
- package/commands/fire-loop.md +1168 -1168
- package/commands/fire-map-codebase.md +3 -3
- package/commands/fire-new-milestone.md +356 -356
- package/commands/fire-phoenix.md +603 -0
- package/commands/fire-reflect.md +235 -235
- package/commands/fire-research.md +246 -246
- package/commands/fire-search.md +1 -1
- package/commands/fire-skills-diff.md +3 -3
- package/commands/fire-skills-history.md +3 -3
- package/commands/fire-skills-rollback.md +7 -7
- package/commands/fire-skills-sync.md +5 -5
- package/commands/fire-test.md +9 -9
- package/commands/fire-todos.md +1 -1
- package/commands/fire-update.md +5 -5
- package/hooks/hooks.json +16 -16
- package/hooks/run-hook.sh +8 -8
- package/hooks/run-session-end.sh +7 -7
- package/hooks/session-end.sh +90 -90
- package/hooks/session-start.sh +1 -1
- package/package.json +2 -2
- package/plugin.json +7 -7
- package/references/metrics-and-trends.md +1 -1
- package/skills-library/SKILLS-INDEX.md +588 -588
- package/skills-library/_general/methodology/AUTONOMOUS_ORCHESTRATION.md +182 -0
- package/skills-library/_general/methodology/BACKWARD_PLANNING_INTERVIEW.md +307 -0
- package/skills-library/_general/methodology/CIRCUIT_BREAKER_INTELLIGENCE.md +163 -0
- package/skills-library/_general/methodology/CONTEXT_ROTATION.md +151 -0
- package/skills-library/_general/methodology/DEAD_ENDS_SHELF.md +188 -0
- package/skills-library/_general/methodology/DESIGN_PHILOSOPHY_ENFORCEMENT.md +152 -0
- package/skills-library/_general/methodology/INTERNAL_CONSISTENCY_AUDIT.md +212 -0
- package/skills-library/_general/methodology/LIVE_BREADCRUMB_PROTOCOL.md +242 -0
- package/skills-library/_general/methodology/PHOENIX_REBUILD_METHODOLOGY.md +251 -0
- package/skills-library/_general/methodology/QUALITY_GATES_AND_VERIFICATION.md +157 -0
- package/skills-library/_general/methodology/RELIABILITY_PREDICTION.md +104 -0
- package/skills-library/_general/methodology/REQUIREMENTS_DECOMPOSITION.md +155 -0
- package/skills-library/_general/methodology/SELF_TESTING_FEEDBACK_LOOP.md +143 -0
- package/skills-library/_general/methodology/STACK_COMPATIBILITY_MATRIX.md +178 -0
- package/skills-library/_general/methodology/TIERED_CONTEXT_ARCHITECTURE.md +118 -0
- package/skills-library/_general/methodology/ZERO_FRICTION_CLI_SETUP.md +312 -0
- package/skills-library/_general/methodology/autonomous-multi-phase-build.md +133 -0
- package/skills-library/_general/methodology/claude-md-archival.md +280 -0
- package/skills-library/_general/methodology/debug-swarm-researcher-escape-hatch.md +240 -240
- package/skills-library/_general/methodology/git-worktrees-parallel.md +232 -0
- package/skills-library/_general/methodology/llm-judge-memory-crud.md +241 -0
- package/skills-library/_general/methodology/multi-project-autonomous-build.md +360 -0
- package/skills-library/_general/methodology/shell-autonomous-loop-fixplan.md +238 -238
- package/skills-library/_general/patterns-standards/GOF_DESIGN_PATTERNS_FOR_AI_AGENTS.md +358 -0
- package/skills-library/methodology/BREATH_BASED_PARALLEL_EXECUTION.md +1 -1
- package/skills-library/methodology/RESEARCH_BACKED_WORKFLOW_UPGRADE.md +1 -1
- package/skills-library/methodology/SABBATH_REST_PATTERN.md +1 -1
- package/templates/ASSUMPTIONS.md +1 -1
- package/templates/BLOCKERS.md +1 -1
- package/templates/DECISION_LOG.md +1 -1
- package/templates/phase-prompt.md +1 -1
- package/templates/phoenix-comparison.md +80 -0
- package/version.json +2 -2
- package/workflows/handoff-session.md +1 -1
- package/workflows/new-project.md +2 -2
- package/commands/fire-1-new.md +0 -281
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ZERO_FRICTION_CLI_SETUP
|
|
3
|
+
category: methodology
|
|
4
|
+
description: Auto-install all CLI tools a project needs based on locked VISION.md — vibe coders provide ideas, Claude handles tooling
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
tags: [cli, tooling, setup, vibe-coder, zero-friction, npx, automation]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Zero-Friction CLI Setup
|
|
10
|
+
|
|
11
|
+
Reference skill for `/fire-1a-new` Step 4b. After VISION.md is locked, Claude reads the technology stack table and auto-installs every CLI tool, SDK, and service the project needs. The vibe coder should never manually install anything.
|
|
12
|
+
|
|
13
|
+
> **Philosophy:** Ideas in → working tools out. If a beginner has to Google "how to install Supabase," the flow failed.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Process
|
|
18
|
+
|
|
19
|
+
1. Read locked `.planning/VISION.md` Technology Stack table
|
|
20
|
+
2. Match each technology to its CLI setup commands (see matrix below)
|
|
21
|
+
3. Run installations in dependency order (framework → database → services → tooling)
|
|
22
|
+
4. Verify each install succeeded (version check or health check)
|
|
23
|
+
5. Log results to `.planning/TOOLING-LOG.md`
|
|
24
|
+
6. If any install fails, log to breadcrumbs `FAILURES.md` and suggest alternative
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Master CLI Tool Matrix
|
|
29
|
+
|
|
30
|
+
### Deployment & Hosting
|
|
31
|
+
|
|
32
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
33
|
+
|------|----------------|-------------|-----------|--------|
|
|
34
|
+
| **Vercel** | `npm i -g vercel` then `vercel` | Deploy frontend + serverless, preview URLs per PR | Yes (hobby) | Rising — best DX for Next.js |
|
|
35
|
+
| **Netlify** | `npm i -g netlify-cli` then `netlify init` | Deploy static/Jamstack, serverless functions | Yes | Stable |
|
|
36
|
+
| **Cloudflare Pages** | `npm i -g wrangler` then `wrangler pages` | Edge deployment, Workers, R2 storage | Yes (generous) | Rising — fastest edge network |
|
|
37
|
+
| **Railway** | `npm i -g @railway/cli` then `railway init` | Deploy anything (Node, Python, Docker), managed Postgres | Yes ($5 credit) | Rising — simplest full-stack deploy |
|
|
38
|
+
| **Fly.io** | `curl -L https://fly.io/install.sh \| sh` | Deploy Docker containers globally, edge compute | Yes (3 shared VMs) | Stable |
|
|
39
|
+
| **Render** | No CLI — Git push deploy | Auto-deploy from GitHub, managed services | Yes | Stable |
|
|
40
|
+
|
|
41
|
+
### Databases & Backend-as-a-Service
|
|
42
|
+
|
|
43
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
44
|
+
|------|----------------|-------------|-----------|--------|
|
|
45
|
+
| **Supabase** | Windows: `scoop install supabase` / Mac: `brew install supabase/tap/supabase` then `supabase init && supabase start` | Local Postgres + Auth + Storage + Realtime + Edge Functions | Yes (2 projects) | Dominant — best open-source BaaS |
|
|
46
|
+
| **Firebase** | `npm i -g firebase-tools` then `firebase init` | Firestore, Auth, Hosting, Cloud Functions | Yes (Spark plan) | Stable — Google ecosystem |
|
|
47
|
+
| **Neon** | `npm i -g neonctl` then `neonctl connect` | Serverless Postgres with branching | Yes (generous) | Rising fast — best serverless Postgres for Vercel |
|
|
48
|
+
| **Turso** | Binary: `curl -sSfL https://get.tur.so/install.sh \| bash` (not npm) | Embedded SQLite at the edge (libSQL) | Yes (500 DBs, 9GB) | Rising — edge-first |
|
|
49
|
+
| **PlanetScale** | Binary from planetscale.com (no free tier) | Serverless MySQL with branching | No | Declining — avoid for new projects |
|
|
50
|
+
| **MongoDB Atlas** | `npm i -g mongosh` | MongoDB cloud, document database | Yes (512MB) | Stable — MERN stack standard |
|
|
51
|
+
| **Redis/Upstash** | `npm install @upstash/redis` | Serverless Redis for caching, rate limiting, queues | Yes (10K/day) | Rising — serverless Redis leader |
|
|
52
|
+
|
|
53
|
+
### Payments & Commerce
|
|
54
|
+
|
|
55
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
56
|
+
|------|----------------|-------------|-----------|--------|
|
|
57
|
+
| **Stripe** | SDK: `npm install stripe @stripe/stripe-js` / CLI: Go binary from stripe.com/docs/stripe-cli (not npm) | Payments, subscriptions, invoicing, webhook testing | Pay-per-use | Standard — #1 payment processor |
|
|
58
|
+
| **PayPal** | `npm install @paypal/checkout-server-sdk @paypal/react-paypal-js` | PayPal payments, checkout buttons | Pay-per-use | Stable — highest consumer trust |
|
|
59
|
+
| **Lemon Squeezy** | `npm install @lemonsqueezy/lemonsqueezy.js` | Merchant of record — handles tax, billing, compliance | Pay-per-use | Rising — Stripe alternative for SaaS |
|
|
60
|
+
| **Polar** | `npm install @polar-sh/sdk` | Open-source friendly payments, sponsorships | Pay-per-use | Rising — dev-focused |
|
|
61
|
+
|
|
62
|
+
> **Stripe CLI** is essential for local webhook testing: `stripe listen --forward-to localhost:3000/api/webhooks/stripe` (install the Go binary from stripe.com/docs/stripe-cli — on Windows: `scoop install stripe`, Mac: `brew install stripe/stripe-cli/stripe`)
|
|
63
|
+
|
|
64
|
+
### Authentication
|
|
65
|
+
|
|
66
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
67
|
+
|------|----------------|-------------|-----------|--------|
|
|
68
|
+
| **better-auth** | `npm install better-auth` then `npx @better-auth/cli generate` | Framework-agnostic auth, social login, 2FA, org support | Free (OSS) | Rising — best DX 2025-2026 |
|
|
69
|
+
| **NextAuth/Auth.js** | `npm install next-auth` | Auth for Next.js, multiple providers | Free (OSS) | Stable — Next.js ecosystem standard |
|
|
70
|
+
| **Clerk** | `npm install @clerk/nextjs` | Drop-in auth UI components, user management | Yes (10K MAU) | Rising — fastest to implement |
|
|
71
|
+
| **Supabase Auth** | Included with `npx supabase init` | Auth bundled with Supabase, RLS integration | Yes | Rising — bundled with Supabase |
|
|
72
|
+
| **Passport.js** | `npm install passport passport-local passport-google-oauth20` | Express middleware auth, 500+ strategies | Free (OSS) | Stable — Express/MERN standard |
|
|
73
|
+
|
|
74
|
+
### ORM & Database Tools
|
|
75
|
+
|
|
76
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
77
|
+
|------|----------------|-------------|-----------|--------|
|
|
78
|
+
| **Prisma** | `npm install prisma @prisma/client` then `npx prisma init` | Type-safe ORM, migrations, studio GUI | Free (OSS) | Stable — most popular Node ORM |
|
|
79
|
+
| **Drizzle** | `npm install drizzle-orm` + `npm install -D drizzle-kit` | Lightweight TypeScript ORM, SQL-like syntax | Free (OSS) | Rising — Prisma alternative |
|
|
80
|
+
| **Mongoose** | `npm install mongoose` | MongoDB ODM, schemas, validation | Free (OSS) | Stable — MERN standard |
|
|
81
|
+
|
|
82
|
+
### UI & Components
|
|
83
|
+
|
|
84
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
85
|
+
|------|----------------|-------------|-----------|--------|
|
|
86
|
+
| **shadcn/ui** | `npx shadcn@latest init` then `npx shadcn@latest add button card ...` | Copy-paste component library (Radix + Tailwind) | Free (OSS) | Rising — #1 React component system |
|
|
87
|
+
| **Tailwind CSS** | `npm install -D tailwindcss @tailwindcss/vite` | Utility-first CSS framework | Free (OSS) | Standard — dominant CSS framework |
|
|
88
|
+
| **Radix UI** | `npm install @radix-ui/react-dialog @radix-ui/react-dropdown-menu` | Accessible headless UI primitives | Free (OSS) | Stable — shadcn foundation |
|
|
89
|
+
| **Framer Motion** | `npm install framer-motion` | Animation library for React | Free (OSS) | Stable |
|
|
90
|
+
| **Lucide Icons** | `npm install lucide-react` | Beautiful open-source icon set | Free (OSS) | Rising — replacing Heroicons |
|
|
91
|
+
|
|
92
|
+
### Testing
|
|
93
|
+
|
|
94
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
95
|
+
|------|----------------|-------------|-----------|--------|
|
|
96
|
+
| **Playwright** | `npm install -D @playwright/test` then `npx playwright install chromium firefox` | E2E testing + MCP visual verification (THE BEST) | Free (OSS) | Rising — #1 E2E framework |
|
|
97
|
+
| **Vitest** | `npm install -D vitest` | Unit/integration testing, Vite-native | Free (OSS) | Rising — replacing Jest |
|
|
98
|
+
| **Testing Library** | `npm install -D @testing-library/react @testing-library/jest-dom` | Component testing utilities | Free (OSS) | Stable |
|
|
99
|
+
|
|
100
|
+
### Email & Notifications
|
|
101
|
+
|
|
102
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
103
|
+
|------|----------------|-------------|-----------|--------|
|
|
104
|
+
| **Resend** | `npm install resend` | Modern email API, React Email templates | Yes (100/day) | Rising — best email DX |
|
|
105
|
+
| **React Email** | `npx create-email@latest` | Build emails with React components | Free (OSS) | Rising — pairs with Resend |
|
|
106
|
+
| **Nodemailer** | `npm install nodemailer` | Send email from Node.js (any SMTP) | Free (OSS) | Stable — battle-tested |
|
|
107
|
+
| **SendGrid** | `npm install @sendgrid/mail` | Email API, templates, analytics | Yes (100/day) | Stable |
|
|
108
|
+
|
|
109
|
+
### File Storage & Media
|
|
110
|
+
|
|
111
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
112
|
+
|------|----------------|-------------|-----------|--------|
|
|
113
|
+
| **Uploadthing** | `npm install uploadthing @uploadthing/react` | File uploads for Next.js/React, S3-backed | Yes (2GB) | Rising — simplest file uploads |
|
|
114
|
+
| **Supabase Storage** | Included with `npx supabase init` | S3-compatible object storage | Yes (1GB) | Rising — bundled |
|
|
115
|
+
| **Cloudflare R2** | Via `wrangler` CLI | S3-compatible, zero egress fees | Yes (10GB) | Rising — cheapest storage |
|
|
116
|
+
| **AWS S3** | `npm install @aws-sdk/client-s3` | Industry-standard object storage | Yes (5GB, 12 months) | Standard |
|
|
117
|
+
|
|
118
|
+
### Video & Media APIs
|
|
119
|
+
|
|
120
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
121
|
+
|------|----------------|-------------|-----------|--------|
|
|
122
|
+
| **YouTube Data API** | `npm install googleapis` then use `google.youtube('v3')` | Search, playlists, video metadata, channel info | Yes (10K units/day) | Standard — essential for content apps |
|
|
123
|
+
| **Mux** | `npm install @mux/mux-node @mux/mux-player-react` | Video hosting, streaming, HLS, analytics | Pay-per-use | Rising — best video API |
|
|
124
|
+
| **Cloudflare Stream** | Via `wrangler` | Video streaming at the edge | Pay-per-use | Rising |
|
|
125
|
+
|
|
126
|
+
### AI & LLM Integration
|
|
127
|
+
|
|
128
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
129
|
+
|------|----------------|-------------|-----------|--------|
|
|
130
|
+
| **Anthropic SDK** | `npm install @anthropic-ai/sdk` | Claude API — chat, vision, tool use | Pay-per-use | Rising — best reasoning |
|
|
131
|
+
| **Google AI SDK** | `npm install @google/generative-ai` | Gemini API — chat, vision, code | Pay-per-use | Rising — best multimodal |
|
|
132
|
+
| **Vercel AI SDK** | `npm install ai @ai-sdk/anthropic @ai-sdk/google` | Unified streaming AI interface, works with Claude + Gemini | Free (OSS) | Rising — best AI DX |
|
|
133
|
+
|
|
134
|
+
> **Never use OpenAI** — per project rules, always use Claude (Anthropic) or Gemini (Google).
|
|
135
|
+
|
|
136
|
+
### Monitoring & Analytics
|
|
137
|
+
|
|
138
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
139
|
+
|------|----------------|-------------|-----------|--------|
|
|
140
|
+
| **Sentry** | `npx @sentry/wizard@latest -i nextjs` | Error tracking, performance monitoring | Yes (5K errors/mo) | Standard — #1 error tracking |
|
|
141
|
+
| **PostHog** | `npm install posthog-js posthog-node` | Product analytics, feature flags, session replay | Yes (1M events/mo) | Rising — open-source analytics |
|
|
142
|
+
| **Vercel Analytics** | `npm install @vercel/analytics` | Web vitals, page views (Vercel-hosted) | Yes (basic) | Rising — zero-config |
|
|
143
|
+
|
|
144
|
+
### Code Quality
|
|
145
|
+
|
|
146
|
+
| Tool | Install Command | What It Does | Free Tier | Status |
|
|
147
|
+
|------|----------------|-------------|-----------|--------|
|
|
148
|
+
| **Biome** | `npm install -D @biomejs/biome` then `npx @biomejs/biome init` | Linter + formatter in ONE Rust binary (replaces ESLint + Prettier) | Free (OSS) | Rising fast — 20x faster, single config |
|
|
149
|
+
| **oxlint** | `npm install -D oxlint` | Ultra-fast linter (50-100x faster than ESLint, lint-only) | Free (OSS) | Rising |
|
|
150
|
+
| **ESLint** | `npm install -D eslint @eslint/js` | JavaScript/TypeScript linting | Free (OSS) | Stable — declining vs Biome |
|
|
151
|
+
| **Prettier** | `npm install -D prettier eslint-config-prettier` | Code formatting | Free (OSS) | Stable — declining vs Biome |
|
|
152
|
+
| **Husky** | `npx husky init` | Git hooks (pre-commit, pre-push) | Free (OSS) | Stable |
|
|
153
|
+
|
|
154
|
+
> **2026 recommendation:** Use **Biome** for new projects (replaces both ESLint and Prettier). Use ESLint+Prettier only for existing codebases that already have them configured.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Stack-to-CLI Mapping (Common Combos)
|
|
159
|
+
|
|
160
|
+
When VISION.md contains these stacks, install these tool sets:
|
|
161
|
+
|
|
162
|
+
### MERN Stack (MongoDB + Express + React + Node)
|
|
163
|
+
```bash
|
|
164
|
+
npm install express mongoose cors dotenv
|
|
165
|
+
npm install -D nodemon vitest
|
|
166
|
+
npx create-vite@latest client --template react
|
|
167
|
+
cd client && npm install axios react-router-dom
|
|
168
|
+
npm install passport passport-local
|
|
169
|
+
npm install -D @playwright/test && npx playwright install chromium firefox
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Next.js + Supabase (Modern Full-Stack)
|
|
173
|
+
```bash
|
|
174
|
+
npx create-next-app@latest --typescript --tailwind --app
|
|
175
|
+
npx supabase init && npx supabase start
|
|
176
|
+
npx shadcn@latest init
|
|
177
|
+
npm install @supabase/supabase-js @supabase/ssr
|
|
178
|
+
npm install -D @playwright/test && npx playwright install chromium
|
|
179
|
+
npm i -g vercel
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Next.js + PostgreSQL + Prisma
|
|
183
|
+
```bash
|
|
184
|
+
npx create-next-app@latest --typescript --tailwind --app
|
|
185
|
+
npm install prisma @prisma/client && npx prisma init
|
|
186
|
+
npx shadcn@latest init
|
|
187
|
+
npm install better-auth
|
|
188
|
+
npm install -D @playwright/test && npx playwright install chromium
|
|
189
|
+
npm i -g vercel
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Express + PostgreSQL + React (PERN)
|
|
193
|
+
```bash
|
|
194
|
+
npm install express pg cors dotenv
|
|
195
|
+
npm install -D nodemon prisma && npx prisma init
|
|
196
|
+
npx create-vite@latest client --template react-ts
|
|
197
|
+
cd client && npm install -D tailwindcss @tailwindcss/vite
|
|
198
|
+
npm install -D vitest @playwright/test && npx playwright install chromium firefox
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Installation Order
|
|
204
|
+
|
|
205
|
+
Always install in this sequence to avoid dependency conflicts:
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
1. Framework scaffold (create-next-app, create-vite, express init)
|
|
209
|
+
2. Database / BaaS (supabase init, prisma init, mongoose)
|
|
210
|
+
3. Auth (better-auth, next-auth, passport)
|
|
211
|
+
4. UI components (tailwind, shadcn, radix)
|
|
212
|
+
5. Service integrations (stripe, resend, uploadthing, youtube API)
|
|
213
|
+
6. Testing (playwright, vitest)
|
|
214
|
+
7. Code quality (eslint, prettier, husky)
|
|
215
|
+
8. Deployment (vercel, wrangler)
|
|
216
|
+
9. Monitoring (sentry, posthog)
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## DevTools Quick Reference (for beginners)
|
|
222
|
+
|
|
223
|
+
Save to `.planning/DEVTOOLS-GUIDE.md` during backward mode init:
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
F12 / Ctrl+Shift+I — Open DevTools
|
|
227
|
+
|
|
228
|
+
Console tab → Errors (red) and warnings (yellow) appear here
|
|
229
|
+
Copy red errors → paste to Claude for instant diagnosis
|
|
230
|
+
|
|
231
|
+
Network tab → API calls show here, filter by "Fetch/XHR"
|
|
232
|
+
Red = failed request, click to see response body
|
|
233
|
+
|
|
234
|
+
Elements tab → Inspect any element's HTML/CSS
|
|
235
|
+
Click 🔍 → click element → see/edit styles live
|
|
236
|
+
|
|
237
|
+
Application tab → Check cookies, localStorage, session tokens
|
|
238
|
+
Useful for debugging auth issues
|
|
239
|
+
|
|
240
|
+
Pro tip: Screenshot the Console tab when something breaks.
|
|
241
|
+
This is 10x faster than describing the error in words.
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## Failure Handling
|
|
247
|
+
|
|
248
|
+
If a CLI install fails:
|
|
249
|
+
|
|
250
|
+
1. Check if it's a network issue (retry once)
|
|
251
|
+
2. Check if it's a version conflict (try `--legacy-peer-deps`)
|
|
252
|
+
3. Log the failure to `.planning/breadcrumbs/FAILURES.md`
|
|
253
|
+
4. Suggest manual install command to the user
|
|
254
|
+
5. Continue with remaining installations (don't block on one failure)
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## Verification Checklist
|
|
259
|
+
|
|
260
|
+
After all installations, verify:
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
# Framework running
|
|
264
|
+
npm run dev # Should start without errors
|
|
265
|
+
|
|
266
|
+
# Database connected
|
|
267
|
+
npx prisma db push # OR npx supabase status
|
|
268
|
+
|
|
269
|
+
# Auth working
|
|
270
|
+
# Check /api/auth or auth callback URL responds
|
|
271
|
+
|
|
272
|
+
# Playwright ready
|
|
273
|
+
npx playwright test --list # Should list test files
|
|
274
|
+
|
|
275
|
+
# Deployment CLI authenticated
|
|
276
|
+
vercel whoami # OR wrangler whoami
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
## 2026 Category Winners (Quick Reference)
|
|
282
|
+
|
|
283
|
+
| Category | Winner | Avoid |
|
|
284
|
+
|----------|--------|-------|
|
|
285
|
+
| Hosting | **Vercel** (Next.js) + **Railway** (full-stack) | Heroku |
|
|
286
|
+
| Database | **Supabase** / **Neon** | PlanetScale (no free tier) |
|
|
287
|
+
| ORM | **Drizzle** (edge) / **Prisma** (teams) | Sequelize, TypeORM |
|
|
288
|
+
| Auth | **Clerk** (fastest) / **better-auth** (most control) | Passport.js for new projects |
|
|
289
|
+
| UI | **shadcn/ui** + **Tailwind v4** | Chakra UI, Material UI |
|
|
290
|
+
| Linting | **Biome** (single binary) | ESLint + Prettier combo |
|
|
291
|
+
| E2E Testing | **Playwright** + MCP | Selenium, Cypress |
|
|
292
|
+
| Unit Testing | **Vitest** | Jest (legacy) |
|
|
293
|
+
| Email | **Resend** + **React Email** | SendGrid |
|
|
294
|
+
| AI SDK | **Vercel AI SDK** + Anthropic/Google providers | OpenAI (never use) |
|
|
295
|
+
| Payments | **Stripe** (standard) / **Lemon Squeezy** (MoR) | — |
|
|
296
|
+
| Video | **YouTube API** (content) / **Mux** (hosting) | — |
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
Log all results to `.planning/TOOLING-LOG.md`:
|
|
301
|
+
|
|
302
|
+
```markdown
|
|
303
|
+
# Tooling Installation Log
|
|
304
|
+
|
|
305
|
+
| Tool | Version | Status | Notes |
|
|
306
|
+
|------|---------|--------|-------|
|
|
307
|
+
| Next.js | 15.x | ✅ Installed | — |
|
|
308
|
+
| Supabase CLI | 1.x | ✅ Installed | Local instance running |
|
|
309
|
+
| Stripe | 15.x | ✅ Installed | Webhook forwarding ready |
|
|
310
|
+
| Playwright | 1.x | ✅ Installed | Chromium + Firefox |
|
|
311
|
+
| Vercel CLI | 37.x | ✅ Installed | Authenticated |
|
|
312
|
+
```
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autonomous-multi-phase-build
|
|
3
|
+
category: methodology
|
|
4
|
+
version: 2.0.0
|
|
5
|
+
contributed: 2026-02-26
|
|
6
|
+
contributor: scribe-bible
|
|
7
|
+
last_updated: 2026-02-26
|
|
8
|
+
tags: [autonomous, build, multi-phase, workflow, automation, verification, CI]
|
|
9
|
+
difficulty: hard
|
|
10
|
+
usage_count: 0
|
|
11
|
+
success_rate: 100
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Autonomous Multi-Phase Build Pipeline
|
|
15
|
+
|
|
16
|
+
## Problem
|
|
17
|
+
|
|
18
|
+
You have a multi-phase feature build (3-10 phases) where each phase creates new files, modifies existing ones, and must pass TypeScript compilation + production build before advancing. Manual execution requires constant human attention for plan→execute→verify→fix→advance cycles. Failed builds mid-pipeline waste time if earlier phases introduced issues that compound.
|
|
19
|
+
|
|
20
|
+
## Solution Pattern
|
|
21
|
+
|
|
22
|
+
Structure each phase as an **atomic unit** with a strict contract: plan what to create/modify, execute the changes, verify with `tsc --noEmit` + `vite build` (or your build tool), fix any errors automatically, then advance. Track phase status in a conscience/state file so the pipeline can resume from any point.
|
|
23
|
+
|
|
24
|
+
The key insight: **verify after every phase, not at the end**. A TypeScript error in Phase 1 that goes undetected until Phase 5 requires debugging across 5 phases of changes. Catching it immediately constrains the fix to the current phase's changes.
|
|
25
|
+
|
|
26
|
+
## Code Example
|
|
27
|
+
|
|
28
|
+
```markdown
|
|
29
|
+
<!-- .planning/CONSCIENCE.md — Phase status tracker -->
|
|
30
|
+
| Phase | Name | Status | Attempts | Notes |
|
|
31
|
+
|-------|------|--------|----------|-------|
|
|
32
|
+
| 1 | Auth System | complete | 1 | 3 files created, 2 modified |
|
|
33
|
+
| 2 | Dashboard | complete | 2 | Type error on attempt 1, fixed |
|
|
34
|
+
| 3 | API Layer | in-progress | 0 | |
|
|
35
|
+
| 4 | Real-time | pending | 0 | |
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
// Phase execution contract (pseudocode)
|
|
40
|
+
interface PhaseContract {
|
|
41
|
+
// What this phase will do
|
|
42
|
+
creates: string[]; // New files
|
|
43
|
+
modifies: string[]; // Existing files changed
|
|
44
|
+
depends: string[]; // Files from earlier phases
|
|
45
|
+
|
|
46
|
+
// Verification
|
|
47
|
+
typeCheck: () => boolean; // tsc --noEmit
|
|
48
|
+
buildCheck: () => boolean; // vite build / next build / etc.
|
|
49
|
+
|
|
50
|
+
// Recovery
|
|
51
|
+
maxAttempts: number; // Usually 3
|
|
52
|
+
onFailure: 'fix' | 'replan' | 'escalate';
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# Verification commands run after each phase
|
|
58
|
+
# Phase N complete → verify immediately
|
|
59
|
+
npx tsc --noEmit # Type safety
|
|
60
|
+
npx vite build 2>&1 | tail -20 # Production build
|
|
61
|
+
echo $? # 0 = pass, non-zero = fail
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Implementation Steps
|
|
65
|
+
|
|
66
|
+
1. **Define phases** in a VISION/roadmap document with clear deliverables per phase
|
|
67
|
+
2. **Create phase directories** with context files (what to build, key decisions, API contracts)
|
|
68
|
+
3. **For each phase:**
|
|
69
|
+
a. Read phase context + understand what previous phases created
|
|
70
|
+
b. Create/modify files according to the phase plan
|
|
71
|
+
c. Run `tsc --noEmit` — fix any type errors immediately
|
|
72
|
+
d. Run production build — fix any build errors
|
|
73
|
+
e. Update status tracker (CONSCIENCE.md or equivalent)
|
|
74
|
+
f. If build passes: advance to next phase
|
|
75
|
+
g. If build fails after max attempts: stop and report
|
|
76
|
+
4. **Write session log** with per-phase results, files created/modified, errors fixed
|
|
77
|
+
|
|
78
|
+
## Verification Pattern
|
|
79
|
+
|
|
80
|
+
The critical verification loop per phase:
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
EXECUTE phase changes
|
|
84
|
+
↓
|
|
85
|
+
RUN tsc --noEmit
|
|
86
|
+
↓ FAIL? → identify error → fix → re-run tsc
|
|
87
|
+
↓ PASS
|
|
88
|
+
RUN vite build (or equivalent)
|
|
89
|
+
↓ FAIL? → identify error → fix → re-run build
|
|
90
|
+
↓ PASS
|
|
91
|
+
UPDATE status tracker
|
|
92
|
+
ADVANCE to next phase
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Common TypeScript errors to fix automatically:
|
|
96
|
+
- **TS6133**: Unused imports → remove them
|
|
97
|
+
- **TS2345**: Type mismatch on state hooks → add explicit type parameter (`useState<any>()`)
|
|
98
|
+
- **TS2353**: Invalid CSS property in style object → use correct property name
|
|
99
|
+
- **TS6192**: All imports unused → remove entire import statement
|
|
100
|
+
|
|
101
|
+
## When to Use
|
|
102
|
+
|
|
103
|
+
- Multi-phase feature builds (3+ phases with interdependencies)
|
|
104
|
+
- Autonomous/unattended build sessions
|
|
105
|
+
- When each phase must be independently verifiable
|
|
106
|
+
- Projects with strict TypeScript / build requirements
|
|
107
|
+
- When you want resumable progress (interrupted session can continue from last complete phase)
|
|
108
|
+
|
|
109
|
+
## When NOT to Use
|
|
110
|
+
|
|
111
|
+
- Single-file changes or bug fixes (overhead isn't justified)
|
|
112
|
+
- Exploratory/prototyping work where the plan isn't clear
|
|
113
|
+
- When phases have circular dependencies (must restructure first)
|
|
114
|
+
- Projects without automated build verification (no TypeScript, no bundler)
|
|
115
|
+
|
|
116
|
+
## Common Mistakes
|
|
117
|
+
|
|
118
|
+
- Skipping verification between phases ("I'll check at the end") — errors compound
|
|
119
|
+
- Not tracking which files each phase created/modified — makes debugging harder
|
|
120
|
+
- Attempting too many phases without committing — risk of losing work
|
|
121
|
+
- Not reading what previous phases built before starting the next — causes conflicts
|
|
122
|
+
- Setting maxAttempts too high (>3) — if 3 fix attempts fail, the approach is wrong
|
|
123
|
+
|
|
124
|
+
## Related Skills
|
|
125
|
+
|
|
126
|
+
- [react-flow-animated-layout-switching](../_general/frontend/react-flow-animated-layout-switching.md) — Technique used in Phase 1
|
|
127
|
+
- [domain-specific-layout-algorithms](../_general/patterns-standards/domain-specific-layout-algorithms.md) — Pattern used in Phases 1 & 3
|
|
128
|
+
|
|
129
|
+
## References
|
|
130
|
+
|
|
131
|
+
- Dominion Flow `/fire-autonomous` command — full implementation of this pattern
|
|
132
|
+
- Proven in: scribe-bible "Psalms Visual Intelligence" milestone — 5 phases, 8 files created, 6 modified, all clean first attempt
|
|
133
|
+
- Key metrics: 0 regressions across phases, every type error caught and fixed within the phase that introduced it
|