ai-flow-dev 2.6.0 → 2.7.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 (161) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +570 -570
  3. package/package.json +73 -73
  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 +20 -20
  17. package/prompts/backend/flow-check-test.md +14 -14
  18. package/prompts/backend/flow-check.md +67 -67
  19. package/prompts/backend/flow-commit.md +119 -119
  20. package/prompts/backend/flow-docs-sync.md +354 -354
  21. package/prompts/backend/flow-work-feature.md +61 -61
  22. package/prompts/backend/flow-work-fix.md +46 -46
  23. package/prompts/backend/flow-work-refactor.md +48 -48
  24. package/prompts/backend/flow-work-resume.md +34 -34
  25. package/prompts/backend/flow-work.md +1286 -1023
  26. package/prompts/desktop/flow-build-phase-0.md +359 -359
  27. package/prompts/desktop/flow-build-phase-1.md +295 -295
  28. package/prompts/desktop/flow-build-phase-10.md +357 -357
  29. package/prompts/desktop/flow-build-phase-2.md +282 -282
  30. package/prompts/desktop/flow-build-phase-3.md +291 -291
  31. package/prompts/desktop/flow-build-phase-4.md +308 -308
  32. package/prompts/desktop/flow-build-phase-5.md +269 -269
  33. package/prompts/desktop/flow-build-phase-6.md +350 -350
  34. package/prompts/desktop/flow-build-phase-7.md +297 -297
  35. package/prompts/desktop/flow-build-phase-8.md +541 -541
  36. package/prompts/desktop/flow-build-phase-9.md +439 -439
  37. package/prompts/desktop/flow-build.md +156 -156
  38. package/prompts/desktop/flow-check-review.md +20 -20
  39. package/prompts/desktop/flow-check-test.md +14 -14
  40. package/prompts/desktop/flow-check.md +67 -67
  41. package/prompts/desktop/flow-commit.md +119 -119
  42. package/prompts/desktop/flow-docs-sync.md +354 -354
  43. package/prompts/desktop/flow-work-feature.md +61 -61
  44. package/prompts/desktop/flow-work-fix.md +46 -46
  45. package/prompts/desktop/flow-work-refactor.md +48 -48
  46. package/prompts/desktop/flow-work-resume.md +34 -34
  47. package/prompts/desktop/flow-work.md +1390 -1023
  48. package/prompts/frontend/flow-build-phase-0.md +425 -425
  49. package/prompts/frontend/flow-build-phase-1.md +626 -626
  50. package/prompts/frontend/flow-build-phase-10.md +33 -33
  51. package/prompts/frontend/flow-build-phase-2.md +573 -573
  52. package/prompts/frontend/flow-build-phase-3.md +782 -782
  53. package/prompts/frontend/flow-build-phase-4.md +554 -554
  54. package/prompts/frontend/flow-build-phase-5.md +703 -703
  55. package/prompts/frontend/flow-build-phase-6.md +524 -524
  56. package/prompts/frontend/flow-build-phase-7.md +1001 -1001
  57. package/prompts/frontend/flow-build-phase-8.md +872 -872
  58. package/prompts/frontend/flow-build-phase-9.md +94 -94
  59. package/prompts/frontend/flow-build.md +137 -137
  60. package/prompts/frontend/flow-check-review.md +20 -20
  61. package/prompts/frontend/flow-check-test.md +14 -14
  62. package/prompts/frontend/flow-check.md +67 -67
  63. package/prompts/frontend/flow-commit.md +119 -119
  64. package/prompts/frontend/flow-docs-sync.md +550 -550
  65. package/prompts/frontend/flow-work-feature.md +61 -61
  66. package/prompts/frontend/flow-work-fix.md +38 -38
  67. package/prompts/frontend/flow-work-refactor.md +48 -48
  68. package/prompts/frontend/flow-work-resume.md +34 -34
  69. package/prompts/frontend/flow-work.md +1320 -1027
  70. package/prompts/mobile/flow-build-phase-0.md +425 -425
  71. package/prompts/mobile/flow-build-phase-1.md +626 -626
  72. package/prompts/mobile/flow-build-phase-10.md +32 -32
  73. package/prompts/mobile/flow-build-phase-2.md +573 -573
  74. package/prompts/mobile/flow-build-phase-3.md +782 -782
  75. package/prompts/mobile/flow-build-phase-4.md +554 -554
  76. package/prompts/mobile/flow-build-phase-5.md +703 -703
  77. package/prompts/mobile/flow-build-phase-6.md +524 -524
  78. package/prompts/mobile/flow-build-phase-7.md +1001 -1001
  79. package/prompts/mobile/flow-build-phase-8.md +888 -888
  80. package/prompts/mobile/flow-build-phase-9.md +90 -90
  81. package/prompts/mobile/flow-build.md +135 -135
  82. package/prompts/mobile/flow-check-review.md +20 -20
  83. package/prompts/mobile/flow-check-test.md +14 -14
  84. package/prompts/mobile/flow-check.md +67 -67
  85. package/prompts/mobile/flow-commit.md +119 -119
  86. package/prompts/mobile/flow-docs-sync.md +620 -620
  87. package/prompts/mobile/flow-work-feature.md +61 -61
  88. package/prompts/mobile/flow-work-fix.md +46 -46
  89. package/prompts/mobile/flow-work-refactor.md +48 -48
  90. package/prompts/mobile/flow-work-resume.md +34 -34
  91. package/prompts/mobile/flow-work.md +1329 -1023
  92. package/prompts/shared/mermaid-guidelines.md +102 -102
  93. package/prompts/shared/scope-levels.md +114 -114
  94. package/prompts/shared/smart-skip-preflight.md +214 -214
  95. package/prompts/shared/story-points.md +55 -55
  96. package/prompts/shared/task-format.md +74 -74
  97. package/prompts/shared/task-summary-template.md +277 -277
  98. package/templates/AGENT.template.md +443 -443
  99. package/templates/backend/.clauderules.template +112 -112
  100. package/templates/backend/.cursorrules.template +102 -102
  101. package/templates/backend/README.template.md +2 -2
  102. package/templates/backend/ai-instructions.template.md +2 -2
  103. package/templates/backend/copilot-instructions.template.md +2 -2
  104. package/templates/backend/docs/api.template.md +320 -320
  105. package/templates/backend/docs/business-flows.template.md +97 -97
  106. package/templates/backend/docs/code-standards.template.md +2 -2
  107. package/templates/backend/docs/contributing.template.md +3 -3
  108. package/templates/backend/docs/data-model.template.md +520 -520
  109. package/templates/backend/docs/testing.template.md +2 -2
  110. package/templates/backend/project-brief.template.md +2 -2
  111. package/templates/backend/specs/configuration.template.md +2 -2
  112. package/templates/backend/specs/security.template.md +2 -2
  113. package/templates/desktop/.clauderules.template +112 -112
  114. package/templates/desktop/.cursorrules.template +102 -102
  115. package/templates/desktop/README.template.md +170 -170
  116. package/templates/desktop/ai-instructions.template.md +366 -366
  117. package/templates/desktop/copilot-instructions.template.md +140 -140
  118. package/templates/desktop/docs/docs/api.template.md +320 -320
  119. package/templates/desktop/docs/docs/architecture.template.md +724 -724
  120. package/templates/desktop/docs/docs/business-flows.template.md +102 -102
  121. package/templates/desktop/docs/docs/code-standards.template.md +792 -792
  122. package/templates/desktop/docs/docs/contributing.template.md +149 -149
  123. package/templates/desktop/docs/docs/data-model.template.md +520 -520
  124. package/templates/desktop/docs/docs/operations.template.md +720 -720
  125. package/templates/desktop/docs/docs/testing.template.md +722 -722
  126. package/templates/desktop/project-brief.template.md +150 -150
  127. package/templates/desktop/specs/specs/configuration.template.md +121 -121
  128. package/templates/desktop/specs/specs/security.template.md +392 -392
  129. package/templates/frontend/README.template.md +2 -2
  130. package/templates/frontend/ai-instructions.template.md +2 -2
  131. package/templates/frontend/docs/api-integration.template.md +362 -362
  132. package/templates/frontend/docs/components.template.md +2 -2
  133. package/templates/frontend/docs/error-handling.template.md +360 -360
  134. package/templates/frontend/docs/operations.template.md +107 -107
  135. package/templates/frontend/docs/performance.template.md +124 -124
  136. package/templates/frontend/docs/pwa.template.md +119 -119
  137. package/templates/frontend/docs/state-management.template.md +2 -2
  138. package/templates/frontend/docs/styling.template.md +2 -2
  139. package/templates/frontend/docs/testing.template.md +2 -2
  140. package/templates/frontend/project-brief.template.md +2 -2
  141. package/templates/frontend/specs/accessibility.template.md +95 -95
  142. package/templates/frontend/specs/configuration.template.md +2 -2
  143. package/templates/frontend/specs/security.template.md +175 -175
  144. package/templates/fullstack/README.template.md +252 -252
  145. package/templates/fullstack/ai-instructions.template.md +444 -444
  146. package/templates/fullstack/project-brief.template.md +157 -157
  147. package/templates/fullstack/specs/configuration.template.md +340 -340
  148. package/templates/mobile/README.template.md +167 -167
  149. package/templates/mobile/ai-instructions.template.md +196 -196
  150. package/templates/mobile/docs/app-store.template.md +135 -135
  151. package/templates/mobile/docs/architecture.template.md +63 -63
  152. package/templates/mobile/docs/native-features.template.md +94 -94
  153. package/templates/mobile/docs/navigation.template.md +59 -59
  154. package/templates/mobile/docs/offline-strategy.template.md +65 -65
  155. package/templates/mobile/docs/permissions.template.md +56 -56
  156. package/templates/mobile/docs/state-management.template.md +85 -85
  157. package/templates/mobile/docs/testing.template.md +109 -109
  158. package/templates/mobile/project-brief.template.md +69 -69
  159. package/templates/mobile/specs/build-configuration.template.md +91 -91
  160. package/templates/mobile/specs/deployment.template.md +92 -92
  161. 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
+