ai-flow-dev 2.1.3 → 2.1.4
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 +25 -38
- package/dist/cli.js +68 -46
- package/dist/cli.js.map +1 -1
- package/package.json +5 -5
- package/prompts/backend/flow-build-phase-0.md +31 -63
- package/prompts/backend/flow-build-phase-1.md +9 -17
- package/prompts/backend/flow-build-phase-10.md +199 -585
- package/prompts/backend/flow-build-phase-2.md +152 -86
- package/prompts/backend/flow-build-phase-3.md +108 -68
- package/prompts/backend/flow-build-phase-4.md +5 -8
- package/prompts/backend/flow-build-phase-5.md +39 -12
- package/prompts/backend/flow-build-phase-6.md +29 -8
- package/prompts/backend/flow-build-phase-7.md +120 -40
- package/prompts/backend/flow-build-phase-8.md +28 -65
- package/prompts/backend/flow-build-phase-9.md +267 -1298
- package/prompts/backend/flow-build.md +881 -957
- package/prompts/backend/flow-dev-commit.md +27 -50
- package/prompts/backend/flow-dev-feature.md +1929 -2017
- package/prompts/backend/flow-dev-fix.md +936 -964
- package/prompts/backend/flow-dev-refactor.md +672 -701
- package/prompts/backend/flow-dev-review.md +356 -389
- package/prompts/backend/flow-dev-work.md +1066 -1118
- package/prompts/backend/flow-docs-sync.md +20 -196
- package/prompts/frontend/flow-build-phase-0.md +503 -484
- package/prompts/frontend/flow-build-phase-1.md +445 -433
- package/prompts/frontend/flow-build-phase-2.md +910 -957
- package/prompts/frontend/flow-build-phase-3.md +692 -664
- package/prompts/frontend/flow-build-phase-4.md +478 -463
- package/prompts/frontend/flow-build-phase-5.md +488 -467
- package/prompts/frontend/flow-build-phase-6.md +571 -550
- package/prompts/frontend/flow-build-phase-7.md +560 -592
- package/prompts/frontend/flow-build-phase-8.md +17 -42
- package/prompts/frontend/flow-build.md +457 -503
- package/prompts/frontend/flow-docs-sync.md +14 -35
- package/prompts/mobile/flow-build-phase-0.md +104 -97
- package/prompts/mobile/flow-build-phase-1.md +137 -122
- package/prompts/mobile/flow-build-phase-2.md +123 -130
- package/prompts/mobile/flow-build-phase-3.md +144 -149
- package/prompts/mobile/flow-build-phase-4.md +140 -132
- package/prompts/mobile/flow-build-phase-5.md +70 -70
- package/prompts/mobile/flow-build-phase-6.md +136 -134
- package/prompts/mobile/flow-build-phase-7.md +24 -58
- package/prompts/mobile/flow-build-phase-8.md +17 -42
- package/prompts/mobile/flow-build.md +47 -97
- package/prompts/mobile/flow-docs-sync.md +13 -32
- package/prompts/shared/mermaid-guidelines.md +106 -0
- package/prompts/shared/scope-levels.md +126 -0
- package/prompts/shared/story-points.md +65 -0
- package/prompts/shared/task-format.md +86 -0
- package/templates/AGENT.template.md +194 -15
- package/templates/backend/README.template.md +2 -32
- package/templates/backend/ai-instructions.template.md +2 -32
- package/templates/backend/copilot-instructions.template.md +2 -22
- package/templates/backend/docs/api.template.md +89 -20
- package/templates/backend/docs/architecture.template.md +165 -53
- package/templates/backend/docs/business-flows.template.md +7 -14
- package/templates/backend/docs/code-standards.template.md +2 -38
- package/templates/backend/docs/contributing.template.md +2 -16
- package/templates/backend/docs/data-model.template.md +125 -21
- package/templates/backend/docs/operations.template.md +179 -50
- package/templates/backend/docs/testing.template.md +2 -42
- package/templates/backend/project-brief.template.md +2 -28
- package/templates/backend/specs/configuration.template.md +2 -14
- package/templates/backend/specs/security.template.md +2 -32
- package/templates/frontend/README.template.md +2 -18
- package/templates/frontend/ai-instructions.template.md +2 -20
- package/templates/frontend/docs/api-integration.template.md +12 -30
- package/templates/frontend/docs/components.template.md +2 -28
- package/templates/frontend/docs/error-handling.template.md +11 -27
- package/templates/frontend/docs/operations.template.md +8 -18
- package/templates/frontend/docs/performance.template.md +8 -18
- package/templates/frontend/docs/pwa.template.md +8 -18
- package/templates/frontend/docs/state-management.template.md +2 -28
- package/templates/frontend/docs/styling.template.md +2 -26
- package/templates/frontend/docs/testing.template.md +2 -28
- package/templates/frontend/project-brief.template.md +2 -16
- package/templates/frontend/specs/accessibility.template.md +8 -18
- package/templates/frontend/specs/configuration.template.md +2 -24
- package/templates/frontend/specs/security.template.md +10 -24
- package/templates/fullstack/README.template.md +17 -47
- package/templates/fullstack/ai-instructions.template.md +17 -45
- package/templates/fullstack/project-brief.template.md +16 -42
- package/templates/fullstack/specs/configuration.template.md +16 -42
- package/templates/mobile/README.template.md +11 -29
- package/templates/mobile/ai-instructions.template.md +11 -27
- package/templates/mobile/docs/app-store.template.md +11 -29
- package/templates/mobile/docs/architecture.template.md +14 -38
- package/templates/mobile/docs/native-features.template.md +16 -44
- package/templates/mobile/docs/navigation.template.md +9 -23
- package/templates/mobile/docs/offline-strategy.template.md +10 -26
- package/templates/mobile/docs/permissions.template.md +9 -23
- package/templates/mobile/docs/state-management.template.md +12 -32
- package/templates/mobile/docs/testing.template.md +14 -38
- package/templates/mobile/project-brief.template.md +12 -30
- package/templates/mobile/specs/build-configuration.template.md +10 -26
- package/templates/mobile/specs/deployment.template.md +9 -23
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
**YOU ARE AN EXPERT GIT WORKFLOW SPECIALIST.**
|
|
4
4
|
|
|
5
5
|
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
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
6
|
+
---
|
|
9
7
|
## Command: `/flow-dev-commit`
|
|
10
8
|
|
|
11
9
|
### Objective
|
|
@@ -21,9 +19,7 @@ Automate commit creation with:
|
|
|
21
19
|
### Usage Modes
|
|
22
20
|
|
|
23
21
|
- **`/flow-dev-commit`** → Full auto workflow (detect → group → commit → push)
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
22
|
+
---
|
|
27
23
|
## Workflow: 4 Steps (3-5 minutes)
|
|
28
24
|
|
|
29
25
|
### Step 1: Detect Changes (Automatic - NO confirmation needed)
|
|
@@ -31,9 +27,9 @@ Automate commit creation with:
|
|
|
31
27
|
**Display:**
|
|
32
28
|
|
|
33
29
|
```
|
|
34
|
-
|
|
30
|
+
---
|
|
35
31
|
🔍 Step 1/4: Detecting Changes
|
|
36
|
-
|
|
32
|
+
---
|
|
37
33
|
```
|
|
38
34
|
|
|
39
35
|
**CRITICAL: Execute ALL detection methods in parallel to catch:**
|
|
@@ -151,17 +147,15 @@ A package.json (added, staged)
|
|
|
151
147
|
```
|
|
152
148
|
|
|
153
149
|
**IMPORTANT:** Untracked files (`??`) are NEW files that must be detected with `git status --porcelain` because `get_changed_files()` does NOT see them.
|
|
154
|
-
|
|
155
|
-
---
|
|
156
|
-
|
|
150
|
+
---
|
|
157
151
|
### Step 2: Intelligent Grouping (Automatic)
|
|
158
152
|
|
|
159
153
|
**Display:**
|
|
160
154
|
|
|
161
155
|
```
|
|
162
|
-
|
|
156
|
+
---
|
|
163
157
|
⚡ Step 2/4: Intelligent Grouping
|
|
164
|
-
|
|
158
|
+
---
|
|
165
159
|
```
|
|
166
160
|
|
|
167
161
|
**Analyze files and group by functional relationship.**
|
|
@@ -394,18 +388,15 @@ docs/api.md (only this file, no related code)
|
|
|
394
388
|
✓ src/modules/users/dto/create-user.dto.ts
|
|
395
389
|
✓ src/modules/products/dto/create-product.dto.ts
|
|
396
390
|
```
|
|
397
|
-
|
|
398
|
-
---
|
|
399
|
-
|
|
391
|
+
---
|
|
400
392
|
### Step 3: Generate Commits (Requires Allow per commit)
|
|
401
393
|
|
|
402
394
|
**Display:**
|
|
403
395
|
|
|
404
396
|
```
|
|
405
|
-
|
|
397
|
+
---
|
|
406
398
|
✅ Step 3/4: Creating Commits
|
|
407
|
-
|
|
408
|
-
|
|
399
|
+
---
|
|
409
400
|
[N] commits will be created following Conventional Commits standard.
|
|
410
401
|
|
|
411
402
|
You will need to click "Allow" for each commit.
|
|
@@ -494,10 +485,9 @@ function validateCommitMessage(message: string): boolean {
|
|
|
494
485
|
**Show each command with `run_in_terminal` and wait for Allow:**
|
|
495
486
|
|
|
496
487
|
```
|
|
497
|
-
|
|
488
|
+
---
|
|
498
489
|
Commit 1/3: Feature Complete
|
|
499
|
-
|
|
500
|
-
|
|
490
|
+
---
|
|
501
491
|
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"
|
|
502
492
|
|
|
503
493
|
Click "Allow" to execute →
|
|
@@ -508,17 +498,15 @@ Click "Allow" to execute →
|
|
|
508
498
|
```
|
|
509
499
|
✅ Commit created: feat(users): implement user management with CRUD operations
|
|
510
500
|
```
|
|
511
|
-
|
|
512
|
-
---
|
|
513
|
-
|
|
501
|
+
---
|
|
514
502
|
### Step 4: Finalize (Automatic log + Manual push)
|
|
515
503
|
|
|
516
504
|
**Display:**
|
|
517
505
|
|
|
518
506
|
```
|
|
519
|
-
|
|
507
|
+
---
|
|
520
508
|
🚀 Step 4/4: Summary & Push
|
|
521
|
-
|
|
509
|
+
---
|
|
522
510
|
```
|
|
523
511
|
|
|
524
512
|
**Automatic (NO confirmation):**
|
|
@@ -569,8 +557,7 @@ Error: [error message]
|
|
|
569
557
|
| Step 4 | `git log` (automatic) + `git push` (manual) | Auto log / Allow push |
|
|
570
558
|
|
|
571
559
|
**CRITICAL:** Always run `git status --porcelain` in Step 1 to detect untracked files (`??`) that `get_changed_files()` cannot see.
|
|
572
|
-
---
|
|
573
|
-
|
|
560
|
+
---
|
|
574
561
|
## 🎯 Execution Model
|
|
575
562
|
|
|
576
563
|
| Step | Actions | User Interaction |
|
|
@@ -579,9 +566,7 @@ Error: [error message]
|
|
|
579
566
|
| Step 2 | Analyze and group files | Automatic |
|
|
580
567
|
| Step 3 | `git add` + `git commit` (per group) | Click Allow per commit |
|
|
581
568
|
| Step 4 | `git log` (automatic) + `git push` (manual) | Auto log / Allow push |
|
|
582
|
-
|
|
583
|
-
---
|
|
584
|
-
|
|
569
|
+
---
|
|
585
570
|
## 🔍 Pattern Detection Table
|
|
586
571
|
|
|
587
572
|
Universal patterns that work across languages/frameworks:
|
|
@@ -603,9 +588,7 @@ Universal patterns that work across languages/frameworks:
|
|
|
603
588
|
| **Docs Only** | Docs (no related code changes) | `docs` | doc-topic | `update [doc-name] documentation` |
|
|
604
589
|
| **Dependency Update** | package.json/requirements/go.mod | `chore` | deps | `upgrade [package] to [version]` |
|
|
605
590
|
| **Build Scripts** | Makefile/scripts/build config | `chore` | build | `update [build-aspect]` |
|
|
606
|
-
|
|
607
|
-
---
|
|
608
|
-
|
|
591
|
+
---
|
|
609
592
|
## 💡 Complex Examples
|
|
610
593
|
|
|
611
594
|
### Example 1: Full Feature with Documentation
|
|
@@ -714,9 +697,7 @@ spec/models/order_spec.rb
|
|
|
714
697
|
spec/requests/orders_spec.rb
|
|
715
698
|
→ Commit: feat(orders): implement order processing system
|
|
716
699
|
```
|
|
717
|
-
|
|
718
|
-
---
|
|
719
|
-
|
|
700
|
+
---
|
|
720
701
|
## ⚠️ Rules & Constraints
|
|
721
702
|
|
|
722
703
|
### NEVER
|
|
@@ -750,9 +731,7 @@ spec/requests/orders_spec.rb
|
|
|
750
731
|
- ✅ Show `git push` command and wait for "Allow"
|
|
751
732
|
- ✅ Validate commit messages before executing
|
|
752
733
|
- ✅ Detect project type and adapt scope naming accordingly
|
|
753
|
-
|
|
754
|
-
---
|
|
755
|
-
|
|
734
|
+
---
|
|
756
735
|
## 📊 Workflow Diagram
|
|
757
736
|
|
|
758
737
|
```mermaid
|
|
@@ -779,9 +758,7 @@ graph TD
|
|
|
779
758
|
Q --> S[Done]
|
|
780
759
|
R --> S
|
|
781
760
|
```
|
|
782
|
-
|
|
783
|
-
---
|
|
784
|
-
|
|
761
|
+
---
|
|
785
762
|
## 🚀 Error Handling
|
|
786
763
|
|
|
787
764
|
### No Changes Detected
|
|
@@ -832,17 +809,17 @@ Suggestions:
|
|
|
832
809
|
3. Try again:
|
|
833
810
|
/flow-dev-commit
|
|
834
811
|
```
|
|
835
|
-
|
|
836
|
-
---
|
|
837
|
-
|
|
812
|
+
---
|
|
838
813
|
## 📚 References
|
|
839
814
|
|
|
840
815
|
- **Conventional Commits:** https://www.conventionalcommits.org/
|
|
841
816
|
- **Git Best Practices:** https://git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project
|
|
842
817
|
- **Atomic Commits:** https://www.freshconsulting.com/insights/blog/atomic-commits/
|
|
843
|
-
|
|
844
|
-
---
|
|
845
|
-
|
|
818
|
+
---
|
|
846
819
|
**Last Updated:** December 11, 2025
|
|
847
820
|
**Version:** 1.0.0
|
|
848
821
|
**Maintained by:** AI Flow Team
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
|