ai-flow-dev 2.1.9 → 2.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/README.md +14 -13
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/prompts/backend/flow-build-phase-0.md +68 -1810
- package/prompts/backend/flow-build-phase-10.md +1 -0
- package/prompts/backend/flow-build-phase-8.md +6 -7
- package/prompts/backend/flow-build-phase-9.md +1 -0
- package/prompts/backend/flow-build.md +59 -836
- package/prompts/frontend/flow-build-phase-0.md +46 -477
- package/prompts/frontend/flow-build-phase-10.md +33 -0
- package/prompts/frontend/flow-build-phase-8.md +27 -16
- package/prompts/frontend/flow-build-phase-9.md +80 -0
- package/prompts/frontend/flow-build.md +68 -414
- package/prompts/mobile/flow-build-phase-0.md +47 -360
- package/prompts/mobile/flow-build-phase-10.md +32 -0
- package/prompts/mobile/flow-build-phase-8.md +27 -16
- package/prompts/mobile/flow-build-phase-9.md +76 -0
- package/prompts/mobile/flow-build.md +67 -426
|
@@ -14,19 +14,20 @@ Your mission is to guide the user through creating **comprehensive, production-r
|
|
|
14
14
|
|
|
15
15
|
### Detectar Argumento de Fase
|
|
16
16
|
|
|
17
|
+
// turbo
|
|
17
18
|
Buscar en el mensaje del usuario patrones como:
|
|
18
19
|
|
|
19
|
-
- "fase 0", "fase 1", "fase 2", ..., "fase
|
|
20
|
+
- "fase 0", "fase 1", "fase 2", ..., "fase 10"
|
|
20
21
|
- "phase 0", "phase 1", etc.
|
|
21
22
|
- "ejecutar fase N"
|
|
22
23
|
- "run phase N"
|
|
23
24
|
|
|
24
25
|
### Comportamiento
|
|
25
26
|
|
|
26
|
-
**Si se detecta "fase N" (donde N = 0-
|
|
27
|
+
**Si se detecta "fase N" (donde N = 0-10):**
|
|
27
28
|
|
|
28
29
|
1. **Validar que la fase existe para frontend:**
|
|
29
|
-
- Fase 0: Context Discovery
|
|
30
|
+
- Fase 0: Context Discovery
|
|
30
31
|
- Fase 1: Discovery & UX Requirements
|
|
31
32
|
- Fase 2: Components & Framework
|
|
32
33
|
- Fase 3: State Management
|
|
@@ -35,447 +36,100 @@ Buscar en el mensaje del usuario patrones como:
|
|
|
35
36
|
- Fase 6: Testing Strategy
|
|
36
37
|
- Fase 7: Performance & Deployment
|
|
37
38
|
- Fase 8: Project Setup & Final Documentation
|
|
39
|
+
- Fase 9: Implementation Roadmap
|
|
40
|
+
- Fase 10: User Stories Generation
|
|
38
41
|
|
|
39
42
|
2. **Si la fase es válida:**
|
|
40
43
|
- Leer el archivo: `.ai-flow/prompts/frontend/flow-build-phase-N.md`
|
|
41
|
-
- Ejecutar SOLO esa fase
|
|
42
|
-
-
|
|
43
|
-
- Al finalizar, informar al usuario que puede continuar con la siguiente fase usando `/flow-build fase N+1`
|
|
44
|
+
- Ejecutar SOLO esa fase y seguir sus instrucciones internas.
|
|
45
|
+
- Al finalizar, informar que puede continuar con la siguiente fase usando `/flow-build fase N+1`.
|
|
44
46
|
|
|
45
47
|
3. **Si la fase es inválida:**
|
|
46
|
-
-
|
|
47
|
-
- Listar las fases válidas (0-8) con descripción de una línea
|
|
48
|
+
- Listar las fases válidas (0-10) con descripción de una línea.
|
|
48
49
|
|
|
49
50
|
**Si NO se detecta "fase N":**
|
|
50
|
-
|
|
51
|
-
- Ejecutar el flujo completo normal (todas las fases en orden)
|
|
52
|
-
- Comenzar con Scope Selection (MVP/Production-Ready/Enterprise)
|
|
53
|
-
- Ejecutar Phases 0-8 según corresponda
|
|
54
|
-
|
|
55
|
-
### Ejemplo de Lista de Fases Válidas
|
|
56
|
-
|
|
57
|
-
Si el usuario especifica una fase inválida, mostrar:
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
❌ Fase inválida. Las fases válidas para frontend son:
|
|
61
|
-
---
|
|
62
|
-
📋 Fases Disponibles - Frontend
|
|
63
|
-
---
|
|
64
|
-
/flow-build fase 0 - Context Discovery (solo proyectos existentes)
|
|
65
|
-
/flow-build fase 1 - Discovery & UX (tipo de app, usuarios, journeys)
|
|
66
|
-
/flow-build fase 2 - Components & Framework (React/Vue/Angular, estructura)
|
|
67
|
-
/flow-build fase 3 - State Management (Redux/MobX/Context, patrones)
|
|
68
|
-
/flow-build fase 4 - Styling & Design (CSS/Tailwind/Styled, theming)
|
|
69
|
-
/flow-build fase 5 - Code Standards (convenciones, formato, git workflow)
|
|
70
|
-
/flow-build fase 6 - Testing Strategy (tipos de tests, coverage, CI)
|
|
71
|
-
/flow-build fase 7 - Performance & Deployment (optimización, deployment)
|
|
72
|
-
/flow-build fase 8 - Project Setup & Final Documentation (inicializar proyecto)
|
|
73
|
-
---
|
|
74
|
-
💡 Tip: Usa /flow-build sin argumentos para ejecutar todas las fases en orden.
|
|
75
|
-
```
|
|
51
|
+
- Ejecutar el flujo completo comenzando por la Selección de Modo (A/B).
|
|
76
52
|
---
|
|
77
53
|
## Important Instructions
|
|
78
54
|
|
|
79
|
-
1. **Ask for
|
|
80
|
-
2. **
|
|
81
|
-
3. **Execute ALL applicable phases in order
|
|
82
|
-
4. **Ask questions ONE BY ONE
|
|
83
|
-
5. **Show progress indicator before EVERY question
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
📋 Phase [N]: [Phase Name] | Question [X]/[Total] | Phase Progress: [%]%
|
|
55
|
+
1. **Ask for Questionnaire Mode FIRST** (Interactive vs Smart Auto-Suggest).
|
|
56
|
+
2. **Ask for Project Scope SECOND** (MVP, Production-Ready, or Enterprise).
|
|
57
|
+
3. **Execute ALL applicable phases in order**, adjusting depth based on scope.
|
|
58
|
+
4. **Ask questions ONE BY ONE**. Wait for the user's answer.
|
|
59
|
+
5. **Show progress indicator before EVERY question**.
|
|
60
|
+
6. **Provide recommendations** using markers: ⭐ **Recommended**, 🔥 **Popular**, ⚡ **Modern**, 🏆 **Enterprise**.
|
|
61
|
+
7. **Generate documents incrementally** after each phase.
|
|
87
62
|
---
|
|
88
|
-
|
|
89
|
-
Example for Phase 2, Question 5 of 12:
|
|
90
|
-
```
|
|
91
|
-
---
|
|
92
|
-
📋 Phase 2: Components & Framework | Question 5/12 | Phase Progress: 42%
|
|
93
|
-
---
|
|
94
|
-
```
|
|
95
|
-
6. **Provide recommendations** using these markers:
|
|
96
|
-
- ⭐ **Recommended** - Best choice for most projects
|
|
97
|
-
- 🔥 **Popular** - Widely used in industry
|
|
98
|
-
- ⚡ **Modern** - Cutting-edge, newer approach
|
|
99
|
-
- 🏆 **Enterprise** - Best for large-scale projects
|
|
100
|
-
7. **Use multiple choice when possible** - Give 3-5 options (A, B, C, D, E)
|
|
101
|
-
8. **Validate completeness** - Ensure all critical information is gathered
|
|
102
|
-
9. **Generate documents incrementally** - After each phase, generate corresponding documents with validation
|
|
103
|
-
---
|
|
104
|
-
## 📚 How to Use This Guide
|
|
63
|
+
## 🚀 Mode Selection
|
|
105
64
|
|
|
106
|
-
|
|
65
|
+
**BEFORE STARTING ANY PHASE**, ask the user to select the questionnaire mode:
|
|
107
66
|
|
|
108
|
-
|
|
67
|
+
A) ⭐ **Interactive Mode (Recommended)**
|
|
68
|
+
• Full control, step-by-step questions. (90-120 min)
|
|
109
69
|
|
|
110
|
-
|
|
70
|
+
B) ⚡ **Smart Auto-Suggest Mode**
|
|
71
|
+
• AI suggests best practices, you answer 6 critical questions. (15-25 min)
|
|
111
72
|
|
|
112
|
-
|
|
113
|
-
2. **Phase 1 (Discovery & UX):** Read `.ai-flow/prompts/frontend/flow-build-phase-1-discovery.md`
|
|
114
|
-
3. **Phase 2 (Components & Framework):** Read `.ai-flow/prompts/frontend/flow-build-phase-2-components.md`
|
|
115
|
-
4. **Phase 3 (State Management):** Read `.ai-flow/prompts/frontend/flow-build-phase-3-state.md`
|
|
116
|
-
5. **Phase 4 (Styling & Design):** Read `.ai-flow/prompts/frontend/flow-build-phase-4-styling.md`
|
|
117
|
-
6. **Phase 5 (Code Standards):** Read `.ai-flow/prompts/frontend/flow-build-phase-5-standards.md`
|
|
118
|
-
7. **Phase 6 (Testing Strategy):** Read `.ai-flow/prompts/frontend/flow-build-phase-6-testing.md`
|
|
119
|
-
8. **Phase 7 (Performance & Deployment):** Read `.ai-flow/prompts/frontend/flow-build-phase-7-deployment.md`
|
|
120
|
-
9. **Phase 8 (Project Setup & Final Documentation):** Read `.ai-flow/prompts/frontend/flow-build-phase-8.md`
|
|
73
|
+
Your choice (A/B): __
|
|
121
74
|
|
|
122
|
-
|
|
75
|
+
**Based on the selection:**
|
|
76
|
+
- **Mode A (Interactive):** Proceed with normal sequential flow (Phases 0-10).
|
|
77
|
+
- **Mode B (Smart Auto-Suggest):** Ask the following 6 critical questions one by one, then auto-generate all suggestions based on industry standards and the app type:
|
|
123
78
|
|
|
124
|
-
|
|
79
|
+
1. **Project Name & Description** (Skip if Phase 0 detected context)
|
|
80
|
+
2. **Target Audience & Devices:** Who are the users and what devices (Mobile/Desktop)?
|
|
81
|
+
3. **Application Type:** Dashboard, E-commerce, SaaS, Landing Page, Social, B2B, PWA, etc.
|
|
82
|
+
4. **Framework Foundation:** React, Next.js, Vue, Nuxt, Svelte, Angular.
|
|
83
|
+
5. **Design System & Styling:** Custom (Tailwind/CSS) or Library (MUI/Ant/Chakra).
|
|
84
|
+
6. **State Management Complexity:** Simple (forms) or Complex (shared/real-time).
|
|
125
85
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
86
|
+
**AI Logic for Auto-Suggest:**
|
|
87
|
+
- Generate comprehensive suggestions for all phases (1-10).
|
|
88
|
+
- Use modern tools matching the framework (e.g., Next.js -> TanStack Query).
|
|
89
|
+
- Adjust complexity based on scope (MVP vs Enterprise).
|
|
90
|
+
- Present a summary for confirmation before generating documentation.
|
|
129
91
|
---
|
|
130
|
-
## 🎯 Phase Overview
|
|
131
|
-
|
|
132
|
-
### Phase 0: Context Discovery (Optional)
|
|
133
92
|
|
|
134
|
-
|
|
135
|
-
**For:** Existing projects with code/documentation
|
|
136
|
-
**Duration:** 1-5 minutes (automated analysis)
|
|
137
|
-
**Output:** Pre-populated answers, project analysis
|
|
93
|
+
## 📚 Flow Overview & Modular Phases
|
|
138
94
|
|
|
139
|
-
|
|
95
|
+
Each phase is modularized for better maintainability and reduced context usage.
|
|
140
96
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
97
|
+
| Phase | Description | File |
|
|
98
|
+
|-------|-------------|------|
|
|
99
|
+
| **Phase 0** | Context Discovery | `frontend/flow-build-phase-0.md` |
|
|
100
|
+
| **Phase 1** | Discovery & UX | `frontend/flow-build-phase-1.md` |
|
|
101
|
+
| **Phase 2** | Components & Framework| `frontend/flow-build-phase-2.md` |
|
|
102
|
+
| **Phase 3** | State Management | `frontend/flow-build-phase-3.md` |
|
|
103
|
+
| **Phase 4** | Styling & Design | `frontend/flow-build-phase-4.md` |
|
|
104
|
+
| **Phase 5** | Code Standards | `frontend/flow-build-phase-5.md` |
|
|
105
|
+
| **Phase 6** | Testing Strategy | `frontend/flow-build-phase-6.md` |
|
|
106
|
+
| **Phase 7** | Performance & Deploy | `frontend/flow-build-phase-7.md` |
|
|
107
|
+
| **Phase 8** | Setup & Final Docs | `frontend/flow-build-phase-8.md` |
|
|
108
|
+
| **Phase 9** | Roadmap (Optional) | `frontend/flow-build-phase-9.md` |
|
|
109
|
+
| **Phase 10** | User Stories (Optional) | `frontend/flow-build-phase-10.md` |
|
|
145
110
|
|
|
146
|
-
**Supports:** React, Vue, Angular, Svelte, Solid + meta-frameworks (Next.js, Nuxt, SvelteKit, etc.)
|
|
147
|
-
|
|
148
|
-
**Skip if:** Starting a completely new project from scratch
|
|
149
111
|
---
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
**File:** `frontend/flow-build-phase-1-discovery.md`
|
|
153
|
-
**Duration:** 15-20 minutes
|
|
154
|
-
**Key Questions:**
|
|
155
|
-
|
|
156
|
-
- What type of application are you building?
|
|
157
|
-
- Who are your target users?
|
|
158
|
-
- What are the key user journeys?
|
|
159
|
-
- What devices/browsers must you support?
|
|
112
|
+
## 📋 Scope Selection (MVP / Production / Enterprise)
|
|
160
113
|
|
|
161
|
-
|
|
114
|
+
Before starting Phase 1, ask the user to select the Project Scope.
|
|
115
|
+
> 📎 **Reference:** See [shared/scope-levels.md](../shared/scope-levels.md)
|
|
162
116
|
|
|
163
|
-
- `project-brief.md`
|
|
164
|
-
- Parts of `AGENT.md`
|
|
165
117
|
---
|
|
166
|
-
|
|
118
|
+
## 🔄 Documentation Sync
|
|
167
119
|
|
|
168
|
-
|
|
169
|
-
**
|
|
170
|
-
**
|
|
120
|
+
As your project grows, use the following to keep docs updated:
|
|
121
|
+
**Command:** `/flow-docs-sync`
|
|
122
|
+
**Logic:** Read `.ai-flow/prompts/frontend/flow-docs-sync.md`.
|
|
171
123
|
|
|
172
|
-
- What UI framework will you use? (React/Vue/Angular/Svelte/Solid)
|
|
173
|
-
- What component architecture pattern? (Atomic Design, Feature-based, etc.)
|
|
174
|
-
- What component library? (Material UI, Chakra, Vuetify, etc.)
|
|
175
|
-
- Will you use TypeScript?
|
|
176
|
-
|
|
177
|
-
**Generates:**
|
|
178
|
-
|
|
179
|
-
- `docs/components.md`
|
|
180
|
-
- `docs/architecture.md`
|
|
181
|
-
- Parts of `ai-instructions.md`
|
|
182
|
-
---
|
|
183
|
-
### Phase 3: State Management
|
|
184
|
-
|
|
185
|
-
**File:** `frontend/flow-build-phase-3-state.md`
|
|
186
|
-
**Duration:** 15-20 minutes
|
|
187
|
-
**Key Questions:**
|
|
188
|
-
|
|
189
|
-
- How will you manage client state? (Zustand, Redux, Pinia, NgRx, etc.)
|
|
190
|
-
- How will you fetch server data? (TanStack Query, SWR, Apollo, etc.)
|
|
191
|
-
- What data caching strategy?
|
|
192
|
-
- How will you handle forms?
|
|
193
|
-
|
|
194
|
-
**Generates:**
|
|
195
|
-
|
|
196
|
-
- `docs/state-management.md`
|
|
197
|
-
- Parts of `ai-instructions.md`
|
|
198
124
|
---
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
**File:** `frontend/flow-build-phase-4-styling.md`
|
|
202
|
-
**Duration:** 15-20 minutes
|
|
203
|
-
**Key Questions:**
|
|
204
|
-
|
|
205
|
-
- What styling approach? (Tailwind, CSS Modules, Styled Components, etc.)
|
|
206
|
-
- Will you use design tokens?
|
|
207
|
-
- Do you need theming support? (dark mode, etc.)
|
|
208
|
-
- What responsive strategy?
|
|
209
|
-
|
|
210
|
-
**Generates:**
|
|
211
|
-
|
|
212
|
-
- `docs/styling.md`
|
|
213
|
-
- Parts of `ai-instructions.md`
|
|
214
|
-
---
|
|
215
|
-
### Phase 5: Code Standards & Best Practices
|
|
216
|
-
|
|
217
|
-
**File:** `frontend/flow-build-phase-5-standards.md`
|
|
218
|
-
**Duration:** 15-20 minutes
|
|
219
|
-
**Key Questions:**
|
|
220
|
-
|
|
221
|
-
- What naming conventions for files/components?
|
|
222
|
-
- What linting/formatting rules?
|
|
223
|
-
- What accessibility standards? (WCAG AA, AAA, etc.)
|
|
224
|
-
- What code organization pattern?
|
|
125
|
+
## 🎯 After Completion
|
|
225
126
|
|
|
226
|
-
|
|
127
|
+
ALWAYS present a final summary:
|
|
128
|
+
1. **Quick Summary:** 1 paragraph overview.
|
|
129
|
+
2. **Extended Report:** Key decisions by phase.
|
|
130
|
+
3. **Scaffolding:** Offer to initialize or commit changes.
|
|
227
131
|
|
|
228
|
-
- `docs/code-standards.md`
|
|
229
|
-
- Parts of `ai-instructions.md`
|
|
230
132
|
---
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
**Duration:** 15-25 minutes
|
|
235
|
-
**Key Questions:**
|
|
236
|
-
|
|
237
|
-
- What unit testing framework? (Vitest, Jest, etc.)
|
|
238
|
-
- What component testing library? (Testing Library, Vue Test Utils, etc.)
|
|
239
|
-
- What E2E testing tool? (Playwright, Cypress, etc.)
|
|
240
|
-
- What coverage targets?
|
|
241
|
-
|
|
242
|
-
**Generates:**
|
|
243
|
-
|
|
244
|
-
- `docs/testing.md`
|
|
245
|
-
- Parts of `ai-instructions.md`
|
|
246
|
-
---
|
|
247
|
-
### Phase 7: Performance & Deployment
|
|
248
|
-
|
|
249
|
-
**File:** `frontend/flow-build-phase-7-deployment.md`
|
|
250
|
-
**Duration:** 10-15 minutes
|
|
251
|
-
**Key Questions:**
|
|
252
|
-
|
|
253
|
-
- What performance targets? (Core Web Vitals, etc.)
|
|
254
|
-
- What optimization strategies? (code splitting, lazy loading, etc.)
|
|
255
|
-
- Where will you deploy? (Vercel, Netlify, AWS, etc.)
|
|
256
|
-
- What monitoring/analytics tools?
|
|
257
|
-
|
|
258
|
-
**Generates:**
|
|
259
|
-
|
|
260
|
-
- `docs/performance.md`
|
|
261
|
-
- `docs/operations.md`
|
|
262
|
-
- `specs/configuration.md`
|
|
263
|
-
- `.env.example`
|
|
264
|
-
|
|
265
|
-
**Next:** Transitions to Phase 8 for project setup and final documentation
|
|
266
|
-
---
|
|
267
|
-
### Phase 8: Project Setup & Final Documentation
|
|
268
|
-
|
|
269
|
-
**File:** `frontend/flow-build-phase-8.md`
|
|
270
|
-
**Duration:** 10-15 minutes
|
|
271
|
-
**Key Steps:**
|
|
272
|
-
|
|
273
|
-
- Detect project state (new vs existing)
|
|
274
|
-
- Initialize framework (optional, for new projects)
|
|
275
|
-
- Generate final documentation
|
|
276
|
-
- Create master index (AGENT.md)
|
|
277
|
-
- Generate README.md with intelligent merge
|
|
278
|
-
|
|
279
|
-
**Generates:**
|
|
280
|
-
|
|
281
|
-
- `docs/components-guide.md`
|
|
282
|
-
- `docs/state-management.md`
|
|
283
|
-
- `docs/contributing.md`
|
|
284
|
-
- `AGENT.md` (master index)
|
|
285
|
-
- `README.md`
|
|
286
|
-
- Tool-specific configs (`.clauderules`, `.cursorrules`, `.github/copilot-instructions.md`)
|
|
287
|
-
---
|
|
288
|
-
## 📊 Scope-Based Question Filtering
|
|
289
|
-
|
|
290
|
-
### MVP Scope (50-70 minutes)
|
|
291
|
-
|
|
292
|
-
**Phases included:** 1, 2, 3, 4 (core only)
|
|
293
|
-
|
|
294
|
-
**What's simplified:**
|
|
295
|
-
|
|
296
|
-
- Minimal styling (just basic Tailwind or CSS Modules)
|
|
297
|
-
- Simple state management (Context API or component state)
|
|
298
|
-
- Basic component structure (flat or simple feature-based)
|
|
299
|
-
- No advanced optimization
|
|
300
|
-
- Basic testing (smoke tests only)
|
|
301
|
-
|
|
302
|
-
**Best for:** Proof of concept, prototypes, MVPs
|
|
303
|
-
---
|
|
304
|
-
### Production-Ready Scope (90-120 minutes)
|
|
305
|
-
|
|
306
|
-
**Phases included:** All (1-7)
|
|
307
|
-
|
|
308
|
-
**What's included:**
|
|
309
|
-
|
|
310
|
-
- Full tech stack selection
|
|
311
|
-
- Comprehensive state management
|
|
312
|
-
- Professional styling with design tokens
|
|
313
|
-
- Complete testing strategy
|
|
314
|
-
- Performance optimization
|
|
315
|
-
- Deployment pipeline
|
|
316
|
-
|
|
317
|
-
**Best for:** Production applications, SaaS products, client projects
|
|
318
|
-
---
|
|
319
|
-
### Enterprise Scope (120-150 minutes)
|
|
320
|
-
|
|
321
|
-
**Phases included:** All (1-7) with extended questions
|
|
322
|
-
|
|
323
|
-
**Additional coverage:**
|
|
324
|
-
|
|
325
|
-
- Monorepo considerations
|
|
326
|
-
- Micro-frontend architecture
|
|
327
|
-
- Advanced caching strategies
|
|
328
|
-
- Comprehensive accessibility (WCAG 2.1 AAA)
|
|
329
|
-
- Security hardening (CSP, CORS, XSS prevention)
|
|
330
|
-
- Multi-tenant support
|
|
331
|
-
- Advanced monitoring and observability
|
|
332
|
-
|
|
333
|
-
**Best for:** Large-scale applications, enterprise platforms, mission-critical systems
|
|
334
|
-
---
|
|
335
|
-
## 🎯 Execution Workflow
|
|
336
|
-
|
|
337
|
-
### Step 1: Scope Selection
|
|
338
|
-
|
|
339
|
-
**Before Phase 1**, ask:
|
|
340
|
-
|
|
341
|
-
```
|
|
342
|
-
---
|
|
343
|
-
🎯 Project Scope Selection
|
|
344
|
-
---
|
|
345
|
-
## 📋 Scope Selection
|
|
346
|
-
|
|
347
|
-
Before starting Phase 1, you'll select a scope level:
|
|
348
|
-
|
|
349
|
-
> 📎 **Reference:** See [prompts/shared/scope-levels.md](../shared/scope-levels.md) for detailed scope definitions (MVP, Production-Ready, Enterprise).
|
|
350
|
-
|
|
351
|
-
### A) ⭐ MVP / Prototype
|
|
352
|
-
**Focus:** Core functionality + basic tests. Best for POCs and internal tools.
|
|
353
|
-
|
|
354
|
-
### B) 🚀 Production-Ready
|
|
355
|
-
**Focus:** Production-grade with best practices. Best for SaaS and customer-facing apps.
|
|
356
|
-
|
|
357
|
-
### C) 🏢 Enterprise / Mission-Critical
|
|
358
|
-
**Focus:** Enterprise governance, compliance, and high scalability.
|
|
359
|
-
|
|
360
|
-
Your choice (A/B/C):
|
|
361
|
-
```
|
|
362
|
-
|
|
363
|
-
### Step 2: Execute Phases
|
|
364
|
-
|
|
365
|
-
Based on scope selection, execute applicable phase files in order.
|
|
366
|
-
|
|
367
|
-
### Step 3: Generate Documents
|
|
368
|
-
|
|
369
|
-
After completing all phases, generate the complete documentation set:
|
|
370
|
-
|
|
371
|
-
**Core Documents (All Scopes):**
|
|
372
|
-
|
|
373
|
-
- `AGENT.md` - Universal AI assistant configuration
|
|
374
|
-
- `ai-instructions.md` - Tech stack and development rules
|
|
375
|
-
- `project-brief.md` - Project overview and objectives
|
|
376
|
-
- `README.md` - Quick start guide
|
|
377
|
-
|
|
378
|
-
**Documentation (Production/Enterprise):**
|
|
379
|
-
|
|
380
|
-
- `docs/architecture.md` - System architecture
|
|
381
|
-
- `docs/components.md` - Component patterns
|
|
382
|
-
- `docs/state-management.md` - State management guide
|
|
383
|
-
- `docs/styling.md` - Styling and design system
|
|
384
|
-
- `docs/code-standards.md` - Code standards and conventions
|
|
385
|
-
- `docs/testing.md` - Testing strategy
|
|
386
|
-
- `docs/performance.md` - Performance optimization
|
|
387
|
-
- `docs/contributing.md` - Contribution guidelines
|
|
388
|
-
|
|
389
|
-
**Specifications (Enterprise):**
|
|
390
|
-
|
|
391
|
-
- `specs/accessibility.md` - Accessibility requirements
|
|
392
|
-
- `specs/configuration.md` - Environment and configuration
|
|
393
|
-
|
|
394
|
-
### Step 4: Validation
|
|
395
|
-
|
|
396
|
-
Before finalizing, validate:
|
|
397
|
-
|
|
398
|
-
1. ✅ All placeholders filled with real data
|
|
399
|
-
2. ✅ Tech stack consistency across all documents
|
|
400
|
-
3. ✅ No contradictions between documents
|
|
401
|
-
4. ✅ Framework-specific examples match selected framework
|
|
402
|
-
5. ✅ Cross-references between documents are correct
|
|
403
|
-
---
|
|
404
|
-
## 🔄 Iterative Updates
|
|
405
|
-
|
|
406
|
-
Users can re-run individual phases to update documentation:
|
|
407
|
-
|
|
408
|
-
```
|
|
409
|
-
"I want to switch from Zustand to Redux Toolkit"
|
|
410
|
-
→ Re-execute Phase 3 only
|
|
411
|
-
→ Regenerate docs/state-management.md and parts of ai-instructions.md
|
|
412
|
-
```
|
|
413
|
-
---
|
|
414
|
-
## 🎨 Framework-Specific Adaptations
|
|
415
|
-
|
|
416
|
-
The questionnaire adapts based on the UI framework selected in Phase 2:
|
|
417
|
-
|
|
418
|
-
**React:**
|
|
419
|
-
|
|
420
|
-
- State: Zustand, Redux Toolkit, Jotai
|
|
421
|
-
- Forms: React Hook Form, Formik
|
|
422
|
-
- Styling: Tailwind, Styled Components, Emotion
|
|
423
|
-
- Testing: React Testing Library
|
|
424
|
-
|
|
425
|
-
**Vue:**
|
|
426
|
-
|
|
427
|
-
- State: Pinia, Vuex
|
|
428
|
-
- Forms: VeeValidate, FormKit
|
|
429
|
-
- Styling: Tailwind, Scoped CSS
|
|
430
|
-
- Testing: Vue Test Utils
|
|
431
|
-
|
|
432
|
-
**Angular:**
|
|
433
|
-
|
|
434
|
-
- State: NgRx, Akita, Elf
|
|
435
|
-
- Forms: Reactive Forms, Template-driven Forms
|
|
436
|
-
- Styling: Angular Material, Tailwind
|
|
437
|
-
- Testing: Jasmine/Karma, Jest
|
|
438
|
-
|
|
439
|
-
**Svelte:**
|
|
440
|
-
|
|
441
|
-
- State: Svelte Stores, XState
|
|
442
|
-
- Forms: Svelte Forms Lib
|
|
443
|
-
- Styling: Tailwind, Scoped CSS
|
|
444
|
-
- Testing: Svelte Testing Library
|
|
445
|
-
|
|
446
|
-
**Solid:**
|
|
447
|
-
|
|
448
|
-
- State: Solid Store, Solid Signal
|
|
449
|
-
- Forms: Modular Forms
|
|
450
|
-
- Styling: Tailwind, Solid Styled
|
|
451
|
-
- Testing: Solid Testing Library
|
|
452
|
-
---
|
|
453
|
-
## 🚀 Getting Started
|
|
454
|
-
|
|
455
|
-
To begin the complete frontend build process:
|
|
456
|
-
|
|
457
|
-
1. Ensure you're in your project directory
|
|
458
|
-
2. Run this prompt (or individual phase files)
|
|
459
|
-
3. Answer questions thoughtfully
|
|
460
|
-
4. Review generated documentation
|
|
461
|
-
5. Iterate as needed
|
|
462
|
-
|
|
463
|
-
**Ready to start?** Proceed to Phase 1 by reading:
|
|
464
|
-
|
|
465
|
-
```
|
|
466
|
-
.ai-flow/prompts/frontend/flow-build-phase-1-discovery.md
|
|
467
|
-
```
|
|
468
|
-
|
|
469
|
-
Or if you have existing code, start with Phase 0 for automatic detection:
|
|
470
|
-
|
|
471
|
-
```
|
|
472
|
-
.ai-flow/prompts/frontend/flow-build-phase-0-context.md
|
|
473
|
-
```
|
|
474
|
-
---
|
|
475
|
-
**Last Updated:** 2025-01-XX
|
|
476
|
-
|
|
477
|
-
**Version:** 1.2.0 (Frontend MVP)
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
133
|
+
_Version: 4.2 (v2.1.9) (Antigravity Optimized - Modularized & Turbo-Enabled)_
|
|
134
|
+
_Last Updated: 2025-12-21_
|
|
135
|
+
_AI Flow - Transform your idea into production-ready code in minutes_
|