ai-flow-dev 1.4.0 → 2.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/README.md +97 -30
- package/dist/cli.js +79 -104
- package/dist/cli.js.map +1 -1
- package/package.json +6 -2
- package/prompts/backend/{flow-bootstrap-phase-0.md → flow-build-phase-0.md} +5 -3
- package/prompts/backend/{flow-bootstrap-phase-1.md → flow-build-phase-1.md} +36 -41
- package/prompts/backend/{flow-bootstrap-phase-2.md → flow-build-phase-2.md} +80 -68
- package/prompts/backend/{flow-bootstrap-phase-3.md → flow-build-phase-3.md} +82 -61
- package/prompts/backend/{flow-bootstrap-phase-5.md → flow-build-phase-5.md} +10 -9
- package/prompts/backend/{flow-bootstrap-phase-6.md → flow-build-phase-6.md} +8 -7
- package/prompts/backend/{flow-bootstrap-phase-7.md → flow-build-phase-7.md} +5 -3
- package/prompts/backend/{flow-bootstrap-phase-8.md → flow-build-phase-8.md} +248 -30
- package/prompts/backend/{flow-bootstrap-phase-9.md → flow-build-phase-9.md} +97 -99
- package/prompts/backend/{flow-bootstrap.md → flow-build.md} +105 -34
- package/prompts/backend/flow-docs-sync.md +2 -1
- package/prompts/frontend/{flow-bootstrap-phase-0.md → flow-build-phase-0.md} +3 -2
- package/prompts/frontend/{flow-bootstrap-phase-1.md → flow-build-phase-1.md} +2 -1
- package/prompts/frontend/{flow-bootstrap-phase-2.md → flow-build-phase-2.md} +2 -1
- package/prompts/frontend/{flow-bootstrap-phase-3.md → flow-build-phase-3.md} +2 -1
- package/prompts/frontend/{flow-bootstrap-phase-4.md → flow-build-phase-4.md} +4 -2
- package/prompts/frontend/{flow-bootstrap-phase-5.md → flow-build-phase-5.md} +2 -1
- package/prompts/frontend/{flow-bootstrap-phase-6.md → flow-build-phase-6.md} +2 -1
- package/prompts/frontend/{flow-bootstrap-phase-8.md → flow-build-phase-8.md} +238 -22
- package/prompts/frontend/{flow-bootstrap.md → flow-build.md} +108 -25
- package/prompts/frontend/flow-docs-sync.md +3 -2
- package/prompts/mobile/{flow-bootstrap-phase-0.md → flow-build-phase-0.md} +3 -2
- package/prompts/mobile/{flow-bootstrap-phase-1.md → flow-build-phase-1.md} +2 -1
- package/prompts/mobile/{flow-bootstrap-phase-2.md → flow-build-phase-2.md} +2 -1
- package/prompts/mobile/{flow-bootstrap-phase-3.md → flow-build-phase-3.md} +2 -1
- package/prompts/mobile/{flow-bootstrap-phase-4.md → flow-build-phase-4.md} +2 -1
- package/prompts/mobile/{flow-bootstrap-phase-5.md → flow-build-phase-5.md} +2 -1
- package/prompts/mobile/{flow-bootstrap-phase-6.md → flow-build-phase-6.md} +2 -1
- package/prompts/mobile/{flow-bootstrap-phase-8.md → flow-build-phase-8.md} +249 -23
- package/prompts/mobile/{flow-bootstrap.md → flow-build.md} +107 -26
- package/prompts/mobile/flow-docs-sync.md +3 -2
- package/templates/AGENT.template.md +1 -17
- package/templates/backend/.clauderules.template +1 -1
- package/templates/backend/.cursorrules.template +1 -1
- /package/prompts/backend/{flow-bootstrap-phase-4.md → flow-build-phase-4.md} +0 -0
- /package/prompts/frontend/{flow-bootstrap-phase-7.md → flow-build-phase-7.md} +0 -0
- /package/prompts/mobile/{flow-bootstrap-phase-7.md → flow-build-phase-7.md} +0 -0
|
@@ -236,13 +236,14 @@ Proceeding to documentation generation...
|
|
|
236
236
|
|
|
237
237
|
✅ Context fully loaded and updated!
|
|
238
238
|
|
|
239
|
-
🎉 Now generating final
|
|
239
|
+
🎉 Now generating final 5 documents:
|
|
240
240
|
|
|
241
241
|
1. docs/platform-guides.md - iOS and Android specific implementations
|
|
242
242
|
2. docs/navigation-guide.md - Navigation patterns and screen flow
|
|
243
243
|
3. docs/contributing.md - Contribution guidelines
|
|
244
|
-
4.
|
|
245
|
-
5.
|
|
244
|
+
4. .gitignore - Ignore patterns for React Native/Flutter
|
|
245
|
+
5. AGENT.md - Universal AI configuration (master index)
|
|
246
|
+
6. README.md - Project overview (consolidates all phases)
|
|
246
247
|
|
|
247
248
|
Generating...
|
|
248
249
|
```
|
|
@@ -258,6 +259,12 @@ Generating...
|
|
|
258
259
|
- Native module integration (if any)
|
|
259
260
|
- Platform permissions setup
|
|
260
261
|
|
|
262
|
+
**📝 Action:** Write the complete file to `docs/platform-guides.md`
|
|
263
|
+
|
|
264
|
+
```
|
|
265
|
+
✅ Generated: docs/platform-guides.md
|
|
266
|
+
```
|
|
267
|
+
|
|
261
268
|
### 8.3.2: Generate docs/navigation-guide.md
|
|
262
269
|
|
|
263
270
|
- **Template:** `.ai-flow/templates/docs/navigation-guide.template.md`
|
|
@@ -269,6 +276,12 @@ Generating...
|
|
|
269
276
|
- Navigation parameters
|
|
270
277
|
- Authentication flow
|
|
271
278
|
|
|
279
|
+
**📝 Action:** Write the complete file to `docs/navigation-guide.md`
|
|
280
|
+
|
|
281
|
+
```
|
|
282
|
+
✅ Generated: docs/navigation-guide.md
|
|
283
|
+
```
|
|
284
|
+
|
|
272
285
|
### 8.3.3: Generate docs/contributing.md
|
|
273
286
|
|
|
274
287
|
- **Template:** `.ai-flow/templates/docs/contributing.template.md`
|
|
@@ -281,6 +294,171 @@ Generating...
|
|
|
281
294
|
- Testing requirements from Phase 6
|
|
282
295
|
- Build and release process
|
|
283
296
|
|
|
297
|
+
**📝 Action:** Write the complete file to `docs/contributing.md`
|
|
298
|
+
|
|
299
|
+
```
|
|
300
|
+
✅ Generated: docs/contributing.md
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
305
|
+
## 8.3.4: Generate .gitignore
|
|
306
|
+
|
|
307
|
+
**IMPORTANT:** Generate a comprehensive `.gitignore` file based on the mobile framework selected in previous phases.
|
|
308
|
+
|
|
309
|
+
```
|
|
310
|
+
📝 Generating .gitignore for your mobile stack...
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
**Strategy:**
|
|
314
|
+
|
|
315
|
+
1. **Detect framework from Phase 3** (React Native, Flutter, etc.)
|
|
316
|
+
2. **Detect package manager** (npm, yarn, pub)
|
|
317
|
+
3. **Combine relevant patterns**
|
|
318
|
+
|
|
319
|
+
**React Native patterns:**
|
|
320
|
+
|
|
321
|
+
```gitignore
|
|
322
|
+
# React Native
|
|
323
|
+
node_modules/
|
|
324
|
+
npm-debug.log*
|
|
325
|
+
yarn-debug.log*
|
|
326
|
+
yarn-error.log*
|
|
327
|
+
.pnpm-debug.log*
|
|
328
|
+
|
|
329
|
+
# Metro bundler
|
|
330
|
+
.metro-health-check*
|
|
331
|
+
|
|
332
|
+
# OSX
|
|
333
|
+
.DS_Store
|
|
334
|
+
|
|
335
|
+
# Android
|
|
336
|
+
android/app/build/
|
|
337
|
+
android/app/release/
|
|
338
|
+
android/.gradle/
|
|
339
|
+
android/local.properties
|
|
340
|
+
android/.idea/
|
|
341
|
+
android/*.iml
|
|
342
|
+
android/app/debug/
|
|
343
|
+
android/app/profile/
|
|
344
|
+
android/keystore.properties
|
|
345
|
+
android/key.properties
|
|
346
|
+
|
|
347
|
+
# iOS
|
|
348
|
+
ios/Pods/
|
|
349
|
+
ios/**/*.mode1v3
|
|
350
|
+
ios/**/*.mode2v3
|
|
351
|
+
ios/**/*.perspectivev3
|
|
352
|
+
ios/**/*.pbxuser
|
|
353
|
+
ios/**/*.xcworkspace/xcuserdata
|
|
354
|
+
ios/**/.DS_Store
|
|
355
|
+
ios/build/
|
|
356
|
+
ios/.xcode.env.local
|
|
357
|
+
DerivedData/
|
|
358
|
+
|
|
359
|
+
# Expo
|
|
360
|
+
.expo/
|
|
361
|
+
.expo-shared/
|
|
362
|
+
web-build/
|
|
363
|
+
dist/
|
|
364
|
+
|
|
365
|
+
# Testing
|
|
366
|
+
coverage/
|
|
367
|
+
.nyc_output/
|
|
368
|
+
|
|
369
|
+
# Environment
|
|
370
|
+
.env
|
|
371
|
+
.env*.local
|
|
372
|
+
|
|
373
|
+
# IDE
|
|
374
|
+
.vscode/
|
|
375
|
+
.idea/
|
|
376
|
+
*.swp
|
|
377
|
+
*.swo
|
|
378
|
+
*~
|
|
379
|
+
|
|
380
|
+
# Logs
|
|
381
|
+
logs/
|
|
382
|
+
*.log
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
**Flutter patterns:**
|
|
386
|
+
|
|
387
|
+
```gitignore
|
|
388
|
+
# Flutter
|
|
389
|
+
.dart_tool/
|
|
390
|
+
.flutter-plugins
|
|
391
|
+
.flutter-plugins-dependencies
|
|
392
|
+
.packages
|
|
393
|
+
.pub-cache/
|
|
394
|
+
.pub/
|
|
395
|
+
build/
|
|
396
|
+
flutter_*.png
|
|
397
|
+
linked_*.ds
|
|
398
|
+
unlinked.ds
|
|
399
|
+
unlinked_spec.ds
|
|
400
|
+
|
|
401
|
+
# Android
|
|
402
|
+
android/app/debug/
|
|
403
|
+
android/app/profile/
|
|
404
|
+
android/app/release/
|
|
405
|
+
android/.gradle/
|
|
406
|
+
android/local.properties
|
|
407
|
+
android/gradle/
|
|
408
|
+
android/gradlew
|
|
409
|
+
android/gradlew.bat
|
|
410
|
+
android/key.properties
|
|
411
|
+
|
|
412
|
+
# iOS
|
|
413
|
+
ios/Flutter/.last_build_id
|
|
414
|
+
ios/Flutter/flutter_export_environment.sh
|
|
415
|
+
ios/Pods/
|
|
416
|
+
ios/**/*.mode1v3
|
|
417
|
+
ios/**/*.mode2v3
|
|
418
|
+
ios/**/*.pbxuser
|
|
419
|
+
ios/**/*.perspectivev3
|
|
420
|
+
ios/**/*.xcworkspace/xcuserdata
|
|
421
|
+
ios/Runner.xcworkspace/
|
|
422
|
+
|
|
423
|
+
# Web
|
|
424
|
+
web/packages/
|
|
425
|
+
|
|
426
|
+
# macOS
|
|
427
|
+
macos/Flutter/
|
|
428
|
+
|
|
429
|
+
# Testing
|
|
430
|
+
coverage/
|
|
431
|
+
.test_coverage.dart
|
|
432
|
+
|
|
433
|
+
# Environment
|
|
434
|
+
.env
|
|
435
|
+
.env*.local
|
|
436
|
+
|
|
437
|
+
# IDE
|
|
438
|
+
.vscode/
|
|
439
|
+
.idea/
|
|
440
|
+
*.swp
|
|
441
|
+
*.swo
|
|
442
|
+
*.iml
|
|
443
|
+
|
|
444
|
+
# OS
|
|
445
|
+
.DS_Store
|
|
446
|
+
Thumbs.db
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
**📝 Action:** Generate and write `.gitignore` to project root.
|
|
450
|
+
|
|
451
|
+
**Selection logic:**
|
|
452
|
+
|
|
453
|
+
- If React Native → Use React Native patterns
|
|
454
|
+
- If Flutter → Use Flutter patterns
|
|
455
|
+
- If Expo detected → Add Expo-specific patterns
|
|
456
|
+
|
|
457
|
+
```
|
|
458
|
+
✅ Generated: .gitignore
|
|
459
|
+
Patterns included: [React Native | Flutter] + Platform-specific
|
|
460
|
+
```
|
|
461
|
+
|
|
284
462
|
---
|
|
285
463
|
|
|
286
464
|
## 8.4: Generate AGENT.md (Master Index)
|
|
@@ -341,6 +519,33 @@ Generating...
|
|
|
341
519
|
[From deployment.md and contributing.md]
|
|
342
520
|
```
|
|
343
521
|
|
|
522
|
+
**📝 Action:**
|
|
523
|
+
|
|
524
|
+
```
|
|
525
|
+
🔄 Re-reading all generated documents for AGENT.md generation...
|
|
526
|
+
|
|
527
|
+
✅ Reading .ai-flow/project-brief.md
|
|
528
|
+
✅ Reading .ai-flow/ai-instructions.md
|
|
529
|
+
✅ Reading docs/app-structure.md
|
|
530
|
+
✅ Reading docs/architecture.md
|
|
531
|
+
✅ Reading docs/platform-guides.md
|
|
532
|
+
✅ Reading docs/navigation-guide.md
|
|
533
|
+
✅ Reading docs/code-standards.md
|
|
534
|
+
✅ Reading docs/testing.md
|
|
535
|
+
✅ Reading docs/app-store.md
|
|
536
|
+
✅ Reading specs/build-configuration.md
|
|
537
|
+
✅ Reading specs/deployment.md
|
|
538
|
+
✅ Reading docs/contributing.md
|
|
539
|
+
|
|
540
|
+
✅ All context loaded!
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
**📝 Action:** Write the complete file to `.ai-flow/AGENT.md`
|
|
544
|
+
|
|
545
|
+
```
|
|
546
|
+
✅ Generated: .ai-flow/AGENT.md (Master Index)
|
|
547
|
+
```
|
|
548
|
+
|
|
344
549
|
---
|
|
345
550
|
|
|
346
551
|
## 8.5: Generate README.md (Intelligent Merge)
|
|
@@ -379,6 +584,13 @@ Generating...
|
|
|
379
584
|
5. **Ensure no duplication**
|
|
380
585
|
6. **Validate all links** work correctly
|
|
381
586
|
|
|
587
|
+
**📝 Action:** Write the complete file to `.ai-flow/README.md`
|
|
588
|
+
|
|
589
|
+
```
|
|
590
|
+
✅ Generated: .ai-flow/README.md
|
|
591
|
+
[If merged] Merged with framework's setup instructions
|
|
592
|
+
```
|
|
593
|
+
|
|
382
594
|
---
|
|
383
595
|
|
|
384
596
|
## 8.6: Create Tool-Specific Configs
|
|
@@ -402,21 +614,21 @@ Read `.ai-flow/AGENT.md` first for complete documentation index.
|
|
|
402
614
|
|
|
403
615
|
- Project overview: `.ai-flow/project-brief.md`
|
|
404
616
|
- AI instructions: `.ai-flow/ai-instructions.md`
|
|
405
|
-
- Architecture:
|
|
406
|
-
- App Structure:
|
|
407
|
-
- Platform Guides:
|
|
408
|
-
- Navigation:
|
|
409
|
-
- Code standards:
|
|
617
|
+
- Architecture: `docs/architecture.md`
|
|
618
|
+
- App Structure: `docs/app-structure.md`
|
|
619
|
+
- Platform Guides: `docs/platform-guides.md`
|
|
620
|
+
- Navigation: `docs/navigation-guide.md`
|
|
621
|
+
- Code standards: `docs/code-standards.md`
|
|
410
622
|
|
|
411
623
|
## Working Instructions
|
|
412
624
|
|
|
413
625
|
When writing code:
|
|
414
626
|
|
|
415
|
-
1. Follow patterns in
|
|
416
|
-
2. Reference app structure in
|
|
417
|
-
3. Follow platform guidelines from
|
|
418
|
-
4. Implement navigation per
|
|
419
|
-
5. Write tests per
|
|
627
|
+
1. Follow patterns in `docs/code-standards.md`
|
|
628
|
+
2. Reference app structure in `docs/app-structure.md`
|
|
629
|
+
3. Follow platform guidelines from `docs/platform-guides.md`
|
|
630
|
+
4. Implement navigation per `docs/navigation-guide.md`
|
|
631
|
+
5. Write tests per `docs/testing.md`
|
|
420
632
|
|
|
421
633
|
## Critical Rules
|
|
422
634
|
|
|
@@ -439,9 +651,9 @@ See `.ai-flow/AGENT.md` for complete document list.
|
|
|
439
651
|
## Quick Reference
|
|
440
652
|
|
|
441
653
|
- Tech Stack: [from Phase 1 & 3]
|
|
442
|
-
- Architecture:
|
|
443
|
-
- Platform Guides:
|
|
444
|
-
- Code Standards:
|
|
654
|
+
- Architecture: `docs/architecture.md`
|
|
655
|
+
- Platform Guides: `docs/platform-guides.md`
|
|
656
|
+
- Code Standards: `docs/code-standards.md`
|
|
445
657
|
|
|
446
658
|
## Code Generation Rules
|
|
447
659
|
|
|
@@ -467,12 +679,12 @@ Master index: `.ai-flow/AGENT.md`
|
|
|
467
679
|
|
|
468
680
|
## Key References
|
|
469
681
|
|
|
470
|
-
- Architecture:
|
|
471
|
-
- App Structure:
|
|
472
|
-
- Platform Guides:
|
|
473
|
-
- Navigation:
|
|
474
|
-
- Code Standards:
|
|
475
|
-
- Testing:
|
|
682
|
+
- Architecture: `docs/architecture.md`
|
|
683
|
+
- App Structure: `docs/app-structure.md`
|
|
684
|
+
- Platform Guides: `docs/platform-guides.md`
|
|
685
|
+
- Navigation: `docs/navigation-guide.md`
|
|
686
|
+
- Code Standards: `docs/code-standards.md`
|
|
687
|
+
- Testing: `docs/testing.md`
|
|
476
688
|
|
|
477
689
|
## Code Generation Guidelines
|
|
478
690
|
|
|
@@ -483,6 +695,18 @@ Master index: `.ai-flow/AGENT.md`
|
|
|
483
695
|
[From Phase 1 & 3]
|
|
484
696
|
```
|
|
485
697
|
|
|
698
|
+
**📝 Action:** Generate the tool-specific config files based on selection:
|
|
699
|
+
|
|
700
|
+
- If Claude → Write `.clauderules`
|
|
701
|
+
- If Cursor → Write `.cursorrules`
|
|
702
|
+
- If Copilot → Write `.github/copilot-instructions.md`
|
|
703
|
+
- If "All" → Write all three files
|
|
704
|
+
|
|
705
|
+
```
|
|
706
|
+
✅ Generated tool-specific configs:
|
|
707
|
+
[List generated files based on selection]
|
|
708
|
+
```
|
|
709
|
+
|
|
486
710
|
---
|
|
487
711
|
|
|
488
712
|
## 8.7: Final Validation & Success Message
|
|
@@ -503,7 +727,7 @@ All validations passed!
|
|
|
503
727
|
```
|
|
504
728
|
🎉 AI Flow Complete!
|
|
505
729
|
|
|
506
|
-
Generated
|
|
730
|
+
Generated 15 documents successfully:
|
|
507
731
|
|
|
508
732
|
Phase 1:
|
|
509
733
|
✅ project-brief.md
|
|
@@ -531,6 +755,7 @@ Phase 8:
|
|
|
531
755
|
✅ docs/platform-guides.md
|
|
532
756
|
✅ docs/navigation-guide.md
|
|
533
757
|
✅ docs/contributing.md
|
|
758
|
+
✅ .gitignore
|
|
534
759
|
✅ README.md
|
|
535
760
|
✅ AGENT.md
|
|
536
761
|
|
|
@@ -570,6 +795,7 @@ your-app/
|
|
|
570
795
|
├── src/ or lib/ # Source code (if initialized)
|
|
571
796
|
├── README.md
|
|
572
797
|
├── .env.example
|
|
798
|
+
├── .gitignore
|
|
573
799
|
└── [tool configs] # .clauderules, .cursorrules, etc.
|
|
574
800
|
|
|
575
801
|
---
|
|
@@ -4,6 +4,80 @@
|
|
|
4
4
|
|
|
5
5
|
Your mission is to guide the user through creating **comprehensive, production-ready documentation** for their mobile application through an interactive questionnaire that follows the dependency-aware order specified below.
|
|
6
6
|
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🎯 Ejecución de Fase Específica
|
|
10
|
+
|
|
11
|
+
**IMPORTANTE:** Detectar si el usuario especificó una fase para ejecutar.
|
|
12
|
+
|
|
13
|
+
### Detectar Argumento de Fase
|
|
14
|
+
|
|
15
|
+
Buscar en el mensaje del usuario patrones como:
|
|
16
|
+
|
|
17
|
+
- "fase 0", "fase 1", "fase 2", ..., "fase 8"
|
|
18
|
+
- "phase 0", "phase 1", etc.
|
|
19
|
+
- "ejecutar fase N"
|
|
20
|
+
- "run phase N"
|
|
21
|
+
|
|
22
|
+
### Comportamiento
|
|
23
|
+
|
|
24
|
+
**Si se detecta "fase N" (donde N = 0-8):**
|
|
25
|
+
|
|
26
|
+
1. **Validar que la fase existe para mobile:**
|
|
27
|
+
- Fase 0: Context Discovery (opcional, solo proyectos existentes)
|
|
28
|
+
- Fase 1: Platform & Framework Selection
|
|
29
|
+
- Fase 2: Navigation & Architecture
|
|
30
|
+
- Fase 3: State & Data Management
|
|
31
|
+
- Fase 4: Permissions & Native Features
|
|
32
|
+
- Fase 5: Code Standards
|
|
33
|
+
- Fase 6: Testing Strategy
|
|
34
|
+
- Fase 7: Store Deployment
|
|
35
|
+
- Fase 8: Project Setup & Final Documentation
|
|
36
|
+
|
|
37
|
+
2. **Si la fase es válida:**
|
|
38
|
+
- Leer el archivo: `.ai-flow/prompts/mobile/flow-build-phase-N.md`
|
|
39
|
+
- Ejecutar SOLO esa fase
|
|
40
|
+
- NO continuar con otras fases
|
|
41
|
+
- Al finalizar, informar al usuario que puede continuar con la siguiente fase usando `/flow-build fase N+1`
|
|
42
|
+
|
|
43
|
+
3. **Si la fase es inválida:**
|
|
44
|
+
- Mostrar mensaje de error amigable
|
|
45
|
+
- Listar las fases válidas (0-8) con descripción de una línea
|
|
46
|
+
|
|
47
|
+
**Si NO se detecta "fase N":**
|
|
48
|
+
|
|
49
|
+
- Ejecutar el flujo completo normal (todas las fases en orden)
|
|
50
|
+
- Comenzar con Scope Selection (MVP/Production-Ready/Enterprise)
|
|
51
|
+
- Ejecutar Phases 0-8 según corresponda
|
|
52
|
+
|
|
53
|
+
### Ejemplo de Lista de Fases Válidas
|
|
54
|
+
|
|
55
|
+
Si el usuario especifica una fase inválida, mostrar:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
❌ Fase inválida. Las fases válidas para mobile son:
|
|
59
|
+
|
|
60
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
61
|
+
📋 Fases Disponibles - Mobile
|
|
62
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
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
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
75
|
+
|
|
76
|
+
💡 Tip: Usa /flow-build sin argumentos para ejecutar todas las fases en orden.
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
7
81
|
## Important Instructions
|
|
8
82
|
|
|
9
83
|
1. **Ask for Project Scope FIRST** - Before Phase 1, ask the user to select: MVP, Production-Ready, or Enterprise
|
|
@@ -37,26 +111,26 @@ Your mission is to guide the user through creating **comprehensive, production-r
|
|
|
37
111
|
|
|
38
112
|
This documentation is **modularized** for better maintainability and performance. Each phase is in a separate file.
|
|
39
113
|
|
|
40
|
-
### For Complete
|
|
114
|
+
### For Complete Build (All Phases)
|
|
41
115
|
|
|
42
116
|
Execute phases sequentially by reading each file in order:
|
|
43
117
|
|
|
44
|
-
1. **Phase 0 (Optional - Existing Projects Only):** Read `.ai-flow/prompts/mobile/flow-
|
|
45
|
-
2. **Phase 1 (Platform & Framework Selection):** Read `.ai-flow/prompts/mobile/flow-
|
|
46
|
-
3. **Phase 2 (Navigation & Architecture):** Read `.ai-flow/prompts/mobile/flow-
|
|
47
|
-
4. **Phase 3 (State & Data Management):** Read `.ai-flow/prompts/mobile/flow-
|
|
48
|
-
5. **Phase 4 (Permissions & Native Features):** Read `.ai-flow/prompts/mobile/flow-
|
|
49
|
-
6. **Phase 5 (Code Standards):** Read `.ai-flow/prompts/mobile/flow-
|
|
50
|
-
7. **Phase 6 (Testing Strategy):** Read `.ai-flow/prompts/mobile/flow-
|
|
51
|
-
8. **Phase 7 (Store Deployment):** Read `.ai-flow/prompts/mobile/flow-
|
|
52
|
-
9. **Phase 8 (Project Setup & Final Documentation):** Read `.ai-flow/prompts/mobile/flow-
|
|
118
|
+
1. **Phase 0 (Optional - Existing Projects Only):** Read `.ai-flow/prompts/mobile/flow-build-phase-0-context.md`
|
|
119
|
+
2. **Phase 1 (Platform & Framework Selection):** Read `.ai-flow/prompts/mobile/flow-build-phase-1-platform.md`
|
|
120
|
+
3. **Phase 2 (Navigation & Architecture):** Read `.ai-flow/prompts/mobile/flow-build-phase-2-navigation.md`
|
|
121
|
+
4. **Phase 3 (State & Data Management):** Read `.ai-flow/prompts/mobile/flow-build-phase-3-state.md`
|
|
122
|
+
5. **Phase 4 (Permissions & Native Features):** Read `.ai-flow/prompts/mobile/flow-build-phase-4-permissions.md`
|
|
123
|
+
6. **Phase 5 (Code Standards):** Read `.ai-flow/prompts/mobile/flow-build-phase-5-standards.md`
|
|
124
|
+
7. **Phase 6 (Testing Strategy):** Read `.ai-flow/prompts/mobile/flow-build-phase-6-testing.md`
|
|
125
|
+
8. **Phase 7 (Store Deployment):** Read `.ai-flow/prompts/mobile/flow-build-phase-7-deployment.md`
|
|
126
|
+
9. **Phase 8 (Project Setup & Final Documentation):** Read `.ai-flow/prompts/mobile/flow-build-phase-8.md`
|
|
53
127
|
|
|
54
128
|
### For Individual Phases
|
|
55
129
|
|
|
56
130
|
You can execute any phase independently by reading its file. For example:
|
|
57
131
|
|
|
58
132
|
```
|
|
59
|
-
Read .ai-flow/prompts/mobile/flow-
|
|
133
|
+
Read .ai-flow/prompts/mobile/flow-build-phase-3-state.md and execute only Phase 3
|
|
60
134
|
```
|
|
61
135
|
|
|
62
136
|
---
|
|
@@ -65,7 +139,7 @@ Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Ph
|
|
|
65
139
|
|
|
66
140
|
### Phase 0: Context Discovery (Optional)
|
|
67
141
|
|
|
68
|
-
**File:** `mobile/flow-
|
|
142
|
+
**File:** `mobile/flow-build-phase-0-context.md`
|
|
69
143
|
**For:** Existing projects with code/documentation
|
|
70
144
|
**Duration:** 1-5 minutes (automated analysis)
|
|
71
145
|
**Output:** Pre-populated answers, project analysis
|
|
@@ -85,7 +159,7 @@ Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Ph
|
|
|
85
159
|
|
|
86
160
|
### Phase 1: Platform & Framework Selection
|
|
87
161
|
|
|
88
|
-
**File:** `mobile/flow-
|
|
162
|
+
**File:** `mobile/flow-build-phase-1-platform.md`
|
|
89
163
|
**Duration:** 20-25 minutes
|
|
90
164
|
**Key Questions:**
|
|
91
165
|
|
|
@@ -108,7 +182,7 @@ Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Ph
|
|
|
108
182
|
|
|
109
183
|
### Phase 2: Navigation & Architecture
|
|
110
184
|
|
|
111
|
-
**File:** `mobile/flow-
|
|
185
|
+
**File:** `mobile/flow-build-phase-2-navigation.md`
|
|
112
186
|
**Duration:** 15-20 minutes
|
|
113
187
|
**Key Questions:**
|
|
114
188
|
|
|
@@ -127,7 +201,7 @@ Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Ph
|
|
|
127
201
|
|
|
128
202
|
### Phase 3: State & Data Management
|
|
129
203
|
|
|
130
|
-
**File:** `mobile/flow-
|
|
204
|
+
**File:** `mobile/flow-build-phase-3-state.md`
|
|
131
205
|
**Duration:** 15-20 minutes
|
|
132
206
|
**Key Questions:**
|
|
133
207
|
|
|
@@ -146,7 +220,7 @@ Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Ph
|
|
|
146
220
|
|
|
147
221
|
### Phase 4: Permissions & Native Features
|
|
148
222
|
|
|
149
|
-
**File:** `mobile/flow-
|
|
223
|
+
**File:** `mobile/flow-build-phase-4-permissions.md`
|
|
150
224
|
**Duration:** 15-20 minutes
|
|
151
225
|
**Key Questions:**
|
|
152
226
|
|
|
@@ -165,7 +239,7 @@ Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Ph
|
|
|
165
239
|
|
|
166
240
|
### Phase 5: Code Standards & Best Practices
|
|
167
241
|
|
|
168
|
-
**File:** `mobile/flow-
|
|
242
|
+
**File:** `mobile/flow-build-phase-5-standards.md`
|
|
169
243
|
**Duration:** 15-20 minutes
|
|
170
244
|
**Key Questions:**
|
|
171
245
|
|
|
@@ -183,7 +257,7 @@ Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Ph
|
|
|
183
257
|
|
|
184
258
|
### Phase 6: Testing Strategy
|
|
185
259
|
|
|
186
|
-
**File:** `mobile/flow-
|
|
260
|
+
**File:** `mobile/flow-build-phase-6-testing.md`
|
|
187
261
|
**Duration:** 15-25 minutes
|
|
188
262
|
**Key Questions:**
|
|
189
263
|
|
|
@@ -202,7 +276,7 @@ Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Ph
|
|
|
202
276
|
|
|
203
277
|
### Phase 7: Store Deployment
|
|
204
278
|
|
|
205
|
-
**File:** `mobile/flow-
|
|
279
|
+
**File:** `mobile/flow-build-phase-7-deployment.md`
|
|
206
280
|
**Duration:** 15-20 minutes
|
|
207
281
|
**Key Questions:**
|
|
208
282
|
|
|
@@ -225,7 +299,7 @@ Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Ph
|
|
|
225
299
|
|
|
226
300
|
### Phase 8: Project Setup & Final Documentation
|
|
227
301
|
|
|
228
|
-
**File:** `mobile/flow-
|
|
302
|
+
**File:** `mobile/flow-build-phase-8.md`
|
|
229
303
|
**Duration:** 10-15 minutes
|
|
230
304
|
**Key Steps:**
|
|
231
305
|
|
|
@@ -253,6 +327,7 @@ Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Ph
|
|
|
253
327
|
**Phases included:** 1, 2, 3, 4 (core only)
|
|
254
328
|
|
|
255
329
|
**What's simplified:**
|
|
330
|
+
|
|
256
331
|
- Single platform (iOS or Android)
|
|
257
332
|
- Basic navigation (Stack only)
|
|
258
333
|
- Simple state management (Context API or Provider)
|
|
@@ -270,6 +345,7 @@ Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Ph
|
|
|
270
345
|
**Phases included:** All (1-7)
|
|
271
346
|
|
|
272
347
|
**What's included:**
|
|
348
|
+
|
|
273
349
|
- Multi-platform support (iOS + Android)
|
|
274
350
|
- Complete navigation system
|
|
275
351
|
- Comprehensive state management
|
|
@@ -288,6 +364,7 @@ Read .ai-flow/prompts/mobile/flow-bootstrap-phase-3-state.md and execute only Ph
|
|
|
288
364
|
**Phases included:** All (1-7) with extended questions
|
|
289
365
|
|
|
290
366
|
**Additional coverage:**
|
|
367
|
+
|
|
291
368
|
- Cross-platform optimization
|
|
292
369
|
- Advanced architecture patterns (Clean Architecture, MVVM)
|
|
293
370
|
- Complex offline synchronization
|
|
@@ -348,12 +425,14 @@ Based on scope selection, execute applicable phase files in order.
|
|
|
348
425
|
After completing all phases, generate the complete documentation set:
|
|
349
426
|
|
|
350
427
|
**Core Documents (All Scopes):**
|
|
428
|
+
|
|
351
429
|
- `AGENT.md` - Universal AI assistant configuration
|
|
352
430
|
- `ai-instructions.md` - Tech stack and development rules
|
|
353
431
|
- `project-brief.md` - Project overview and objectives
|
|
354
432
|
- `README.md` - Quick start guide
|
|
355
433
|
|
|
356
434
|
**Documentation (Production/Enterprise):**
|
|
435
|
+
|
|
357
436
|
- `docs/architecture.md` - System architecture
|
|
358
437
|
- `docs/navigation.md` - Navigation patterns
|
|
359
438
|
- `docs/state-management.md` - State management guide
|
|
@@ -366,6 +445,7 @@ After completing all phases, generate the complete documentation set:
|
|
|
366
445
|
- `docs/contributing.md` - Contribution guidelines
|
|
367
446
|
|
|
368
447
|
**Specifications (Enterprise):**
|
|
448
|
+
|
|
369
449
|
- `specs/build-configuration.md` - Build and CI/CD configuration
|
|
370
450
|
- `specs/deployment.md` - Deployment procedures
|
|
371
451
|
- `specs/configuration.md` - Environment and configuration
|
|
@@ -400,24 +480,28 @@ Users can re-run individual phases to update documentation:
|
|
|
400
480
|
The questionnaire adapts based on the framework selected in Phase 1:
|
|
401
481
|
|
|
402
482
|
**React Native:**
|
|
483
|
+
|
|
403
484
|
- State: Redux Toolkit, Zustand, MobX, Context API
|
|
404
485
|
- Navigation: React Navigation, React Native Navigation
|
|
405
486
|
- Storage: AsyncStorage, MMKV, WatermelonDB
|
|
406
487
|
- Testing: Jest, React Native Testing Library, Detox
|
|
407
488
|
|
|
408
489
|
**Flutter:**
|
|
490
|
+
|
|
409
491
|
- State: Provider, Riverpod, Bloc, GetX
|
|
410
492
|
- Navigation: Navigator 2.0, GoRouter, AutoRoute
|
|
411
493
|
- Storage: SharedPreferences, Hive, Isar, SQLite
|
|
412
494
|
- Testing: Flutter Test, Integration Test, Maestro
|
|
413
495
|
|
|
414
496
|
**Native iOS (Swift):**
|
|
497
|
+
|
|
415
498
|
- Architecture: MVVM, VIPER, Clean Architecture
|
|
416
499
|
- Navigation: UINavigationController, Coordinator Pattern
|
|
417
500
|
- Storage: Core Data, Realm, UserDefaults
|
|
418
501
|
- Testing: XCTest, Quick/Nimble
|
|
419
502
|
|
|
420
503
|
**Native Android (Kotlin):**
|
|
504
|
+
|
|
421
505
|
- Architecture: MVVM, MVI, Clean Architecture
|
|
422
506
|
- Navigation: Navigation Component, Jetpack Compose Navigation
|
|
423
507
|
- Storage: Room, DataStore, SharedPreferences
|
|
@@ -427,7 +511,7 @@ The questionnaire adapts based on the framework selected in Phase 1:
|
|
|
427
511
|
|
|
428
512
|
## 🚀 Getting Started
|
|
429
513
|
|
|
430
|
-
To begin the complete mobile
|
|
514
|
+
To begin the complete mobile build process:
|
|
431
515
|
|
|
432
516
|
1. Ensure you're in your project directory
|
|
433
517
|
2. Run this prompt (or individual phase files)
|
|
@@ -438,13 +522,13 @@ To begin the complete mobile bootstrap process:
|
|
|
438
522
|
**Ready to start?** Proceed to Phase 1 by reading:
|
|
439
523
|
|
|
440
524
|
```
|
|
441
|
-
.ai-flow/prompts/mobile/flow-
|
|
525
|
+
.ai-flow/prompts/mobile/flow-build-phase-1-platform.md
|
|
442
526
|
```
|
|
443
527
|
|
|
444
528
|
Or if you have existing code, start with Phase 0 for automatic detection:
|
|
445
529
|
|
|
446
530
|
```
|
|
447
|
-
.ai-flow/prompts/mobile/flow-
|
|
531
|
+
.ai-flow/prompts/mobile/flow-build-phase-0-context.md
|
|
448
532
|
```
|
|
449
533
|
|
|
450
534
|
---
|
|
@@ -452,6 +536,3 @@ Or if you have existing code, start with Phase 0 for automatic detection:
|
|
|
452
536
|
**Last Updated:** 2025-01-XX
|
|
453
537
|
|
|
454
538
|
**Version:** 1.4.0 (Mobile MVP)
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
@@ -34,7 +34,7 @@ First, check if `.ai-flow/analysis.json` exists:
|
|
|
34
34
|
|
|
35
35
|
1. **Perform Current Code Analysis:**
|
|
36
36
|
|
|
37
|
-
- Execute the same analysis as Phase 0 (mobile/flow-
|
|
37
|
+
- Execute the same analysis as Phase 0 (mobile/flow-build-phase-0-context.md):
|
|
38
38
|
- File structure analysis
|
|
39
39
|
- Screen and component detection
|
|
40
40
|
- Navigation pattern detection
|
|
@@ -355,7 +355,7 @@ Update cancelled. Run `/flow-docs-sync` when you're ready to update the document
|
|
|
355
355
|
2. **Follow Existing Patterns:**
|
|
356
356
|
|
|
357
357
|
- Use same format as existing documentation
|
|
358
|
-
- Follow conventions established in original
|
|
358
|
+
- Follow conventions established in original build
|
|
359
359
|
- Maintain consistency with existing docs
|
|
360
360
|
|
|
361
361
|
3. **Update Analysis File:**
|
|
@@ -633,3 +633,4 @@ Documentation synchronized successfully.
|
|
|
633
633
|
|
|
634
634
|
|
|
635
635
|
|
|
636
|
+
|