ai-flow-dev 1.3.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 (44) hide show
  1. package/README.md +97 -30
  2. package/dist/cli.js +94 -110
  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} +410 -543
  13. package/prompts/backend/{flow-bootstrap-phase-9.md → flow-build-phase-9.md} +472 -91
  14. package/prompts/backend/{flow-bootstrap.md → flow-build.md} +212 -140
  15. package/prompts/backend/flow-dev-feature.md +447 -68
  16. package/prompts/backend/flow-dev-fix.md +81 -8
  17. package/prompts/backend/flow-docs-sync.md +2 -1
  18. package/prompts/frontend/{flow-bootstrap-phase-0.md → flow-build-phase-0.md} +3 -2
  19. package/prompts/frontend/{flow-bootstrap-phase-1.md → flow-build-phase-1.md} +2 -1
  20. package/prompts/frontend/{flow-bootstrap-phase-2.md → flow-build-phase-2.md} +2 -1
  21. package/prompts/frontend/{flow-bootstrap-phase-3.md → flow-build-phase-3.md} +2 -1
  22. package/prompts/frontend/{flow-bootstrap-phase-4.md → flow-build-phase-4.md} +4 -2
  23. package/prompts/frontend/{flow-bootstrap-phase-5.md → flow-build-phase-5.md} +2 -1
  24. package/prompts/frontend/{flow-bootstrap-phase-6.md → flow-build-phase-6.md} +2 -1
  25. package/prompts/frontend/{flow-bootstrap-phase-8.md → flow-build-phase-8.md} +238 -22
  26. package/prompts/frontend/{flow-bootstrap.md → flow-build.md} +108 -25
  27. package/prompts/frontend/flow-docs-sync.md +3 -2
  28. package/prompts/mobile/{flow-bootstrap-phase-0.md → flow-build-phase-0.md} +3 -2
  29. package/prompts/mobile/{flow-bootstrap-phase-1.md → flow-build-phase-1.md} +2 -1
  30. package/prompts/mobile/{flow-bootstrap-phase-2.md → flow-build-phase-2.md} +2 -1
  31. package/prompts/mobile/{flow-bootstrap-phase-3.md → flow-build-phase-3.md} +2 -1
  32. package/prompts/mobile/{flow-bootstrap-phase-4.md → flow-build-phase-4.md} +2 -1
  33. package/prompts/mobile/{flow-bootstrap-phase-5.md → flow-build-phase-5.md} +2 -1
  34. package/prompts/mobile/{flow-bootstrap-phase-6.md → flow-build-phase-6.md} +2 -1
  35. package/prompts/mobile/{flow-bootstrap-phase-8.md → flow-build-phase-8.md} +249 -23
  36. package/prompts/mobile/{flow-bootstrap.md → flow-build.md} +107 -26
  37. package/prompts/mobile/flow-docs-sync.md +3 -2
  38. package/templates/{mobile/AGENT.template.md → AGENT.template.md} +2 -17
  39. package/templates/backend/.clauderules.template +1 -1
  40. package/templates/backend/.cursorrules.template +1 -1
  41. package/templates/shared/AGENT.template.md +0 -252
  42. /package/prompts/backend/{flow-bootstrap-phase-4.md → flow-build-phase-4.md} +0 -0
  43. /package/prompts/frontend/{flow-bootstrap-phase-7.md → flow-build-phase-7.md} +0 -0
  44. /package/prompts/mobile/{flow-bootstrap-phase-7.md → flow-build-phase-7.md} +0 -0
@@ -229,7 +229,7 @@ Time: 4 minutes
229
229
 
230
230
  ```
231
231
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
232
- 📋 Fix Plan
232
+ 📋 Fix Plan (COMPLEX Bug)
233
233
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
234
234
 
235
235
  Issue: Memory leak in WebSocket connections
@@ -239,12 +239,85 @@ Root causes identified:
239
239
  2. Connection map not clearing disconnected sockets
240
240
  3. Redis subscriptions not being unsubscribed
241
241
 
242
- Fix plan:
243
- 1. Add socket.removeAllListeners() on disconnect
244
- 2. Delete from activeConnections Map on disconnect
245
- 3. Call redisClient.unsubscribe() on disconnect
246
- 4. Add heartbeat mechanism
247
- 5. Add connection monitoring
242
+ **Affected files:**
243
+ - src/websocket/notificationSocket.ts (event listeners)
244
+ - src/services/ConnectionManager.ts (connection map)
245
+ - src/app.ts (Redis setup)
246
+
247
+ **Estimated:** 5 SP (~8-10 hours) • 10 tasks
248
+
249
+ **Fix plan:** (Test-First approach, execution order)
250
+
251
+ - [ ] [T001] [P] Write test for event listener cleanup • 1 SP (~1-2h)
252
+ File: tests/unit/websocket/disconnect-cleanup.spec.ts
253
+ Tests: Verify listeners removed, memory not retained
254
+ Dependencies: None (can run parallel with T003)
255
+
256
+ - [ ] [T002] Add socket.removeAllListeners() on disconnect • 1 SP (~1h)
257
+ File: src/websocket/notificationSocket.ts
258
+ Implements: Cleanup in disconnect event handler
259
+ Dependencies: None
260
+
261
+ - [ ] [T003] [P] Write test for connection map cleanup • 1 SP (~1h)
262
+ File: tests/unit/services/ConnectionManager.spec.ts
263
+ Tests: Verify Map.delete() called, connection removed
264
+ Dependencies: None (can run parallel with T001)
265
+
266
+ - [ ] [T004] Delete from activeConnections Map on disconnect • 1 SP (~30min)
267
+ File: src/services/ConnectionManager.ts
268
+ Implements: this.activeConnections.delete(socketId)
269
+ Dependencies: None
270
+
271
+ - [ ] [T005] Write test for Redis unsubscribe • 1 SP (~1h)
272
+ File: tests/integration/redis/subscription-cleanup.spec.ts
273
+ Tests: Redis UNSUBSCRIBE called, channels cleaned up
274
+ Dependencies: None
275
+
276
+ - [ ] [T006] Call redisClient.unsubscribe() on disconnect • 1 SP (~1h)
277
+ File: src/app.ts
278
+ Implements: Unsubscribe from all channels for this connection
279
+ Dependencies: None
280
+
281
+ - [ ] [T007] Write test for heartbeat mechanism • 1 SP (~1-2h)
282
+ File: tests/unit/websocket/heartbeat.spec.ts
283
+ Tests: Ping/pong, timeout detection, stale cleanup
284
+ Dependencies: None
285
+
286
+ - [ ] [T008] Implement heartbeat mechanism • 2 SP (~3-4h)
287
+ File: src/websocket/heartbeat.ts
288
+ Implements: Ping every 30s, timeout after 60s, auto-disconnect
289
+ Dependencies: None
290
+
291
+ - [ ] [T009] Add connection monitoring and metrics • 1 SP (~1-2h)
292
+ File: src/services/ConnectionMonitor.ts
293
+ Implements: Track active count, memory usage, alert on leaks
294
+ Dependencies: T004 (needs ConnectionManager cleanup)
295
+
296
+ - [ ] [T010] Integration test for complete cleanup flow • 1 SP (~1-2h)
297
+ File: tests/integration/websocket/full-cleanup.spec.ts
298
+ Tests: Connect 1000 clients, disconnect all, verify memory freed
299
+ Dependencies: T002, T004, T006, T008 (needs all fixes)
300
+
301
+ **Parallelization Notes:**
302
+ - T001, T003 can run in parallel (different test files)
303
+ - T002, T004, T006, T008 can run in parallel (different files)
304
+ - T010 (E2E test) depends on all fixes complete
305
+
306
+ **Task Execution Graph:**
307
+
308
+ ```
309
+ T001 [P] ──┐
310
+ T003 [P] ──┼──> (Test tasks can run parallel)
311
+ T005 [P] ──┤
312
+ T007 [P] ──┘
313
+
314
+ T002 (notificationSocket.ts) ──┐
315
+ T004 (ConnectionManager.ts) ───┼──> T009 (Monitor) ──> T010 (E2E test)
316
+ T006 (app.ts) ──────────────────┤
317
+ T008 (heartbeat.ts) ────────────┘
318
+ ```
319
+
320
+ **Estimated time:** 8-10 hours (with AI) | 2-3 days (manual)
248
321
 
249
322
  Proceed with fix? (Y/n)
250
323
  ```
@@ -900,4 +973,4 @@ Time: 14 minutes
900
973
  ---
901
974
 
902
975
  **BEGIN EXECUTION when user runs `/fix` or `/fix "description"`**
903
-
976
+
@@ -464,7 +464,7 @@ Actualización cancelada. Ejecuta `/flow-docs-sync` cuando estés listo para act
464
464
  2. **Follow Existing Patterns:**
465
465
 
466
466
  - Use same format as existing documentation
467
- - Follow conventions established in original bootstrap
467
+ - Follow conventions established in original build
468
468
  - Maintain consistency with existing docs
469
469
 
470
470
  3. **Update Analysis File:**
@@ -524,3 +524,4 @@ Documentación sincronizada exitosamente.
524
524
 
525
525
  **BEGIN EXECUTION when user runs `/flow-docs-sync`**
526
526
 
527
+
@@ -2,7 +2,7 @@
2
2
 
3
3
  **⚡ AUTOMATED ANALYSIS - Minimal User Input Required**
4
4
 
5
- This phase automatically analyzes your existing frontend codebase to pre-populate answers for the bootstrap questionnaire.
5
+ This phase automatically analyzes your existing frontend codebase to pre-populate answers for the build questionnaire.
6
6
 
7
7
  ---
8
8
 
@@ -483,7 +483,7 @@ After Phase 0 completes:
483
483
 
484
484
  Next: Proceed to Phase 1 (Discovery & UX)
485
485
 
486
- Read: .ai-flow/prompts/frontend/flow-bootstrap-phase-1-discovery.md
486
+ Read: .ai-flow/prompts/frontend/flow-build-phase-1-discovery.md
487
487
  ```
488
488
 
489
489
  ---
@@ -493,3 +493,4 @@ Read: .ai-flow/prompts/frontend/flow-bootstrap-phase-1-discovery.md
493
493
  **Version:** 1.2.0
494
494
 
495
495
 
496
+
@@ -438,7 +438,7 @@ Documents Generated:
438
438
 
439
439
  Next: Phase 2 - Components & Framework
440
440
 
441
- Read: .ai-flow/prompts/frontend/flow-bootstrap-phase-2-components.md
441
+ Read: .ai-flow/prompts/frontend/flow-build-phase-2-components.md
442
442
  ```
443
443
 
444
444
  ---
@@ -448,3 +448,4 @@ Read: .ai-flow/prompts/frontend/flow-bootstrap-phase-2-components.md
448
448
  **Version:** 1.2.0
449
449
 
450
450
 
451
+
@@ -7,7 +7,7 @@
7
7
 
8
8
  ## 📋 Context
9
9
 
10
- You are in **Phase 2 of 7** of the frontend bootstrap process.
10
+ You are in **Phase 2 of 7** of the frontend build process.
11
11
 
12
12
  **What we're defining:**
13
13
  - UI Framework selection (React/Vue/Angular/Svelte/Solid)
@@ -981,3 +981,4 @@ After Phase 2 completion, you will:
981
981
  **Estimated time:** 15-20 minutes
982
982
  **Documents updated:** ai-instructions.md, docs/components.md, docs/architecture.md
983
983
 
984
+
@@ -674,7 +674,7 @@ Documents Generated:
674
674
 
675
675
  Next: Phase 4 - Styling & Design
676
676
 
677
- Read: .ai-flow/prompts/frontend/flow-bootstrap-phase-4-styling.md
677
+ Read: .ai-flow/prompts/frontend/flow-build-phase-4-styling.md
678
678
  ```
679
679
 
680
680
  ---
@@ -684,3 +684,4 @@ Read: .ai-flow/prompts/frontend/flow-bootstrap-phase-4-styling.md
684
684
  **Version:** 1.2.0
685
685
 
686
686
 
687
+
@@ -264,7 +264,7 @@ A) ⭐ **Tailwind defaults** (Recommended)
264
264
  - xl: 1280px
265
265
  - 2xl: 1536px
266
266
 
267
- B) **Bootstrap-style**
267
+ B) **build-style**
268
268
  - xs: 0px
269
269
  - sm: 576px
270
270
  - md: 768px
@@ -469,7 +469,7 @@ Documents Generated:
469
469
 
470
470
  Next: Phase 5 - Code Standards
471
471
 
472
- Read: .ai-flow/prompts/frontend/flow-bootstrap-phase-5-standards.md
472
+ Read: .ai-flow/prompts/frontend/flow-build-phase-5-standards.md
473
473
  ```
474
474
 
475
475
  ---
@@ -479,3 +479,5 @@ Read: .ai-flow/prompts/frontend/flow-bootstrap-phase-5-standards.md
479
479
  **Version:** 1.2.0
480
480
 
481
481
 
482
+
483
+
@@ -472,7 +472,7 @@ Documents Generated:
472
472
 
473
473
  Next: Phase 6 - Testing Strategy
474
474
 
475
- Read: .ai-flow/prompts/frontend/flow-bootstrap-phase-6-testing.md
475
+ Read: .ai-flow/prompts/frontend/flow-build-phase-6-testing.md
476
476
  ```
477
477
 
478
478
  ---
@@ -482,3 +482,4 @@ Read: .ai-flow/prompts/frontend/flow-bootstrap-phase-6-testing.md
482
482
  **Version:** 1.2.0
483
483
 
484
484
 
485
+
@@ -559,7 +559,7 @@ Documents Generated:
559
559
 
560
560
  Next: Phase 7 - Performance & Deployment
561
561
 
562
- Read: .ai-flow/prompts/frontend/flow-bootstrap-phase-7-deployment.md
562
+ Read: .ai-flow/prompts/frontend/flow-build-phase-7-deployment.md
563
563
  ```
564
564
 
565
565
  ---
@@ -569,3 +569,4 @@ Read: .ai-flow/prompts/frontend/flow-bootstrap-phase-7-deployment.md
569
569
  **Version:** 1.2.0
570
570
 
571
571
 
572
+
@@ -243,13 +243,14 @@ Proceeding to documentation generation...
243
243
 
244
244
  ✅ Context fully loaded and updated!
245
245
 
246
- 🎉 Now generating final 4 documents:
246
+ 🎉 Now generating final 5 documents:
247
247
 
248
248
  1. docs/components-guide.md - Component architecture and patterns
249
249
  2. docs/state-management.md - State management strategy
250
250
  3. docs/contributing.md - Contribution guidelines
251
- 4. AGENT.md - Universal AI configuration (master index)
252
- 5. README.md - Project overview (consolidates all phases)
251
+ 4. .gitignore - Ignore patterns for your tech stack
252
+ 5. AGENT.md - Universal AI configuration (master index)
253
+ 6. README.md - Project overview (consolidates all phases)
253
254
 
254
255
  Generating...
255
256
  ```
@@ -265,6 +266,12 @@ Generating...
265
266
  - Add styling approach
266
267
  - Link to component library (if using one)
267
268
 
269
+ **📝 Action:** Write the complete file to `docs/components-guide.md`
270
+
271
+ ```
272
+ ✅ Generated: docs/components-guide.md
273
+ ```
274
+
268
275
  ### 8.3.2: Generate docs/state-management.md
269
276
 
270
277
  - **Template:** `.ai-flow/templates/docs/state-management.template.md`
@@ -276,6 +283,12 @@ Generating...
276
283
  - Document async state handling
277
284
  - Add caching strategy
278
285
 
286
+ **📝 Action:** Write the complete file to `docs/state-management.md`
287
+
288
+ ```
289
+ ✅ Generated: docs/state-management.md
290
+ ```
291
+
279
292
  ### 8.3.3: Generate docs/contributing.md
280
293
 
281
294
  - **Template:** `.ai-flow/templates/docs/contributing.template.md`
@@ -287,6 +300,161 @@ Generating...
287
300
  - Setup instructions from Phase 7
288
301
  - Testing requirements from Phase 6
289
302
 
303
+ **📝 Action:** Write the complete file to `docs/contributing.md`
304
+
305
+ ```
306
+ ✅ Generated: docs/contributing.md
307
+ ```
308
+
309
+ ---
310
+
311
+ ## 8.3.4: Generate .gitignore
312
+
313
+ **IMPORTANT:** Generate a comprehensive `.gitignore` file based on the framework, bundler, and tools selected in previous phases.
314
+
315
+ ```
316
+ 📝 Generating .gitignore for your frontend stack...
317
+ ```
318
+
319
+ **Strategy:**
320
+
321
+ 1. **Detect framework from Phase 3** (React, Vue, Angular, etc.)
322
+ 2. **Detect bundler/meta-framework** (Vite, Next.js, Create React App, etc.)
323
+ 3. **Detect package manager** (npm, yarn, pnpm)
324
+ 4. **Combine relevant patterns**
325
+
326
+ **Base patterns for JavaScript/TypeScript projects:**
327
+
328
+ ```gitignore
329
+ # Dependencies
330
+ node_modules/
331
+ npm-debug.log*
332
+ yarn-debug.log*
333
+ yarn-error.log*
334
+ .pnpm-debug.log*
335
+ .yarn/*
336
+ !.yarn/patches
337
+ !.yarn/plugins
338
+ !.yarn/releases
339
+ !.yarn/sdks
340
+ !.yarn/versions
341
+
342
+ # Production builds
343
+ dist/
344
+ build/
345
+ .next/
346
+ out/
347
+ .nuxt/
348
+ .output/
349
+ .vite/
350
+ *.local
351
+
352
+ # Environment variables
353
+ .env
354
+ .env*.local
355
+ .env.production
356
+
357
+ # IDE
358
+ .vscode/
359
+ !.vscode/extensions.json
360
+ .idea/
361
+ *.swp
362
+ *.swo
363
+ *~
364
+ .DS_Store
365
+
366
+ # OS
367
+ .DS_Store
368
+ Thumbs.db
369
+
370
+ # Testing
371
+ coverage/
372
+ .nyc_output/
373
+ *.lcov
374
+
375
+ # TypeScript
376
+ *.tsbuildinfo
377
+ .tsbuildinfo
378
+
379
+ # Logs
380
+ logs/
381
+ *.log
382
+ npm-debug.log*
383
+
384
+ # Cache
385
+ .cache/
386
+ .parcel-cache/
387
+ .turbo/
388
+ .eslintcache
389
+ .stylelintcache
390
+
391
+ # Storybook
392
+ storybook-static/
393
+ ```
394
+
395
+ **Framework-specific additions:**
396
+
397
+ **Next.js:**
398
+
399
+ ```gitignore
400
+ # Next.js
401
+ .next/
402
+ out/
403
+ next-env.d.ts
404
+ ```
405
+
406
+ **Vite:**
407
+
408
+ ```gitignore
409
+ # Vite
410
+ dist/
411
+ .vite/
412
+ ```
413
+
414
+ **Angular:**
415
+
416
+ ```gitignore
417
+ # Angular
418
+ /dist/
419
+ /tmp/
420
+ /out-tsc/
421
+ /bazel-out/
422
+ .angular/
423
+ ```
424
+
425
+ **Vue (with Vite):**
426
+
427
+ ```gitignore
428
+ # Vue
429
+ dist/
430
+ .vite/
431
+ ```
432
+
433
+ **Nuxt:**
434
+
435
+ ```gitignore
436
+ # Nuxt
437
+ .nuxt/
438
+ .output/
439
+ .nitro/
440
+ .cache/
441
+ ```
442
+
443
+ **📝 Action:** Generate and write `.gitignore` to project root.
444
+
445
+ **Selection logic:**
446
+
447
+ - If React + Vite → Base + Vite patterns
448
+ - If Next.js → Base + Next.js patterns
449
+ - If Angular → Base + Angular patterns
450
+ - If Vue + Vite → Base + Vite patterns
451
+ - If Nuxt → Base + Nuxt patterns
452
+
453
+ ```
454
+ ✅ Generated: .gitignore
455
+ Patterns included: [Framework] + [Bundler] + Base JavaScript patterns
456
+ ```
457
+
290
458
  ---
291
459
 
292
460
  ## 8.4: Generate AGENT.md (Master Index)
@@ -347,6 +515,33 @@ Generating...
347
515
  [From operations.md and contributing.md]
348
516
  ```
349
517
 
518
+ **📝 Action:**
519
+
520
+ ```
521
+ 🔄 Re-reading all generated documents for AGENT.md generation...
522
+
523
+ ✅ Reading .ai-flow/project-brief.md
524
+ ✅ Reading .ai-flow/ai-instructions.md
525
+ ✅ Reading docs/ui-structure.md
526
+ ✅ Reading docs/architecture.md
527
+ ✅ Reading docs/components-guide.md
528
+ ✅ Reading docs/state-management.md
529
+ ✅ Reading docs/code-standards.md
530
+ ✅ Reading docs/testing.md
531
+ ✅ Reading docs/performance.md
532
+ ✅ Reading docs/operations.md
533
+ ✅ Reading specs/configuration.md
534
+ ✅ Reading docs/contributing.md
535
+
536
+ ✅ All context loaded!
537
+ ```
538
+
539
+ **📝 Action:** Write the complete file to `.ai-flow/AGENT.md`
540
+
541
+ ```
542
+ ✅ Generated: .ai-flow/AGENT.md (Master Index)
543
+ ```
544
+
350
545
  ---
351
546
 
352
547
  ## 8.5: Generate README.md (Intelligent Merge)
@@ -382,6 +577,13 @@ Generating...
382
577
  5. **Ensure no duplication**
383
578
  6. **Validate all links** work correctly
384
579
 
580
+ **📝 Action:** Write the complete file to `.ai-flow/README.md`
581
+
582
+ ```
583
+ ✅ Generated: .ai-flow/README.md
584
+ [If merged] Merged with framework's setup instructions
585
+ ```
586
+
385
587
  ---
386
588
 
387
589
  ## 8.6: Create Tool-Specific Configs
@@ -405,20 +607,20 @@ Read `.ai-flow/AGENT.md` first for complete documentation index.
405
607
 
406
608
  - Project overview: `.ai-flow/project-brief.md`
407
609
  - AI instructions: `.ai-flow/ai-instructions.md`
408
- - Architecture: `.ai-flow/docs/architecture.md`
409
- - UI Structure: `.ai-flow/docs/ui-structure.md`
410
- - Components: `.ai-flow/docs/components-guide.md`
411
- - State: `.ai-flow/docs/state-management.md`
412
- - Code standards: `.ai-flow/docs/code-standards.md`
610
+ - Architecture: `docs/architecture.md`
611
+ - UI Structure: `docs/ui-structure.md`
612
+ - Components: `docs/components-guide.md`
613
+ - State: `docs/state-management.md`
614
+ - Code standards: `docs/code-standards.md`
413
615
 
414
616
  ## Working Instructions
415
617
 
416
618
  When writing code:
417
619
 
418
- 1. Follow patterns in `.ai-flow/docs/code-standards.md`
419
- 2. Reference component structure in `.ai-flow/docs/ui-structure.md`
420
- 3. Follow state management patterns from `.ai-flow/docs/state-management.md`
421
- 4. Write tests per `.ai-flow/docs/testing.md`
620
+ 1. Follow patterns in `docs/code-standards.md`
621
+ 2. Reference component structure in `docs/ui-structure.md`
622
+ 3. Follow state management patterns from `docs/state-management.md`
623
+ 4. Write tests per `docs/testing.md`
422
624
 
423
625
  ## Critical Rules
424
626
 
@@ -441,9 +643,9 @@ See `.ai-flow/AGENT.md` for complete document list.
441
643
  ## Quick Reference
442
644
 
443
645
  - Tech Stack: [from Phase 3]
444
- - Architecture: `.ai-flow/docs/architecture.md`
445
- - Components: `.ai-flow/docs/components-guide.md`
446
- - Code Standards: `.ai-flow/docs/code-standards.md`
646
+ - Architecture: `docs/architecture.md`
647
+ - Components: `docs/components-guide.md`
648
+ - Code Standards: `docs/code-standards.md`
447
649
 
448
650
  ## Code Generation Rules
449
651
 
@@ -469,12 +671,12 @@ Master index: `.ai-flow/AGENT.md`
469
671
 
470
672
  ## Key References
471
673
 
472
- - Architecture: `.ai-flow/docs/architecture.md`
473
- - UI Structure: `.ai-flow/docs/ui-structure.md`
474
- - Components: `.ai-flow/docs/components-guide.md`
475
- - State: `.ai-flow/docs/state-management.md`
476
- - Code Standards: `.ai-flow/docs/code-standards.md`
477
- - Testing: `.ai-flow/docs/testing.md`
674
+ - Architecture: `docs/architecture.md`
675
+ - UI Structure: `docs/ui-structure.md`
676
+ - Components: `docs/components-guide.md`
677
+ - State: `docs/state-management.md`
678
+ - Code Standards: `docs/code-standards.md`
679
+ - Testing: `docs/testing.md`
478
680
 
479
681
  ## Code Generation Guidelines
480
682
 
@@ -485,6 +687,18 @@ Master index: `.ai-flow/AGENT.md`
485
687
  [From Phase 3]
486
688
  ```
487
689
 
690
+ **📝 Action:** Generate the tool-specific config files based on selection:
691
+
692
+ - If Claude → Write `.clauderules`
693
+ - If Cursor → Write `.cursorrules`
694
+ - If Copilot → Write `.github/copilot-instructions.md`
695
+ - If "All" → Write all three files
696
+
697
+ ```
698
+ ✅ Generated tool-specific configs:
699
+ [List generated files based on selection]
700
+ ```
701
+
488
702
  ---
489
703
 
490
704
  ## 8.7: Final Validation & Success Message
@@ -505,7 +719,7 @@ All validations passed!
505
719
  ```
506
720
  🎉 AI Flow Complete!
507
721
 
508
- Generated 14 documents successfully:
722
+ Generated 15 documents successfully:
509
723
 
510
724
  Phase 1:
511
725
  ✅ project-brief.md
@@ -533,6 +747,7 @@ Phase 8:
533
747
  ✅ docs/components-guide.md
534
748
  ✅ docs/state-management.md
535
749
  ✅ docs/contributing.md
750
+ ✅ .gitignore
536
751
  ✅ README.md
537
752
  ✅ AGENT.md
538
753
 
@@ -570,6 +785,7 @@ your-project/
570
785
  ├── [framework files] # If initialized
571
786
  ├── README.md
572
787
  ├── .env.example
788
+ ├── .gitignore
573
789
  └── [tool configs] # .clauderules, .cursorrules, etc.
574
790
 
575
791
  ---