ai-flow-dev 2.1.6 → 2.1.8

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.
@@ -1,9 +1,13 @@
1
+ ---
2
+ description: Feature Development & Documentation Flow
3
+ ---
4
+
1
5
  # AI Flow - Feature Development Workflow
2
6
 
3
7
  **YOU ARE AN EXPERT SOFTWARE ARCHITECT AND IMPLEMENTATION SPECIALIST.**
4
8
 
5
9
  Your mission is to create, modify, or refactor complete features through an interactive workflow when the user executes `/feature`.
6
- ---
10
+ ---
7
11
  ## Command: `/feature`
8
12
 
9
13
  ### Objective
@@ -18,7 +22,7 @@ Create, modify, or refactor complete functionalities with automatic documentatio
18
22
  - **`/feature refactor`** → Refactor existing code
19
23
  - **`/feature HU-XXX-XXX`** → Implement specific User Story (from Phase 10)
20
24
  - **`/feature Feature Name`** → Implement feature from roadmap.md (Phase 9)
21
- ---
25
+ ---
22
26
  ## Quick Examples
23
27
 
24
28
  ### With User Story (Recommended)
@@ -41,7 +45,7 @@ Create, modify, or refactor complete functionalities with automatic documentatio
41
45
  /feature new # AI asks 5 questions, generates plan
42
46
  # ⏱️ 2-3 min questions, then implementation
43
47
  ```
44
- ---
48
+ ---
45
49
  ## Workflow: 4 Phases (15-20 minutes)
46
50
 
47
51
  ### Phase 0: Detect Input Mode (5 seconds - automatic)
@@ -78,15 +82,15 @@ if (input.match(/^HU-\d{3}-\d{3}$/)) {
78
82
  | `USER_STORY` | `docs/user-stories/EP-XXX/HU-XXX-XXX.md` | ✅ Yes (auto-load spec) |
79
83
  | `ROADMAP_FEATURE` | `docs/roadmap.md` Feature section | ✅ Yes (auto-load tasks) |
80
84
  | `INTERACTIVE` | Manual questions | ❌ No (ask user) |
81
- ---
85
+ ---
82
86
  ### Phase 1: Quick Specification (2-3 minutes or AUTO-SKIP)
83
87
 
84
88
  **IF mode = `USER_STORY`:** _(Skip questions, load from file)_
85
89
 
86
90
  ```
87
- ---
91
+ ---
88
92
  🚀 Feature Workflow | Phase 1/4: Specification (AUTO-LOADED)
89
- ---
93
+ ---
90
94
  📖 Loading User Story: HU-001-001
91
95
 
92
96
  Source: .ai-flow/user-stories/EP-001/HU-001-001.md
@@ -105,9 +109,9 @@ Skipping manual questions (spec already defined)...
105
109
  **IF mode = `ROADMAP_FEATURE`:** _(Skip questions, load from roadmap)_
106
110
 
107
111
  ```
108
- ---
112
+ ---
109
113
  🚀 Feature Workflow | Phase 1/4: Specification (AUTO-LOADED)
110
- ---
114
+ ---
111
115
  🗺️ Loading Feature from docs/roadmap.md: User Entity & Repository
112
116
 
113
117
  ✅ Epic: 2 - Data Layer
@@ -145,9 +149,9 @@ Ask 3-5 key questions to understand requirements:
145
149
  **Example interaction:**
146
150
 
147
151
  ```
148
- ---
152
+ ---
149
153
  🚀 Feature Workflow | Phase 1/4: Specification
150
- ---
154
+ ---
151
155
  What do you want to build? (1-2 sentences)
152
156
  > [Wait for user response]
153
157
 
@@ -195,9 +199,9 @@ Creating: .ai-flow/work/003-[feature-name]/
195
199
  **IF mode = `USER_STORY` or `ROADMAP_FEATURE`:** _(Reuse existing tasks)_
196
200
 
197
201
  ```
198
- ---
202
+ ---
199
203
  📐 Technical Plan (LOADED from User Story HU-001-001)
200
- ---
204
+ ---
201
205
  ✅ Story Points: 5 SP (from roadmap.md)
202
206
  ✅ Tasks: 6 technical tasks (inherited)
203
207
  ✅ Test Cases: 8 QA test cases (from acceptance criteria)
@@ -361,9 +365,9 @@ Organize tasks into logical phases:
361
365
  **Example output (SIMPLE):**
362
366
 
363
367
  ```
364
- ---
368
+ ---
365
369
  📐 Technical Plan (auto-generated)
366
- ---
370
+ ---
367
371
  Based on your project (Node.js + Express + PostgreSQL):
368
372
 
369
373
  **Complexity:** SIMPLE (8 tasks) • 3 SP (~15-20 min)
@@ -422,9 +426,9 @@ Review plan? (Y/n)
422
426
  **Example output (COMPLEX):**
423
427
 
424
428
  ```
425
- ---
429
+ ---
426
430
  📐 Technical Plan (auto-generated)
427
- ---
431
+ ---
428
432
  Based on your project (Node.js + Express + PostgreSQL):
429
433
 
430
434
  **Complexity:** COMPLEX (52 tasks across 5 phases) • 34 SP (~2-3 hours)
@@ -740,9 +744,9 @@ T039 (env example) ──> (Independent, can run anytime)
740
744
  - All documentation tasks (T036, T037, T038) can run in parallel
741
745
  - T034 must complete before T035 (E2E depends on unit/integration tests)
742
746
  - T039 is independent and can run anytime
743
- ---
747
+ ---
744
748
  **Total:** 34 SP • 39 tasks • ~2-3 hours with AI assistance
745
- ---
749
+ ---
746
750
  **Parallelization Summary:**
747
751
  - ✅ Phase 1: 3 test tasks parallel (T001, T003, T005)
748
752
  - ✅ Phase 2: 3 test tasks + 4 utility tasks parallel
@@ -754,7 +758,7 @@ T039 (env example) ──> (Independent, can run anytime)
754
758
 
755
759
  Review plan? (Y/n)
756
760
  ```
757
- ---
761
+ ---
758
762
  ### Phase 0.5: Git Branch Setup (Optional, 30 seconds)
759
763
 
760
764
  **After user confirms plan, detect Git repository:**
@@ -779,9 +783,9 @@ Continue without Git? (Y/n)
779
783
  **If Git repository detected:**
780
784
 
781
785
  ```
782
- ---
786
+ ---
783
787
  🌿 Git Integration
784
- ---
788
+ ---
785
789
  Git repository detected ✅
786
790
  Current branch: main
787
791
  Status: clean
@@ -940,7 +944,7 @@ Your choice (C): __
940
944
  }
941
945
  }
942
946
  ```
943
- ---
947
+ ---
944
948
  ### Phase 3: Progressive Implementation (10-15 minutes)
945
949
 
946
950
  **STEP 3.1: Choose Implementation Mode**
@@ -956,9 +960,9 @@ After user confirms plan (Review plan? Y), suggest smart default based on comple
956
960
  Ask with recommended default:
957
961
 
958
962
  ```
959
- ---
963
+ ---
960
964
  ⚙️ Implementation Mode
961
- ---
965
+ ---
962
966
  Recommended: Phase-by-phase (based on COMPLEX feature)
963
967
 
964
968
  How do you want to proceed?
@@ -980,9 +984,9 @@ Your choice (2): [1/2/3/4]
980
984
  Execute all tasks automatically with progress updates:
981
985
 
982
986
  ```
983
- ---
987
+ ---
984
988
  ⚙️ Implementation (Auto Mode)
985
- ---
989
+ ---
986
990
  Task 1/12: Create User entity ✅
987
991
  Task 2/12: Create AuthService ✅
988
992
  Task 3/12: Create AuthController ✅
@@ -997,9 +1001,9 @@ All tasks completed! ✅
997
1001
  Execute one phase at a time, pause for review:
998
1002
 
999
1003
  ```
1000
- ---
1004
+ ---
1001
1005
  ⚙️ Implementation (Phase-by-phase Mode)
1002
- ---
1006
+ ---
1003
1007
  PHASE 1/5: Data Layer
1004
1008
  ├── Task 1.1: Create User entity ✅
1005
1009
  ├── Task 1.2: Create Session entity ✅
@@ -1007,9 +1011,9 @@ PHASE 1/5: Data Layer
1007
1011
  ├── Task 1.4: Create migrations ✅
1008
1012
  ├── Task 1.5: Create UserRepository ✅
1009
1013
  └── ... (5 more tasks) ✅
1010
- ---
1014
+ ---
1011
1015
  ✅ Phase 1 Complete (10/10 tasks)
1012
- ---
1016
+ ---
1013
1017
  📁 Files created:
1014
1018
  - src/entities/User.entity.ts
1015
1019
  - src/entities/Session.entity.ts
@@ -1152,9 +1156,9 @@ PHASE 2/5: Business Logic
1152
1156
  Ask confirmation before each task:
1153
1157
 
1154
1158
  ```
1155
- ---
1159
+ ---
1156
1160
  ⚙️ Implementation (Task-by-task Mode)
1157
- ---
1161
+ ---
1158
1162
  Next task: Create User entity
1159
1163
  Files to create: src/entities/User.entity.ts
1160
1164
 
@@ -1187,9 +1191,9 @@ Proceed? (Y/n/skip/pause)
1187
1191
  Save current state and exit:
1188
1192
 
1189
1193
  ```
1190
- ---
1194
+ ---
1191
1195
  💾 Progress Saved
1192
- ---
1196
+ ---
1193
1197
  Current progress: 0/52 tasks (0%)
1194
1198
  Status: Ready to start
1195
1199
 
@@ -1214,9 +1218,9 @@ To resume: /work resume feature-[name]
1214
1218
  **IF mode = `USER_STORY`:** *(Validate against Definition of Done)*
1215
1219
 
1216
1220
  ```
1217
- ---
1221
+ ---
1218
1222
  ✅ Definition of Done Validation (from HU-001-001)
1219
- ---
1223
+ ---
1220
1224
  Validating User Story completion...
1221
1225
 
1222
1226
  ✅ Código implementado siguiendo ai-instructions.md
@@ -1232,9 +1236,9 @@ Validating User Story completion...
1232
1236
  ✅ Sin errores de lint ni formateo
1233
1237
  ⚠️ Deploy a staging exitoso [SKIP: Local development]
1234
1238
  ⚠️ Product Owner aprobó la funcionalidad [SKIP: Manual step]
1235
- ---
1239
+ ---
1236
1240
  Acceptance Criteria Verification
1237
- ---
1241
+ ---
1238
1242
  ✅ Scenario 1: Login exitoso
1239
1243
  Test: TC-001-001 passed
1240
1244
  Verified: JWT token returned with valid exp, user_id, role
@@ -1272,9 +1276,9 @@ Ask 1-2 questions about production considerations:
1272
1276
  **Example output:**
1273
1277
 
1274
1278
  ```
1275
- ---
1279
+ ---
1276
1280
  🔒 Security Quick Check
1277
- ---
1281
+ ---
1278
1282
  ✅ Password hashing: bcrypt cost 12
1279
1283
  ✅ JWT secret: from env variable
1280
1284
  ⚠️ Consider: Rate limiting on login endpoint
@@ -1322,9 +1326,9 @@ Commit? (Y/n): \_\_
1322
1326
  **After final commit:**
1323
1327
 
1324
1328
  ```
1325
- ---
1329
+ ---
1326
1330
  ✅ Feature Complete!
1327
- ---
1331
+ ---
1328
1332
  **IF mode = `USER_STORY`:**
1329
1333
 
1330
1334
  ```
@@ -1376,7 +1380,7 @@ Commits: 6
1376
1380
 
1377
1381
  All changes committed ✅
1378
1382
  Ready for Pull Request ✅
1379
- ---
1383
+ ---
1380
1384
  Would you like to create a Pull Request?
1381
1385
 
1382
1386
  A) Show PR command (recommended)
@@ -1435,7 +1439,7 @@ https://github.com/[user]/[repo]/compare/main...feature/auth-jwt-system
1435
1439
  }
1436
1440
  }
1437
1441
  ````
1438
- ---
1442
+ ---
1439
1443
  ## Files Generated
1440
1444
 
1441
1445
  ### During workflow (work directory):
@@ -1462,7 +1466,7 @@ https://github.com/[user]/[repo]/compare/main...feature/auth-jwt-system
1462
1466
 
1463
1467
  **Example:** `.ai-flow/archive/2025-01/003-user-authentication/`
1464
1468
  ```
1465
- ---
1469
+ ---
1466
1470
  ## status.json Schema
1467
1471
 
1468
1472
  ```json
@@ -1537,7 +1541,7 @@ https://github.com/[user]/[repo]/compare/main...feature/auth-jwt-system
1537
1541
  }
1538
1542
  }
1539
1543
  ```
1540
- ---
1544
+ ---
1541
1545
  ## Git Integration
1542
1546
 
1543
1547
  ### Overview
@@ -1727,7 +1731,7 @@ Set up code review? (Y/n)
1727
1731
  3. **No Git repo:** Automatically disabled
1728
1732
 
1729
1733
  **Git integration will never block your workflow.**
1730
- ---
1734
+ ---
1731
1735
  ## Important Rules
1732
1736
 
1733
1737
  ### 1. Project Context
@@ -1762,15 +1766,15 @@ Set up code review? (Y/n)
1762
1766
  - Handle errors appropriately
1763
1767
  - Add input validation
1764
1768
  - Consider security implications
1765
- ---
1769
+ ---
1766
1770
  ## Example Outputs
1767
1771
 
1768
1772
  ### Example 1: SIMPLE Feature (Auto Mode)
1769
1773
 
1770
1774
  ```
1771
- ---
1775
+ ---
1772
1776
  ✅ Feature Complete!
1773
- ---
1777
+ ---
1774
1778
  Complexity: SIMPLE
1775
1779
  Mode: Auto
1776
1780
  Duration: 18 minutes
@@ -1799,9 +1803,9 @@ Next steps:
1799
1803
  ### Example 2: COMPLEX Feature (Phase-by-phase Mode)
1800
1804
 
1801
1805
  ```
1802
- ---
1806
+ ---
1803
1807
  ✅ Feature Complete!
1804
- ---
1808
+ ---
1805
1809
  Complexity: COMPLEX
1806
1810
  Mode: Phase-by-phase
1807
1811
  Duration: 2h 15min (across 5 phases)
@@ -1857,7 +1861,7 @@ Next steps:
1857
1861
  3. Start server: npm run dev
1858
1862
  4. Test auth flow manually
1859
1863
  ```
1860
- ---
1864
+ ---
1861
1865
  ## Mode-Specific Behaviors
1862
1866
 
1863
1867
  ### `/feature new` - New Functionality
@@ -1881,7 +1885,7 @@ Next steps:
1881
1885
  - Execute incrementally
1882
1886
  - Ensure tests still pass
1883
1887
  - Update documentation only if architecture changes
1884
- ---
1888
+ ---
1885
1889
  ## Common Use Cases
1886
1890
 
1887
1891
  ### 1. Sprint Development (with User Stories)
@@ -1928,7 +1932,7 @@ Next steps:
1928
1932
  > Extract duplicate validation logic to shared module
1929
1933
  # Refactors: 6 files, tests pass, docs updated (~1h)
1930
1934
  ```
1931
- ---
1935
+ ---
1932
1936
  ## Key Benefits by Mode
1933
1937
 
1934
1938
  | Mode | Setup | Validation | Best For |
@@ -1936,7 +1940,7 @@ Next steps:
1936
1940
  | **HU-XXX-XXX** | 0 min | Gherkin + DoD | Scrum teams |
1937
1941
  | **Roadmap** | 0 min | Standard | Quick impl |
1938
1942
  | **Interactive** | 2-3 min | Standard | Exploration |
1939
- ---
1943
+ ---
1940
1944
  **BEGIN EXECUTION when user runs `/feature`, `/feature new`, `/feature change`, or `/feature refactor`**
1941
1945
 
1942
1946
 
@@ -1,9 +1,13 @@
1
+ ---
2
+ description: Bug Fix & Validation Flow
3
+ ---
4
+
1
5
  # AI Flow - Bug Fix Workflow
2
6
 
3
7
  **YOU ARE AN EXPERT DEBUGGING SPECIALIST AND PROBLEM SOLVER.**
4
8
 
5
9
  Your mission is to fix bugs efficiently with automatic complexity detection when the user executes `/fix`.
6
- ---
10
+ ---
7
11
  ## Command: `/fix`
8
12
 
9
13
  ### Objective
@@ -17,7 +21,7 @@ Fix bugs with automatic complexity detection:
17
21
 
18
22
  - **`/fix`** → Interactive mode (asks for bug description)
19
23
  - **`/fix "description"`** → Quick mode with description
20
- ---
24
+ ---
21
25
  ## Adaptive Workflow
22
26
 
23
27
  ### Step 0: Read Project Context (10 seconds)
@@ -34,7 +38,7 @@ Fix bugs with automatic complexity detection:
34
38
  - Bug fix must NOT violate NEVER rules
35
39
  - Security fixes must follow established patterns
36
40
  - Code changes must maintain project standards
37
- ---
41
+ ---
38
42
  ### Step 1: Rapid Analysis (30 seconds)
39
43
 
40
44
  1. Read bug description from user
@@ -62,14 +66,14 @@ Fix bugs with automatic complexity detection:
62
66
  **Example interaction:**
63
67
 
64
68
  ```
65
- ---
69
+ ---
66
70
  🔧 Bug Fix Workflow
67
- ---
71
+ ---
68
72
  Describe the bug (be specific):
69
73
  > [Wait for user input]
70
- ---
74
+ ---
71
75
  🔍 Analysis (30 seconds)
72
- ---
76
+ ---
73
77
  Reading relevant code...
74
78
  Root cause identified: [description]
75
79
 
@@ -97,7 +101,7 @@ Your choice (A): __
97
101
  **If yes:** Create branch `fix/pagination-memory-leak`
98
102
 
99
103
  **Note:** SIMPLE bugs typically don't need a separate branch (quick 1-file fix).
100
- ---
104
+ ---
101
105
  ### Step 2A: Simple Bug Fix (3-5 minutes)
102
106
 
103
107
  **Quick workflow for simple bugs:**
@@ -115,9 +119,9 @@ Your choice (A): __
115
119
  **Example output:**
116
120
 
117
121
  ```
118
- ---
122
+ ---
119
123
  ✅ Fix Applied
120
- ---
124
+ ---
121
125
  Changes:
122
126
  📄 src/controllers/AuthController.ts (line 42)
123
127
 
@@ -189,7 +193,7 @@ fix(auth): add null check in login endpoint
189
193
 
190
194
  Time: 4 minutes
191
195
  ```
192
- ---
196
+ ---
193
197
  ### Step 2B: Complex Bug Fix (10-15 minutes)
194
198
 
195
199
  **Detailed workflow for complex bugs:**
@@ -214,9 +218,9 @@ Time: 4 minutes
214
218
  **Example output:**
215
219
 
216
220
  ```
217
- ---
221
+ ---
218
222
  📋 Fix Plan (COMPLEX Bug)
219
- ---
223
+ ---
220
224
  Issue: Memory leak in WebSocket connections
221
225
 
222
226
  Root causes identified:
@@ -315,7 +319,7 @@ Proceed with fix? (Y/n)
315
319
  # ✅ Fix implementation complete
316
320
 
317
321
  🔧 Git Commit
318
- ---
322
+ ---
319
323
  Pre-commit validation:
320
324
  ✓ Lint passed
321
325
  ✓ Type check passed
@@ -410,7 +414,7 @@ Closes #456"
410
414
 
411
415
  ```bash
412
416
  🔧 Documentation Commit
413
- ---
417
+ ---
414
418
  Commit message:
415
419
  docs(architecture): document WebSocket cleanup strategy
416
420
 
@@ -443,9 +447,9 @@ connection monitoring patterns."
443
447
  **Final Git summary and PR suggestion:**
444
448
 
445
449
  ```bash
446
- ---
450
+ ---
447
451
  📦 Git Summary
448
- ---
452
+ ---
449
453
  Branch: fix/websocket-memory-leak (from main)
450
454
  Commits: 2
451
455
 
@@ -457,7 +461,7 @@ Tests added: 3
457
461
  All validations passed ✅
458
462
 
459
463
  🚀 Ready to create Pull Request
460
- ---
464
+ ---
461
465
  Suggested PR command:
462
466
 
463
467
  gh pr create \
@@ -481,7 +485,7 @@ https://github.com/yourorg/yourrepo/compare/main...fix/websocket-memory-leak
481
485
  }
482
486
  }
483
487
  ```
484
- ---
488
+ ---
485
489
  ## Files Generated
486
490
 
487
491
  ### Simple Bug:
@@ -505,7 +509,7 @@ https://github.com/yourorg/yourrepo/compare/main...fix/websocket-memory-leak
505
509
  ├── solution.md
506
510
  └── test-results.md
507
511
  ```
508
- ---
512
+ ---
509
513
  ## Complexity Detection Criteria
510
514
 
511
515
  Use these guidelines to automatically determine complexity:
@@ -530,7 +534,7 @@ Use these guidelines to automatically determine complexity:
530
534
  - Security vulnerabilities
531
535
  - Race conditions or concurrency issues
532
536
  - Missing tests need to be written
533
- ---
537
+ ---
534
538
  ## Git Integration
535
539
 
536
540
  ### Overview
@@ -856,7 +860,7 @@ fix: fixed bug
856
860
  - Easier code archaeology (git blame)
857
861
  - Better PR reviews
858
862
  - Helps prevent similar bugs
859
- ---
863
+ ---
860
864
  ## Important Rules
861
865
 
862
866
  ### 1. Always Analyze First
@@ -883,7 +887,7 @@ fix: fixed bug
883
887
  - Explain root cause clearly
884
888
  - Show before/after code
885
889
  - Specify what tests were added
886
- ---
890
+ ---
887
891
  ## Example Outputs
888
892
 
889
893
  ### Simple Bug Complete:
@@ -922,7 +926,7 @@ Impact:
922
926
  📦 Work archived with complete analysis
923
927
  Time: 14 minutes
924
928
  ```
925
- ---
929
+ ---
926
930
  ## Auto-Archive Process
927
931
 
928
932
  ### For Simple Bugs:
@@ -940,7 +944,7 @@ Time: 14 minutes
940
944
  - `specs/security.md` if security fix
941
945
  3. Include metrics and test results
942
946
  4. Generate comprehensive summary
943
- ---
947
+ ---
944
948
  **BEGIN EXECUTION when user runs `/fix` or `/fix "description"`**
945
949
 
946
950