ai-flow-dev 2.1.1 → 2.1.3
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 +10 -8
- package/dist/cli.js +17 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/prompts/backend/flow-build-phase-0.md +67 -23
- package/prompts/backend/flow-build-phase-1.md +51 -57
- package/prompts/backend/flow-build-phase-10.md +709 -0
- package/prompts/backend/flow-build-phase-2.md +48 -50
- package/prompts/backend/flow-build-phase-3.md +12 -13
- package/prompts/backend/flow-build-phase-4.md +12 -13
- package/prompts/backend/flow-build-phase-5.md +12 -12
- package/prompts/backend/flow-build-phase-6.md +12 -14
- package/prompts/backend/flow-build-phase-7.md +14 -15
- package/prompts/backend/flow-build-phase-8.md +47 -46
- package/prompts/backend/flow-build-phase-9.md +21 -28
- package/prompts/backend/flow-build.md +3 -3
- package/prompts/backend/flow-dev-commit.md +76 -14
- package/prompts/backend/flow-dev-feature.md +366 -31
- package/prompts/backend/flow-docs-sync.md +25 -28
- package/prompts/frontend/flow-docs-sync.md +10 -10
- package/prompts/mobile/flow-docs-sync.md +10 -10
- package/templates/AGENT.template.md +1 -1
|
@@ -48,46 +48,46 @@ Do you need to add more entities? (Y/N)
|
|
|
48
48
|
Based on your system type (from Phase 1, question 1.5), here are common entities:
|
|
49
49
|
|
|
50
50
|
🛒 E-commerce typical entities:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
1) User - System users with authentication
|
|
52
|
+
2) Product - Items available for purchase
|
|
53
|
+
3) Category - Product categorization
|
|
54
|
+
4) Cart - Shopping cart items
|
|
55
|
+
5) Order - Customer orders
|
|
56
|
+
6) OrderItem - Individual items in an order
|
|
57
|
+
7) Payment - Payment transactions
|
|
58
|
+
8) Address - Shipping/billing addresses
|
|
59
|
+
9) Review - Product reviews and ratings
|
|
60
|
+
10) Inventory - Stock tracking
|
|
61
61
|
|
|
62
62
|
📱 SaaS typical entities:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
63
|
+
1) User - System users
|
|
64
|
+
2) Organization - Tenant/workspace
|
|
65
|
+
3) Team - Groups within organizations
|
|
66
|
+
4) Role - Access control roles
|
|
67
|
+
5) Permission - Granular permissions
|
|
68
|
+
6) Subscription - Billing plans
|
|
69
|
+
7) Invoice - Payment records
|
|
70
|
+
8) ApiKey - API access credentials
|
|
71
|
+
9) AuditLog - Activity tracking
|
|
72
72
|
|
|
73
73
|
📊 CRM typical entities:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
74
|
+
1) User - System users
|
|
75
|
+
2) Contact - Customers/leads
|
|
76
|
+
3) Company - Organizations
|
|
77
|
+
4) Deal - Sales opportunities
|
|
78
|
+
5) Activity - Calls, emails, meetings
|
|
79
|
+
6) Task - To-do items
|
|
80
|
+
7) Note - Free-form notes
|
|
81
|
+
8) Document - Attachments
|
|
82
82
|
|
|
83
83
|
🎮 Social typical entities:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
84
|
+
1) User - Platform users
|
|
85
|
+
2) Profile - User profiles
|
|
86
|
+
3) Post - Content/publications
|
|
87
|
+
4) Comment - Post comments
|
|
88
|
+
5) Like/Reaction - Engagement
|
|
89
|
+
6) Follow - User connections
|
|
90
|
+
7) Notification - User alerts
|
|
91
91
|
H) Message - Direct messages
|
|
92
92
|
I) Group - Communities
|
|
93
93
|
|
|
@@ -350,14 +350,13 @@ Is this correct? (Yes/No)
|
|
|
350
350
|
✅ Re-reading project-brief.md
|
|
351
351
|
```
|
|
352
352
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
**1. `docs/data-model.md`**
|
|
353
|
+
**Generate `docs/data-model.md` automatically:**
|
|
356
354
|
|
|
357
355
|
- Use template: `.ai-flow/templates/docs/data-model.template.md`
|
|
358
356
|
- Fill with all Phase 2 entity and relationship information
|
|
359
357
|
- Include entity catalog, relationships, data patterns
|
|
360
358
|
- Generate entity-relationship diagram (ER diagram) in mermaid format showing all entities and their relationships
|
|
359
|
+
- Write to: `docs/data-model.md`
|
|
361
360
|
|
|
362
361
|
---
|
|
363
362
|
|
|
@@ -434,8 +433,8 @@ erDiagram
|
|
|
434
433
|
|
|
435
434
|
**Common Mistakes to Avoid:**
|
|
436
435
|
|
|
437
|
-
- ❌
|
|
438
|
-
- ❌
|
|
436
|
+
- ❌ ````Mermaid` (capital M - will not render)
|
|
437
|
+
- ❌ ```` mermaid` (extra space - will not render)
|
|
439
438
|
- ❌ Indenting the entire diagram with spaces/tabs
|
|
440
439
|
- ❌ Missing closing ` ``` ` fence
|
|
441
440
|
- ❌ Invalid entity/relationship syntax
|
|
@@ -447,25 +446,24 @@ erDiagram
|
|
|
447
446
|
```
|
|
448
447
|
✅ Generated: docs/data-model.md
|
|
449
448
|
|
|
450
|
-
|
|
449
|
+
Document has been created with all Phase 2 information.
|
|
450
|
+
|
|
451
|
+
📝 Would you like to make any corrections before continuing?
|
|
451
452
|
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
C) 🔄 Regenerate with changes (tell me what to modify)
|
|
453
|
+
→ If yes: Edit docs/data-model.md and type "ready" when done. I'll re-read it.
|
|
454
|
+
→ If no: Type "continue" to proceed to Phase 3.
|
|
455
455
|
```
|
|
456
456
|
|
|
457
|
-
**If user
|
|
457
|
+
**If user edits the file:**
|
|
458
|
+
Execute `read_file('docs/data-model.md')` to refresh context before continuing.
|
|
458
459
|
|
|
459
|
-
|
|
460
|
-
Perfect. Please edit docs/data-model.md and type "ready" when you're done.
|
|
461
|
-
I'll re-read the file to update my context before continuing.
|
|
462
|
-
```
|
|
460
|
+
---
|
|
463
461
|
|
|
464
|
-
|
|
462
|
+
> ⚠️ **CRITICAL:** DO NOT generate README.md in Phase 2. README.md is ONLY generated in Phase 8 (step 8.5) after framework initialization.
|
|
465
463
|
|
|
466
464
|
---
|
|
467
465
|
|
|
468
|
-
**Proceed to Phase 3
|
|
466
|
+
**Proceed to Phase 3 after document is generated and optionally reviewed.**
|
|
469
467
|
|
|
470
468
|
---
|
|
471
469
|
|
|
@@ -661,45 +661,44 @@ Is this correct? (Yes/No)
|
|
|
661
661
|
✅ Re-reading docs/data-model.md
|
|
662
662
|
```
|
|
663
663
|
|
|
664
|
-
|
|
664
|
+
**Generate documents automatically:**
|
|
665
665
|
|
|
666
666
|
**1. `docs/architecture.md`**
|
|
667
667
|
|
|
668
668
|
- Use template: `.ai-flow/templates/docs/architecture.template.md`
|
|
669
669
|
- Fill with system architecture, patterns, tech stack
|
|
670
670
|
- Include architecture diagram (mermaid format)
|
|
671
|
+
- Write to: `docs/architecture.md`
|
|
671
672
|
|
|
672
673
|
**2. `ai-instructions.md`**
|
|
673
674
|
|
|
674
675
|
- Use template: `.ai-flow/templates/ai-instructions.template.md`
|
|
675
676
|
- Fill with tech stack, framework, language, key dependencies
|
|
676
677
|
- Include NEVER/ALWAYS rules specific to chosen stack
|
|
677
|
-
- Generate idiomatic code examples for Controller, Service, Repository, DTO and Module placeholders, strictly following the selected Architecture Pattern (e.g., if Hexagonal, show Ports & Adapters)
|
|
678
|
+
- Generate idiomatic code examples for Controller, Service, Repository, DTO and Module placeholders, strictly following the selected Architecture Pattern (e.g., if Hexagonal, show Ports & Adapters)
|
|
679
|
+
- Write to: `ai-instructions.md`
|
|
678
680
|
|
|
679
681
|
```
|
|
680
682
|
✅ Generated: docs/architecture.md
|
|
681
683
|
✅ Generated: ai-instructions.md
|
|
682
684
|
|
|
683
|
-
|
|
685
|
+
Documents have been created with all Phase 3 information.
|
|
684
686
|
|
|
685
|
-
|
|
686
|
-
B) 📝 I'll edit them now (I'll wait)
|
|
687
|
-
C) 🔄 Regenerate with changes (tell me what to modify)
|
|
688
|
-
```
|
|
689
|
-
|
|
690
|
-
**If user selects B:**
|
|
687
|
+
📝 Would you like to make any corrections before continuing?
|
|
691
688
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
I'll re-read all files to update my context before continuing.
|
|
689
|
+
→ If yes: Edit the files and type "ready" when done. I'll re-read them.
|
|
690
|
+
→ If no: Type "continue" to proceed to Phase 4.
|
|
695
691
|
```
|
|
696
692
|
|
|
697
|
-
|
|
693
|
+
**If user edits files:**
|
|
694
|
+
Execute `read_file()` for both documents to refresh context before continuing.
|
|
698
695
|
|
|
699
696
|
---
|
|
700
697
|
|
|
701
698
|
**Proceed to Phase 4 only after documents are validated.**
|
|
702
699
|
|
|
700
|
+
> ⚠️ **CRITICAL:** DO NOT generate README.md in this phase. README.md is ONLY generated in Phase 8 (step 8.5) after framework initialization.
|
|
701
|
+
|
|
703
702
|
---
|
|
704
703
|
|
|
705
704
|
## PHASE 4: Security & Authentication (15-20 min)
|
|
@@ -476,12 +476,13 @@ Is this correct? (Yes/No)
|
|
|
476
476
|
✅ Re-reading ai-instructions.md
|
|
477
477
|
```
|
|
478
478
|
|
|
479
|
-
|
|
479
|
+
**Generate documents automatically:**
|
|
480
480
|
|
|
481
481
|
**1. `specs/security.md`**
|
|
482
482
|
|
|
483
483
|
- Use template: `.ai-flow/templates/specs/security.template.md`
|
|
484
484
|
- Fill with all security policies, authentication, authorization
|
|
485
|
+
- Write to: `specs/security.md`
|
|
485
486
|
|
|
486
487
|
**2. Update `ai-instructions.md`**
|
|
487
488
|
|
|
@@ -492,25 +493,23 @@ Once confirmed, generate:
|
|
|
492
493
|
✅ Generated: specs/security.md
|
|
493
494
|
✅ Updated: ai-instructions.md (security rules added)
|
|
494
495
|
|
|
495
|
-
|
|
496
|
+
Documents have been created with all Phase 4 information.
|
|
496
497
|
|
|
497
|
-
|
|
498
|
-
B) 📝 I'll edit them now (I'll wait)
|
|
499
|
-
C) 🔄 Regenerate with changes (tell me what to modify)
|
|
500
|
-
```
|
|
501
|
-
|
|
502
|
-
**If user selects B:**
|
|
498
|
+
📝 Would you like to make any corrections before continuing?
|
|
503
499
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
I'll re-read all files to update my context before continuing.
|
|
500
|
+
→ If yes: Edit the files and type "ready" when done. I'll re-read them.
|
|
501
|
+
→ If no: Type "continue" to proceed to Phase 5.
|
|
507
502
|
```
|
|
508
503
|
|
|
504
|
+
**If user edits files:**
|
|
505
|
+
Re-read files to refresh context before continuing.
|
|
506
|
+
|
|
509
507
|
---
|
|
510
508
|
|
|
511
509
|
**Proceed to Phase 5 only after documents are validated.**
|
|
512
510
|
|
|
513
|
-
|
|
511
|
+
> ⚠️ **CRITICAL:** DO NOT generate README.md in this phase. README.md is ONLY generated in Phase 8 (step 8.5) after framework initialization.
|
|
514
512
|
|
|
515
|
-
|
|
513
|
+
---
|
|
516
514
|
|
|
515
|
+
## PHASE 5: Development Standards (15-20 min)
|
|
@@ -599,12 +599,13 @@ Is this correct? (Yes/No)
|
|
|
599
599
|
✅ Re-reading specs/security.md
|
|
600
600
|
```
|
|
601
601
|
|
|
602
|
-
|
|
602
|
+
**Generate documents automatically:**
|
|
603
603
|
|
|
604
604
|
**1. `docs/code-standards.md`**
|
|
605
605
|
|
|
606
606
|
- Use template: `.ai-flow/templates/docs/code-standards.template.md`
|
|
607
607
|
- Fill with all code quality rules, naming conventions, formatting
|
|
608
|
+
- Write to: `docs/code-standards.md`
|
|
608
609
|
|
|
609
610
|
**2. Update `ai-instructions.md`**
|
|
610
611
|
|
|
@@ -615,24 +616,23 @@ Once confirmed, generate:
|
|
|
615
616
|
✅ Generated: docs/code-standards.md
|
|
616
617
|
✅ Updated: ai-instructions.md (code standards added)
|
|
617
618
|
|
|
618
|
-
|
|
619
|
+
Documents have been created with all Phase 5 information.
|
|
619
620
|
|
|
620
|
-
|
|
621
|
-
B) 📝 I'll edit them now (I'll wait)
|
|
622
|
-
C) 🔄 Regenerate with changes (tell me what to modify)
|
|
623
|
-
```
|
|
624
|
-
|
|
625
|
-
**If user selects B:**
|
|
621
|
+
📝 Would you like to make any corrections before continuing?
|
|
626
622
|
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
I'll re-read all files to update my context before continuing.
|
|
623
|
+
→ If yes: Edit the files and type "ready" when done. I'll re-read them.
|
|
624
|
+
→ If no: Type "continue" to proceed to Phase 6.
|
|
630
625
|
```
|
|
631
626
|
|
|
627
|
+
**If user edits files:**
|
|
628
|
+
Re-read files to refresh context before continuing.
|
|
629
|
+
|
|
632
630
|
---
|
|
633
631
|
|
|
634
632
|
**Proceed to Phase 6 only after documents are validated.**
|
|
635
633
|
|
|
634
|
+
> ⚠️ **CRITICAL:** DO NOT generate README.md in this phase. README.md is ONLY generated in Phase 8 (step 8.5) after framework initialization.
|
|
635
|
+
|
|
636
636
|
---
|
|
637
637
|
|
|
638
|
-
## PHASE 6: Testing Strategy (
|
|
638
|
+
## PHASE 6: Testing Strategy (10 min)
|
|
@@ -430,35 +430,33 @@ Is this correct? (Yes/No)
|
|
|
430
430
|
✅ Re-reading ai-instructions.md
|
|
431
431
|
```
|
|
432
432
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
**1. `docs/testing.md`**
|
|
433
|
+
**Generate `docs/testing.md` automatically:**
|
|
436
434
|
|
|
437
435
|
- Use template: `.ai-flow/templates/docs/testing.template.md`
|
|
438
436
|
- **If MVP scope:** Fill with basic testing strategy: framework selection, smoke tests on critical paths, coverage 15-25%, basic CI setup. Mark advanced sections as "Not implemented yet - expand when moving to Production-Ready"
|
|
439
437
|
- **If Production-Ready:** Fill with comprehensive testing strategy: framework, unit/integration/e2e tests, 60-80% coverage, test data management, mocking, full CI/CD
|
|
440
438
|
- **If Enterprise:** Fill with exhaustive testing strategy: all Production-Ready items + contract tests, load tests, security tests, 80-95% coverage, performance benchmarks
|
|
439
|
+
- Write to: `docs/testing.md`
|
|
441
440
|
|
|
442
441
|
```
|
|
443
442
|
✅ Generated: docs/testing.md
|
|
444
443
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
A) ✅ Looks perfect, continue to Phase 7
|
|
448
|
-
B) 📝 I'll edit it now (I'll wait)
|
|
449
|
-
C) 🔄 Regenerate with changes (tell me what to modify)
|
|
450
|
-
```
|
|
444
|
+
Document has been created with all Phase 6 information.
|
|
451
445
|
|
|
452
|
-
|
|
446
|
+
📝 Would you like to make any corrections before continuing?
|
|
453
447
|
|
|
448
|
+
→ If yes: Edit the file and type "ready" when done. I'll re-read it.
|
|
449
|
+
→ If no: Type "continue" to proceed to Phase 7.
|
|
454
450
|
```
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
451
|
+
|
|
452
|
+
**If user edits file:**
|
|
453
|
+
Re-read file to refresh context before continuing.
|
|
458
454
|
|
|
459
455
|
---
|
|
460
456
|
|
|
461
|
-
**Proceed to Phase 7 only after
|
|
457
|
+
**Proceed to Phase 7 only after documents are validated.**
|
|
458
|
+
|
|
459
|
+
> ⚠️ **CRITICAL:** DO NOT generate README.md in this phase. README.md is ONLY generated in Phase 8 (step 8.5) after framework initialization.
|
|
462
460
|
|
|
463
461
|
---
|
|
464
462
|
|
|
@@ -815,41 +815,41 @@ Is this correct? (Yes/No)
|
|
|
815
815
|
✅ Re-reading ai-instructions.md
|
|
816
816
|
```
|
|
817
817
|
|
|
818
|
-
|
|
818
|
+
**Generate documents automatically:**
|
|
819
819
|
|
|
820
820
|
**1. `docs/operations.md`**
|
|
821
821
|
|
|
822
822
|
- Use template: `.ai-flow/templates/docs/operations.template.md`
|
|
823
823
|
- Fill with deployment, monitoring, alerting, backup, scaling
|
|
824
|
+
- Write to: `docs/operations.md`
|
|
824
825
|
|
|
825
826
|
**2. `specs/configuration.md`**
|
|
826
827
|
|
|
827
828
|
- Use template: `.ai-flow/templates/specs/configuration.template.md`
|
|
828
829
|
- Fill with environment variables, secrets management, feature flags
|
|
830
|
+
- Write to: `specs/configuration.md`
|
|
829
831
|
|
|
830
832
|
**3. `.env.example`**
|
|
831
833
|
|
|
832
834
|
- List all environment variables needed
|
|
833
835
|
- Include comments explaining each variable
|
|
836
|
+
- Write to: `.env.example`
|
|
834
837
|
|
|
835
838
|
```
|
|
836
839
|
✅ Generated: docs/operations.md
|
|
837
840
|
✅ Generated: specs/configuration.md
|
|
838
841
|
✅ Generated: .env.example
|
|
839
842
|
|
|
840
|
-
|
|
843
|
+
Documents have been created with all Phase 7 information.
|
|
841
844
|
|
|
842
|
-
|
|
843
|
-
B) 📝 I'll edit them now (I'll wait)
|
|
844
|
-
C) 🔄 Regenerate with changes (tell me what to modify)
|
|
845
|
-
```
|
|
846
|
-
|
|
847
|
-
**If user selects B:**
|
|
845
|
+
📝 Would you like to make any corrections before continuing?
|
|
848
846
|
|
|
847
|
+
→ If yes: Edit the files and type "ready" when done. I'll re-read them.
|
|
848
|
+
→ If no: Type "continue" to proceed to final checkpoint.
|
|
849
849
|
```
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
850
|
+
|
|
851
|
+
**If user edits files:**
|
|
852
|
+
Re-read files to refresh context before continuing.
|
|
853
853
|
|
|
854
854
|
---
|
|
855
855
|
|
|
@@ -985,6 +985,8 @@ Phase 8 will:
|
|
|
985
985
|
- 📄 Generate README.md (with intelligent merge if needed)
|
|
986
986
|
- 🤖 Create tool-specific configs (based on AI selection)
|
|
987
987
|
|
|
988
|
+
> ⚠️ **CRITICAL:** README.md MUST NOT exist yet. It will be generated in Phase 8 step 8.5 AFTER framework initialization to avoid conflicts.
|
|
989
|
+
|
|
988
990
|
Continue to Phase 8? (yes/no)
|
|
989
991
|
```
|
|
990
992
|
|
|
@@ -1040,7 +1042,7 @@ When executing this master prompt:
|
|
|
1040
1042
|
- [ ] Present suggestions with actions and impacts
|
|
1041
1043
|
- [ ] **Offer export option (0.3):**
|
|
1042
1044
|
- [ ] Ask if user wants to export analysis to JSON
|
|
1043
|
-
- [ ] If yes, create .ai-flow/analysis.json with complete analysis
|
|
1045
|
+
- [ ] If yes, create .ai-flow/cache/docs-analysis.json with complete analysis
|
|
1044
1046
|
- [ ] Let user choose: A) Use detected info, B) Start fresh, C) Review/edit detected info
|
|
1045
1047
|
- [ ] **Handle suggestions:**
|
|
1046
1048
|
- [ ] If user selected A (address during build), integrate suggestions into relevant phases
|
|
@@ -1137,6 +1139,3 @@ This is an investment that will save 10-20 hours over the project lifecycle.
|
|
|
1137
1139
|
```
|
|
1138
1140
|
|
|
1139
1141
|
```
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
@@ -23,6 +23,8 @@ This final phase will:
|
|
|
23
23
|
|
|
24
24
|
## 8.1: Project State Detection
|
|
25
25
|
|
|
26
|
+
> ⚠️ **PRE-REQUISITE CHECK:** Before proceeding, verify that README.md does NOT exist yet (unless it's a framework-generated one from previous initialization). If README.md exists and was NOT generated by a framework, this indicates an error in previous phases.
|
|
27
|
+
|
|
26
28
|
```
|
|
27
29
|
🔍 Detecting current project state...
|
|
28
30
|
```
|
|
@@ -307,7 +309,7 @@ SMTP_PASS=""
|
|
|
307
309
|
|
|
308
310
|
```yaml
|
|
309
311
|
# Copy from templates/docker-compose/postgres.template.yml
|
|
310
|
-
version:
|
|
312
|
+
version: '3.8'
|
|
311
313
|
|
|
312
314
|
services:
|
|
313
315
|
postgres:
|
|
@@ -318,11 +320,11 @@ services:
|
|
|
318
320
|
POSTGRES_USER: ${DB_USER:-postgres}
|
|
319
321
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-password}
|
|
320
322
|
ports:
|
|
321
|
-
-
|
|
323
|
+
- '${DB_PORT:-5432}:5432'
|
|
322
324
|
volumes:
|
|
323
325
|
- postgres_data:/var/lib/postgresql/data
|
|
324
326
|
healthcheck:
|
|
325
|
-
test: [
|
|
327
|
+
test: ['CMD-SHELL', 'pg_isready -U postgres']
|
|
326
328
|
interval: 10s
|
|
327
329
|
timeout: 5s
|
|
328
330
|
retries: 5
|
|
@@ -335,7 +337,7 @@ volumes:
|
|
|
335
337
|
|
|
336
338
|
```yaml
|
|
337
339
|
# Copy from templates/docker-compose/mysql.template.yml
|
|
338
|
-
version:
|
|
340
|
+
version: '3.8'
|
|
339
341
|
|
|
340
342
|
services:
|
|
341
343
|
mysql:
|
|
@@ -345,7 +347,7 @@ services:
|
|
|
345
347
|
MYSQL_DATABASE: ${DB_NAME:-myapp_dev}
|
|
346
348
|
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-password}
|
|
347
349
|
ports:
|
|
348
|
-
-
|
|
350
|
+
- '${DB_PORT:-3306}:3306'
|
|
349
351
|
volumes:
|
|
350
352
|
- mysql_data:/var/lib/mysql
|
|
351
353
|
|
|
@@ -357,7 +359,7 @@ volumes:
|
|
|
357
359
|
|
|
358
360
|
```yaml
|
|
359
361
|
# Copy from templates/docker-compose/mongodb.template.yml
|
|
360
|
-
version:
|
|
362
|
+
version: '3.8'
|
|
361
363
|
|
|
362
364
|
services:
|
|
363
365
|
mongodb:
|
|
@@ -368,7 +370,7 @@ services:
|
|
|
368
370
|
MONGO_INITDB_ROOT_USERNAME: ${DB_USER:-root}
|
|
369
371
|
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD:-password}
|
|
370
372
|
ports:
|
|
371
|
-
-
|
|
373
|
+
- '${DB_PORT:-27017}:27017'
|
|
372
374
|
volumes:
|
|
373
375
|
- mongodb_data:/data/db
|
|
374
376
|
|
|
@@ -437,9 +439,44 @@ npx prisma init
|
|
|
437
439
|
- MySQL: https://hub.docker.com/_/mysql
|
|
438
440
|
- MongoDB: https://hub.docker.com/_/mongo
|
|
439
441
|
|
|
440
|
-
### 8.2.6.5:
|
|
442
|
+
### 8.2.6.5: Summary
|
|
443
|
+
|
|
444
|
+
```
|
|
445
|
+
✅ Minimal enhancements complete!
|
|
446
|
+
|
|
447
|
+
Files created (2-3 max):
|
|
448
|
+
✅ .env.example (environment template)
|
|
449
|
+
✅ docker-compose.yml (if Docker selected)
|
|
450
|
+
✅ prisma/schema.prisma (if Prisma ORM)
|
|
451
|
+
|
|
452
|
+
🎯 Total: 2-3 files (vs 40-60 files in old approach)
|
|
453
|
+
📚 For Express/FastAPI starter code, refer to official documentation
|
|
454
|
+
|
|
455
|
+
Next steps:
|
|
456
|
+
1. Generate .gitignore (step 8.2.7 - runs for all projects)
|
|
457
|
+
2. Copy .env.example to .env and configure
|
|
458
|
+
3. Start database: docker-compose up -d (if applicable)
|
|
459
|
+
4. Run migrations: npm run db:migrate or equivalent
|
|
460
|
+
5. Start dev server: npm run start:dev or equivalent
|
|
461
|
+
6. Create features with /feature command
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
**CRITICAL RULES:**
|
|
465
|
+
|
|
466
|
+
- ❌ **DO NOT** create entity modules (User, Product, Order, etc.)
|
|
467
|
+
- ❌ **DO NOT** create controllers/routes for business logic
|
|
468
|
+
- ❌ **DO NOT** create authentication endpoints
|
|
469
|
+
- ❌ **DO NOT** create complete folder structures
|
|
470
|
+
- ❌ **DO NOT** install 40+ packages manually
|
|
471
|
+
- ✅ **ONLY** create .env.example, .gitignore, docker-compose (optional), ORM init
|
|
472
|
+
- ✅ **LET** framework CLI handle structure, configs, dependencies
|
|
473
|
+
- ✅ **REFER** to official docs for starter code when needed
|
|
474
|
+
|
|
475
|
+
---
|
|
476
|
+
|
|
477
|
+
## 8.2.7: Generate .gitignore (Always)
|
|
441
478
|
|
|
442
|
-
**IMPORTANT:**
|
|
479
|
+
**IMPORTANT:** This step runs for ALL projects, regardless of framework initialization choice.
|
|
443
480
|
|
|
444
481
|
```
|
|
445
482
|
📝 Generating .gitignore for your tech stack...
|
|
@@ -593,41 +630,6 @@ docker-compose.override.yml
|
|
|
593
630
|
|
|
594
631
|
---
|
|
595
632
|
|
|
596
|
-
### 8.2.6.6: Final Summary
|
|
597
|
-
|
|
598
|
-
```
|
|
599
|
-
✅ Minimal enhancements complete!
|
|
600
|
-
|
|
601
|
-
Files created (3-4 max):
|
|
602
|
-
✅ .env.example (environment template)
|
|
603
|
-
✅ .gitignore (ignore patterns for your stack)
|
|
604
|
-
✅ docker-compose.yml (if Docker selected)
|
|
605
|
-
✅ prisma/schema.prisma (if Prisma ORM)
|
|
606
|
-
|
|
607
|
-
🎯 Total: 3-4 files (vs 40-60 files in old approach)
|
|
608
|
-
📚 For Express/FastAPI starter code, refer to official documentation
|
|
609
|
-
|
|
610
|
-
Next steps:
|
|
611
|
-
1. Copy .env.example to .env and configure
|
|
612
|
-
2. Start database: docker-compose up -d (if applicable)
|
|
613
|
-
3. Run migrations: npm run db:migrate or equivalent
|
|
614
|
-
4. Start dev server: npm run start:dev or equivalent
|
|
615
|
-
5. Create features with /feature command
|
|
616
|
-
```
|
|
617
|
-
|
|
618
|
-
**CRITICAL RULES:**
|
|
619
|
-
|
|
620
|
-
- ❌ **DO NOT** create entity modules (User, Product, Order, etc.)
|
|
621
|
-
- ❌ **DO NOT** create controllers/routes for business logic
|
|
622
|
-
- ❌ **DO NOT** create authentication endpoints
|
|
623
|
-
- ❌ **DO NOT** create complete folder structures
|
|
624
|
-
- ❌ **DO NOT** install 40+ packages manually
|
|
625
|
-
- ✅ **ONLY** create .env.example, .gitignore, docker-compose (optional), ORM init
|
|
626
|
-
- ✅ **LET** framework CLI handle structure, configs, dependencies
|
|
627
|
-
- ✅ **REFER** to official docs for starter code when needed
|
|
628
|
-
|
|
629
|
-
---
|
|
630
|
-
|
|
631
633
|
## 8.3: Generate Final Documentation
|
|
632
634
|
|
|
633
635
|
```
|
|
@@ -1246,6 +1248,7 @@ When executing Phase 8:
|
|
|
1246
1248
|
- [ ] Restore .ai-flow/ docs from temp-backup/
|
|
1247
1249
|
- [ ] Handle README.md conflict if framework created one
|
|
1248
1250
|
- [ ] If no: Show manual command and continue
|
|
1251
|
+
- [ ] Generate .gitignore (ALWAYS - step 8.2.7, runs for all projects)
|
|
1249
1252
|
|
|
1250
1253
|
**8.3 Generate Final Documentation:**
|
|
1251
1254
|
|
|
@@ -1253,7 +1256,6 @@ When executing Phase 8:
|
|
|
1253
1256
|
- [ ] Generate docs/business-flows.md (from Phase 1)
|
|
1254
1257
|
- [ ] Generate docs/api.md (from Phase 2 + Phase 3)
|
|
1255
1258
|
- [ ] Generate docs/contributing.md (from Phase 5 + Phase 7)
|
|
1256
|
-
- [ ] Generate .gitignore (based on framework and tools)
|
|
1257
1259
|
|
|
1258
1260
|
**8.4 Generate AGENT.md:**
|
|
1259
1261
|
|
|
@@ -1382,4 +1384,3 @@ Happy coding! 🚀
|
|
|
1382
1384
|
|
|
1383
1385
|
**SUCCESS:** Project fully documented and ready for development! 🚀
|
|
1384
1386
|
```
|
|
1385
|
-
|