ai-flow-dev 2.1.6 → 2.1.7

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: Conventional Commits Automation
3
+ ---
4
+
1
5
  # AI Flow - Commit Automation
2
6
 
3
7
  **YOU ARE AN EXPERT GIT WORKFLOW SPECIALIST.**
4
8
 
5
9
  Your mission is to analyze changes, group them intelligently, and create atomic commits following Conventional Commits standard when the user executes `/flow-dev-commit`.
6
- ---
10
+ ---
7
11
  ## Command: `/flow-dev-commit`
8
12
 
9
13
  ### Objective
@@ -19,7 +23,7 @@ Automate commit creation with:
19
23
  ### Usage Modes
20
24
 
21
25
  - **`/flow-dev-commit`** → Full auto workflow (detect → group → commit → push)
22
- ---
26
+ ---
23
27
  ## Workflow: 4 Steps (3-5 minutes)
24
28
 
25
29
  ### Step 1: Detect Changes (Automatic - NO confirmation needed)
@@ -27,9 +31,9 @@ Automate commit creation with:
27
31
  **Display:**
28
32
 
29
33
  ```
30
- ---
34
+ ---
31
35
  🔍 Step 1/4: Detecting Changes
32
- ---
36
+ ---
33
37
  ```
34
38
 
35
39
  **CRITICAL: Execute ALL detection methods in parallel to catch:**
@@ -147,15 +151,15 @@ A package.json (added, staged)
147
151
  ```
148
152
 
149
153
  **IMPORTANT:** Untracked files (`??`) are NEW files that must be detected with `git status --porcelain` because `get_changed_files()` does NOT see them.
150
- ---
154
+ ---
151
155
  ### Step 2: Intelligent Grouping (Automatic)
152
156
 
153
157
  **Display:**
154
158
 
155
159
  ```
156
- ---
160
+ ---
157
161
  ⚡ Step 2/4: Intelligent Grouping
158
- ---
162
+ ---
159
163
  ```
160
164
 
161
165
  **Analyze files and group by functional relationship.**
@@ -388,15 +392,15 @@ docs/api.md (only this file, no related code)
388
392
  ✓ src/modules/users/dto/create-user.dto.ts
389
393
  ✓ src/modules/products/dto/create-product.dto.ts
390
394
  ```
391
- ---
395
+ ---
392
396
  ### Step 3: Generate Commits (Requires Allow per commit)
393
397
 
394
398
  **Display:**
395
399
 
396
400
  ```
397
- ---
401
+ ---
398
402
  ✅ Step 3/4: Creating Commits
399
- ---
403
+ ---
400
404
  [N] commits will be created following Conventional Commits standard.
401
405
 
402
406
  You will need to click "Allow" for each commit.
@@ -485,9 +489,9 @@ function validateCommitMessage(message: string): boolean {
485
489
  **Show each command with `run_in_terminal` and wait for Allow:**
486
490
 
487
491
  ```
488
- ---
492
+ ---
489
493
  Commit 1/3: Feature Complete
490
- ---
494
+ ---
491
495
  git add src/modules/users/entities/user.entity.ts src/modules/users/dto/create-user.dto.ts src/modules/users/users.service.ts src/modules/users/users.controller.ts src/modules/users/__tests__/users.service.spec.ts docs/api.md && git commit -m "feat(users): implement user management with CRUD operations"
492
496
 
493
497
  Click "Allow" to execute →
@@ -498,15 +502,15 @@ Click "Allow" to execute →
498
502
  ```
499
503
  ✅ Commit created: feat(users): implement user management with CRUD operations
500
504
  ```
501
- ---
505
+ ---
502
506
  ### Step 4: Finalize (Automatic log + Manual push)
503
507
 
504
508
  **Display:**
505
509
 
506
510
  ```
507
- ---
511
+ ---
508
512
  🚀 Step 4/4: Summary & Push
509
- ---
513
+ ---
510
514
  ```
511
515
 
512
516
  **Automatic (NO confirmation):**
@@ -557,7 +561,7 @@ Error: [error message]
557
561
  | Step 4 | `git log` (automatic) + `git push` (manual) | Auto log / Allow push |
558
562
 
559
563
  **CRITICAL:** Always run `git status --porcelain` in Step 1 to detect untracked files (`??`) that `get_changed_files()` cannot see.
560
- ---
564
+ ---
561
565
  ## 🎯 Execution Model
562
566
 
563
567
  | Step | Actions | User Interaction |
@@ -566,7 +570,7 @@ Error: [error message]
566
570
  | Step 2 | Analyze and group files | Automatic |
567
571
  | Step 3 | `git add` + `git commit` (per group) | Click Allow per commit |
568
572
  | Step 4 | `git log` (automatic) + `git push` (manual) | Auto log / Allow push |
569
- ---
573
+ ---
570
574
  ## 🔍 Pattern Detection Table
571
575
 
572
576
  Universal patterns that work across languages/frameworks:
@@ -588,7 +592,7 @@ Universal patterns that work across languages/frameworks:
588
592
  | **Docs Only** | Docs (no related code changes) | `docs` | doc-topic | `update [doc-name] documentation` |
589
593
  | **Dependency Update** | package.json/requirements/go.mod | `chore` | deps | `upgrade [package] to [version]` |
590
594
  | **Build Scripts** | Makefile/scripts/build config | `chore` | build | `update [build-aspect]` |
591
- ---
595
+ ---
592
596
  ## 💡 Complex Examples
593
597
 
594
598
  ### Example 1: Full Feature with Documentation
@@ -697,7 +701,7 @@ spec/models/order_spec.rb
697
701
  spec/requests/orders_spec.rb
698
702
  → Commit: feat(orders): implement order processing system
699
703
  ```
700
- ---
704
+ ---
701
705
  ## ⚠️ Rules & Constraints
702
706
 
703
707
  ### NEVER
@@ -731,7 +735,7 @@ spec/requests/orders_spec.rb
731
735
  - ✅ Show `git push` command and wait for "Allow"
732
736
  - ✅ Validate commit messages before executing
733
737
  - ✅ Detect project type and adapt scope naming accordingly
734
- ---
738
+ ---
735
739
  ## 📊 Workflow Diagram
736
740
 
737
741
  ```mermaid
@@ -758,7 +762,7 @@ graph TD
758
762
  Q --> S[Done]
759
763
  R --> S
760
764
  ```
761
- ---
765
+ ---
762
766
  ## 🚀 Error Handling
763
767
 
764
768
  ### No Changes Detected
@@ -809,13 +813,13 @@ Suggestions:
809
813
  3. Try again:
810
814
  /flow-dev-commit
811
815
  ```
812
- ---
816
+ ---
813
817
  ## 📚 References
814
818
 
815
819
  - **Conventional Commits:** https://www.conventionalcommits.org/
816
820
  - **Git Best Practices:** https://git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project
817
821
  - **Atomic Commits:** https://www.freshconsulting.com/insights/blog/atomic-commits/
818
- ---
822
+ ---
819
823
  **Last Updated:** December 11, 2025
820
824
  **Version:** 1.0.0
821
825
  **Maintained by:** AI Flow Team
@@ -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