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.
Files changed (41) hide show
  1. package/README.md +97 -30
  2. package/dist/cli.js +79 -104
  3. package/dist/cli.js.map +1 -1
  4. package/package.json +6 -2
  5. package/prompts/backend/{flow-bootstrap-phase-0.md → flow-build-phase-0.md} +5 -3
  6. package/prompts/backend/{flow-bootstrap-phase-1.md → flow-build-phase-1.md} +36 -41
  7. package/prompts/backend/{flow-bootstrap-phase-2.md → flow-build-phase-2.md} +80 -68
  8. package/prompts/backend/{flow-bootstrap-phase-3.md → flow-build-phase-3.md} +82 -61
  9. package/prompts/backend/{flow-bootstrap-phase-5.md → flow-build-phase-5.md} +10 -9
  10. package/prompts/backend/{flow-bootstrap-phase-6.md → flow-build-phase-6.md} +8 -7
  11. package/prompts/backend/{flow-bootstrap-phase-7.md → flow-build-phase-7.md} +5 -3
  12. package/prompts/backend/{flow-bootstrap-phase-8.md → flow-build-phase-8.md} +248 -30
  13. package/prompts/backend/{flow-bootstrap-phase-9.md → flow-build-phase-9.md} +97 -99
  14. package/prompts/backend/{flow-bootstrap.md → flow-build.md} +105 -34
  15. package/prompts/backend/flow-docs-sync.md +2 -1
  16. package/prompts/frontend/{flow-bootstrap-phase-0.md → flow-build-phase-0.md} +3 -2
  17. package/prompts/frontend/{flow-bootstrap-phase-1.md → flow-build-phase-1.md} +2 -1
  18. package/prompts/frontend/{flow-bootstrap-phase-2.md → flow-build-phase-2.md} +2 -1
  19. package/prompts/frontend/{flow-bootstrap-phase-3.md → flow-build-phase-3.md} +2 -1
  20. package/prompts/frontend/{flow-bootstrap-phase-4.md → flow-build-phase-4.md} +4 -2
  21. package/prompts/frontend/{flow-bootstrap-phase-5.md → flow-build-phase-5.md} +2 -1
  22. package/prompts/frontend/{flow-bootstrap-phase-6.md → flow-build-phase-6.md} +2 -1
  23. package/prompts/frontend/{flow-bootstrap-phase-8.md → flow-build-phase-8.md} +238 -22
  24. package/prompts/frontend/{flow-bootstrap.md → flow-build.md} +108 -25
  25. package/prompts/frontend/flow-docs-sync.md +3 -2
  26. package/prompts/mobile/{flow-bootstrap-phase-0.md → flow-build-phase-0.md} +3 -2
  27. package/prompts/mobile/{flow-bootstrap-phase-1.md → flow-build-phase-1.md} +2 -1
  28. package/prompts/mobile/{flow-bootstrap-phase-2.md → flow-build-phase-2.md} +2 -1
  29. package/prompts/mobile/{flow-bootstrap-phase-3.md → flow-build-phase-3.md} +2 -1
  30. package/prompts/mobile/{flow-bootstrap-phase-4.md → flow-build-phase-4.md} +2 -1
  31. package/prompts/mobile/{flow-bootstrap-phase-5.md → flow-build-phase-5.md} +2 -1
  32. package/prompts/mobile/{flow-bootstrap-phase-6.md → flow-build-phase-6.md} +2 -1
  33. package/prompts/mobile/{flow-bootstrap-phase-8.md → flow-build-phase-8.md} +249 -23
  34. package/prompts/mobile/{flow-bootstrap.md → flow-build.md} +107 -26
  35. package/prompts/mobile/flow-docs-sync.md +3 -2
  36. package/templates/AGENT.template.md +1 -17
  37. package/templates/backend/.clauderules.template +1 -1
  38. package/templates/backend/.cursorrules.template +1 -1
  39. /package/prompts/backend/{flow-bootstrap-phase-4.md → flow-build-phase-4.md} +0 -0
  40. /package/prompts/frontend/{flow-bootstrap-phase-7.md → flow-build-phase-7.md} +0 -0
  41. /package/prompts/mobile/{flow-bootstrap-phase-7.md → flow-build-phase-7.md} +0 -0
@@ -514,80 +514,102 @@ Will you integrate with external services?
514
514
  Select all that apply:
515
515
 
516
516
  💳 Payment Providers:
517
- Stripe - Credit cards, subscriptions ⭐
518
- PayPal - Popular payment method
519
- Square - POS and online payments
520
- Mercado Pago - Latin America
521
- Other: __
517
+ A) Stripe - Credit cards, subscriptions ⭐
518
+ B) PayPal - Popular payment method
519
+ C) Square - POS and online payments
520
+ D) Mercado Pago - Latin America
521
+ E) Other: __
522
+
523
+ → Your selection (e.g., A): __
522
524
 
523
525
  📧 Email Services:
524
- AWS SES - Cost-effective, scalable ⭐
525
- SendGrid - Feature-rich, analytics
526
- Mailgun - Developer-friendly
527
- Postmark - Transactional focus
528
- Resend - Modern, simple API ⚡
529
- Other: __
526
+ A) AWS SES - Cost-effective, scalable ⭐
527
+ B) SendGrid - Feature-rich, analytics
528
+ C) Mailgun - Developer-friendly
529
+ D) Postmark - Transactional focus
530
+ E) Resend - Modern, simple API ⚡
531
+ F) Other: __
532
+
533
+ → Your selection (e.g., A, B): __
530
534
 
531
535
  📱 SMS/Messaging:
532
- Twilio - SMS, WhatsApp, voice ⭐
533
- AWS SNS - Simple notifications
534
- □ MessageBird - Multi-channel
535
- Other: __
536
+ C) MessageBird - Multi-channel
537
+ D) Other: __
538
+
539
+ Your selection (e.g., A): __
536
540
 
537
541
  ☁️ Cloud Storage:
538
- □ AWS S3 - Object storage standard ⭐
539
- Google Cloud Storage
540
- Azure Blob Storage
541
- □ Cloudflare R2 - S3-compatible, no egress fees ⚡
542
- Other: __
542
+
543
+ D) Cloudflare R2 - S3-compatible, no egress fees ⚡
544
+ E) Other: __
545
+
546
+ Your selection (e.g., A): __
547
+
548
+ 📊 Analytics: Storage
549
+ D) Cloudflare R2 - S3-compatible, no egress fees ⚡
550
+ E) Other: __
543
551
 
544
552
  📊 Analytics:
545
- Google Analytics - Web analytics
546
- Mixpanel - Product analytics ⭐
547
- □ Segment - Data pipeline
548
- PostHog - Open-source analytics
549
- □ Amplitude - Behavioral analytics
550
- Other: __
551
-
552
- 🔍 Monitoring/Error Tracking:
553
- Sentry - Error tracking ⭐
554
- □ Datadog - Full observability 🏆
555
- New Relic - APM
556
- □ LogRocket - Session replay
557
- Other: __
558
-
559
- 🗺️ Maps/Location:
560
- Google Maps API
561
- Mapbox
562
- □ OpenStreetMap
563
- Other: __
553
+ E) Amplitude - Behavioral analytics
554
+ F) Other: __
555
+
556
+ Your selection (e.g., B, C): __
557
+
558
+ 🔍 Monitoring/Error Tracking:ytics
559
+ E) Amplitude - Behavioral analytics
560
+ D) LogRocket - Session replay
561
+ E) Other: __
562
+
563
+ Your selection (e.g., A): __
564
+
565
+ 🗺️ Maps/Location:tracking
566
+ B) Datadog - Full observability 🏆
567
+ C) New Relic - APM
568
+ C) OpenStreetMap
569
+ D) Other: __
570
+
571
+ Your selection (e.g., A): __
564
572
 
565
573
  🔐 Authentication:
566
- Auth0 - Identity platform 🏆
567
- Clerk - Modern auth ⚡
568
- Supabase Auth - Open-source
569
- □ Firebase Auth - Google ecosystem
570
- Other: __
574
+ A) Google Maps API
575
+ D) Firebase Auth - Google ecosystem
576
+ E) Other: __
577
+
578
+ Your selection (e.g., A, B): __
571
579
 
572
580
  🤖 AI/ML Services:
573
- OpenAI API - GPT models
574
- Anthropic Claude - AI assistant
575
- Google Gemini - Multimodal AI
576
- □ AWS Bedrock - Managed AI
577
- Other: __
578
-
579
- 📞 Communication:
580
- Slack - Team notifications
581
- □ Discord - Community integration
582
- Webhooks - Custom integrations
583
- Other: __
581
+ 🔐 Authentication:
582
+ D) AWS Bedrock - Managed AI
583
+ E) Other: __
584
+
585
+ Your selection (e.g., A): __
586
+
587
+ 📞 Communication:- Google ecosystem
588
+ E) Other: __
589
+
590
+ C) Webhooks - Custom integrations
591
+ D) Other: __
592
+
593
+ → Your selection (e.g., A, B): __
594
+
595
+ 🔄 Other Integrations:timodal AI
596
+ D) AWS Bedrock - Managed AI
597
+ D) Accounting (QuickBooks, Xero)
598
+ E) Other: __
599
+
600
+ → Your selection (e.g., A, B, C): __
601
+
602
+ ---
603
+
604
+ For each selected, briefly describe the use case:
605
+ D) Other: __
584
606
 
585
607
  🔄 Other Integrations:
586
- GitHub/GitLab API
587
- Calendar (Google/Outlook)
588
- CRM (Salesforce, HubSpot)
589
- Accounting (QuickBooks, Xero)
590
- Other: __
608
+ A) GitHub/GitLab API
609
+ B) Calendar (Google/Outlook)
610
+ C) CRM (Salesforce, HubSpot)
611
+ D) Accounting (QuickBooks, Xero)
612
+ E) Other: __
591
613
 
592
614
  ---
593
615
 
@@ -681,4 +703,3 @@ Then execute: `read_file()` for both documents to refresh context.
681
703
  ---
682
704
 
683
705
  ## PHASE 4: Security & Authentication (15-20 min)
684
-
@@ -543,14 +543,16 @@ Default log level:
543
543
  - Production: __
544
544
 
545
545
  Log context to include:
546
- Request ID (for tracing)
547
- User ID (if authenticated)
548
- IP address
549
- User agent
550
- Request path
551
- Response status
552
- Duration
553
- Error stack traces
546
+ A) Request ID (for tracing)
547
+ B) User ID (if authenticated)
548
+ C) IP address
549
+ D) User agent
550
+ E) Request path
551
+ F) Response status
552
+ G) Duration
553
+ H) Error stack traces
554
+
555
+ → Your selection (e.g., A, B, E, F, G): __
554
556
 
555
557
  Log aggregation tool:
556
558
  A) ⭐ CloudWatch (AWS)
@@ -634,4 +636,3 @@ I'll re-read all files to update my context before continuing.
634
636
  ---
635
637
 
636
638
  ## PHASE 6: Testing Strategy (15-25 min)
637
-
@@ -321,12 +321,14 @@ D) Custom scripts
321
321
  E) Other: __
322
322
 
323
323
  Chaos experiments to run:
324
- Network latency injection
325
- Service failures
326
- Database connection failures
327
- CPU/memory exhaustion
328
- Disk space issues
329
- Network partition
324
+ A) Network latency injection
325
+ B) Service failures
326
+ C) Database connection failures
327
+ D) CPU/memory exhaustion
328
+ E) Disk space issues
329
+ F) Network partition
330
+
331
+ → Your selection (e.g., A, B, C): __
330
332
 
331
333
  Safety rules:
332
334
  - Run only in: [Staging, Production with approval]
@@ -462,4 +464,3 @@ I'll re-read all files to update my context before continuing.
462
464
 
463
465
  ## PHASE 7: Operations & Deployment (10 min)
464
466
  ````
465
-
@@ -1043,7 +1043,7 @@ When executing this master prompt:
1043
1043
  - [ ] If yes, create .ai-flow/analysis.json with complete analysis
1044
1044
  - [ ] Let user choose: A) Use detected info, B) Start fresh, C) Review/edit detected info
1045
1045
  - [ ] **Handle suggestions:**
1046
- - [ ] If user selected A (address during bootstrap), integrate suggestions into relevant phases
1046
+ - [ ] If user selected A (address during build), integrate suggestions into relevant phases
1047
1047
  - [ ] If user selected B (save for later), create suggestions.md file
1048
1048
  - [ ] If user selected C (skip), continue without changes
1049
1049
  - [ ] Pre-populate answers based on detected information
@@ -1116,7 +1116,7 @@ This is an investment that will save 10-20 hours over the project lifecycle.
1116
1116
 
1117
1117
  **EXECUTION FLOW:**
1118
1118
 
1119
- 1. **START:** User runs `/flow-bootstrap`
1119
+ 1. **START:** User runs `/flow-build`
1120
1120
  2. **DETECT:** Check for existing project files (Phase 0)
1121
1121
  - If existing files found → Run Phase 0 deep analysis:
1122
1122
  - 0.1: Deep Code Analysis (file structure, AST parsing, schema extraction, pattern detection)
@@ -1132,9 +1132,11 @@ This is an investment that will save 10-20 hours over the project lifecycle.
1132
1132
 
1133
1133
  ---
1134
1134
 
1135
- **BEGIN EXECUTION when user runs `/flow-bootstrap`**
1135
+ **BEGIN EXECUTION when user runs `/flow-build`**
1136
1136
 
1137
1137
  ```
1138
1138
 
1139
1139
  ```
1140
1140
 
1141
+
1142
+
@@ -84,7 +84,7 @@ B) ⏭️ Skip for now (manual setup later)
84
84
  📦 Preparing for framework initialization...
85
85
 
86
86
  Creating backup of AI Flow documentation:
87
- → Moving .ai-flow/ docs to .ai-flow/temp-backup/
87
+ → Moving project root docs to .ai-flow/temp-backup/
88
88
 
89
89
  Files to backup:
90
90
  ✅ project-brief.md
@@ -437,17 +437,174 @@ npx prisma init
437
437
  - MySQL: https://hub.docker.com/_/mysql
438
438
  - MongoDB: https://hub.docker.com/_/mongo
439
439
 
440
- ### 8.2.6.5: Final Summary
440
+ ### 8.2.6.5: Generate .gitignore
441
+
442
+ **IMPORTANT:** Generate a comprehensive `.gitignore` file based on the framework, language, and tools selected in previous phases.
443
+
444
+ ```
445
+ 📝 Generating .gitignore for your tech stack...
446
+ ```
447
+
448
+ **Strategy:**
449
+
450
+ 1. **Detect framework from Phase 3** (NestJS, Express, Django, FastAPI, etc.)
451
+ 2. **Detect language** (Node.js, Python, Go, etc.)
452
+ 3. **Detect tools from Phase 7** (Docker, Prisma, etc.)
453
+ 4. **Combine relevant patterns**
454
+
455
+ **Base patterns by technology:**
456
+
457
+ **Node.js projects (NestJS, Express):**
458
+
459
+ ```gitignore
460
+ # Dependencies
461
+ node_modules/
462
+ npm-debug.log*
463
+ yarn-debug.log*
464
+ yarn-error.log*
465
+ .pnpm-debug.log*
466
+
467
+ # Build outputs
468
+ dist/
469
+ build/
470
+ *.tsbuildinfo
471
+
472
+ # Environment variables
473
+ .env
474
+ .env.local
475
+ .env.*.local
476
+
477
+ # IDE
478
+ .vscode/
479
+ .idea/
480
+ *.swp
481
+ *.swo
482
+ *~
483
+
484
+ # OS
485
+ .DS_Store
486
+ Thumbs.db
487
+
488
+ # Testing
489
+ coverage/
490
+ .nyc_output/
491
+
492
+ # Logs
493
+ logs/
494
+ *.log
495
+
496
+ # Prisma (if using)
497
+ prisma/migrations/dev.db
498
+ prisma/*.db
499
+
500
+ # TypeScript
501
+ *.tsbuildinfo
502
+ ```
503
+
504
+ **Python projects (Django, FastAPI):**
505
+
506
+ ```gitignore
507
+ # Python
508
+ __pycache__/
509
+ *.py[cod]
510
+ *$py.class
511
+ *.so
512
+ .Python
513
+
514
+ # Virtual environments
515
+ venv/
516
+ env/
517
+ ENV/
518
+ .venv
519
+
520
+ # Django
521
+ *.log
522
+ db.sqlite3
523
+ db.sqlite3-journal
524
+ media/
525
+ staticfiles/
526
+
527
+ # FastAPI
528
+ .pytest_cache/
529
+
530
+ # Environment
531
+ .env
532
+ .env.local
533
+
534
+ # IDE
535
+ .vscode/
536
+ .idea/
537
+ *.swp
538
+
539
+ # OS
540
+ .DS_Store
541
+ ```
542
+
543
+ **Go projects:**
544
+
545
+ ```gitignore
546
+ # Binaries
547
+ *.exe
548
+ *.exe~
549
+ *.dll
550
+ *.so
551
+ *.dylib
552
+ bin/
553
+
554
+ # Test binary
555
+ *.test
556
+
557
+ # Output
558
+ *.out
559
+
560
+ # Go workspace
561
+ go.work
562
+
563
+ # Environment
564
+ .env
565
+
566
+ # IDE
567
+ .vscode/
568
+ .idea/
569
+ ```
570
+
571
+ **Docker additions (if Docker selected in Phase 7):**
572
+
573
+ ```gitignore
574
+ # Docker
575
+ docker-compose.override.yml
576
+ .docker/
577
+ ```
578
+
579
+ **📝 Action:** Generate and write `.gitignore` to project root.
580
+
581
+ **Selection logic:**
582
+
583
+ - If NestJS/Express → Use Node.js patterns
584
+ - If Django/FastAPI → Use Python patterns
585
+ - If Go/Gin → Use Go patterns
586
+ - If Prisma detected in Phase 3 → Add Prisma patterns
587
+ - If Docker selected in Phase 7 → Add Docker patterns
588
+
589
+ ```
590
+ ✅ Generated: .gitignore
591
+ Patterns included: [Node.js | Python | Go] + [Prisma] + [Docker]
592
+ ```
593
+
594
+ ---
595
+
596
+ ### 8.2.6.6: Final Summary
441
597
 
442
598
  ```
443
599
  ✅ Minimal enhancements complete!
444
600
 
445
- Files created (2-3 max):
601
+ Files created (3-4 max):
446
602
  ✅ .env.example (environment template)
603
+ ✅ .gitignore (ignore patterns for your stack)
447
604
  ✅ docker-compose.yml (if Docker selected)
448
605
  ✅ prisma/schema.prisma (if Prisma ORM)
449
606
 
450
- 🎯 Total: 2-3 files (vs 40-60 files in old approach)
607
+ 🎯 Total: 3-4 files (vs 40-60 files in old approach)
451
608
  📚 For Express/FastAPI starter code, refer to official documentation
452
609
 
453
610
  Next steps:
@@ -465,7 +622,7 @@ Next steps:
465
622
  - ❌ **DO NOT** create authentication endpoints
466
623
  - ❌ **DO NOT** create complete folder structures
467
624
  - ❌ **DO NOT** install 40+ packages manually
468
- - ✅ **ONLY** create .env.example, docker-compose (optional), ORM init
625
+ - ✅ **ONLY** create .env.example, .gitignore, docker-compose (optional), ORM init
469
626
  - ✅ **LET** framework CLI handle structure, configs, dependencies
470
627
  - ✅ **REFER** to official docs for starter code when needed
471
628
 
@@ -532,6 +689,14 @@ Generating...
532
689
  [Generate mermaid sequence diagram]
533
690
  ```
534
691
 
692
+ **📝 Action:** Write the complete file to `docs/business-flows.md`
693
+
694
+ ```
695
+ ✅ Generated: docs/business-flows.md
696
+ ```
697
+
698
+ ---
699
+
535
700
  ### 8.3.2: Generate docs/api.md
536
701
 
537
702
  - **Template:** `.ai-flow/templates/docs/api.template.md`
@@ -608,6 +773,12 @@ We use [workflow from Phase 5]
608
773
  [Format from Phase 5.2]
609
774
  ````
610
775
 
776
+ **📝 Action:** Write the complete file to `docs/contributing.md`
777
+
778
+ ```
779
+ ✅ Generated: docs/contributing.md
780
+ ```
781
+
611
782
  ---
612
783
 
613
784
  ## 8.4: Generate AGENT.md (Master Index)
@@ -759,15 +930,50 @@ The API will be available at `http://localhost:3000`
759
930
 
760
931
  ````
761
932
 
762
- **Success message:**
933
+ **📝 Action:** Write the complete file to `.ai-flow/README.md`
763
934
 
764
935
  ```
765
- ✅ README.md generated!
936
+ Generated: .ai-flow/README.md
766
937
  [If merged] Merged with framework's setup instructions
767
938
  ```
768
939
 
769
940
  ---
770
941
 
942
+ ## 8.6: Generate AGENT.md (Master Index)
943
+
944
+ **CRITICAL:** Before generating AGENT.md, re-read ALL previously generated documents to have complete context.
945
+
946
+ **📝 Action:**
947
+
948
+ ```
949
+ 🔄 Re-reading all generated documents for AGENT.md generation...
950
+
951
+ ✅ Reading project-brief.md
952
+ ✅ Reading ai-instructions.md
953
+ ✅ Reading docs/data-model.md
954
+ ✅ Reading docs/architecture.md
955
+ ✅ Reading docs/code-standards.md
956
+ ✅ Reading docs/testing.md
957
+ ✅ Reading docs/operations.md
958
+ ✅ Reading specs/security.md
959
+ ✅ Reading specs/configuration.md
960
+ ✅ Reading docs/business-flows.md
961
+ ✅ Reading docs/api.md
962
+ ✅ Reading docs/contributing.md
963
+
964
+ ✅ All context loaded!
965
+ ```
966
+
967
+ Now generate AGENT.md with complete information from all documents.
968
+
969
+ **📝 Action:** Write the complete file to `.ai-flow/AGENT.md`
970
+
971
+ ```
972
+ ✅ Generated: .ai-flow/AGENT.md (Master Index)
973
+ ```
974
+
975
+ ---
976
+
771
977
  ## 8.7: Create Tool-Specific Configs
772
978
 
773
979
  **Based on AI tool selection from Phase 3 (question 3.8):**
@@ -789,18 +995,18 @@ Read `.ai-flow/AGENT.md` first for complete documentation index.
789
995
 
790
996
  - Project overview: `.ai-flow/project-brief.md`
791
997
  - AI instructions: `.ai-flow/ai-instructions.md`
792
- - Architecture: `.ai-flow/docs/architecture.md`
793
- - API reference: `.ai-flow/docs/api.md`
794
- - Code standards: `.ai-flow/docs/code-standards.md`
998
+ - Architecture: `docs/architecture.md`
999
+ - API reference: `docs/api.md`
1000
+ - Code standards: `docs/code-standards.md`
795
1001
 
796
1002
  ## Working Instructions
797
1003
 
798
1004
  When writing code:
799
1005
 
800
- 1. Follow patterns in `.ai-flow/docs/code-standards.md`
801
- 2. Reference data model in `.ai-flow/docs/data-model.md`
802
- 3. Implement security rules from `.ai-flow/specs/security.md`
803
- 4. Write tests per `.ai-flow/docs/testing.md`
1006
+ 1. Follow patterns in `docs/code-standards.md`
1007
+ 2. Reference data model in `docs/data-model.md`
1008
+ 3. Implement security rules from `specs/security.md`
1009
+ 4. Write tests per `docs/testing.md`
804
1010
 
805
1011
  ## Critical Rules
806
1012
 
@@ -823,9 +1029,9 @@ See `.ai-flow/AGENT.md` for complete document list.
823
1029
  ## Quick Reference
824
1030
 
825
1031
  - Tech Stack: [from Phase 3]
826
- - Architecture: `.ai-flow/docs/architecture.md`
827
- - Code Standards: `.ai-flow/docs/code-standards.md`
828
- - API Conventions: `.ai-flow/docs/api.md`
1032
+ - Architecture: `docs/architecture.md`
1033
+ - Code Standards: `docs/code-standards.md`
1034
+ - API Conventions: `docs/api.md`
829
1035
 
830
1036
  ## Code Generation Rules
831
1037
 
@@ -855,11 +1061,11 @@ Master index: `.ai-flow/AGENT.md`
855
1061
 
856
1062
  ## Key References
857
1063
 
858
- - Architecture: `.ai-flow/docs/architecture.md`
859
- - Data Model: `.ai-flow/docs/data-model.md`
860
- - API: `.ai-flow/docs/api.md`
861
- - Code Standards: `.ai-flow/docs/code-standards.md`
862
- - Testing: `.ai-flow/docs/testing.md`
1064
+ - Architecture: `docs/architecture.md`
1065
+ - Data Model: `docs/data-model.md`
1066
+ - API: `docs/api.md`
1067
+ - Code Standards: `docs/code-standards.md`
1068
+ - Testing: `docs/testing.md`
863
1069
 
864
1070
  ## Code Generation Guidelines
865
1071
 
@@ -874,9 +1080,17 @@ Master index: `.ai-flow/AGENT.md`
874
1080
  [Extract from code-standards.md]
875
1081
  ```
876
1082
 
877
- ### If "All" selected:
1083
+ **📝 Action:** Generate the tool-specific config files based on selection:
878
1084
 
879
- Generate all three files above.
1085
+ - If Claude Write `.clauderules`
1086
+ - If Cursor → Write `.cursorrules`
1087
+ - If Copilot → Write `.github/copilot-instructions.md`
1088
+ - If "All" → Write all three files
1089
+
1090
+ ```
1091
+ ✅ Generated tool-specific configs:
1092
+ [List generated files based on selection]
1093
+ ```
880
1094
 
881
1095
  ---
882
1096
 
@@ -898,7 +1112,7 @@ All validations passed!
898
1112
  ```
899
1113
  🎉 AI Flow Complete!
900
1114
 
901
- Generated 15 documents successfully:
1115
+ Generated 16 documents successfully:
902
1116
 
903
1117
  Phase 1:
904
1118
  ✅ project-brief.md
@@ -930,6 +1144,7 @@ Phase 8:
930
1144
  ✅ docs/contributing.md
931
1145
  ✅ README.md
932
1146
  ✅ AGENT.md
1147
+ ✅ .gitignore
933
1148
 
934
1149
  [If framework initialized:]
935
1150
  ✅ [FRAMEWORK_NAME] project initialized
@@ -959,13 +1174,14 @@ your-project/
959
1174
  │ │ ├── testing.md
960
1175
  │ │ ├── operations.md
961
1176
  │ │ └── contributing.md
962
- ├── specs/
963
- ├── security.md
964
- └── configuration.md
1177
+ ├── specs/
1178
+ │ ├── security.md
1179
+ │ └── configuration.md
965
1180
  │ └── templates/ # Original templates
966
1181
  ├── [framework files] # If initialized
967
1182
  ├── README.md
968
1183
  ├── .env.example
1184
+ ├── .gitignore
969
1185
  └── [tool configs] # .clauderules, .cursorrules, etc.
970
1186
 
971
1187
  ````
@@ -1037,11 +1253,12 @@ When executing Phase 8:
1037
1253
  - [ ] Generate docs/business-flows.md (from Phase 1)
1038
1254
  - [ ] Generate docs/api.md (from Phase 2 + Phase 3)
1039
1255
  - [ ] Generate docs/contributing.md (from Phase 5 + Phase 7)
1256
+ - [ ] Generate .gitignore (based on framework and tools)
1040
1257
 
1041
1258
  **8.4 Generate AGENT.md:**
1042
1259
 
1043
1260
  - [ ] Re-read ALL documents again to ensure accuracy
1044
- - [ ] Create master index listing all 15 documents
1261
+ - [ ] Create master index listing all 16 documents
1045
1262
  - [ ] Include quick reference (tech stack, rules, commands)
1046
1263
  - [ ] Validate all links
1047
1264
 
@@ -1136,7 +1353,7 @@ Your choice (A/B): \_\_
1136
1353
 
1137
1354
  ```
1138
1355
 
1139
- **If choice A:** Continue to Phase 9 (flow-bootstrap-phase-9.md)
1356
+ **If choice A:** Continue to Phase 9 (flow-build-phase-9.md)
1140
1357
 
1141
1358
  **If choice B:** Show completion message:
1142
1359
 
@@ -1165,3 +1382,4 @@ Happy coding! 🚀
1165
1382
 
1166
1383
  **SUCCESS:** Project fully documented and ready for development! 🚀
1167
1384
  ```
1385
+