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 mobile:**
|
|
29
|
-
- Fase 0: Context Discovery
|
|
30
|
+
- Fase 0: Context Discovery
|
|
30
31
|
- Fase 1: Platform & Framework Selection
|
|
31
32
|
- Fase 2: Navigation & Architecture
|
|
32
33
|
- Fase 3: State & Data Management
|
|
@@ -35,458 +36,98 @@ Buscar en el mensaje del usuario patrones como:
|
|
|
35
36
|
- Fase 6: Testing Strategy
|
|
36
37
|
- Fase 7: Store 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/mobile/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 mobile son:
|
|
61
|
-
---
|
|
62
|
-
📋 Fases Disponibles - Mobile
|
|
63
|
-
---
|
|
64
|
-
/flow-build fase 0 - Context Discovery (solo proyectos existentes)
|
|
65
|
-
/flow-build fase 1 - Platform & Framework (iOS/Android, React Native/Flutter)
|
|
66
|
-
/flow-build fase 2 - Navigation & Architecture (navegación, estructura)
|
|
67
|
-
/flow-build fase 3 - State & Data Management (estado, storage, sync)
|
|
68
|
-
/flow-build fase 4 - Permissions & Native Features (permisos, cámara, GPS)
|
|
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 - Store Deployment (App Store, Play Store, signing)
|
|
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: [%]%
|
|
87
|
-
---
|
|
88
|
-
```
|
|
89
|
-
Example for Phase 2, Question 5 of 12:
|
|
90
|
-
```
|
|
91
|
-
---
|
|
92
|
-
📋 Phase 2: Navigation & Architecture | 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
|
|
105
|
-
|
|
106
|
-
This documentation is **modularized** for better maintainability and performance. Each phase is in a separate file.
|
|
107
|
-
|
|
108
|
-
### For Complete Build (All Phases)
|
|
109
|
-
|
|
110
|
-
Execute phases sequentially by reading each file in order:
|
|
111
|
-
|
|
112
|
-
1. **Phase 0 (Optional - Existing Projects Only):** Read `.ai-flow/prompts/mobile/flow-build-phase-0-context.md`
|
|
113
|
-
2. **Phase 1 (Platform & Framework Selection):** Read `.ai-flow/prompts/mobile/flow-build-phase-1-platform.md`
|
|
114
|
-
3. **Phase 2 (Navigation & Architecture):** Read `.ai-flow/prompts/mobile/flow-build-phase-2-navigation.md`
|
|
115
|
-
4. **Phase 3 (State & Data Management):** Read `.ai-flow/prompts/mobile/flow-build-phase-3-state.md`
|
|
116
|
-
5. **Phase 4 (Permissions & Native Features):** Read `.ai-flow/prompts/mobile/flow-build-phase-4-permissions.md`
|
|
117
|
-
6. **Phase 5 (Code Standards):** Read `.ai-flow/prompts/mobile/flow-build-phase-5-standards.md`
|
|
118
|
-
7. **Phase 6 (Testing Strategy):** Read `.ai-flow/prompts/mobile/flow-build-phase-6-testing.md`
|
|
119
|
-
8. **Phase 7 (Store Deployment):** Read `.ai-flow/prompts/mobile/flow-build-phase-7-deployment.md`
|
|
120
|
-
9. **Phase 8 (Project Setup & Final Documentation):** Read `.ai-flow/prompts/mobile/flow-build-phase-8.md`
|
|
121
|
-
|
|
122
|
-
### For Individual Phases
|
|
123
|
-
|
|
124
|
-
You can execute any phase independently by reading its file. For example:
|
|
125
|
-
|
|
126
|
-
```
|
|
127
|
-
Read .ai-flow/prompts/mobile/flow-build-phase-3-state.md and execute only Phase 3
|
|
128
|
-
```
|
|
129
|
-
---
|
|
130
|
-
## 🎯 Phase Overview
|
|
131
|
-
|
|
132
|
-
### Phase 0: Context Discovery (Optional)
|
|
133
|
-
|
|
134
|
-
**File:** `mobile/flow-build-phase-0-context.md`
|
|
135
|
-
**For:** Existing projects with code/documentation
|
|
136
|
-
**Duration:** 1-5 minutes (automated analysis)
|
|
137
|
-
**Output:** Pre-populated answers, project analysis
|
|
138
|
-
|
|
139
|
-
**What it does:**
|
|
140
|
-
|
|
141
|
-
- **Layer 0:** Checks cache (0-2 seconds)
|
|
142
|
-
- **Layer 1:** Fast metadata scan (10-20 seconds) - Detects framework, platform, build tool
|
|
143
|
-
- **Layer 2:** Structural analysis (30-90 seconds) - Analyzes navigation, components, state management
|
|
144
|
-
- **Layer 3:** Selective deep analysis (optional) - Extracts navigation patterns, API integrations
|
|
145
|
-
|
|
146
|
-
**Supports:** React Native, Flutter, Native iOS (Swift), Native Android (Kotlin), Ionic, Xamarin
|
|
147
|
-
|
|
148
|
-
**Skip if:** Starting a completely new project from scratch
|
|
149
|
-
---
|
|
150
|
-
### Phase 1: Platform & Framework Selection
|
|
151
|
-
|
|
152
|
-
**File:** `mobile/flow-build-phase-1-platform.md`
|
|
153
|
-
**Duration:** 20-25 minutes
|
|
154
|
-
**Key Questions:**
|
|
155
|
-
|
|
156
|
-
- What platforms will you target? (iOS, Android, or both)
|
|
157
|
-
- What framework will you use? (React Native, Flutter, Native, Ionic, etc.)
|
|
158
|
-
- What minimum OS versions will you support?
|
|
159
|
-
- Will you use TypeScript/Dart?
|
|
160
|
-
- What UI/UX framework? (Material Design, Cupertino, custom)
|
|
161
|
-
- Will you support dark mode?
|
|
162
|
-
- Will you support multiple languages (i18n)?
|
|
163
|
-
- How will you handle images and assets?
|
|
164
|
-
|
|
165
|
-
**Generates:**
|
|
166
|
-
|
|
167
|
-
- `project-brief.md`
|
|
168
|
-
- Parts of `AGENT.md`
|
|
169
|
-
- Parts of `ai-instructions.md`
|
|
170
|
-
---
|
|
171
|
-
### Phase 2: Navigation & Architecture
|
|
172
|
-
|
|
173
|
-
**File:** `mobile/flow-build-phase-2-navigation.md`
|
|
174
|
-
**Duration:** 15-20 minutes
|
|
175
|
-
**Key Questions:**
|
|
176
|
-
|
|
177
|
-
- What navigation pattern? (Stack, Tab, Drawer, Bottom Tabs)
|
|
178
|
-
- What architecture pattern? (Feature-based, Layer-based, Clean Architecture)
|
|
179
|
-
- How will you structure screens/components?
|
|
180
|
-
- Will you use a navigation library?
|
|
181
|
-
|
|
182
|
-
**Generates:**
|
|
183
|
-
|
|
184
|
-
- `docs/navigation.md`
|
|
185
|
-
- `docs/architecture.md`
|
|
186
|
-
- Parts of `ai-instructions.md`
|
|
187
|
-
---
|
|
188
|
-
### Phase 3: State & Data Management
|
|
189
|
-
|
|
190
|
-
**File:** `mobile/flow-build-phase-3-state.md`
|
|
191
|
-
**Duration:** 15-20 minutes
|
|
192
|
-
**Key Questions:**
|
|
193
|
-
|
|
194
|
-
- How will you manage app state? (Redux, MobX, Zustand, Provider, etc.)
|
|
195
|
-
- How will you fetch server data? (REST, GraphQL, gRPC)
|
|
196
|
-
- What offline strategy? (Local storage, SQLite, Realm, etc.)
|
|
197
|
-
- How will you handle data synchronization?
|
|
198
|
-
|
|
199
|
-
**Generates:**
|
|
200
|
-
|
|
201
|
-
- `docs/state-management.md`
|
|
202
|
-
- `docs/offline-strategy.md`
|
|
203
|
-
- Parts of `ai-instructions.md`
|
|
204
|
-
---
|
|
205
|
-
### Phase 4: Permissions & Native Features
|
|
206
|
-
|
|
207
|
-
**File:** `mobile/flow-build-phase-4-permissions.md`
|
|
208
|
-
**Duration:** 15-20 minutes
|
|
209
|
-
**Key Questions:**
|
|
210
|
-
|
|
211
|
-
- What permissions will you need? (Camera, Location, Push Notifications, etc.)
|
|
212
|
-
- What native features? (Biometrics, File System, Contacts, etc.)
|
|
213
|
-
- How will you handle permission requests?
|
|
214
|
-
- What third-party SDKs will you integrate?
|
|
215
|
-
|
|
216
|
-
**Generates:**
|
|
217
|
-
|
|
218
|
-
- `docs/permissions.md`
|
|
219
|
-
- `docs/native-features.md`
|
|
220
|
-
- Parts of `ai-instructions.md`
|
|
221
|
-
---
|
|
222
|
-
### Phase 5: Code Standards & Best Practices
|
|
223
|
-
|
|
224
|
-
**File:** `mobile/flow-build-phase-5-standards.md`
|
|
225
|
-
**Duration:** 15-20 minutes
|
|
226
|
-
**Key Questions:**
|
|
227
|
-
|
|
228
|
-
- What naming conventions for files/components?
|
|
229
|
-
- What linting/formatting rules?
|
|
230
|
-
- What code organization pattern?
|
|
231
|
-
- What accessibility standards? (WCAG Mobile)
|
|
232
|
-
|
|
233
|
-
**Generates:**
|
|
234
|
-
|
|
235
|
-
- `docs/code-standards.md`
|
|
236
|
-
- Parts of `ai-instructions.md`
|
|
237
|
-
---
|
|
238
|
-
### Phase 6: Testing Strategy
|
|
239
|
-
|
|
240
|
-
**File:** `mobile/flow-build-phase-6-testing.md`
|
|
241
|
-
**Duration:** 15-25 minutes
|
|
242
|
-
**Key Questions:**
|
|
243
|
-
|
|
244
|
-
- What unit testing framework?
|
|
245
|
-
- What integration testing approach?
|
|
246
|
-
- What E2E testing tool? (Detox, Appium, Maestro, etc.)
|
|
247
|
-
- How will you test on physical devices?
|
|
248
|
-
- What coverage targets?
|
|
249
|
-
|
|
250
|
-
**Generates:**
|
|
251
|
-
|
|
252
|
-
- `docs/testing.md`
|
|
253
|
-
- Parts of `ai-instructions.md`
|
|
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**.
|
|
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.
|
|
254
62
|
---
|
|
255
|
-
|
|
63
|
+
## 🚀 Mode Selection
|
|
256
64
|
|
|
257
|
-
**
|
|
258
|
-
**Duration:** 15-20 minutes
|
|
259
|
-
**Key Questions:**
|
|
65
|
+
**BEFORE STARTING ANY PHASE**, ask the user to select the questionnaire mode:
|
|
260
66
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
- How will you handle versioning?
|
|
264
|
-
- What code signing strategy?
|
|
265
|
-
- What beta testing approach? (TestFlight, Firebase App Distribution, etc.)
|
|
67
|
+
A) ⭐ **Interactive Mode (Recommended)**
|
|
68
|
+
• Full control, step-by-step questions. (100-130 min)
|
|
266
69
|
|
|
267
|
-
**
|
|
70
|
+
B) ⚡ **Smart Auto-Suggest Mode**
|
|
71
|
+
• AI suggests best practices, you answer 6 critical questions. (20-30 min)
|
|
268
72
|
|
|
269
|
-
|
|
270
|
-
- `specs/build-configuration.md`
|
|
271
|
-
- `specs/deployment.md`
|
|
272
|
-
- `.env.example`
|
|
73
|
+
Your choice (A/B): __
|
|
273
74
|
|
|
274
|
-
**
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
**File:** `mobile/flow-build-phase-8.md`
|
|
279
|
-
**Duration:** 10-15 minutes
|
|
280
|
-
**Key Steps:**
|
|
281
|
-
|
|
282
|
-
- Detect project state (new vs existing)
|
|
283
|
-
- Initialize framework (optional, for new projects)
|
|
284
|
-
- Generate final documentation
|
|
285
|
-
- Create master index (AGENT.md)
|
|
286
|
-
- Generate README.md with intelligent merge
|
|
287
|
-
|
|
288
|
-
**Generates:**
|
|
289
|
-
|
|
290
|
-
- `docs/platform-guides.md`
|
|
291
|
-
- `docs/navigation-guide.md`
|
|
292
|
-
- `docs/contributing.md`
|
|
293
|
-
- `AGENT.md` (master index)
|
|
294
|
-
- `README.md`
|
|
295
|
-
- Tool-specific configs (`.clauderules`, `.cursorrules`, `.github/copilot-instructions.md`)
|
|
296
|
-
---
|
|
297
|
-
## 📊 Scope-Based Question Filtering
|
|
298
|
-
|
|
299
|
-
### MVP Scope (60-80 minutes)
|
|
300
|
-
|
|
301
|
-
**Phases included:** 1, 2, 3, 4 (core only)
|
|
302
|
-
|
|
303
|
-
**What's simplified:**
|
|
304
|
-
|
|
305
|
-
- Single platform (iOS or Android)
|
|
306
|
-
- Basic navigation (Stack only)
|
|
307
|
-
- Simple state management (Context API or Provider)
|
|
308
|
-
- Basic offline support (AsyncStorage)
|
|
309
|
-
- Minimal permissions (only essential)
|
|
310
|
-
- Basic testing (unit tests only)
|
|
311
|
-
- Manual deployment
|
|
312
|
-
|
|
313
|
-
**Best for:** Prototypes, MVPs, proof of concept
|
|
314
|
-
---
|
|
315
|
-
### Production-Ready Scope (100-130 minutes)
|
|
316
|
-
|
|
317
|
-
**Phases included:** All (1-7)
|
|
318
|
-
|
|
319
|
-
**What's included:**
|
|
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:
|
|
320
78
|
|
|
321
|
-
|
|
322
|
-
-
|
|
323
|
-
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
- Automated CI/CD pipeline
|
|
328
|
-
- Store deployment configuration
|
|
79
|
+
1. **Project Name & Description** (Skip if Phase 0 detected context)
|
|
80
|
+
2. **Target Platform:** iOS, Android, or Cross-platform (iOS + Android)?
|
|
81
|
+
3. **Application Type:** E-commerce, Utility, Social, Healthcare, Fintech, Management, etc.
|
|
82
|
+
4. **Framework Foundation:** React Native, Flutter, Native Swift, Native Kotlin.
|
|
83
|
+
5. **Core Native Features:** Camera, GPS, Biometrics, Push Notifications, Bluetooth, etc.
|
|
84
|
+
6. **Offline & Data Persistence:** Full offline sync or basic local caching.
|
|
329
85
|
|
|
330
|
-
**
|
|
86
|
+
**AI Logic for Auto-Suggest:**
|
|
87
|
+
- Generate comprehensive suggestions for all phases (1-10).
|
|
88
|
+
- Use modern tools matching the framework (e.g., RN -> MMKV/Zustand).
|
|
89
|
+
- Adjust complexity based on scope (MVP vs Enterprise).
|
|
90
|
+
- Present a summary for confirmation before generating documentation.
|
|
331
91
|
---
|
|
332
|
-
### Enterprise Scope (130-160 minutes)
|
|
333
|
-
|
|
334
|
-
**Phases included:** All (1-7) with extended questions
|
|
335
|
-
|
|
336
|
-
**Additional coverage:**
|
|
337
|
-
|
|
338
|
-
- Cross-platform optimization
|
|
339
|
-
- Advanced architecture patterns (Clean Architecture, MVVM)
|
|
340
|
-
- Complex offline synchronization
|
|
341
|
-
- Advanced security (certificate pinning, obfuscation)
|
|
342
|
-
- Comprehensive accessibility (WCAG 2.1 AAA)
|
|
343
|
-
- Advanced monitoring and crash reporting
|
|
344
|
-
- Multi-tenant support
|
|
345
|
-
- A/B testing infrastructure
|
|
346
|
-
|
|
347
|
-
**Best for:** Large-scale applications, enterprise platforms, mission-critical apps
|
|
348
|
-
---
|
|
349
|
-
## 🎯 Execution Workflow
|
|
350
|
-
|
|
351
|
-
### Step 1: Scope Selection
|
|
352
|
-
|
|
353
|
-
**Before Phase 1**, ask:
|
|
354
|
-
|
|
355
|
-
```
|
|
356
|
-
---
|
|
357
|
-
🎯 Project Scope Selection
|
|
358
|
-
---
|
|
359
|
-
## 📋 Scope Selection
|
|
360
|
-
|
|
361
|
-
Before starting Phase 1, you'll select a scope level:
|
|
362
|
-
|
|
363
|
-
> 📎 **Reference:** See [prompts/shared/scope-levels.md](../shared/scope-levels.md) for detailed scope definitions (MVP, Production-Ready, Enterprise).
|
|
364
|
-
|
|
365
|
-
### A) ⭐ MVP / Prototype
|
|
366
|
-
**Focus:** Core functionality + basic tests. Best for POCs and internal tools.
|
|
367
|
-
|
|
368
|
-
### B) 🚀 Production-Ready
|
|
369
|
-
**Focus:** Production-grade with best practices. Best for SaaS and customer-facing apps.
|
|
370
92
|
|
|
371
|
-
|
|
372
|
-
**Focus:** Enterprise governance, compliance, and high scalability.
|
|
93
|
+
## 📚 Flow Overview & Modular Phases
|
|
373
94
|
|
|
374
|
-
|
|
375
|
-
|
|
95
|
+
| Phase | Description | File |
|
|
96
|
+
|-------|-------------|------|
|
|
97
|
+
| **Phase 0** | Context Discovery | `mobile/flow-build-phase-0.md` |
|
|
98
|
+
| **Phase 1** | Platform & Framework | `mobile/flow-build-phase-1.md` |
|
|
99
|
+
| **Phase 2** | Navigation & Architecture| `mobile/flow-build-phase-2.md` |
|
|
100
|
+
| **Phase 3** | State & Data Mgmt | `mobile/flow-build-phase-3.md` |
|
|
101
|
+
| **Phase 4** | Permissions & Native | `mobile/flow-build-phase-4.md` |
|
|
102
|
+
| **Phase 5** | Code Standards | `mobile/flow-build-phase-5.md` |
|
|
103
|
+
| **Phase 6** | Testing Strategy | `mobile/flow-build-phase-6.md` |
|
|
104
|
+
| **Phase 7** | Store Deployment | `mobile/flow-build-phase-7.md` |
|
|
105
|
+
| **Phase 8** | Setup & Final Docs | `mobile/flow-build-phase-8.md` |
|
|
106
|
+
| **Phase 9** | Roadmap (Optional) | `mobile/flow-build-phase-9.md` |
|
|
107
|
+
| **Phase 10** | User Stories (Optional)| `mobile/flow-build-phase-10.md` |
|
|
376
108
|
|
|
377
|
-
### Step 2: Execute Phases
|
|
378
|
-
|
|
379
|
-
Based on scope selection, execute applicable phase files in order.
|
|
380
|
-
|
|
381
|
-
### Step 3: Generate Documents
|
|
382
|
-
|
|
383
|
-
After completing all phases, generate the complete documentation set:
|
|
384
|
-
|
|
385
|
-
**Core Documents (All Scopes):**
|
|
386
|
-
|
|
387
|
-
- `AGENT.md` - Universal AI assistant configuration
|
|
388
|
-
- `ai-instructions.md` - Tech stack and development rules
|
|
389
|
-
- `project-brief.md` - Project overview and objectives
|
|
390
|
-
- `README.md` - Quick start guide
|
|
391
|
-
|
|
392
|
-
**Documentation (Production/Enterprise):**
|
|
393
|
-
|
|
394
|
-
- `docs/architecture.md` - System architecture
|
|
395
|
-
- `docs/navigation.md` - Navigation patterns
|
|
396
|
-
- `docs/state-management.md` - State management guide
|
|
397
|
-
- `docs/offline-strategy.md` - Offline and sync strategy
|
|
398
|
-
- `docs/permissions.md` - Permissions handling
|
|
399
|
-
- `docs/native-features.md` - Native features integration
|
|
400
|
-
- `docs/code-standards.md` - Code standards and conventions
|
|
401
|
-
- `docs/testing.md` - Testing strategy
|
|
402
|
-
- `docs/app-store.md` - App Store configuration
|
|
403
|
-
- `docs/contributing.md` - Contribution guidelines
|
|
404
|
-
|
|
405
|
-
**Specifications (Enterprise):**
|
|
406
|
-
|
|
407
|
-
- `specs/build-configuration.md` - Build and CI/CD configuration
|
|
408
|
-
- `specs/deployment.md` - Deployment procedures
|
|
409
|
-
- `specs/configuration.md` - Environment and configuration
|
|
410
|
-
|
|
411
|
-
### Step 4: Validation
|
|
412
|
-
|
|
413
|
-
Before finalizing, validate:
|
|
414
|
-
|
|
415
|
-
1. ✅ All placeholders filled with real data
|
|
416
|
-
2. ✅ Tech stack consistency across all documents
|
|
417
|
-
3. ✅ No contradictions between documents
|
|
418
|
-
4. ✅ Framework-specific examples match selected framework
|
|
419
|
-
5. ✅ Cross-references between documents are correct
|
|
420
|
-
6. ✅ Platform-specific considerations documented (iOS vs Android)
|
|
421
109
|
---
|
|
422
|
-
##
|
|
110
|
+
## 📋 Scope Selection (MVP / Production / Enterprise)
|
|
423
111
|
|
|
424
|
-
|
|
112
|
+
Before starting Phase 1, ask the user to select the Project Scope.
|
|
113
|
+
> 📎 **Reference:** See [shared/scope-levels.md](../shared/scope-levels.md)
|
|
425
114
|
|
|
426
|
-
```
|
|
427
|
-
"I want to switch from Redux to Zustand"
|
|
428
|
-
→ Re-execute Phase 3 only
|
|
429
|
-
→ Regenerate docs/state-management.md and parts of ai-instructions.md
|
|
430
|
-
```
|
|
431
115
|
---
|
|
432
|
-
##
|
|
433
|
-
|
|
434
|
-
The questionnaire adapts based on the framework selected in Phase 1:
|
|
435
|
-
|
|
436
|
-
**React Native:**
|
|
116
|
+
## 🔄 Documentation Sync
|
|
437
117
|
|
|
438
|
-
|
|
439
|
-
-
|
|
440
|
-
|
|
441
|
-
- Testing: Jest, React Native Testing Library, Detox
|
|
118
|
+
As your project grows, use the following to keep docs updated:
|
|
119
|
+
**Command:** `/flow-docs-sync`
|
|
120
|
+
**Logic:** Read `.ai-flow/prompts/mobile/flow-docs-sync.md`.
|
|
442
121
|
|
|
443
|
-
**Flutter:**
|
|
444
|
-
|
|
445
|
-
- State: Provider, Riverpod, Bloc, GetX
|
|
446
|
-
- Navigation: Navigator 2.0, GoRouter, AutoRoute
|
|
447
|
-
- Storage: SharedPreferences, Hive, Isar, SQLite
|
|
448
|
-
- Testing: Flutter Test, Integration Test, Maestro
|
|
449
|
-
|
|
450
|
-
**Native iOS (Swift):**
|
|
451
|
-
|
|
452
|
-
- Architecture: MVVM, VIPER, Clean Architecture
|
|
453
|
-
- Navigation: UINavigationController, Coordinator Pattern
|
|
454
|
-
- Storage: Core Data, Realm, UserDefaults
|
|
455
|
-
- Testing: XCTest, Quick/Nimble
|
|
456
|
-
|
|
457
|
-
**Native Android (Kotlin):**
|
|
458
|
-
|
|
459
|
-
- Architecture: MVVM, MVI, Clean Architecture
|
|
460
|
-
- Navigation: Navigation Component, Jetpack Compose Navigation
|
|
461
|
-
- Storage: Room, DataStore, SharedPreferences
|
|
462
|
-
- Testing: JUnit, Espresso, UI Automator
|
|
463
122
|
---
|
|
464
|
-
##
|
|
465
|
-
|
|
466
|
-
To begin the complete mobile build process:
|
|
467
|
-
|
|
468
|
-
1. Ensure you're in your project directory
|
|
469
|
-
2. Run this prompt (or individual phase files)
|
|
470
|
-
3. Answer questions thoughtfully
|
|
471
|
-
4. Review generated documentation
|
|
472
|
-
5. Iterate as needed
|
|
123
|
+
## 🎯 After Completion
|
|
473
124
|
|
|
474
|
-
|
|
125
|
+
ALWAYS present a final summary:
|
|
126
|
+
1. **Quick Summary:** 1 paragraph overview.
|
|
127
|
+
2. **Extended Report:** Key decisions by phase.
|
|
128
|
+
3. **Scaffolding:** Offer to initialize or commit changes.
|
|
475
129
|
|
|
476
|
-
```
|
|
477
|
-
.ai-flow/prompts/mobile/flow-build-phase-1-platform.md
|
|
478
|
-
```
|
|
479
|
-
|
|
480
|
-
Or if you have existing code, start with Phase 0 for automatic detection:
|
|
481
|
-
|
|
482
|
-
```
|
|
483
|
-
.ai-flow/prompts/mobile/flow-build-phase-0-context.md
|
|
484
|
-
```
|
|
485
130
|
---
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
131
|
+
_Version: 4.2 (v2.1.9) (Antigravity Optimized - Modularized & Turbo-Enabled)_
|
|
132
|
+
_Last Updated: 2025-12-21_
|
|
133
|
+
_AI Flow - Transform your mobile idea into reality_
|