ai-flow-dev 2.7.0 → 2.8.0

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 (171) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +573 -570
  3. package/package.json +74 -74
  4. package/prompts/backend/flow-build-phase-0.md +535 -535
  5. package/prompts/backend/flow-build-phase-1.md +626 -626
  6. package/prompts/backend/flow-build-phase-10.md +340 -340
  7. package/prompts/backend/flow-build-phase-2.md +573 -573
  8. package/prompts/backend/flow-build-phase-3.md +834 -834
  9. package/prompts/backend/flow-build-phase-4.md +554 -554
  10. package/prompts/backend/flow-build-phase-5.md +703 -703
  11. package/prompts/backend/flow-build-phase-6.md +524 -524
  12. package/prompts/backend/flow-build-phase-7.md +1001 -1001
  13. package/prompts/backend/flow-build-phase-8.md +1407 -1407
  14. package/prompts/backend/flow-build-phase-9.md +477 -477
  15. package/prompts/backend/flow-build.md +137 -137
  16. package/prompts/backend/flow-check-review.md +656 -20
  17. package/prompts/backend/flow-check-test.md +526 -14
  18. package/prompts/backend/flow-check.md +725 -67
  19. package/prompts/backend/flow-commit.md +88 -119
  20. package/prompts/backend/flow-docs-sync.md +354 -354
  21. package/prompts/backend/flow-finish.md +919 -0
  22. package/prompts/backend/flow-release.md +949 -0
  23. package/prompts/backend/flow-work-feature.md +61 -61
  24. package/prompts/backend/flow-work-fix.md +46 -46
  25. package/prompts/backend/flow-work-refactor.md +48 -48
  26. package/prompts/backend/flow-work-resume.md +34 -34
  27. package/prompts/backend/flow-work.md +1098 -1286
  28. package/prompts/desktop/flow-build-phase-0.md +359 -359
  29. package/prompts/desktop/flow-build-phase-1.md +295 -295
  30. package/prompts/desktop/flow-build-phase-10.md +357 -357
  31. package/prompts/desktop/flow-build-phase-2.md +282 -282
  32. package/prompts/desktop/flow-build-phase-3.md +291 -291
  33. package/prompts/desktop/flow-build-phase-4.md +308 -308
  34. package/prompts/desktop/flow-build-phase-5.md +269 -269
  35. package/prompts/desktop/flow-build-phase-6.md +350 -350
  36. package/prompts/desktop/flow-build-phase-7.md +297 -297
  37. package/prompts/desktop/flow-build-phase-8.md +541 -541
  38. package/prompts/desktop/flow-build-phase-9.md +439 -439
  39. package/prompts/desktop/flow-build.md +156 -156
  40. package/prompts/desktop/flow-check-review.md +656 -20
  41. package/prompts/desktop/flow-check-test.md +526 -14
  42. package/prompts/desktop/flow-check.md +725 -67
  43. package/prompts/desktop/flow-commit.md +88 -119
  44. package/prompts/desktop/flow-docs-sync.md +354 -354
  45. package/prompts/desktop/flow-finish.md +910 -0
  46. package/prompts/desktop/flow-release.md +662 -0
  47. package/prompts/desktop/flow-work-feature.md +61 -61
  48. package/prompts/desktop/flow-work-fix.md +46 -46
  49. package/prompts/desktop/flow-work-refactor.md +48 -48
  50. package/prompts/desktop/flow-work-resume.md +34 -34
  51. package/prompts/desktop/flow-work.md +1202 -1390
  52. package/prompts/frontend/flow-build-phase-0.md +425 -425
  53. package/prompts/frontend/flow-build-phase-1.md +626 -626
  54. package/prompts/frontend/flow-build-phase-10.md +33 -33
  55. package/prompts/frontend/flow-build-phase-2.md +573 -573
  56. package/prompts/frontend/flow-build-phase-3.md +782 -782
  57. package/prompts/frontend/flow-build-phase-4.md +554 -554
  58. package/prompts/frontend/flow-build-phase-5.md +703 -703
  59. package/prompts/frontend/flow-build-phase-6.md +524 -524
  60. package/prompts/frontend/flow-build-phase-7.md +1001 -1001
  61. package/prompts/frontend/flow-build-phase-8.md +872 -872
  62. package/prompts/frontend/flow-build-phase-9.md +94 -94
  63. package/prompts/frontend/flow-build.md +137 -137
  64. package/prompts/frontend/flow-check-review.md +656 -20
  65. package/prompts/frontend/flow-check-test.md +526 -14
  66. package/prompts/frontend/flow-check.md +725 -67
  67. package/prompts/frontend/flow-commit.md +88 -119
  68. package/prompts/frontend/flow-docs-sync.md +550 -550
  69. package/prompts/frontend/flow-finish.md +910 -0
  70. package/prompts/frontend/flow-release.md +519 -0
  71. package/prompts/frontend/flow-work-api.md +1540 -0
  72. package/prompts/frontend/flow-work-feature.md +61 -61
  73. package/prompts/frontend/flow-work-fix.md +38 -38
  74. package/prompts/frontend/flow-work-refactor.md +48 -48
  75. package/prompts/frontend/flow-work-resume.md +34 -34
  76. package/prompts/frontend/flow-work.md +1583 -1320
  77. package/prompts/mobile/flow-build-phase-0.md +425 -425
  78. package/prompts/mobile/flow-build-phase-1.md +626 -626
  79. package/prompts/mobile/flow-build-phase-10.md +32 -32
  80. package/prompts/mobile/flow-build-phase-2.md +573 -573
  81. package/prompts/mobile/flow-build-phase-3.md +782 -782
  82. package/prompts/mobile/flow-build-phase-4.md +554 -554
  83. package/prompts/mobile/flow-build-phase-5.md +703 -703
  84. package/prompts/mobile/flow-build-phase-6.md +524 -524
  85. package/prompts/mobile/flow-build-phase-7.md +1001 -1001
  86. package/prompts/mobile/flow-build-phase-8.md +888 -888
  87. package/prompts/mobile/flow-build-phase-9.md +90 -90
  88. package/prompts/mobile/flow-build.md +135 -135
  89. package/prompts/mobile/flow-check-review.md +656 -20
  90. package/prompts/mobile/flow-check-test.md +526 -14
  91. package/prompts/mobile/flow-check.md +725 -67
  92. package/prompts/mobile/flow-commit.md +88 -119
  93. package/prompts/mobile/flow-docs-sync.md +620 -620
  94. package/prompts/mobile/flow-finish.md +910 -0
  95. package/prompts/mobile/flow-release.md +751 -0
  96. package/prompts/mobile/flow-work-api.md +1493 -0
  97. package/prompts/mobile/flow-work-feature.md +61 -61
  98. package/prompts/mobile/flow-work-fix.md +46 -46
  99. package/prompts/mobile/flow-work-refactor.md +48 -48
  100. package/prompts/mobile/flow-work-resume.md +34 -34
  101. package/prompts/mobile/flow-work.md +1593 -1329
  102. package/prompts/shared/mermaid-guidelines.md +102 -102
  103. package/prompts/shared/scope-levels.md +114 -114
  104. package/prompts/shared/smart-skip-preflight.md +214 -214
  105. package/prompts/shared/story-points.md +55 -55
  106. package/prompts/shared/task-format.md +74 -74
  107. package/prompts/shared/task-summary-template.md +277 -277
  108. package/templates/AGENT.template.md +443 -443
  109. package/templates/backend/.clauderules.template +112 -112
  110. package/templates/backend/.cursorrules.template +102 -102
  111. package/templates/backend/README.template.md +2 -2
  112. package/templates/backend/ai-instructions.template.md +2 -2
  113. package/templates/backend/copilot-instructions.template.md +2 -2
  114. package/templates/backend/docs/api.template.md +320 -320
  115. package/templates/backend/docs/business-flows.template.md +97 -97
  116. package/templates/backend/docs/code-standards.template.md +2 -2
  117. package/templates/backend/docs/contributing.template.md +3 -3
  118. package/templates/backend/docs/data-model.template.md +520 -520
  119. package/templates/backend/docs/testing.template.md +2 -2
  120. package/templates/backend/project-brief.template.md +2 -2
  121. package/templates/backend/specs/configuration.template.md +2 -2
  122. package/templates/backend/specs/security.template.md +2 -2
  123. package/templates/desktop/.clauderules.template +112 -112
  124. package/templates/desktop/.cursorrules.template +102 -102
  125. package/templates/desktop/README.template.md +170 -170
  126. package/templates/desktop/ai-instructions.template.md +366 -366
  127. package/templates/desktop/copilot-instructions.template.md +140 -140
  128. package/templates/desktop/docs/docs/api.template.md +320 -320
  129. package/templates/desktop/docs/docs/architecture.template.md +724 -724
  130. package/templates/desktop/docs/docs/business-flows.template.md +102 -102
  131. package/templates/desktop/docs/docs/code-standards.template.md +792 -792
  132. package/templates/desktop/docs/docs/contributing.template.md +149 -149
  133. package/templates/desktop/docs/docs/data-model.template.md +520 -520
  134. package/templates/desktop/docs/docs/operations.template.md +720 -720
  135. package/templates/desktop/docs/docs/testing.template.md +722 -722
  136. package/templates/desktop/project-brief.template.md +150 -150
  137. package/templates/desktop/specs/specs/configuration.template.md +121 -121
  138. package/templates/desktop/specs/specs/security.template.md +392 -392
  139. package/templates/frontend/README.template.md +2 -2
  140. package/templates/frontend/ai-instructions.template.md +2 -2
  141. package/templates/frontend/docs/api-integration.template.md +362 -362
  142. package/templates/frontend/docs/components.template.md +2 -2
  143. package/templates/frontend/docs/error-handling.template.md +360 -360
  144. package/templates/frontend/docs/operations.template.md +107 -107
  145. package/templates/frontend/docs/performance.template.md +124 -124
  146. package/templates/frontend/docs/pwa.template.md +119 -119
  147. package/templates/frontend/docs/state-management.template.md +2 -2
  148. package/templates/frontend/docs/styling.template.md +2 -2
  149. package/templates/frontend/docs/testing.template.md +2 -2
  150. package/templates/frontend/project-brief.template.md +2 -2
  151. package/templates/frontend/specs/accessibility.template.md +95 -95
  152. package/templates/frontend/specs/configuration.template.md +2 -2
  153. package/templates/frontend/specs/security.template.md +175 -175
  154. package/templates/fullstack/README.template.md +252 -252
  155. package/templates/fullstack/ai-instructions.template.md +444 -444
  156. package/templates/fullstack/project-brief.template.md +157 -157
  157. package/templates/fullstack/specs/configuration.template.md +340 -340
  158. package/templates/mobile/README.template.md +167 -167
  159. package/templates/mobile/ai-instructions.template.md +196 -196
  160. package/templates/mobile/docs/app-store.template.md +135 -135
  161. package/templates/mobile/docs/architecture.template.md +63 -63
  162. package/templates/mobile/docs/native-features.template.md +94 -94
  163. package/templates/mobile/docs/navigation.template.md +59 -59
  164. package/templates/mobile/docs/offline-strategy.template.md +65 -65
  165. package/templates/mobile/docs/permissions.template.md +56 -56
  166. package/templates/mobile/docs/state-management.template.md +85 -85
  167. package/templates/mobile/docs/testing.template.md +109 -109
  168. package/templates/mobile/project-brief.template.md +69 -69
  169. package/templates/mobile/specs/build-configuration.template.md +91 -91
  170. package/templates/mobile/specs/deployment.template.md +92 -92
  171. package/templates/work.template.md +47 -47
@@ -1,214 +1,214 @@
1
- # Smart Skip Pre-Flight Check (Shared Template)
2
-
3
- ## 🔍 Pre-Flight Check Logic
4
-
5
- **This section is automatically included in Phases 1-7 to enable smart skip functionality.**
6
-
7
- ### How It Works
8
-
9
- 1. **Read audit data** from Phase 0: `.ai-flow/cache/audit-data.json`
10
- 2. **Check consistency score** for the current phase
11
- 3. **Execute appropriate scenario** based on score
12
-
13
- ---
14
-
15
- ## Execution Flow
16
-
17
- ```javascript
18
- // Read audit data from Phase 0
19
- const auditData = readJSON('.ai-flow/cache/audit-data.json');
20
- const phaseData = auditData?.phases?.[currentPhase];
21
-
22
- if (phaseData?.exists) {
23
- // Documentation exists, check consistency
24
- if (phaseData.consistencyScore >= 95) {
25
- executeScenarioA(); // SKIP
26
- } else if (phaseData.consistencyScore >= 80) {
27
- executeScenarioB(); // HYBRID
28
- } else {
29
- executeScenarioC(); // FULL
30
- }
31
- } else {
32
- // No existing docs, proceed with full phase
33
- executeScenarioC();
34
- }
35
- ```
36
-
37
- ---
38
-
39
- ## Scenario A: High Confidence (≥95%) - SKIP
40
-
41
- **Display format:**
42
-
43
- ```
44
- ---
45
- ✅ [PHASE NAME] ALREADY DOCUMENTED
46
-
47
- File: [target-file]
48
- Consistency: [score]%
49
- Status: Complete documentation
50
-
51
- Documented Information:
52
- ✅ [Key item 1]
53
- ✅ [Key item 2]
54
- ✅ [Key item 3]
55
- ...
56
-
57
- ---
58
-
59
- Use existing documentation? (Y/n) ⭐
60
- > _
61
- ```
62
-
63
- **User Actions:**
64
- - **Y**: Skip to next phase
65
- - **n**: Proceed with full phase questionnaire
66
-
67
- ---
68
-
69
- ## Scenario B: Medium Confidence (80-94%) - HYBRID
70
-
71
- **Display format:**
72
-
73
- ```
74
- ---
75
- 📚 [PHASE NAME] PARTIALLY DOCUMENTED
76
-
77
- File: [target-file]
78
- Consistency: [score]%
79
- Status: Most information present, some gaps
80
-
81
- Documented:
82
- ✅ [Item 1]
83
- ✅ [Item 2]
84
-
85
- Missing:
86
- ❌ [Gap 1]
87
- ❌ [Gap 2]
88
-
89
- ---
90
-
91
- Options:
92
- A) Answer only [N] missing questions ⭐
93
- B) Re-answer everything (full phase)
94
- C) Skip entirely (use docs as-is)
95
-
96
- > _
97
- ```
98
-
99
- **User Actions:**
100
- - **A**: Ask only missing questions, merge with existing docs
101
- - **B**: Full phase questionnaire
102
- - **C**: Skip with warning
103
-
104
- ---
105
-
106
- ## Scenario C: Low Confidence (<80%) or No Docs - FULL PHASE
107
-
108
- **Display format:**
109
-
110
- ```
111
- ---
112
- ⚠️ [PHASE NAME] NEEDS DOCUMENTATION
113
-
114
- Reason: [target-file] is outdated or missing
115
- Consistency: [score]% (or N/A if file doesn't exist)
116
-
117
- Issues detected:
118
- ❌ [Issue 1]
119
- ❌ [Issue 2]
120
-
121
- Recommendation: Complete full phase questionnaire
122
-
123
- Proceeding with full phase...
124
- [Continue to first question]
125
- ```
126
-
127
- ---
128
-
129
- ## Phase-Specific Configuration
130
-
131
- Each phase references this template with specific parameters:
132
-
133
- ### Phase 1: Discovery & Business
134
- - **Target File**: `project-brief.md`
135
- - **Phase Name**: "BUSINESS CONTEXT"
136
- - **Key Items**: Project name, description, users, objectives, system type, features, scope, constraints, metrics, business flows
137
- - **Typical Gaps**: Business objectives, success metrics, constraints
138
-
139
- ### Phase 2: Data Architecture
140
- - **Target File**: `docs/data-model.md`
141
- - **Phase Name**: "DATA ARCHITECTURE"
142
- - **Key Items**: Entities, relationships, data patterns, indexes
143
- - **Typical Gaps**: Missing entities, undocumented relationships, missing fields
144
-
145
- ### Phase 3: System Architecture
146
- - **Target File**: `docs/architecture.md`
147
- - **Phase Name**: "SYSTEM ARCHITECTURE"
148
- - **Key Items**: Framework, architecture pattern, API style, database, caching, background jobs, integrations
149
- - **Typical Gaps**: API versioning, rate limiting, caching strategy
150
-
151
- ### Phase 4: Security & Authentication
152
- - **Target File**: `specs/security.md`
153
- - **Phase Name**: "SECURITY & AUTHENTICATION"
154
- - **Key Items**: Auth strategy, encryption, security patterns, compliance
155
- - **Typical Gaps**: Compliance requirements, audit logging, security policies
156
-
157
- ### Phase 5: Code Standards
158
- - **Target File**: `docs/code-standards.md`
159
- - **Phase Name**: "CODE STANDARDS"
160
- - **Key Items**: Linters, formatters, naming conventions, code review process
161
- - **Typical Gaps**: Team-specific conventions, code review workflow
162
-
163
- ### Phase 6: Testing Strategy
164
- - **Target File**: `docs/testing.md`
165
- - **Phase Name**: "TESTING STRATEGY"
166
- - **Key Items**: Test framework, coverage targets, test types, CI/CD integration
167
- - **Typical Gaps**: E2E strategy, load testing, performance testing
168
-
169
- ### Phase 7: Operations & Deployment
170
- - **Target File**: `docs/deployment.md`
171
- - **Phase Name**: "OPERATIONS & DEPLOYMENT"
172
- - **Key Items**: CI/CD pipeline, deployment platform, monitoring, logging
173
- - **Typical Gaps**: Incident runbooks, disaster recovery, scaling strategy
174
-
175
- ---
176
-
177
- ## Usage in Phase Prompts
178
-
179
- **In each phase prompt (1-7), add this reference:**
180
-
181
- ```markdown
182
- ## 🔍 Pre-Flight Check (Smart Skip Logic)
183
-
184
- > 📎 **Reference:** See [prompts/shared/smart-skip-preflight.md](../../.ai-flow/prompts/shared/smart-skip-preflight.md) for the complete smart skip logic.
185
-
186
- **Execute Pre-Flight Check for this phase:**
187
-
188
- - **Phase**: [Phase Number]
189
- - **Target File**: [file path]
190
- - **Phase Name**: [display name]
191
-
192
- [Proceed with appropriate scenario based on audit data]
193
-
194
- ---
195
-
196
- ## Phase [N] Questions (Full Mode)
197
-
198
- [Continue with phase-specific questions...]
199
- ```
200
-
201
- ---
202
-
203
- ## Benefits of This Approach
204
-
205
- ✅ **DRY Principle**: Single source of truth for skip logic
206
- ✅ **Easy Maintenance**: Update once, applies to all phases
207
- ✅ **Consistency**: Same UX across all phases
208
- ✅ **Reduced File Size**: Each phase prompt is ~100 lines shorter
209
- ✅ **Clear Separation**: Logic vs content
210
-
211
- ---
212
-
213
- **Last Updated:** 2025-12-22
214
- **Version:** 1.0
1
+ # Smart Skip Pre-Flight Check (Shared Template)
2
+
3
+ ## 🔍 Pre-Flight Check Logic
4
+
5
+ **This section is automatically included in Phases 1-7 to enable smart skip functionality.**
6
+
7
+ ### How It Works
8
+
9
+ 1. **Read audit data** from Phase 0: `.ai-flow/cache/audit-data.json`
10
+ 2. **Check consistency score** for the current phase
11
+ 3. **Execute appropriate scenario** based on score
12
+
13
+ ---
14
+
15
+ ## Execution Flow
16
+
17
+ ```javascript
18
+ // Read audit data from Phase 0
19
+ const auditData = readJSON('.ai-flow/cache/audit-data.json');
20
+ const phaseData = auditData?.phases?.[currentPhase];
21
+
22
+ if (phaseData?.exists) {
23
+ // Documentation exists, check consistency
24
+ if (phaseData.consistencyScore >= 95) {
25
+ executeScenarioA(); // SKIP
26
+ } else if (phaseData.consistencyScore >= 80) {
27
+ executeScenarioB(); // HYBRID
28
+ } else {
29
+ executeScenarioC(); // FULL
30
+ }
31
+ } else {
32
+ // No existing docs, proceed with full phase
33
+ executeScenarioC();
34
+ }
35
+ ```
36
+
37
+ ---
38
+
39
+ ## Scenario A: High Confidence (≥95%) - SKIP
40
+
41
+ **Display format:**
42
+
43
+ ```
44
+ ---
45
+ ✅ [PHASE NAME] ALREADY DOCUMENTED
46
+
47
+ File: [target-file]
48
+ Consistency: [score]%
49
+ Status: Complete documentation
50
+
51
+ Documented Information:
52
+ ✅ [Key item 1]
53
+ ✅ [Key item 2]
54
+ ✅ [Key item 3]
55
+ ...
56
+
57
+ ---
58
+
59
+ Use existing documentation? (Y/n) ⭐
60
+ > _
61
+ ```
62
+
63
+ **User Actions:**
64
+ - **Y**: Skip to next phase
65
+ - **n**: Proceed with full phase questionnaire
66
+
67
+ ---
68
+
69
+ ## Scenario B: Medium Confidence (80-94%) - HYBRID
70
+
71
+ **Display format:**
72
+
73
+ ```
74
+ ---
75
+ 📚 [PHASE NAME] PARTIALLY DOCUMENTED
76
+
77
+ File: [target-file]
78
+ Consistency: [score]%
79
+ Status: Most information present, some gaps
80
+
81
+ Documented:
82
+ ✅ [Item 1]
83
+ ✅ [Item 2]
84
+
85
+ Missing:
86
+ ❌ [Gap 1]
87
+ ❌ [Gap 2]
88
+
89
+ ---
90
+
91
+ Options:
92
+ A) Answer only [N] missing questions ⭐
93
+ B) Re-answer everything (full phase)
94
+ C) Skip entirely (use docs as-is)
95
+
96
+ > _
97
+ ```
98
+
99
+ **User Actions:**
100
+ - **A**: Ask only missing questions, merge with existing docs
101
+ - **B**: Full phase questionnaire
102
+ - **C**: Skip with warning
103
+
104
+ ---
105
+
106
+ ## Scenario C: Low Confidence (<80%) or No Docs - FULL PHASE
107
+
108
+ **Display format:**
109
+
110
+ ```
111
+ ---
112
+ ⚠️ [PHASE NAME] NEEDS DOCUMENTATION
113
+
114
+ Reason: [target-file] is outdated or missing
115
+ Consistency: [score]% (or N/A if file doesn't exist)
116
+
117
+ Issues detected:
118
+ ❌ [Issue 1]
119
+ ❌ [Issue 2]
120
+
121
+ Recommendation: Complete full phase questionnaire
122
+
123
+ Proceeding with full phase...
124
+ [Continue to first question]
125
+ ```
126
+
127
+ ---
128
+
129
+ ## Phase-Specific Configuration
130
+
131
+ Each phase references this template with specific parameters:
132
+
133
+ ### Phase 1: Discovery & Business
134
+ - **Target File**: `project-brief.md`
135
+ - **Phase Name**: "BUSINESS CONTEXT"
136
+ - **Key Items**: Project name, description, users, objectives, system type, features, scope, constraints, metrics, business flows
137
+ - **Typical Gaps**: Business objectives, success metrics, constraints
138
+
139
+ ### Phase 2: Data Architecture
140
+ - **Target File**: `docs/data-model.md`
141
+ - **Phase Name**: "DATA ARCHITECTURE"
142
+ - **Key Items**: Entities, relationships, data patterns, indexes
143
+ - **Typical Gaps**: Missing entities, undocumented relationships, missing fields
144
+
145
+ ### Phase 3: System Architecture
146
+ - **Target File**: `docs/architecture.md`
147
+ - **Phase Name**: "SYSTEM ARCHITECTURE"
148
+ - **Key Items**: Framework, architecture pattern, API style, database, caching, background jobs, integrations
149
+ - **Typical Gaps**: API versioning, rate limiting, caching strategy
150
+
151
+ ### Phase 4: Security & Authentication
152
+ - **Target File**: `specs/security.md`
153
+ - **Phase Name**: "SECURITY & AUTHENTICATION"
154
+ - **Key Items**: Auth strategy, encryption, security patterns, compliance
155
+ - **Typical Gaps**: Compliance requirements, audit logging, security policies
156
+
157
+ ### Phase 5: Code Standards
158
+ - **Target File**: `docs/code-standards.md`
159
+ - **Phase Name**: "CODE STANDARDS"
160
+ - **Key Items**: Linters, formatters, naming conventions, code review process
161
+ - **Typical Gaps**: Team-specific conventions, code review workflow
162
+
163
+ ### Phase 6: Testing Strategy
164
+ - **Target File**: `docs/testing.md`
165
+ - **Phase Name**: "TESTING STRATEGY"
166
+ - **Key Items**: Test framework, coverage targets, test types, CI/CD integration
167
+ - **Typical Gaps**: E2E strategy, load testing, performance testing
168
+
169
+ ### Phase 7: Operations & Deployment
170
+ - **Target File**: `docs/deployment.md`
171
+ - **Phase Name**: "OPERATIONS & DEPLOYMENT"
172
+ - **Key Items**: CI/CD pipeline, deployment platform, monitoring, logging
173
+ - **Typical Gaps**: Incident runbooks, disaster recovery, scaling strategy
174
+
175
+ ---
176
+
177
+ ## Usage in Phase Prompts
178
+
179
+ **In each phase prompt (1-7), add this reference:**
180
+
181
+ ```markdown
182
+ ## 🔍 Pre-Flight Check (Smart Skip Logic)
183
+
184
+ > 📎 **Reference:** See [prompts/shared/smart-skip-preflight.md](../../.ai-flow/prompts/shared/smart-skip-preflight.md) for the complete smart skip logic.
185
+
186
+ **Execute Pre-Flight Check for this phase:**
187
+
188
+ - **Phase**: [Phase Number]
189
+ - **Target File**: [file path]
190
+ - **Phase Name**: [display name]
191
+
192
+ [Proceed with appropriate scenario based on audit data]
193
+
194
+ ---
195
+
196
+ ## Phase [N] Questions (Full Mode)
197
+
198
+ [Continue with phase-specific questions...]
199
+ ```
200
+
201
+ ---
202
+
203
+ ## Benefits of This Approach
204
+
205
+ ✅ **DRY Principle**: Single source of truth for skip logic
206
+ ✅ **Easy Maintenance**: Update once, applies to all phases
207
+ ✅ **Consistency**: Same UX across all phases
208
+ ✅ **Reduced File Size**: Each phase prompt is ~100 lines shorter
209
+ ✅ **Clear Separation**: Logic vs content
210
+
211
+ ---
212
+
213
+ **Last Updated:** 2025-12-22
214
+ **Version:** 1.0
@@ -1,65 +1,65 @@
1
- # Story Points Reference
2
-
3
- > **Canonical reference for Fibonacci-based Story Point estimation across all AI Flow phases.**
4
- >
5
- > This file is the single source of truth for Story Points. All phases that require SP estimation MUST reference this file.
1
+ # Story Points Reference
2
+
3
+ > **Canonical reference for Fibonacci-based Story Point estimation across all AI Flow phases.**
4
+ >
5
+ > This file is the single source of truth for Story Points. All phases that require SP estimation MUST reference this file.
6
6
  ---
7
- ## Story Points Scale (Fibonacci)
7
+ ## Story Points Scale (Fibonacci)
8
8
  ---
9
- | Story Points | Complexity | Typical Time | Examples |
10
- | ------------ | ---------- | ------------ | -------------------------------------- |
11
- | **1 SP** | Trivial | 1-2 hours | Add simple field, update enum |
12
- | **2 SP** | Very Small | 2-4 hours | Basic validation, simple test |
13
- | **3 SP** | Small | 4-8 hours | Simple CRUD endpoint, basic entity |
14
- | **5 SP** | Medium | 1-2 days | Complex endpoint with business logic |
15
- | **8 SP** | Complex | 2-3 days | Auth flow, complex validation |
16
- | **13 SP** | Large | 1 week | Complete module with full tests |
17
- | **21 SP** | Very Large | 2 weeks | Major feature with integration |
18
- | **34 SP** | Epic | 3 weeks | Multiple related features (Epic-level) |
9
+ | Story Points | Complexity | Typical Time | Examples |
10
+ | ------------ | ---------- | ------------ | -------------------------------------- |
11
+ | **1 SP** | Trivial | 1-2 hours | Add simple field, update enum |
12
+ | **2 SP** | Very Small | 2-4 hours | Basic validation, simple test |
13
+ | **3 SP** | Small | 4-8 hours | Simple CRUD endpoint, basic entity |
14
+ | **5 SP** | Medium | 1-2 days | Complex endpoint with business logic |
15
+ | **8 SP** | Complex | 2-3 days | Auth flow, complex validation |
16
+ | **13 SP** | Large | 1 week | Complete module with full tests |
17
+ | **21 SP** | Very Large | 2 weeks | Major feature with integration |
18
+ | **34 SP** | Epic | 3 weeks | Multiple related features (Epic-level) |
19
19
  ---
20
- ## Story Points to Time Conversion (Hybrid Estimation)
20
+ ## Story Points to Time Conversion (Hybrid Estimation)
21
21
  ---
22
- Use this table to add time estimates to each task:
23
-
24
- | Story Points | Time Estimate (solo dev) | Time Range | Example Task |
25
- | ------------ | ------------------------ | ---------- | --------------------------------------- |
26
- | **1 SP** | 1-2 hours | (~1-2h) | Add enum value, simple config change |
27
- | **2 SP** | 3-4 hours | (~3-4h) | Write 5-8 unit tests, basic validation |
28
- | **3 SP** | 4-8 hours | (~4-8h) | Simple CRUD endpoint, basic entity |
29
- | **5 SP** | 1-2 days | (~1-2d) | Complex endpoint with business logic |
30
- | **8 SP** | 2-3 days | (~2-3d) | Auth flow, complex validation |
31
- | **13 SP** | 1 week | (~1w) | Complete module with full test coverage |
32
- | **21 SP** | 2 weeks | (~2w) | Major feature with integration |
33
- | **34 SP** | 3 weeks | (~3w) | Multiple related features (Epic-level) |
34
-
35
- > **Note:** Time assumes AI-assisted development (GitHub Copilot, Claude, etc.). Without AI assistance, multiply time estimates by 2-3x.
36
- >
37
- > **Velocity Tracking:** After completing 2-3 features, compare actual time vs estimates to calibrate your team's velocity. Adjust remaining estimates accordingly.
22
+ Use this table to add time estimates to each task:
23
+
24
+ | Story Points | Time Estimate (solo dev) | Time Range | Example Task |
25
+ | ------------ | ------------------------ | ---------- | --------------------------------------- |
26
+ | **1 SP** | 1-2 hours | (~1-2h) | Add enum value, simple config change |
27
+ | **2 SP** | 3-4 hours | (~3-4h) | Write 5-8 unit tests, basic validation |
28
+ | **3 SP** | 4-8 hours | (~4-8h) | Simple CRUD endpoint, basic entity |
29
+ | **5 SP** | 1-2 days | (~1-2d) | Complex endpoint with business logic |
30
+ | **8 SP** | 2-3 days | (~2-3d) | Auth flow, complex validation |
31
+ | **13 SP** | 1 week | (~1w) | Complete module with full test coverage |
32
+ | **21 SP** | 2 weeks | (~2w) | Major feature with integration |
33
+ | **34 SP** | 3 weeks | (~3w) | Multiple related features (Epic-level) |
34
+
35
+ > **Note:** Time assumes AI-assisted development (GitHub Copilot, Claude, etc.). Without AI assistance, multiply time estimates by 2-3x.
36
+ >
37
+ > **Velocity Tracking:** After completing 2-3 features, compare actual time vs estimates to calibrate your team's velocity. Adjust remaining estimates accordingly.
38
38
  ---
39
- ## Epic Estimation Guidelines
39
+ ## Epic Estimation Guidelines
40
40
  ---
41
- - **Foundation Epic:** 13-21 SP (depends on framework complexity)
42
- - **Data Layer Epic:** 3-5 SP per simple entity, 8-13 SP per complex entity
43
- - **Auth Epic:** 8 SP (basic JWT) to 21 SP (multi-provider + RBAC + 2FA)
44
- - **Business Epics:** Varies by domain complexity
45
- - **Integration Epic:** 5-8 SP per external service
46
- - **Operations Epic:** 13 SP (standard CI/CD + monitoring)
41
+ - **Foundation Epic:** 13-21 SP (depends on framework complexity)
42
+ - **Data Layer Epic:** 3-5 SP per simple entity, 8-13 SP per complex entity
43
+ - **Auth Epic:** 8 SP (basic JWT) to 21 SP (multi-provider + RBAC + 2FA)
44
+ - **Business Epics:** Varies by domain complexity
45
+ - **Integration Epic:** 5-8 SP per external service
46
+ - **Operations Epic:** 13 SP (standard CI/CD + monitoring)
47
47
  ---
48
- ## Feature Size Classification
48
+ ## Feature Size Classification
49
49
  ---
50
- | Size | Task Count | Phases | Characteristics |
51
- | ----------- | ---------- | ------- | -------------------------------------------------- |
52
- | **SMALL** | 1-10 tasks | 1 phase | Single file changes, isolated |
53
- | **MEDIUM** | 11-40 | 2-4 | Multiple files, some cross-layer dependencies |
54
- | **COMPLEX** | 41-80 | 4-8 | Multiple modules, integration, extensive testing |
55
- | **LARGE** | 81+ | 8-N | Feature affecting entire system, major refactoring |
50
+ | Size | Task Count | Phases | Characteristics |
51
+ | ----------- | ---------- | ------- | -------------------------------------------------- |
52
+ | **SMALL** | 1-10 tasks | 1 phase | Single file changes, isolated |
53
+ | **MEDIUM** | 11-40 | 2-4 | Multiple files, some cross-layer dependencies |
54
+ | **COMPLEX** | 41-80 | 4-8 | Multiple modules, integration, extensive testing |
55
+ | **LARGE** | 81+ | 8-N | Feature affecting entire system, major refactoring |
56
56
  ---
57
- ## How to Use Hybrid Estimation
57
+ ## How to Use Hybrid Estimation
58
58
  ---
59
- - Each task shows **both** Story Points and time: `• 2 SP (~3-4h)`
60
- - Story Points measure **complexity** (stable across teams)
61
- - Time estimates measure **effort** (varies by team velocity)
62
- - Track both to improve estimation accuracy over time
63
-
64
-
65
-
59
+ - Each task shows **both** Story Points and time: `• 2 SP (~3-4h)`
60
+ - Story Points measure **complexity** (stable across teams)
61
+ - Time estimates measure **effort** (varies by team velocity)
62
+ - Track both to improve estimation accuracy over time
63
+
64
+
65
+