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
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Testing Strategy
|
|
2
2
|
|
|
3
3
|
> Testing approach for {{PROJECT_NAME}}
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
4
|
+
---
|
|
7
5
|
## 🎯 Testing Philosophy
|
|
8
6
|
|
|
9
7
|
**Goal:** Ship with confidence through comprehensive automated testing
|
|
@@ -13,18 +11,14 @@
|
|
|
13
11
|
2. Write tests that give confidence
|
|
14
12
|
3. Fast feedback loops
|
|
15
13
|
4. Test on real devices
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
14
|
+
---
|
|
19
15
|
## 🏗️ Testing Pyramid
|
|
20
16
|
|
|
21
17
|
**Distribution:**
|
|
22
18
|
- **70%** Unit Tests
|
|
23
19
|
- **20%** Integration Tests
|
|
24
20
|
- **10%** E2E Tests
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
21
|
+
---
|
|
28
22
|
## 🧪 Testing Stack
|
|
29
23
|
|
|
30
24
|
**Unit Testing:** {{UNIT_TEST_FRAMEWORK}}
|
|
@@ -34,9 +28,7 @@
|
|
|
34
28
|
**E2E Testing:** {{E2E_FRAMEWORK}}
|
|
35
29
|
|
|
36
30
|
**Coverage Target:** {{TEST_COVERAGE_TARGET}}
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
31
|
+
---
|
|
40
32
|
## 📦 Unit Testing
|
|
41
33
|
|
|
42
34
|
### What to Test
|
|
@@ -55,9 +47,7 @@
|
|
|
55
47
|
### Examples
|
|
56
48
|
|
|
57
49
|
{{UNIT_TEST_EXAMPLES}}
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
50
|
+
---
|
|
61
51
|
## 🧩 Component/Screen Testing
|
|
62
52
|
|
|
63
53
|
### What to Test
|
|
@@ -71,9 +61,7 @@
|
|
|
71
61
|
### Examples
|
|
72
62
|
|
|
73
63
|
{{COMPONENT_TEST_EXAMPLES}}
|
|
74
|
-
|
|
75
|
-
---
|
|
76
|
-
|
|
64
|
+
---
|
|
77
65
|
## 🎭 E2E Testing
|
|
78
66
|
|
|
79
67
|
### What to Test
|
|
@@ -87,9 +75,7 @@
|
|
|
87
75
|
### Examples
|
|
88
76
|
|
|
89
77
|
{{E2E_TEST_EXAMPLES}}
|
|
90
|
-
|
|
91
|
-
---
|
|
92
|
-
|
|
78
|
+
---
|
|
93
79
|
## 📱 Device Testing
|
|
94
80
|
|
|
95
81
|
**Strategy:** {{DEVICE_TESTING_STRATEGY}}
|
|
@@ -97,41 +83,31 @@
|
|
|
97
83
|
**Physical Devices:** {{PHYSICAL_DEVICES}}
|
|
98
84
|
|
|
99
85
|
**Emulators/Simulators:** {{EMULATORS_SIMULATORS}}
|
|
100
|
-
|
|
101
|
-
---
|
|
102
|
-
|
|
86
|
+
---
|
|
103
87
|
## 🎨 Snapshot Testing
|
|
104
88
|
|
|
105
89
|
**Strategy:** {{SNAPSHOT_TESTING_STRATEGY}}
|
|
106
90
|
|
|
107
91
|
{{SNAPSHOT_TESTING_DESCRIPTION}}
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
92
|
+
---
|
|
111
93
|
## ⚡ Performance Testing
|
|
112
94
|
|
|
113
95
|
**Strategy:** {{PERFORMANCE_TESTING_STRATEGY}}
|
|
114
96
|
|
|
115
97
|
{{PERFORMANCE_TESTING_DESCRIPTION}}
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
98
|
+
---
|
|
119
99
|
## ♿ Accessibility Testing
|
|
120
100
|
|
|
121
101
|
**Strategy:** {{ACCESSIBILITY_TESTING_STRATEGY}}
|
|
122
102
|
|
|
123
103
|
{{ACCESSIBILITY_TESTING_DESCRIPTION}}
|
|
124
|
-
|
|
125
|
-
---
|
|
126
|
-
|
|
104
|
+
---
|
|
127
105
|
## 🔄 CI/CD Integration
|
|
128
106
|
|
|
129
107
|
**CI/CD Strategy:** {{CICD_TESTING_STRATEGY}}
|
|
130
108
|
|
|
131
109
|
{{CICD_TESTING_DESCRIPTION}}
|
|
132
|
-
|
|
133
|
-
---
|
|
134
|
-
|
|
110
|
+
---
|
|
135
111
|
## ✅ Best Practices
|
|
136
112
|
|
|
137
113
|
1. **Test on Real Devices** - Not just simulators/emulators
|
|
@@ -139,8 +115,8 @@
|
|
|
139
115
|
3. **Test Permission Flows** - Test all permission scenarios
|
|
140
116
|
4. **Test Platform Differences** - Test iOS and Android separately
|
|
141
117
|
5. **Maintain Test Coverage** - Keep coverage above target
|
|
118
|
+
---
|
|
119
|
+
**Last Updated:** {{LAST_UPDATED}}
|
|
142
120
|
|
|
143
|
-
---
|
|
144
121
|
|
|
145
|
-
**Last Updated:** {{LAST_UPDATED}}
|
|
146
122
|
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Project Brief: {{PROJECT_NAME}}
|
|
2
2
|
|
|
3
3
|
> {{PROJECT_DESCRIPTION}}
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
4
|
+
---
|
|
7
5
|
## 📋 Overview
|
|
8
6
|
|
|
9
7
|
**Project Name:** {{PROJECT_NAME}}
|
|
@@ -15,15 +13,11 @@
|
|
|
15
13
|
**Target Users:** {{TARGET_USERS}}
|
|
16
14
|
|
|
17
15
|
**Project Scope:** {{PROJECT_SCOPE}}
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
16
|
+
---
|
|
21
17
|
## 🎯 Objectives
|
|
22
18
|
|
|
23
19
|
{{OBJECTIVES_LIST}}
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
20
|
+
---
|
|
27
21
|
## 📱 Platform & Framework
|
|
28
22
|
|
|
29
23
|
**Platforms:** {{PLATFORMS}}
|
|
@@ -35,9 +29,7 @@
|
|
|
35
29
|
**Minimum OS Versions:**
|
|
36
30
|
- iOS: {{MIN_IOS_VERSION}}
|
|
37
31
|
- Android: {{MIN_ANDROID_VERSION}} (API {{MIN_ANDROID_API}})
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
32
|
+
---
|
|
41
33
|
## 🏗️ Architecture
|
|
42
34
|
|
|
43
35
|
**Architecture Pattern:** {{ARCHITECTURE_PATTERN}}
|
|
@@ -51,15 +43,11 @@
|
|
|
51
43
|
**Dark Mode:** {{DARK_MODE_STRATEGY}}
|
|
52
44
|
|
|
53
45
|
**Internationalization:** {{I18N_STRATEGY}}
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
46
|
+
---
|
|
57
47
|
## 🔑 Key Features
|
|
58
48
|
|
|
59
49
|
{{KEY_FEATURES_LIST}}
|
|
60
|
-
|
|
61
|
-
---
|
|
62
|
-
|
|
50
|
+
---
|
|
63
51
|
## 🔐 Permissions & Native Features
|
|
64
52
|
|
|
65
53
|
**Required Permissions:**
|
|
@@ -70,28 +58,22 @@
|
|
|
70
58
|
|
|
71
59
|
**Third-Party SDKs:**
|
|
72
60
|
{{THIRD_PARTY_SDKS_LIST}}
|
|
73
|
-
|
|
74
|
-
---
|
|
75
|
-
|
|
61
|
+
---
|
|
76
62
|
## 📊 Success Metrics
|
|
77
63
|
|
|
78
64
|
{{SUCCESS_METRICS_LIST}}
|
|
79
|
-
|
|
80
|
-
---
|
|
81
|
-
|
|
65
|
+
---
|
|
82
66
|
## 🚀 Timeline
|
|
83
67
|
|
|
84
68
|
{{TIMELINE_DESCRIPTION}}
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
69
|
+
---
|
|
88
70
|
## 📝 Notes
|
|
89
71
|
|
|
90
72
|
{{ADDITIONAL_NOTES}}
|
|
91
|
-
|
|
92
|
-
---
|
|
93
|
-
|
|
73
|
+
---
|
|
94
74
|
**Created:** {{CREATED_DATE}}
|
|
95
75
|
|
|
96
76
|
**Last Updated:** {{LAST_UPDATED}}
|
|
97
77
|
|
|
78
|
+
|
|
79
|
+
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Build Configuration
|
|
2
2
|
|
|
3
3
|
> Build and CI/CD configuration for {{PROJECT_NAME}}
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
4
|
+
---
|
|
7
5
|
## 🔧 Build Tools
|
|
8
6
|
|
|
9
7
|
**CI/CD Platform:** {{CICD_PLATFORM}}
|
|
@@ -11,9 +9,7 @@
|
|
|
11
9
|
**Build Automation:** {{BUILD_AUTOMATION_TOOL}}
|
|
12
10
|
|
|
13
11
|
**Versioning:** {{VERSIONING_STRATEGY}}
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
12
|
+
---
|
|
17
13
|
## 📦 Build Configuration
|
|
18
14
|
|
|
19
15
|
### iOS Build
|
|
@@ -37,9 +33,7 @@
|
|
|
37
33
|
|
|
38
34
|
**Build Configuration:**
|
|
39
35
|
{{ANDROID_BUILD_CONFIGURATION}}
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
36
|
+
---
|
|
43
37
|
## 🔐 Code Signing
|
|
44
38
|
|
|
45
39
|
**Code Signing Strategy:** {{CODE_SIGNING_STRATEGY}}
|
|
@@ -51,9 +45,7 @@
|
|
|
51
45
|
### Android
|
|
52
46
|
|
|
53
47
|
{{ANDROID_CODE_SIGNING_DESCRIPTION}}
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
48
|
+
---
|
|
57
49
|
## 🚀 CI/CD Pipeline
|
|
58
50
|
|
|
59
51
|
**Pipeline Configuration:**
|
|
@@ -70,9 +62,7 @@
|
|
|
70
62
|
### Deployment Steps
|
|
71
63
|
|
|
72
64
|
{{DEPLOYMENT_STEPS}}
|
|
73
|
-
|
|
74
|
-
---
|
|
75
|
-
|
|
65
|
+
---
|
|
76
66
|
## 📊 Build Artifacts
|
|
77
67
|
|
|
78
68
|
**iOS:**
|
|
@@ -82,9 +72,7 @@
|
|
|
82
72
|
**Android:**
|
|
83
73
|
- APK file (for testing)
|
|
84
74
|
- AAB file (for Play Store)
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
75
|
+
---
|
|
88
76
|
## 🔄 Version Management
|
|
89
77
|
|
|
90
78
|
**Versioning Strategy:** {{VERSIONING_STRATEGY}}
|
|
@@ -92,15 +80,11 @@
|
|
|
92
80
|
**Version Format:** {{VERSION_FORMAT}}
|
|
93
81
|
|
|
94
82
|
**Version Increment:** {{VERSION_INCREMENT_RULES}}
|
|
95
|
-
|
|
96
|
-
---
|
|
97
|
-
|
|
83
|
+
---
|
|
98
84
|
## 🛠️ Environment Variables
|
|
99
85
|
|
|
100
86
|
{{ENVIRONMENT_VARIABLES}}
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
87
|
+
---
|
|
104
88
|
## ✅ Build Checklist
|
|
105
89
|
|
|
106
90
|
- [ ] Build succeeds locally
|
|
@@ -109,8 +93,8 @@
|
|
|
109
93
|
- [ ] Code signing configured
|
|
110
94
|
- [ ] Environment variables set
|
|
111
95
|
- [ ] Build artifacts generated
|
|
96
|
+
---
|
|
97
|
+
**Last Updated:** {{LAST_UPDATED}}
|
|
112
98
|
|
|
113
|
-
---
|
|
114
99
|
|
|
115
|
-
**Last Updated:** {{LAST_UPDATED}}
|
|
116
100
|
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Deployment Procedures
|
|
2
2
|
|
|
3
3
|
> Step-by-step deployment guide for {{PROJECT_NAME}}
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
4
|
+
---
|
|
7
5
|
## 🚀 Deployment Overview
|
|
8
6
|
|
|
9
7
|
**Deployment Strategy:** {{DEPLOYMENT_STRATEGY}}
|
|
@@ -11,9 +9,7 @@
|
|
|
11
9
|
**Release Frequency:** {{RELEASE_FREQUENCY}}
|
|
12
10
|
|
|
13
11
|
**Rollback Strategy:** {{ROLLBACK_STRATEGY}}
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
12
|
+
---
|
|
17
13
|
## 📱 iOS Deployment
|
|
18
14
|
|
|
19
15
|
### Prerequisites
|
|
@@ -31,9 +27,7 @@
|
|
|
31
27
|
```bash
|
|
32
28
|
fastlane ios release
|
|
33
29
|
```
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
30
|
+
---
|
|
37
31
|
## 🤖 Android Deployment
|
|
38
32
|
|
|
39
33
|
### Prerequisites
|
|
@@ -51,25 +45,19 @@ fastlane ios release
|
|
|
51
45
|
```bash
|
|
52
46
|
fastlane android release
|
|
53
47
|
```
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
48
|
+
---
|
|
57
49
|
## 🔄 Staged Rollout
|
|
58
50
|
|
|
59
51
|
**Rollout Strategy:** {{ROLLOUT_STRATEGY}}
|
|
60
52
|
|
|
61
53
|
{{ROLLOUT_DESCRIPTION}}
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
54
|
+
---
|
|
65
55
|
## 🔙 Rollback Procedure
|
|
66
56
|
|
|
67
57
|
**Rollback Strategy:** {{ROLLBACK_STRATEGY}}
|
|
68
58
|
|
|
69
59
|
{{ROLLBACK_PROCEDURE}}
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
60
|
+
---
|
|
73
61
|
## 📊 Post-Deployment
|
|
74
62
|
|
|
75
63
|
### Monitoring
|
|
@@ -84,9 +72,7 @@ fastlane android release
|
|
|
84
72
|
- [ ] App installs correctly
|
|
85
73
|
- [ ] Key features work
|
|
86
74
|
- [ ] No critical crashes
|
|
87
|
-
|
|
88
|
-
---
|
|
89
|
-
|
|
75
|
+
---
|
|
90
76
|
## ✅ Deployment Checklist
|
|
91
77
|
|
|
92
78
|
### Pre-Deployment
|
|
@@ -107,8 +93,8 @@ fastlane android release
|
|
|
107
93
|
|
|
108
94
|
- [ ] Monitoring active
|
|
109
95
|
- [ ] Ready for rollback if needed
|
|
96
|
+
---
|
|
97
|
+
**Last Updated:** {{LAST_UPDATED}}
|
|
110
98
|
|
|
111
|
-
---
|
|
112
99
|
|
|
113
|
-
**Last Updated:** {{LAST_UPDATED}}
|
|
114
100
|
|