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.
Files changed (99) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +408 -0
  3. package/dist/cli.d.ts +3 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +791 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/fs-utils.d.ts +2 -0
  8. package/dist/fs-utils.d.ts.map +1 -0
  9. package/dist/fs-utils.js +46 -0
  10. package/dist/fs-utils.js.map +1 -0
  11. package/package.json +71 -0
  12. package/prompts/backend/flow-dev-feature.md +1318 -0
  13. package/prompts/backend/flow-dev-fix.md +903 -0
  14. package/prompts/backend/flow-dev-refactor.md +715 -0
  15. package/prompts/backend/flow-dev-review.md +401 -0
  16. package/prompts/backend/flow-dev-work.md +1129 -0
  17. package/prompts/backend/flow-docs-gen-phase-0.md +1840 -0
  18. package/prompts/backend/flow-docs-gen-phase-1.md +435 -0
  19. package/prompts/backend/flow-docs-gen-phase-2.md +460 -0
  20. package/prompts/backend/flow-docs-gen-phase-3.md +684 -0
  21. package/prompts/backend/flow-docs-gen-phase-4.md +516 -0
  22. package/prompts/backend/flow-docs-gen-phase-5.md +637 -0
  23. package/prompts/backend/flow-docs-gen-phase-6.md +465 -0
  24. package/prompts/backend/flow-docs-gen-phase-7.md +1207 -0
  25. package/prompts/backend/flow-docs-gen.md +820 -0
  26. package/prompts/backend/flow-docs-sync.md +526 -0
  27. package/prompts/backend/flow-project-init.md +248 -0
  28. package/prompts/backend/flow-project-roadmap.md +1159 -0
  29. package/prompts/frontend/flow-docs-gen-phase-0.md +494 -0
  30. package/prompts/frontend/flow-docs-gen-phase-1.md +449 -0
  31. package/prompts/frontend/flow-docs-gen-phase-2.md +983 -0
  32. package/prompts/frontend/flow-docs-gen-phase-3.md +685 -0
  33. package/prompts/frontend/flow-docs-gen-phase-4.md +480 -0
  34. package/prompts/frontend/flow-docs-gen-phase-5.md +483 -0
  35. package/prompts/frontend/flow-docs-gen-phase-6.md +570 -0
  36. package/prompts/frontend/flow-docs-gen-phase-7.md +582 -0
  37. package/prompts/frontend/flow-docs-gen.md +413 -0
  38. package/prompts/frontend/flow-docs-sync.md +561 -0
  39. package/prompts/mobile/flow-docs-gen-phase-0.md +387 -0
  40. package/prompts/mobile/flow-docs-gen-phase-1.md +530 -0
  41. package/prompts/mobile/flow-docs-gen-phase-2.md +584 -0
  42. package/prompts/mobile/flow-docs-gen-phase-3.md +659 -0
  43. package/prompts/mobile/flow-docs-gen-phase-4.md +363 -0
  44. package/prompts/mobile/flow-docs-gen-phase-5.md +369 -0
  45. package/prompts/mobile/flow-docs-gen-phase-6.md +490 -0
  46. package/prompts/mobile/flow-docs-gen-phase-7.md +407 -0
  47. package/prompts/mobile/flow-docs-gen.md +430 -0
  48. package/prompts/mobile/flow-docs-sync.md +634 -0
  49. package/templates/backend/.clauderules.template +111 -0
  50. package/templates/backend/.cursorrules.template +102 -0
  51. package/templates/backend/.env.example.template +122 -0
  52. package/templates/backend/README.template.md +200 -0
  53. package/templates/backend/ai-instructions.template.md +354 -0
  54. package/templates/backend/copilot-instructions.template.md +160 -0
  55. package/templates/backend/docs/api.template.md +251 -0
  56. package/templates/backend/docs/architecture.template.md +612 -0
  57. package/templates/backend/docs/business-flows.template.md +109 -0
  58. package/templates/backend/docs/code-standards.template.md +828 -0
  59. package/templates/backend/docs/contributing.template.md +163 -0
  60. package/templates/backend/docs/data-model.template.md +416 -0
  61. package/templates/backend/docs/operations.template.md +591 -0
  62. package/templates/backend/docs/testing.template.md +762 -0
  63. package/templates/backend/project-brief.template.md +176 -0
  64. package/templates/backend/specs/configuration.template.md +133 -0
  65. package/templates/backend/specs/security.template.md +422 -0
  66. package/templates/frontend/README.template.md +121 -0
  67. package/templates/frontend/ai-instructions.template.md +368 -0
  68. package/templates/frontend/docs/api-integration.template.md +390 -0
  69. package/templates/frontend/docs/components.template.md +567 -0
  70. package/templates/frontend/docs/error-handling.template.md +385 -0
  71. package/templates/frontend/docs/operations.template.md +123 -0
  72. package/templates/frontend/docs/performance.template.md +140 -0
  73. package/templates/frontend/docs/pwa.template.md +135 -0
  74. package/templates/frontend/docs/state-management.template.md +394 -0
  75. package/templates/frontend/docs/styling.template.md +779 -0
  76. package/templates/frontend/docs/testing.template.md +736 -0
  77. package/templates/frontend/project-brief.template.md +55 -0
  78. package/templates/frontend/specs/accessibility.template.md +111 -0
  79. package/templates/frontend/specs/configuration.template.md +520 -0
  80. package/templates/frontend/specs/security.template.md +197 -0
  81. package/templates/fullstack/README.template.md +282 -0
  82. package/templates/fullstack/ai-instructions.template.md +487 -0
  83. package/templates/fullstack/project-brief.template.md +197 -0
  84. package/templates/fullstack/specs/configuration.template.md +380 -0
  85. package/templates/mobile/AGENT.template.md +251 -0
  86. package/templates/mobile/README.template.md +195 -0
  87. package/templates/mobile/ai-instructions.template.md +221 -0
  88. package/templates/mobile/docs/app-store.template.md +163 -0
  89. package/templates/mobile/docs/architecture.template.md +100 -0
  90. package/templates/mobile/docs/native-features.template.md +137 -0
  91. package/templates/mobile/docs/navigation.template.md +81 -0
  92. package/templates/mobile/docs/offline-strategy.template.md +90 -0
  93. package/templates/mobile/docs/permissions.template.md +70 -0
  94. package/templates/mobile/docs/state-management.template.md +116 -0
  95. package/templates/mobile/docs/testing.template.md +146 -0
  96. package/templates/mobile/project-brief.template.md +97 -0
  97. package/templates/mobile/specs/build-configuration.template.md +116 -0
  98. package/templates/mobile/specs/deployment.template.md +114 -0
  99. package/templates/shared/AGENT.template.md +252 -0
@@ -0,0 +1,407 @@
1
+ # Phase 7: Store Deployment
2
+
3
+ **Duration:** 15-20 minutes
4
+ **Questions:** ~12 questions
5
+ **Output:** docs/app-store.md, specs/build-configuration.md, specs/deployment.md, parts of ai-instructions.md
6
+
7
+ ---
8
+
9
+ ## 🎯 Objective
10
+
11
+ Define your app store deployment strategy:
12
+
13
+ 1. Which app stores will you publish to?
14
+ 2. What CI/CD pipeline will you use?
15
+ 3. How will you handle versioning?
16
+ 4. What code signing strategy?
17
+ 5. What beta testing approach?
18
+
19
+ ---
20
+
21
+ ## 📋 Questions
22
+
23
+ ### Question 7.1: Target App Stores
24
+
25
+ **Which app stores will you publish to?**
26
+
27
+ A) ⭐ **Apple App Store (iOS)** (Required for iOS)
28
+ - Requires: Apple Developer Account ($99/year)
29
+ - Review process: 1-3 days typically
30
+ - Best for: iOS apps
31
+
32
+ B) ⭐ **Google Play Store (Android)** (Required for Android)
33
+ - Requires: Google Play Developer Account ($25 one-time)
34
+ - Review process: Usually instant, can take hours
35
+ - Best for: Android apps
36
+
37
+ C) 🔥 **Both App Store + Play Store** (Recommended for cross-platform)
38
+ - Maximum reach
39
+ - Best for: Most apps
40
+
41
+ D) **Enterprise Distribution Only**
42
+ - Internal distribution
43
+ - No public store
44
+ - Best for: Enterprise apps
45
+
46
+ **Your answer:**
47
+
48
+ ---
49
+
50
+ ### Question 7.2: CI/CD Pipeline
51
+
52
+ **What CI/CD tool will you use for builds and deployment?**
53
+
54
+ A) ⭐ **Fastlane** (Recommended)
55
+ - Automates builds, screenshots, deployment
56
+ - Works with iOS and Android
57
+ - Integrates with GitHub Actions, Bitrise, etc.
58
+ - Best for: Most projects
59
+
60
+ B) **Codemagic**
61
+ - Cloud-based CI/CD for Flutter/React Native
62
+ - Easy setup, good for small teams
63
+ - Best for: Flutter/React Native apps
64
+
65
+ C) **GitHub Actions**
66
+ - Flexible, free for public repos
67
+ - Custom workflows
68
+ - Best for: GitHub-hosted projects
69
+
70
+ D) **Bitrise**
71
+ - Mobile-focused CI/CD
72
+ - Good for complex workflows
73
+ - Best for: Enterprise teams
74
+
75
+ E) **Manual Builds**
76
+ - Build locally, upload manually
77
+ - Best for: Learning, small projects
78
+
79
+ **Your answer:**
80
+
81
+ ---
82
+
83
+ ### Question 7.3: Versioning Strategy
84
+
85
+ **How will you version your app?**
86
+
87
+ A) ⭐ **Semantic Versioning** (Recommended)
88
+ - Format: `MAJOR.MINOR.PATCH` (e.g., `1.2.3`)
89
+ - MAJOR: Breaking changes
90
+ - MINOR: New features, backward compatible
91
+ - PATCH: Bug fixes
92
+ - Best for: Most apps
93
+
94
+ B) **Date-based Versioning**
95
+ - Format: `YYYY.MM.DD` (e.g., `2025.01.20`)
96
+ - Best for: Frequent releases
97
+
98
+ C) **Build Number Only**
99
+ - Incrementing build number
100
+ - Best for: Simple apps
101
+
102
+ **Your answer:**
103
+
104
+ **Version code strategy (Android):**
105
+ - A) ⭐ **Incrementing integer** (1, 2, 3, ...)
106
+ - B) **Based on version** (e.g., 1.2.3 → 10203)
107
+
108
+ **Build number strategy (iOS):**
109
+ - A) ⭐ **Incrementing integer** (1, 2, 3, ...)
110
+ - B) **Based on version** (e.g., 1.2.3 → 10203)
111
+
112
+ ---
113
+
114
+ ### Question 7.4: Code Signing Strategy
115
+
116
+ **How will you handle code signing?**
117
+
118
+ **For iOS:**
119
+ - A) ⭐ **Automatic Signing** (Recommended)
120
+ - Xcode manages certificates
121
+ - Easier for most developers
122
+ - Best for: Most apps
123
+
124
+ - B) **Manual Signing**
125
+ - More control
126
+ - Required for enterprise apps
127
+ - Best for: Advanced scenarios
128
+
129
+ **For Android:**
130
+ - A) ⭐ **Automatic Signing** (Recommended)
131
+ - Gradle manages keystores
132
+ - Easier for most developers
133
+ - Best for: Most apps
134
+
135
+ - B) **Manual Signing**
136
+ - More control
137
+ - Required for some enterprise scenarios
138
+ - Best for: Advanced scenarios
139
+
140
+ **Your answer:**
141
+
142
+ **Keystore management:**
143
+ - A) ⭐ **Store in CI/CD secrets** (Recommended)
144
+ - GitHub Secrets, Bitrise Secrets, etc.
145
+ - Secure, automated
146
+
147
+ - B) **Store locally**
148
+ - Manual management
149
+ - Best for: Small teams
150
+
151
+ ---
152
+
153
+ ### Question 7.5: Beta Testing Strategy
154
+
155
+ **How will you handle beta testing?**
156
+
157
+ A) ⭐ **TestFlight (iOS) + Firebase App Distribution (Android)** (Recommended)
158
+ - Free, easy to use
159
+ - TestFlight: Up to 10,000 testers
160
+ - Firebase: Unlimited testers
161
+ - Best for: Most projects
162
+
163
+ B) **TestFlight (iOS) + Google Play Internal Testing (Android)**
164
+ - Official store channels
165
+ - Internal testing: Up to 100 testers
166
+ - Best for: Store-focused testing
167
+
168
+ C) **TestFlight (iOS) + Google Play Closed Beta (Android)**
169
+ - Closed beta: Up to 20,000 testers
170
+ - Best for: Larger beta programs
171
+
172
+ D) **HockeyApp / App Center**
173
+ - Microsoft's solution
174
+ - Good for enterprise
175
+
176
+ E) **No Beta Testing**
177
+ - Direct to production
178
+ - Best for: MVPs, internal apps
179
+
180
+ **Your answer:**
181
+
182
+ ---
183
+
184
+ ### Question 7.6: Release Strategy
185
+
186
+ **What release strategy will you use?**
187
+
188
+ A) ⭐ **Staged Rollout** (Recommended)
189
+ - Release to 10% → 50% → 100% of users
190
+ - Monitor for issues before full release
191
+ - Best for: Most apps
192
+
193
+ B) **Gradual Rollout**
194
+ - Release to specific countries/regions first
195
+ - Expand gradually
196
+ - Best for: Global apps
197
+
198
+ C) **Full Release**
199
+ - Release to 100% immediately
200
+ - Best for: Small updates, bug fixes
201
+
202
+ **Your answer:**
203
+
204
+ ---
205
+
206
+ ### Question 7.7: App Store Metadata
207
+
208
+ **What metadata will you prepare for stores?**
209
+
210
+ **Required:**
211
+ - [ ] App name (30 chars iOS, 50 chars Android)
212
+ - [ ] App description (4000 chars)
213
+ - [ ] Screenshots (various sizes)
214
+ - [ ] App icon (1024x1024 iOS, 512x512 Android)
215
+ - [ ] Privacy policy URL
216
+
217
+ **Optional:**
218
+ - [ ] Promotional text
219
+ - [ ] Keywords (iOS only)
220
+ - [ ] App preview videos
221
+ - [ ] Feature graphic (Android)
222
+
223
+ **Your answer:**
224
+
225
+ ---
226
+
227
+ ### Question 7.8: Screenshot Automation
228
+
229
+ **Will you automate screenshot generation?**
230
+
231
+ A) ⭐ **Yes - Fastlane Screenshots** (Recommended)
232
+ - Automate screenshots for all devices
233
+ - Update automatically on each release
234
+ - Best for: Most apps
235
+
236
+ B) **Yes - Manual Scripts**
237
+ - Custom screenshot scripts
238
+ - Best for: Custom requirements
239
+
240
+ C) **No - Manual Screenshots**
241
+ - Take screenshots manually
242
+ - Best for: Small teams, infrequent updates
243
+
244
+ **Your answer:**
245
+
246
+ ---
247
+
248
+ ### Question 7.9: App Review Preparation
249
+
250
+ **How will you prepare for app review?**
251
+
252
+ **For iOS App Store:**
253
+ - [ ] Test on latest iOS version
254
+ - [ ] Test on multiple device sizes
255
+ - [ ] Ensure all features work
256
+ - [ ] Prepare demo account credentials
257
+ - [ ] Review App Store guidelines
258
+ - [ ] Test in TestFlight first
259
+
260
+ **For Google Play:**
261
+ - [ ] Test on latest Android version
262
+ - [ ] Test on multiple device sizes
263
+ - [ ] Ensure all features work
264
+ - [ ] Prepare demo account credentials
265
+ - [ ] Review Play Store policies
266
+ - [ ] Test in internal testing first
267
+
268
+ **Your answer:**
269
+
270
+ ---
271
+
272
+ ### Question 7.10: Update Frequency
273
+
274
+ **How often will you release updates?**
275
+
276
+ A) ⭐ **As Needed** (Recommended)
277
+ - Release when features are ready
278
+ - Best for: Most apps
279
+
280
+ B) **Weekly**
281
+ - Regular weekly releases
282
+ - Best for: Rapid iteration
283
+
284
+ C) **Bi-weekly**
285
+ - Every two weeks
286
+ - Best for: Balanced approach
287
+
288
+ D) **Monthly**
289
+ - Once per month
290
+ - Best for: Stable apps
291
+
292
+ **Your answer:**
293
+
294
+ ---
295
+
296
+ ### Question 7.11: Rollback Strategy
297
+
298
+ **How will you handle rollbacks?**
299
+
300
+ A) ⭐ **Store Rollback** (Recommended)
301
+ - Revert to previous version in store
302
+ - Best for: Critical bugs
303
+
304
+ B) **Hotfix Release**
305
+ - Release emergency fix
306
+ - Best for: Quick fixes
307
+
308
+ C) **No Rollback Plan**
309
+ - Not recommended
310
+ - Best for: Very small apps
311
+
312
+ **Your answer:**
313
+
314
+ ---
315
+
316
+ ### Question 7.12: Monitoring & Analytics
317
+
318
+ **What monitoring will you use post-deployment?**
319
+
320
+ A) ⭐ **Firebase Analytics + Crashlytics** (Recommended)
321
+ - Free, comprehensive
322
+ - Works with iOS and Android
323
+ - Best for: Most apps
324
+
325
+ B) **Sentry**
326
+ - Excellent error tracking
327
+ - Good for: Production apps
328
+
329
+ C) **App Store Connect Analytics + Play Console Analytics**
330
+ - Built-in store analytics
331
+ - Best for: Store metrics
332
+
333
+ D) **Custom Analytics**
334
+ - Mixpanel, Amplitude, etc.
335
+ - Best for: Advanced analytics
336
+
337
+ **Your answer:**
338
+
339
+ ---
340
+
341
+ ## ✅ Phase 7 Completion
342
+
343
+ After answering all questions, summarize:
344
+
345
+ ```
346
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
347
+ ✅ Phase 7 Complete: Store Deployment
348
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
349
+
350
+ Selected Deployment Strategy:
351
+ - Stores: App Store + Play Store
352
+ - CI/CD: Fastlane + GitHub Actions
353
+ - Versioning: Semantic Versioning
354
+ - Code Signing: Automatic
355
+ - Beta Testing: TestFlight + Firebase App Distribution
356
+ - Release Strategy: Staged Rollout
357
+ - Monitoring: Firebase Analytics + Crashlytics
358
+
359
+ All phases complete! Ready to generate documentation.
360
+ ```
361
+
362
+ ---
363
+
364
+ ## 📝 Generated Documents
365
+
366
+ After Phase 7, generate/update:
367
+
368
+ - `docs/app-store.md` - App Store configuration and deployment guide
369
+ - `specs/build-configuration.md` - Build and CI/CD configuration
370
+ - `specs/deployment.md` - Deployment procedures
371
+ - `ai-instructions.md` - Add deployment rules
372
+
373
+ ---
374
+
375
+ ## 🎉 Bootstrap Complete!
376
+
377
+ All 7 phases are complete. Generate the full documentation set:
378
+
379
+ **Core Documents:**
380
+ - `AGENT.md` - Universal AI assistant configuration
381
+ - `ai-instructions.md` - Tech stack and development rules
382
+ - `project-brief.md` - Project overview and objectives
383
+ - `README.md` - Quick start guide
384
+
385
+ **Documentation:**
386
+ - `docs/architecture.md` - System architecture
387
+ - `docs/navigation.md` - Navigation patterns
388
+ - `docs/state-management.md` - State management guide
389
+ - `docs/offline-strategy.md` - Offline and sync strategy
390
+ - `docs/permissions.md` - Permissions handling
391
+ - `docs/native-features.md` - Native features integration
392
+ - `docs/code-standards.md` - Code standards
393
+ - `docs/testing.md` - Testing strategy
394
+ - `docs/app-store.md` - App Store configuration
395
+
396
+ **Specifications:**
397
+ - `specs/build-configuration.md` - Build configuration
398
+ - `specs/deployment.md` - Deployment procedures
399
+ - `specs/configuration.md` - Environment configuration
400
+
401
+ ---
402
+
403
+ **Last Updated:** 2025-01-XX
404
+
405
+ **Version:** 1.4.0
406
+
407
+