ai-flow-dev 1.0.1
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/LICENSE +21 -0
- package/README.md +408 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +791 -0
- package/dist/cli.js.map +1 -0
- package/dist/fs-utils.d.ts +2 -0
- package/dist/fs-utils.d.ts.map +1 -0
- package/dist/fs-utils.js +46 -0
- package/dist/fs-utils.js.map +1 -0
- package/package.json +71 -0
- package/prompts/backend/flow-dev-feature.md +1318 -0
- package/prompts/backend/flow-dev-fix.md +903 -0
- package/prompts/backend/flow-dev-refactor.md +715 -0
- package/prompts/backend/flow-dev-review.md +401 -0
- package/prompts/backend/flow-dev-work.md +1129 -0
- package/prompts/backend/flow-docs-gen-phase-0.md +1840 -0
- package/prompts/backend/flow-docs-gen-phase-1.md +435 -0
- package/prompts/backend/flow-docs-gen-phase-2.md +460 -0
- package/prompts/backend/flow-docs-gen-phase-3.md +684 -0
- package/prompts/backend/flow-docs-gen-phase-4.md +516 -0
- package/prompts/backend/flow-docs-gen-phase-5.md +637 -0
- package/prompts/backend/flow-docs-gen-phase-6.md +465 -0
- package/prompts/backend/flow-docs-gen-phase-7.md +1207 -0
- package/prompts/backend/flow-docs-gen.md +820 -0
- package/prompts/backend/flow-docs-sync.md +526 -0
- package/prompts/backend/flow-project-init.md +248 -0
- package/prompts/backend/flow-project-roadmap.md +1159 -0
- package/prompts/frontend/flow-docs-gen-phase-0.md +494 -0
- package/prompts/frontend/flow-docs-gen-phase-1.md +449 -0
- package/prompts/frontend/flow-docs-gen-phase-2.md +983 -0
- package/prompts/frontend/flow-docs-gen-phase-3.md +685 -0
- package/prompts/frontend/flow-docs-gen-phase-4.md +480 -0
- package/prompts/frontend/flow-docs-gen-phase-5.md +483 -0
- package/prompts/frontend/flow-docs-gen-phase-6.md +570 -0
- package/prompts/frontend/flow-docs-gen-phase-7.md +582 -0
- package/prompts/frontend/flow-docs-gen.md +413 -0
- package/prompts/frontend/flow-docs-sync.md +561 -0
- package/prompts/mobile/flow-docs-gen-phase-0.md +387 -0
- package/prompts/mobile/flow-docs-gen-phase-1.md +530 -0
- package/prompts/mobile/flow-docs-gen-phase-2.md +584 -0
- package/prompts/mobile/flow-docs-gen-phase-3.md +659 -0
- package/prompts/mobile/flow-docs-gen-phase-4.md +363 -0
- package/prompts/mobile/flow-docs-gen-phase-5.md +369 -0
- package/prompts/mobile/flow-docs-gen-phase-6.md +490 -0
- package/prompts/mobile/flow-docs-gen-phase-7.md +407 -0
- package/prompts/mobile/flow-docs-gen.md +430 -0
- package/prompts/mobile/flow-docs-sync.md +634 -0
- package/templates/backend/.clauderules.template +111 -0
- package/templates/backend/.cursorrules.template +102 -0
- package/templates/backend/.env.example.template +122 -0
- package/templates/backend/README.template.md +200 -0
- package/templates/backend/ai-instructions.template.md +354 -0
- package/templates/backend/copilot-instructions.template.md +160 -0
- package/templates/backend/docs/api.template.md +251 -0
- package/templates/backend/docs/architecture.template.md +612 -0
- package/templates/backend/docs/business-flows.template.md +109 -0
- package/templates/backend/docs/code-standards.template.md +828 -0
- package/templates/backend/docs/contributing.template.md +163 -0
- package/templates/backend/docs/data-model.template.md +416 -0
- package/templates/backend/docs/operations.template.md +591 -0
- package/templates/backend/docs/testing.template.md +762 -0
- package/templates/backend/project-brief.template.md +176 -0
- package/templates/backend/specs/configuration.template.md +133 -0
- package/templates/backend/specs/security.template.md +422 -0
- package/templates/frontend/README.template.md +121 -0
- package/templates/frontend/ai-instructions.template.md +368 -0
- package/templates/frontend/docs/api-integration.template.md +390 -0
- package/templates/frontend/docs/components.template.md +567 -0
- package/templates/frontend/docs/error-handling.template.md +385 -0
- package/templates/frontend/docs/operations.template.md +123 -0
- package/templates/frontend/docs/performance.template.md +140 -0
- package/templates/frontend/docs/pwa.template.md +135 -0
- package/templates/frontend/docs/state-management.template.md +394 -0
- package/templates/frontend/docs/styling.template.md +779 -0
- package/templates/frontend/docs/testing.template.md +736 -0
- package/templates/frontend/project-brief.template.md +55 -0
- package/templates/frontend/specs/accessibility.template.md +111 -0
- package/templates/frontend/specs/configuration.template.md +520 -0
- package/templates/frontend/specs/security.template.md +197 -0
- package/templates/fullstack/README.template.md +282 -0
- package/templates/fullstack/ai-instructions.template.md +487 -0
- package/templates/fullstack/project-brief.template.md +197 -0
- package/templates/fullstack/specs/configuration.template.md +380 -0
- package/templates/mobile/AGENT.template.md +251 -0
- package/templates/mobile/README.template.md +195 -0
- package/templates/mobile/ai-instructions.template.md +221 -0
- package/templates/mobile/docs/app-store.template.md +163 -0
- package/templates/mobile/docs/architecture.template.md +100 -0
- package/templates/mobile/docs/native-features.template.md +137 -0
- package/templates/mobile/docs/navigation.template.md +81 -0
- package/templates/mobile/docs/offline-strategy.template.md +90 -0
- package/templates/mobile/docs/permissions.template.md +70 -0
- package/templates/mobile/docs/state-management.template.md +116 -0
- package/templates/mobile/docs/testing.template.md +146 -0
- package/templates/mobile/project-brief.template.md +97 -0
- package/templates/mobile/specs/build-configuration.template.md +116 -0
- package/templates/mobile/specs/deployment.template.md +114 -0
- package/templates/shared/AGENT.template.md +252 -0
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
# Phase 1: Platform & Framework Selection
|
|
2
|
+
|
|
3
|
+
**Duration:** 20-25 minutes
|
|
4
|
+
**Questions:** ~15 questions
|
|
5
|
+
**Output:** project-brief.md, parts of AGENT.md, parts of ai-instructions.md
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🎯 Objective
|
|
10
|
+
|
|
11
|
+
Determine the **technical foundation** for your mobile application:
|
|
12
|
+
|
|
13
|
+
1. What platforms will you target?
|
|
14
|
+
2. What framework will you use?
|
|
15
|
+
3. What minimum OS versions will you support?
|
|
16
|
+
4. What development tools and languages?
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 📋 Questions
|
|
21
|
+
|
|
22
|
+
### Question 1.1: Target Platforms
|
|
23
|
+
|
|
24
|
+
**What platforms will your app support?**
|
|
25
|
+
|
|
26
|
+
A) ⭐ **iOS Only**
|
|
27
|
+
- Apple App Store only
|
|
28
|
+
- Swift or React Native iOS
|
|
29
|
+
- Best for: Apple-focused products, faster initial launch
|
|
30
|
+
|
|
31
|
+
B) ⭐ **Android Only**
|
|
32
|
+
- Google Play Store only
|
|
33
|
+
- Kotlin or React Native Android
|
|
34
|
+
- Best for: Android-focused products, wider market reach
|
|
35
|
+
|
|
36
|
+
C) 🔥 **iOS + Android (Cross-Platform)** (Recommended)
|
|
37
|
+
- Both App Store and Play Store
|
|
38
|
+
- React Native, Flutter, or Ionic
|
|
39
|
+
- Best for: Maximum reach, shared codebase
|
|
40
|
+
|
|
41
|
+
D) **iOS + Android + Web (Universal)**
|
|
42
|
+
- Mobile apps + web version
|
|
43
|
+
- React Native Web, Flutter Web, or PWA
|
|
44
|
+
- Best for: Multi-platform presence
|
|
45
|
+
|
|
46
|
+
**Your answer:**
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### Question 1.2: Mobile Framework
|
|
51
|
+
|
|
52
|
+
**What framework will you use to build your mobile app?**
|
|
53
|
+
|
|
54
|
+
**If iOS Only:**
|
|
55
|
+
- A) ⭐ **Native iOS (Swift)** - Best performance, full native features
|
|
56
|
+
- B) **Native iOS (Objective-C)** - Legacy support
|
|
57
|
+
- C) **React Native** - Cross-platform, JavaScript
|
|
58
|
+
- D) **Flutter** - Cross-platform, Dart
|
|
59
|
+
|
|
60
|
+
**If Android Only:**
|
|
61
|
+
- A) ⭐ **Native Android (Kotlin)** - Best performance, full native features
|
|
62
|
+
- B) **Native Android (Java)** - Legacy support
|
|
63
|
+
- C) **React Native** - Cross-platform, JavaScript
|
|
64
|
+
- D) **Flutter** - Cross-platform, Dart
|
|
65
|
+
|
|
66
|
+
**If Cross-Platform:**
|
|
67
|
+
- A) ⭐ **React Native** (Recommended)
|
|
68
|
+
- JavaScript/TypeScript
|
|
69
|
+
- Large ecosystem
|
|
70
|
+
- Hot reload
|
|
71
|
+
- Best for: Teams familiar with React
|
|
72
|
+
|
|
73
|
+
- B) 🔥 **Flutter** (Popular)
|
|
74
|
+
- Dart language
|
|
75
|
+
- Excellent performance
|
|
76
|
+
- Beautiful UI out of the box
|
|
77
|
+
- Best for: Teams wanting native-like performance
|
|
78
|
+
|
|
79
|
+
- C) **Ionic**
|
|
80
|
+
- Web technologies (HTML/CSS/JS)
|
|
81
|
+
- Capacitor for native features
|
|
82
|
+
- Best for: Web developers transitioning to mobile
|
|
83
|
+
|
|
84
|
+
- D) **Xamarin / .NET MAUI**
|
|
85
|
+
- C# language
|
|
86
|
+
- Microsoft ecosystem
|
|
87
|
+
- Best for: .NET teams
|
|
88
|
+
|
|
89
|
+
**Your answer:**
|
|
90
|
+
|
|
91
|
+
**If React Native selected, ask:**
|
|
92
|
+
- What React Native version? (Latest stable recommended)
|
|
93
|
+
- Will you use Expo? (Y/n)
|
|
94
|
+
- Expo: Faster development, managed workflow
|
|
95
|
+
- Bare React Native: More control, custom native code
|
|
96
|
+
|
|
97
|
+
**If Flutter selected, ask:**
|
|
98
|
+
- What Flutter version? (Latest stable recommended)
|
|
99
|
+
- Will you use Flutter for Web/Desktop too? (Y/n)
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### Question 1.3: Minimum OS Versions
|
|
104
|
+
|
|
105
|
+
**What minimum OS versions will you support?**
|
|
106
|
+
|
|
107
|
+
**For iOS:**
|
|
108
|
+
- A) ⭐ **iOS 15+** (Recommended)
|
|
109
|
+
- Covers ~95% of active devices
|
|
110
|
+
- Modern APIs available
|
|
111
|
+
- Best for: Most apps
|
|
112
|
+
|
|
113
|
+
- B) **iOS 14+**
|
|
114
|
+
- Covers ~98% of active devices
|
|
115
|
+
- Some older APIs needed
|
|
116
|
+
- Best for: Maximum compatibility
|
|
117
|
+
|
|
118
|
+
- C) **iOS 16+**
|
|
119
|
+
- Covers ~85% of active devices
|
|
120
|
+
- Latest features only
|
|
121
|
+
- Best for: New apps, modern features
|
|
122
|
+
|
|
123
|
+
- D) **iOS 17+**
|
|
124
|
+
- Covers ~60% of active devices
|
|
125
|
+
- Cutting-edge features
|
|
126
|
+
- Best for: Premium apps, latest tech
|
|
127
|
+
|
|
128
|
+
**For Android:**
|
|
129
|
+
- A) ⭐ **Android 8.0 (API 26)+** (Recommended)
|
|
130
|
+
- Covers ~95% of active devices
|
|
131
|
+
- Modern APIs available
|
|
132
|
+
- Best for: Most apps
|
|
133
|
+
|
|
134
|
+
- B) **Android 7.0 (API 24)+**
|
|
135
|
+
- Covers ~98% of active devices
|
|
136
|
+
- Some older APIs needed
|
|
137
|
+
- Best for: Maximum compatibility
|
|
138
|
+
|
|
139
|
+
- C) **Android 10 (API 29)+**
|
|
140
|
+
- Covers ~85% of active devices
|
|
141
|
+
- Latest features only
|
|
142
|
+
- Best for: New apps, modern features
|
|
143
|
+
|
|
144
|
+
- D) **Android 12 (API 31)+**
|
|
145
|
+
- Covers ~70% of active devices
|
|
146
|
+
- Cutting-edge features
|
|
147
|
+
- Best for: Premium apps, latest tech
|
|
148
|
+
|
|
149
|
+
**Your answer:**
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
### Question 1.4: Programming Language
|
|
154
|
+
|
|
155
|
+
**What programming language will you use?**
|
|
156
|
+
|
|
157
|
+
**If React Native:**
|
|
158
|
+
- A) ⭐ **TypeScript** (Recommended)
|
|
159
|
+
- Type safety
|
|
160
|
+
- Better IDE support
|
|
161
|
+
- Industry standard
|
|
162
|
+
|
|
163
|
+
- B) **JavaScript**
|
|
164
|
+
- Faster initial development
|
|
165
|
+
- Less boilerplate
|
|
166
|
+
- Best for: Small projects, rapid prototyping
|
|
167
|
+
|
|
168
|
+
**If Flutter:**
|
|
169
|
+
- **Dart** (Required - Flutter uses Dart)
|
|
170
|
+
|
|
171
|
+
**If Native iOS:**
|
|
172
|
+
- A) ⭐ **Swift** (Recommended)
|
|
173
|
+
- Modern, safe language
|
|
174
|
+
- Apple's preferred language
|
|
175
|
+
|
|
176
|
+
- B) **Objective-C**
|
|
177
|
+
- Legacy support
|
|
178
|
+
- Best for: Maintaining existing apps
|
|
179
|
+
|
|
180
|
+
**If Native Android:**
|
|
181
|
+
- A) ⭐ **Kotlin** (Recommended)
|
|
182
|
+
- Modern, concise language
|
|
183
|
+
- Google's preferred language
|
|
184
|
+
|
|
185
|
+
- B) **Java**
|
|
186
|
+
- Legacy support
|
|
187
|
+
- Best for: Maintaining existing apps
|
|
188
|
+
|
|
189
|
+
**Your answer:**
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
### Question 1.5: Development Environment
|
|
194
|
+
|
|
195
|
+
**What development tools will you use?**
|
|
196
|
+
|
|
197
|
+
**For iOS Development:**
|
|
198
|
+
- A) ⭐ **Xcode** (Required for iOS)
|
|
199
|
+
- Version: Latest stable (15.x)
|
|
200
|
+
- Includes iOS Simulator
|
|
201
|
+
- Interface Builder, Instruments
|
|
202
|
+
|
|
203
|
+
**For Android Development:**
|
|
204
|
+
- A) ⭐ **Android Studio** (Required for Android)
|
|
205
|
+
- Version: Latest stable
|
|
206
|
+
- Includes Android Emulator
|
|
207
|
+
- Gradle build system
|
|
208
|
+
|
|
209
|
+
**For Cross-Platform:**
|
|
210
|
+
- **VS Code** or **Android Studio** / **Xcode** (for native modules)
|
|
211
|
+
|
|
212
|
+
**Additional Tools:**
|
|
213
|
+
- **Flipper** - Debugging tool (React Native)
|
|
214
|
+
- **React Native Debugger** - Debugging (React Native)
|
|
215
|
+
- **Dart DevTools** - Debugging (Flutter)
|
|
216
|
+
|
|
217
|
+
**Your answer:**
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
### Question 1.6: Package Manager
|
|
222
|
+
|
|
223
|
+
**What package manager will you use?**
|
|
224
|
+
|
|
225
|
+
**If React Native:**
|
|
226
|
+
- A) ⭐ **npm** (Recommended)
|
|
227
|
+
- B) **yarn**
|
|
228
|
+
- C) **pnpm**
|
|
229
|
+
|
|
230
|
+
**If Flutter:**
|
|
231
|
+
- **pub** (Flutter's built-in package manager)
|
|
232
|
+
|
|
233
|
+
**If Native iOS:**
|
|
234
|
+
- **CocoaPods** or **Swift Package Manager**
|
|
235
|
+
|
|
236
|
+
**If Native Android:**
|
|
237
|
+
- **Gradle** (built-in)
|
|
238
|
+
|
|
239
|
+
**Your answer:**
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
### Question 1.7: Build Tools & CI/CD
|
|
244
|
+
|
|
245
|
+
**What build and deployment tools will you use?**
|
|
246
|
+
|
|
247
|
+
A) ⭐ **Fastlane** (Recommended for iOS/Android)
|
|
248
|
+
- Automates builds, screenshots, deployment
|
|
249
|
+
- Works with React Native, Flutter, Native
|
|
250
|
+
- Best for: Most projects
|
|
251
|
+
|
|
252
|
+
B) **Codemagic**
|
|
253
|
+
- Cloud-based CI/CD for Flutter/React Native
|
|
254
|
+
- Easy setup, good for small teams
|
|
255
|
+
|
|
256
|
+
C) **GitHub Actions**
|
|
257
|
+
- Flexible, free for public repos
|
|
258
|
+
- Custom workflows
|
|
259
|
+
|
|
260
|
+
D) **Bitrise**
|
|
261
|
+
- Mobile-focused CI/CD
|
|
262
|
+
- Good for complex workflows
|
|
263
|
+
|
|
264
|
+
E) **Manual Builds**
|
|
265
|
+
- Build locally, upload manually
|
|
266
|
+
- Best for: Learning, small projects
|
|
267
|
+
|
|
268
|
+
**Your answer:**
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
### Question 1.8: Code Signing Strategy
|
|
273
|
+
|
|
274
|
+
**How will you handle code signing?**
|
|
275
|
+
|
|
276
|
+
**For iOS:**
|
|
277
|
+
- A) ⭐ **Automatic Signing** (Recommended)
|
|
278
|
+
- Xcode manages certificates
|
|
279
|
+
- Easier for most developers
|
|
280
|
+
|
|
281
|
+
- B) **Manual Signing**
|
|
282
|
+
- More control
|
|
283
|
+
- Required for enterprise apps
|
|
284
|
+
|
|
285
|
+
**For Android:**
|
|
286
|
+
- A) ⭐ **Automatic Signing** (Recommended)
|
|
287
|
+
- Gradle manages keystores
|
|
288
|
+
- Easier for most developers
|
|
289
|
+
|
|
290
|
+
- B) **Manual Signing**
|
|
291
|
+
- More control
|
|
292
|
+
- Required for some enterprise scenarios
|
|
293
|
+
|
|
294
|
+
**Your answer:**
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
### Question 1.9: App Store Accounts
|
|
299
|
+
|
|
300
|
+
**Do you have App Store accounts set up?**
|
|
301
|
+
|
|
302
|
+
**For iOS:**
|
|
303
|
+
- A) ✅ **Yes, Apple Developer Account** ($99/year)
|
|
304
|
+
- B) ❌ **No, will set up later**
|
|
305
|
+
- C) **Enterprise Account** ($299/year)
|
|
306
|
+
|
|
307
|
+
**For Android:**
|
|
308
|
+
- A) ✅ **Yes, Google Play Developer Account** ($25 one-time)
|
|
309
|
+
- B) ❌ **No, will set up later**
|
|
310
|
+
|
|
311
|
+
**Your answer:**
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
### Question 1.10: Beta Testing Strategy
|
|
316
|
+
|
|
317
|
+
**How will you handle beta testing?**
|
|
318
|
+
|
|
319
|
+
A) ⭐ **TestFlight (iOS) + Firebase App Distribution (Android)**
|
|
320
|
+
- Free, easy to use
|
|
321
|
+
- Best for: Most projects
|
|
322
|
+
|
|
323
|
+
B) **TestFlight (iOS) + Google Play Internal Testing (Android)**
|
|
324
|
+
- Official store channels
|
|
325
|
+
- Best for: Store-focused testing
|
|
326
|
+
|
|
327
|
+
C) **HockeyApp / App Center**
|
|
328
|
+
- Microsoft's solution
|
|
329
|
+
- Good for enterprise
|
|
330
|
+
|
|
331
|
+
D) **No Beta Testing**
|
|
332
|
+
- Direct to production
|
|
333
|
+
- Best for: MVPs, internal apps
|
|
334
|
+
|
|
335
|
+
**Your answer:**
|
|
336
|
+
|
|
337
|
+
---
|
|
338
|
+
|
|
339
|
+
### Question 1.11: Analytics & Crash Reporting
|
|
340
|
+
|
|
341
|
+
**What analytics and crash reporting will you use?**
|
|
342
|
+
|
|
343
|
+
A) ⭐ **Firebase Analytics + Crashlytics** (Recommended)
|
|
344
|
+
- Free, comprehensive
|
|
345
|
+
- Works with iOS and Android
|
|
346
|
+
- Best for: Most projects
|
|
347
|
+
|
|
348
|
+
B) **Sentry**
|
|
349
|
+
- Excellent error tracking
|
|
350
|
+
- Good for: Production apps
|
|
351
|
+
|
|
352
|
+
C) **Mixpanel / Amplitude**
|
|
353
|
+
- Advanced analytics
|
|
354
|
+
- Best for: Product analytics focus
|
|
355
|
+
|
|
356
|
+
D) **No Analytics**
|
|
357
|
+
- Privacy-focused
|
|
358
|
+
- Best for: Privacy-critical apps
|
|
359
|
+
|
|
360
|
+
**Your answer:**
|
|
361
|
+
|
|
362
|
+
---
|
|
363
|
+
|
|
364
|
+
### Question 1.12: UI/UX Framework
|
|
365
|
+
|
|
366
|
+
**What UI/UX framework or design system will you use?**
|
|
367
|
+
|
|
368
|
+
**If React Native:**
|
|
369
|
+
- A) ⭐ **React Native Paper** (Material Design)
|
|
370
|
+
- Material Design components
|
|
371
|
+
- Best for: Android-first apps
|
|
372
|
+
- B) **React Native Elements**
|
|
373
|
+
- Cross-platform components
|
|
374
|
+
- Best for: Customizable UI
|
|
375
|
+
- C) **NativeBase**
|
|
376
|
+
- Component library
|
|
377
|
+
- Best for: Rapid development
|
|
378
|
+
- D) **Custom UI Components**
|
|
379
|
+
- Build your own components
|
|
380
|
+
- Best for: Brand-specific design
|
|
381
|
+
|
|
382
|
+
**If Flutter:**
|
|
383
|
+
- A) ⭐ **Material Design 3** (Default)
|
|
384
|
+
- Google's Material Design
|
|
385
|
+
- Best for: Most apps
|
|
386
|
+
- B) **Cupertino Design**
|
|
387
|
+
- iOS-style components
|
|
388
|
+
- Best for: iOS-first apps
|
|
389
|
+
- C) **Custom Theme**
|
|
390
|
+
- Custom design system
|
|
391
|
+
- Best for: Brand-specific design
|
|
392
|
+
|
|
393
|
+
**If Native iOS:**
|
|
394
|
+
- A) ⭐ **UIKit** (Standard)
|
|
395
|
+
- B) **SwiftUI** (Modern)
|
|
396
|
+
|
|
397
|
+
**If Native Android:**
|
|
398
|
+
- A) ⭐ **Material Design Components**
|
|
399
|
+
- B) **Jetpack Compose**
|
|
400
|
+
|
|
401
|
+
**Your answer:**
|
|
402
|
+
|
|
403
|
+
**If cross-platform, ask:**
|
|
404
|
+
- Will you use platform-specific UI? (iOS uses Cupertino, Android uses Material)
|
|
405
|
+
- Or unified design across platforms?
|
|
406
|
+
|
|
407
|
+
---
|
|
408
|
+
|
|
409
|
+
### Question 1.13: Theme & Dark Mode
|
|
410
|
+
|
|
411
|
+
**Will your app support dark mode?**
|
|
412
|
+
|
|
413
|
+
A) ⭐ **Yes - System Theme** (Recommended)
|
|
414
|
+
- Follows system dark/light mode
|
|
415
|
+
- Best for: Most apps
|
|
416
|
+
|
|
417
|
+
B) **Yes - Manual Toggle**
|
|
418
|
+
- User can toggle dark/light mode
|
|
419
|
+
- Best for: Apps with theme customization
|
|
420
|
+
|
|
421
|
+
C) **No Dark Mode**
|
|
422
|
+
- Light mode only
|
|
423
|
+
- Best for: Simple apps
|
|
424
|
+
|
|
425
|
+
**Your answer:**
|
|
426
|
+
|
|
427
|
+
---
|
|
428
|
+
|
|
429
|
+
### Question 1.14: Internationalization (i18n)
|
|
430
|
+
|
|
431
|
+
**Will your app support multiple languages?**
|
|
432
|
+
|
|
433
|
+
A) ⭐ **Yes - Multiple Languages** (Recommended)
|
|
434
|
+
- Support 2+ languages
|
|
435
|
+
- Best for: Global apps
|
|
436
|
+
|
|
437
|
+
B) **Yes - English Only (for now)**
|
|
438
|
+
- Single language, but i18n-ready
|
|
439
|
+
- Best for: MVPs planning expansion
|
|
440
|
+
|
|
441
|
+
C) **No Internationalization**
|
|
442
|
+
- Single language only
|
|
443
|
+
- Best for: Local apps
|
|
444
|
+
|
|
445
|
+
**Your answer:**
|
|
446
|
+
|
|
447
|
+
**If multiple languages selected, ask:**
|
|
448
|
+
- What i18n library?
|
|
449
|
+
- React Native: react-i18next, react-native-localize
|
|
450
|
+
- Flutter: intl, easy_localization
|
|
451
|
+
- Native: NSLocalizedString (iOS), Resources (Android)
|
|
452
|
+
|
|
453
|
+
---
|
|
454
|
+
|
|
455
|
+
### Question 1.15: Image & Asset Management
|
|
456
|
+
|
|
457
|
+
**How will you handle images and assets?**
|
|
458
|
+
|
|
459
|
+
A) ⭐ **Local Assets + Remote Images** (Recommended)
|
|
460
|
+
- Local assets for icons/logos
|
|
461
|
+
- Remote images for content
|
|
462
|
+
- Best for: Most apps
|
|
463
|
+
|
|
464
|
+
B) **All Local Assets**
|
|
465
|
+
- All images bundled with app
|
|
466
|
+
- Best for: Small apps, offline-first
|
|
467
|
+
|
|
468
|
+
C) **All Remote Images**
|
|
469
|
+
- All images from CDN/server
|
|
470
|
+
- Best for: Content-heavy apps
|
|
471
|
+
|
|
472
|
+
**Your answer:**
|
|
473
|
+
|
|
474
|
+
**If remote images selected, ask:**
|
|
475
|
+
- What image optimization library?
|
|
476
|
+
- React Native: react-native-fast-image, react-native-image-caching
|
|
477
|
+
- Flutter: cached_network_image
|
|
478
|
+
- Native: SDWebImage (iOS), Glide (Android)
|
|
479
|
+
|
|
480
|
+
---
|
|
481
|
+
|
|
482
|
+
## ✅ Phase 1 Completion
|
|
483
|
+
|
|
484
|
+
After answering all questions, summarize:
|
|
485
|
+
|
|
486
|
+
```
|
|
487
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
488
|
+
✅ Phase 1 Complete: Platform & Framework Selection
|
|
489
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
490
|
+
|
|
491
|
+
Selected Stack:
|
|
492
|
+
- Platforms: iOS + Android
|
|
493
|
+
- Framework: React Native 0.72.0
|
|
494
|
+
- Language: TypeScript
|
|
495
|
+
- Minimum iOS: 15.0+
|
|
496
|
+
- Minimum Android: API 26 (Android 8.0)+
|
|
497
|
+
- Package Manager: npm
|
|
498
|
+
- Build Tools: Fastlane
|
|
499
|
+
- Analytics: Firebase Analytics + Crashlytics
|
|
500
|
+
- UI Framework: React Native Paper
|
|
501
|
+
- Dark Mode: System Theme
|
|
502
|
+
- Internationalization: Multiple Languages (react-i18next)
|
|
503
|
+
- Image Management: Local Assets + Remote Images
|
|
504
|
+
|
|
505
|
+
Proceed to Phase 2 (Navigation & Architecture)? (Y/n)
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
---
|
|
509
|
+
|
|
510
|
+
## 📝 Generated Documents
|
|
511
|
+
|
|
512
|
+
After Phase 1, generate/update:
|
|
513
|
+
|
|
514
|
+
- `project-brief.md` - Add platform and framework information
|
|
515
|
+
- `AGENT.md` - Update technical context section
|
|
516
|
+
- `ai-instructions.md` - Add framework-specific rules and setup
|
|
517
|
+
|
|
518
|
+
---
|
|
519
|
+
|
|
520
|
+
**Next Phase:** Phase 2 - Navigation & Architecture
|
|
521
|
+
|
|
522
|
+
Read: `.ai-flow/prompts/mobile/flow-docs-gen-phase-2-navigation.md`
|
|
523
|
+
|
|
524
|
+
---
|
|
525
|
+
|
|
526
|
+
**Last Updated:** 2025-01-XX
|
|
527
|
+
|
|
528
|
+
**Version:** 1.4.0
|
|
529
|
+
|
|
530
|
+
|