fraim-framework 2.0.56 → 2.0.58

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 (224) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/bin/fraim-mcp.js +14 -0
  3. package/bin/fraim.js +23 -0
  4. package/dist/src/cli/commands/init-project.js +10 -4
  5. package/dist/src/cli/commands/mcp.js +65 -0
  6. package/dist/src/cli/setup/mcp-config-generator.js +19 -16
  7. package/dist/src/fraim/issue-tracking/ado-provider.js +304 -0
  8. package/dist/src/fraim/issue-tracking/factory.js +63 -0
  9. package/dist/src/fraim/issue-tracking/github-provider.js +200 -0
  10. package/dist/src/fraim/issue-tracking/types.js +7 -0
  11. package/dist/src/fraim/issue-tracking-config.js +83 -0
  12. package/dist/src/local-mcp-server/stdio-server.js +207 -0
  13. package/dist/src/utils/workflow-parser.js +81 -0
  14. package/package.json +17 -12
  15. package/registry/scripts/pdf-styles.css +172 -0
  16. package/registry/scripts/prep-issue.sh +46 -4
  17. package/registry/scripts/profile-server.ts +131 -130
  18. package/registry/stubs/workflows/customer-development/user-survey-dispatch.md +1 -1
  19. package/registry/stubs/workflows/customer-development/users-to-target.md +1 -1
  20. package/registry/stubs/workflows/product-building/design.md +1 -1
  21. package/registry/stubs/workflows/product-building/implement.md +1 -1
  22. package/Claude.md +0 -1
  23. package/dist/registry/ai-manager-rules/customer-development-phases/phase1-customer-profiling.md +0 -101
  24. package/dist/registry/ai-manager-rules/customer-development-phases/phase2-platform-discovery.md +0 -235
  25. package/dist/registry/ai-manager-rules/customer-development-phases/phase3-prospect-qualification.md +0 -243
  26. package/dist/registry/ai-manager-rules/customer-development-phases/phase4-inventory-compilation.md +0 -206
  27. package/dist/registry/ai-manager-rules/design-phases/design-completeness-review.md +0 -73
  28. package/dist/registry/ai-manager-rules/design-phases/design-design.md +0 -145
  29. package/dist/registry/ai-manager-rules/implement-phases/implement-code.md +0 -283
  30. package/dist/registry/ai-manager-rules/implement-phases/implement-completeness-review.md +0 -120
  31. package/dist/registry/ai-manager-rules/implement-phases/implement-regression.md +0 -173
  32. package/dist/registry/ai-manager-rules/implement-phases/implement-repro.md +0 -104
  33. package/dist/registry/ai-manager-rules/implement-phases/implement-scoping.md +0 -100
  34. package/dist/registry/ai-manager-rules/implement-phases/implement-smoke.md +0 -237
  35. package/dist/registry/ai-manager-rules/implement-phases/implement-spike.md +0 -121
  36. package/dist/registry/ai-manager-rules/implement-phases/implement-validate.md +0 -375
  37. package/dist/registry/ai-manager-rules/retrospective.md +0 -116
  38. package/dist/registry/ai-manager-rules/shared-phases/address-pr-feedback.md +0 -188
  39. package/dist/registry/ai-manager-rules/shared-phases/submit-pr.md +0 -202
  40. package/dist/registry/ai-manager-rules/shared-phases/wait-for-pr-review.md +0 -170
  41. package/dist/registry/ai-manager-rules/spec-phases/spec-competitor-analysis.md +0 -105
  42. package/dist/registry/ai-manager-rules/spec-phases/spec-completeness-review.md +0 -66
  43. package/dist/registry/ai-manager-rules/spec-phases/spec-spec.md +0 -139
  44. package/dist/registry/ai-manager-rules/user-survey-phases/phase1-survey-scoping.md +0 -60
  45. package/dist/registry/ai-manager-rules/user-survey-phases/phase2-survey-build-linkedin.md +0 -23
  46. package/dist/registry/ai-manager-rules/user-survey-phases/phase3-survey-build-reddit.md +0 -22
  47. package/dist/registry/ai-manager-rules/user-survey-phases/phase4-survey-build-x.md +0 -21
  48. package/dist/registry/ai-manager-rules/user-survey-phases/phase5-survey-build-facebook.md +0 -19
  49. package/dist/registry/ai-manager-rules/user-survey-phases/phase6-survey-build-custom.md +0 -15
  50. package/dist/registry/ai-manager-rules/user-survey-phases/phase7-survey-dispatch.md +0 -45
  51. package/dist/registry/providers/ado.json +0 -19
  52. package/dist/registry/providers/github.json +0 -19
  53. package/dist/registry/scripts/cleanup-branch.js +0 -287
  54. package/dist/registry/scripts/evaluate-code-quality.js +0 -66
  55. package/dist/registry/scripts/exec-with-timeout.js +0 -142
  56. package/dist/registry/scripts/generate-engagement-emails.js +0 -705
  57. package/dist/registry/scripts/newsletter-helpers.js +0 -671
  58. package/dist/registry/scripts/profile-server.js +0 -388
  59. package/dist/registry/scripts/run-thank-you-workflow.js +0 -92
  60. package/dist/registry/scripts/send-newsletter-simple.js +0 -85
  61. package/dist/registry/scripts/send-thank-you-emails.js +0 -54
  62. package/dist/registry/scripts/validate-openapi-limits.js +0 -311
  63. package/dist/registry/scripts/validate-test-coverage.js +0 -262
  64. package/dist/registry/scripts/verify-test-coverage.js +0 -66
  65. package/dist/registry/templates/bootstrap/ARCHITECTURE-TEMPLATE.md +0 -53
  66. package/dist/registry/templates/bootstrap/CODE-QUALITY-REPORT-TEMPLATE.md +0 -37
  67. package/dist/registry/templates/bootstrap/TEST-COVERAGE-REPORT-TEMPLATE.md +0 -35
  68. package/dist/registry/templates/business-development/IDEATION-REPORT-TEMPLATE.md +0 -29
  69. package/dist/registry/templates/business-development/PRICING-STRATEGY-TEMPLATE.md +0 -126
  70. package/dist/registry/templates/customer-development/customer-interview-template.md +0 -99
  71. package/dist/registry/templates/customer-development/customer-persona-template.md +0 -69
  72. package/dist/registry/templates/customer-development/follow-up-email-templates.md +0 -132
  73. package/dist/registry/templates/customer-development/insight-analysis-template.md +0 -74
  74. package/dist/registry/templates/customer-development/prospect-inventory-template.csv +0 -3
  75. package/dist/registry/templates/customer-development/search-strategy-template.md +0 -123
  76. package/dist/registry/templates/customer-development/strategic-recommendations-template.md +0 -53
  77. package/dist/registry/templates/customer-development/thank-you-email-template.html +0 -124
  78. package/dist/registry/templates/customer-development/thank-you-note-template.md +0 -16
  79. package/dist/registry/templates/customer-development/triage-log-template.md +0 -278
  80. package/dist/registry/templates/customer-development/weekly-newsletter-template.html +0 -204
  81. package/dist/registry/templates/evidence/Design-Evidence.md +0 -30
  82. package/dist/registry/templates/evidence/Implementation-BugEvidence.md +0 -94
  83. package/dist/registry/templates/evidence/Implementation-FeatureEvidence.md +0 -129
  84. package/dist/registry/templates/evidence/Spec-Evidence.md +0 -19
  85. package/dist/registry/templates/help/HelpNeeded.md +0 -14
  86. package/dist/registry/templates/legal/NDA-TEMPLATE.md +0 -170
  87. package/dist/registry/templates/legal/PATENT-TEMPLATE.md +0 -372
  88. package/dist/registry/templates/legal/TRADEMARK-TEMPLATE.md +0 -339
  89. package/dist/registry/templates/legal/contract-review-checklist.md +0 -193
  90. package/dist/registry/templates/legal/review-report-template.md +0 -198
  91. package/dist/registry/templates/legal/saas-terms-template.md +0 -174
  92. package/dist/registry/templates/legal/sow-template.md +0 -117
  93. package/dist/registry/templates/legal/template-variables.md +0 -131
  94. package/dist/registry/templates/marketing/DOMAIN-REGISTRATION-TEMPLATE.md +0 -194
  95. package/dist/registry/templates/marketing/HBR-ARTICLE-TEMPLATE.md +0 -66
  96. package/dist/registry/templates/marketing/STORYTELLING-TEMPLATE.md +0 -130
  97. package/dist/registry/templates/marketing/WEBSITE-TEMPLATE.md +0 -262
  98. package/dist/registry/templates/marketing/github-pages-workflow.yml +0 -64
  99. package/dist/registry/templates/replicate/implementation-checklist.md +0 -39
  100. package/dist/registry/templates/replicate/use-cases-template.md +0 -88
  101. package/dist/registry/templates/retrospective/RETROSPECTIVE-TEMPLATE.md +0 -55
  102. package/dist/registry/templates/specs/BUGSPEC-TEMPLATE.md +0 -37
  103. package/dist/registry/templates/specs/FEATURESPEC-TEMPLATE.md +0 -66
  104. package/dist/registry/templates/specs/TECHSPEC-TEMPLATE.md +0 -39
  105. package/dist/registry/workflows/bootstrap/create-architecture.md +0 -38
  106. package/dist/registry/workflows/bootstrap/detect-broken-windows.md +0 -300
  107. package/dist/registry/workflows/bootstrap/evaluate-code-quality.md +0 -35
  108. package/dist/registry/workflows/bootstrap/verify-test-coverage.md +0 -36
  109. package/dist/registry/workflows/brainstorming/blue-sky-brainstorming.md +0 -211
  110. package/dist/registry/workflows/brainstorming/codebase-brainstorming.md +0 -165
  111. package/dist/registry/workflows/business-development/create-business-plan.md +0 -737
  112. package/dist/registry/workflows/business-development/ideate-business-opportunity.md +0 -55
  113. package/dist/registry/workflows/business-development/price-product.md +0 -325
  114. package/dist/registry/workflows/compliance/detect-compliance-requirements.md +0 -78
  115. package/dist/registry/workflows/compliance/generate-audit-evidence.md +0 -75
  116. package/dist/registry/workflows/compliance/soc2-evidence-generator.md +0 -332
  117. package/dist/registry/workflows/customer-development/insight-analysis.md +0 -156
  118. package/dist/registry/workflows/customer-development/insight-triage.md +0 -938
  119. package/dist/registry/workflows/customer-development/interview-preparation.md +0 -452
  120. package/dist/registry/workflows/customer-development/linkedin-outreach.md +0 -593
  121. package/dist/registry/workflows/customer-development/strategic-brainstorming.md +0 -146
  122. package/dist/registry/workflows/customer-development/thank-customers.md +0 -203
  123. package/dist/registry/workflows/customer-development/user-survey-dispatch.md +0 -60
  124. package/dist/registry/workflows/customer-development/users-to-target.md +0 -112
  125. package/dist/registry/workflows/customer-development/weekly-newsletter.md +0 -366
  126. package/dist/registry/workflows/deploy/cloud-deployment.md +0 -310
  127. package/dist/registry/workflows/improve-fraim/contribute.md +0 -32
  128. package/dist/registry/workflows/improve-fraim/file-issue.md +0 -32
  129. package/dist/registry/workflows/learning/build-skillset.md +0 -212
  130. package/dist/registry/workflows/learning/synthesize-learnings.md +0 -284
  131. package/dist/registry/workflows/legal/contract-review-analysis.md +0 -382
  132. package/dist/registry/workflows/legal/nda.md +0 -69
  133. package/dist/registry/workflows/legal/patent-filing.md +0 -76
  134. package/dist/registry/workflows/legal/saas-contract-development.md +0 -213
  135. package/dist/registry/workflows/legal/trademark-filing.md +0 -77
  136. package/dist/registry/workflows/marketing/content-creation.md +0 -37
  137. package/dist/registry/workflows/marketing/convert-to-pdf.md +0 -235
  138. package/dist/registry/workflows/marketing/create-modern-website.md +0 -456
  139. package/dist/registry/workflows/marketing/domain-registration.md +0 -323
  140. package/dist/registry/workflows/marketing/hbr-article.md +0 -73
  141. package/dist/registry/workflows/marketing/launch-checklist.md +0 -37
  142. package/dist/registry/workflows/marketing/marketing-strategy.md +0 -45
  143. package/dist/registry/workflows/marketing/storytelling.md +0 -65
  144. package/dist/registry/workflows/performance/analyze-performance.md +0 -65
  145. package/dist/registry/workflows/product-building/design.md +0 -103
  146. package/dist/registry/workflows/product-building/implement.md +0 -74
  147. package/dist/registry/workflows/product-building/iterate-on-pr-comments.md +0 -70
  148. package/dist/registry/workflows/product-building/prep-issue.md +0 -41
  149. package/dist/registry/workflows/product-building/prototype.md +0 -65
  150. package/dist/registry/workflows/product-building/resolve.md +0 -168
  151. package/dist/registry/workflows/product-building/retrospect.md +0 -86
  152. package/dist/registry/workflows/product-building/spec.md +0 -181
  153. package/dist/registry/workflows/product-building/test.md +0 -125
  154. package/dist/registry/workflows/productivity-report/productivity-report.md +0 -263
  155. package/dist/registry/workflows/quality-assurance/browser-validation.md +0 -221
  156. package/dist/registry/workflows/quality-assurance/iterative-improvement-cycle.md +0 -562
  157. package/dist/registry/workflows/replicate/replicate-discovery.md +0 -336
  158. package/dist/registry/workflows/replicate/replicate-to-issues.md +0 -324
  159. package/dist/registry/workflows/reviewer/review-implementation-vs-design-spec.md +0 -638
  160. package/dist/registry/workflows/reviewer/review-implementation-vs-feature-spec.md +0 -675
  161. package/dist/registry/workflows/startup-credits/aws-activate-application.md +0 -535
  162. package/dist/registry/workflows/startup-credits/google-cloud-application.md +0 -647
  163. package/dist/registry/workflows/startup-credits/microsoft-azure-application.md +0 -538
  164. package/dist/scripts/build-stub-registry.js +0 -108
  165. package/dist/src/ai-manager/ai-manager.js +0 -480
  166. package/dist/src/ai-manager/phase-flow.js +0 -357
  167. package/dist/src/ai-manager/types.js +0 -5
  168. package/dist/src/fraim-mcp-server.js +0 -1885
  169. package/dist/tests/debug-tools.js +0 -80
  170. package/dist/tests/shared-server-utils.js +0 -57
  171. package/dist/tests/test-add-ide.js +0 -283
  172. package/dist/tests/test-ai-coach-edge-cases.js +0 -420
  173. package/dist/tests/test-ai-coach-mcp-integration.js +0 -450
  174. package/dist/tests/test-ai-coach-performance.js +0 -328
  175. package/dist/tests/test-ai-coach-phase-content.js +0 -264
  176. package/dist/tests/test-ai-coach-workflows.js +0 -514
  177. package/dist/tests/test-cli.js +0 -228
  178. package/dist/tests/test-client-scripts-validation.js +0 -167
  179. package/dist/tests/test-complete-setup-flow.js +0 -110
  180. package/dist/tests/test-config-system.js +0 -279
  181. package/dist/tests/test-debug-session.js +0 -134
  182. package/dist/tests/test-end-to-end-hybrid-validation.js +0 -328
  183. package/dist/tests/test-enhanced-session-init.js +0 -188
  184. package/dist/tests/test-first-run-journey.js +0 -368
  185. package/dist/tests/test-fraim-issues.js +0 -59
  186. package/dist/tests/test-genericization.js +0 -44
  187. package/dist/tests/test-hybrid-script-execution.js +0 -340
  188. package/dist/tests/test-ide-detector.js +0 -46
  189. package/dist/tests/test-improved-setup.js +0 -121
  190. package/dist/tests/test-mcp-config-generator.js +0 -99
  191. package/dist/tests/test-mcp-connection.js +0 -107
  192. package/dist/tests/test-mcp-issue-integration.js +0 -156
  193. package/dist/tests/test-mcp-lifecycle-methods.js +0 -240
  194. package/dist/tests/test-mcp-shared-server.js +0 -308
  195. package/dist/tests/test-mcp-template-processing.js +0 -160
  196. package/dist/tests/test-modular-issue-tracking.js +0 -165
  197. package/dist/tests/test-node-compatibility.js +0 -95
  198. package/dist/tests/test-npm-install.js +0 -68
  199. package/dist/tests/test-package-size.js +0 -108
  200. package/dist/tests/test-pr-review-workflow.js +0 -307
  201. package/dist/tests/test-prep-issue.js +0 -129
  202. package/dist/tests/test-productivity-integration.js +0 -157
  203. package/dist/tests/test-script-location-independence.js +0 -198
  204. package/dist/tests/test-script-sync.js +0 -557
  205. package/dist/tests/test-server-utils.js +0 -32
  206. package/dist/tests/test-session-rehydration.js +0 -148
  207. package/dist/tests/test-setup-integration.js +0 -98
  208. package/dist/tests/test-setup-scenarios.js +0 -322
  209. package/dist/tests/test-standalone.js +0 -143
  210. package/dist/tests/test-stub-registry.js +0 -136
  211. package/dist/tests/test-sync-stubs.js +0 -143
  212. package/dist/tests/test-sync-version-update.js +0 -93
  213. package/dist/tests/test-telemetry.js +0 -193
  214. package/dist/tests/test-token-validator.js +0 -30
  215. package/dist/tests/test-user-journey.js +0 -236
  216. package/dist/tests/test-users-to-target-workflow.js +0 -253
  217. package/dist/tests/test-utils.js +0 -109
  218. package/dist/tests/test-wizard.js +0 -71
  219. package/dist/tests/test-workflow-discovery.js +0 -242
  220. package/labels.json +0 -52
  221. package/registry/agent-guardrails.md +0 -63
  222. package/registry/fraim.md +0 -48
  223. package/setup.js +0 -171
  224. package/tsconfig.json +0 -23
@@ -1,562 +0,0 @@
1
- # Iterative Improvement Cycle Workflow
2
-
3
- ## INTENT
4
- To systematically improve application quality through iterative cycles of Review → Critique → Fix → Validate, ensuring high-quality, production-ready applications.
5
-
6
- ## PRINCIPLES
7
- - **Systematic Review**: Thorough examination of all aspects
8
- - **Honest Critique**: Identifying issues without bias
9
- - **Targeted Fixes**: Addressing issues one at a time
10
- - **Validation**: Verifying fixes work before moving on
11
- - **Iteration**: Repeating until satisfied
12
-
13
- ## Philosophy
14
- **"Perfect is the enemy of good, but good can always be better."**
15
-
16
- This workflow emphasizes:
17
- - **Systematic Review**: Thorough examination of all aspects
18
- - **Honest Critique**: Identifying issues without bias
19
- - **Targeted Fixes**: Addressing issues one at a time
20
- - **Validation**: Verifying fixes work before moving on
21
- - **Iteration**: Repeating until satisfied
22
-
23
- ## Prerequisites
24
- - Application is functional (even if basic)
25
- - Server running locally or deployed
26
- - Browser testing tools available
27
- - Git repository for tracking changes
28
- - Test suite (optional but recommended)
29
-
30
- ## When to Use This Workflow
31
-
32
- Use this workflow after implementation (`workflows/implement.md`) to:
33
- - Validate that implemented features work correctly
34
- - Identify and fix issues discovered during testing
35
- - Improve quality through systematic review
36
- - Ensure production readiness
37
-
38
- This workflow complements:
39
- - `workflows/implement.md` - Post-implementation validation
40
- - `workflows/test.md` - Testing and validation
41
- - `workflows/quality-assurance/browser-validation.md` - Browser-specific testing
42
-
43
- ## The Core Cycle
44
-
45
- ```
46
- ┌─────────────┐
47
- │ REVIEW │ ← Start here: Examine the application
48
- └──────┬──────┘
49
-
50
-
51
- ┌─────────────┐
52
- │ CRITIQUE │ ← Identify issues, improvements, gaps
53
- └──────┬──────┘
54
-
55
-
56
- ┌─────────────┐
57
- │ FIX │ ← Address issues systematically
58
- └──────┬──────┘
59
-
60
-
61
- ┌─────────────┐
62
- │ VALIDATE │ ← Verify fixes work, check for regressions
63
- └──────┬──────┘
64
-
65
- └───→ REPEAT until satisfied
66
- ```
67
-
68
- ## Phase 1: Initial Review
69
-
70
- ### 1.1 Start the Application
71
- ```bash
72
- # Start server in watch mode (if available)
73
- npm run dev:server # or equivalent
74
-
75
- # Start client in watch mode
76
- npm run dev # or equivalent
77
-
78
- # Verify both are running
79
- curl http://localhost:5000/api/health
80
- # Open browser to http://localhost:3000 (or configured port)
81
- ```
82
-
83
- ### 1.2 Systematic Page Review
84
- Navigate through **every page** in the application:
85
-
86
- 1. **Homepage/Landing Page**
87
- - [ ] Loads correctly
88
- - [ ] Navigation works
89
- - [ ] Content displays properly
90
- - [ ] Links are functional
91
- - [ ] Images load
92
- - [ ] Responsive design works
93
-
94
- 2. **Core Feature Pages**
95
- - [ ] All main feature pages accessible
96
- - [ ] Primary functionality works
97
- - [ ] Data displays correctly
98
- - [ ] User interactions work
99
-
100
- 3. **Secondary Pages**
101
- - [ ] About/Help pages
102
- - [ ] Contact/Support pages
103
- - [ ] Documentation pages
104
- - [ ] Any other informational pages
105
-
106
- 4. **Authentication Pages** (if applicable)
107
- - [ ] Login page
108
- - [ ] Sign up/Registration page
109
- - [ ] Password reset (if applicable)
110
- - [ ] Account recovery (if applicable)
111
-
112
- 5. **Protected Pages** (if applicable)
113
- - [ ] Dashboard (when authenticated)
114
- - [ ] Create/Edit pages (when authorized)
115
- - [ ] Admin pages (if applicable)
116
- - [ ] User profile/settings pages
117
-
118
- ### 1.3 Feature Testing
119
- For each major feature:
120
- - [ ] Can I complete the primary use case?
121
- - [ ] Does data persist correctly?
122
- - [ ] Are error messages helpful?
123
- - [ ] Is the UI intuitive?
124
- - [ ] Are loading states shown?
125
- - [ ] Do success/error notifications appear?
126
-
127
- ### 1.4 Data Validation
128
- - [ ] Are database objects displayed correctly?
129
- - [ ] Is seed/test data showing up (if applicable)?
130
- - [ ] Can I create new data?
131
- - [ ] Can I edit existing data?
132
- - [ ] Can I delete data (if applicable)?
133
- - [ ] Are relationships between data correct?
134
-
135
- ### 1.5 UI/UX Review
136
- - [ ] Is the design consistent?
137
- - [ ] Are colors and fonts appropriate?
138
- - [ ] Is spacing consistent?
139
- - [ ] Are buttons clearly labeled?
140
- - [ ] Are forms easy to fill out?
141
- - [ ] Is navigation intuitive?
142
- - [ ] Are error states handled gracefully?
143
- - [ ] Are empty states informative?
144
-
145
- ## Phase 2: Critique & Issue Identification
146
-
147
- ### 2.1 Create Issue Categories
148
- Organize findings into categories:
149
-
150
- **Critical Issues** (Blocks functionality)
151
- - Features that don't work at all
152
- - Data loss or corruption
153
- - Security vulnerabilities
154
- - Broken authentication
155
-
156
- **High Priority** (Major problems)
157
- - Features that work but have significant issues
158
- - Poor user experience
159
- - Missing essential functionality
160
- - Performance problems
161
-
162
- **Medium Priority** (Improvements needed)
163
- - UI/UX polish needed
164
- - Minor functionality gaps
165
- - Inconsistent behavior
166
- - Missing edge case handling
167
-
168
- **Low Priority** (Nice to have)
169
- - Visual polish
170
- - Minor text improvements
171
- - Additional features
172
- - Optimization opportunities
173
-
174
- ### 2.2 Issue Documentation Template
175
- For each issue, create a structured entry. Use GitHub Issues or track in a document:
176
-
177
- ```markdown
178
- ## Issue: [Clear, descriptive title]
179
-
180
- **Category**: [Critical/High/Medium/Low]
181
- **Type**: [Functionality/UI/UX/Data/Performance/Security]
182
- **Page/Feature**: [Where it occurs]
183
- **Use Case**: [Related use case if applicable]
184
-
185
- **Description**:
186
- [Clear description of the issue]
187
-
188
- **Steps to Reproduce**:
189
- 1. [Step 1]
190
- 2. [Step 2]
191
- 3. [Step 3]
192
-
193
- **Expected Behavior**:
194
- [What should happen]
195
-
196
- **Actual Behavior**:
197
- [What actually happens]
198
-
199
- **Screenshot/Evidence**:
200
- [If applicable]
201
-
202
- **Impact**:
203
- [Who is affected and how]
204
-
205
- **Proposed Fix**:
206
- [Initial thoughts on how to fix]
207
- ```
208
-
209
- ### 2.3 Create Git Issues
210
- For each identified issue:
211
- 1. Create a GitHub issue (or equivalent)
212
- 2. Use the documentation template
213
- 3. Add appropriate labels
214
- 4. Link to related use cases
215
- 5. Set priority
216
-
217
- **Example Issue Creation**:
218
- ```bash
219
- # Using GitHub CLI
220
- gh issue create \
221
- --title "Issue description" \
222
- --body "$(cat issue-template.md)" \
223
- --label "bug,high-priority"
224
- ```
225
-
226
- ## Phase 3: Systematic Fixes
227
-
228
- ### 3.1 Prioritization Order
229
- Fix issues in this order:
230
- 1. **Critical** - Fix immediately
231
- 2. **High** - Fix before next iteration
232
- 3. **Medium** - Fix in batches
233
- 4. **Low** - Fix if time permits
234
-
235
- ### 3.2 Fix Process for Each Issue
236
-
237
- Follow the standard implementation workflow (`workflows/implement.md`) for each fix:
238
-
239
- #### Step 1: Reproduce Locally
240
- ```bash
241
- # Ensure server is running
242
- npm run dev:server
243
-
244
- # Ensure client is running
245
- npm run dev
246
-
247
- # Reproduce the issue in browser
248
- # Document exact steps
249
- ```
250
-
251
- #### Step 2: Identify Root Cause
252
- - Check browser console for errors
253
- - Check server logs
254
- - Review relevant code
255
- - Check database state
256
- - Verify API responses
257
-
258
- #### Step 3: Implement Fix
259
- - Make minimal, targeted changes
260
- - Follow existing code patterns
261
- - Add comments if needed
262
- - Don't fix unrelated issues (unless explicitly asked)
263
- - Follow `workflows/implement.md` guidelines
264
-
265
- #### Step 4: Write/Update Tests
266
- - Write tests for the fix following `workflows/test.md`
267
- - Update existing tests if needed
268
- - Run test suite to ensure all pass
269
-
270
- #### Step 5: Verify Fix Locally
271
- - Test the specific fix
272
- - Test related functionality
273
- - Check for regressions
274
- - Verify in browser
275
-
276
- #### Step 6: Commit Fix
277
- ```bash
278
- git add -A
279
- git commit -m "fix: [clear description of what was fixed]
280
-
281
- - [Specific change 1]
282
- - [Specific change 2]
283
- - [Related changes]
284
-
285
- Fixes #[issue-number]"
286
- ```
287
-
288
- ### 3.3 Fix Checklist
289
- For each fix:
290
- - [ ] Issue reproduced locally
291
- - [ ] Root cause identified
292
- - [ ] Fix implemented (following `workflows/implement.md`)
293
- - [ ] Tests written/updated (following `workflows/test.md`)
294
- - [ ] Tests pass
295
- - [ ] Fix verified in browser
296
- - [ ] No regressions introduced
297
- - [ ] Code committed with clear message
298
- - [ ] Issue updated/closed
299
-
300
- ## Phase 4: Validation
301
-
302
- ### 4.1 Immediate Validation (After Each Fix)
303
- After fixing an issue:
304
- 1. **Test the specific fix**
305
- - Does the issue no longer occur?
306
- - Does the feature work as expected?
307
-
308
- 2. **Test related functionality**
309
- - Did the fix break anything else?
310
- - Are related features still working?
311
-
312
- 3. **Check for regressions**
313
- - Run existing tests
314
- - Manually test related features
315
- - Check browser console for errors
316
-
317
- 4. **Update issue status**
318
- ```bash
319
- gh issue close #[number] --comment "Fixed and validated"
320
- ```
321
-
322
- ### 4.2 Comprehensive Validation (After Batch of Fixes)
323
- After fixing multiple issues:
324
-
325
- 1. **Re-run Full Review**
326
- - Go through Phase 1 again
327
- - Check all pages
328
- - Test all features
329
- - Verify data integrity
330
-
331
- 2. **Test Suite Validation**
332
- ```bash
333
- # Run all tests
334
- npm test
335
-
336
- # Run E2E tests if available
337
- npm run test:e2e
338
-
339
- # Ensure all pass
340
- ```
341
-
342
- 3. **Browser Validation**
343
- See also: `workflows/quality-assurance/browser-validation.md`
344
- - Test in Chrome
345
- - Test in Firefox (if time permits)
346
- - Test on mobile (responsive)
347
- - Check console for errors
348
-
349
- 4. **Deployment Validation** (if applicable)
350
- See also: `workflows/deploy/cloud-deployment.md`
351
- - Deploy to staging/production
352
- - Validate fixes work in production
353
- - Check production logs
354
- - Monitor for errors
355
-
356
- ## Phase 5: Iteration Decision
357
-
358
- ### 5.1 Assessment Criteria
359
- After each cycle, assess:
360
-
361
- **Continue Iterating If:**
362
- - Critical issues remain
363
- - High-priority issues remain
364
- - User experience is poor
365
- - Core functionality is broken
366
- - You're not satisfied with quality
367
-
368
- **Stop Iterating If:**
369
- - All critical issues fixed
370
- - All high-priority issues fixed
371
- - Application is stable
372
- - User experience is good
373
- - You're satisfied with quality
374
- - Time/budget constraints
375
-
376
- ### 5.2 Next Iteration Planning
377
- If continuing:
378
- 1. Review remaining issues
379
- 2. Prioritize for next cycle
380
- 3. Plan fix order
381
- 4. Estimate effort
382
- 5. Begin Phase 1 again
383
-
384
- ### 5.3 Final Validation
385
- If stopping:
386
- 1. Complete final comprehensive review
387
- 2. Run full test suite
388
- 3. Validate in production (if deployed)
389
- 4. Document any known issues
390
- 5. Create summary report
391
-
392
- ## Phase 6: Documentation & Handoff
393
-
394
- ### 6.1 Create Improvement Report
395
- Document the iteration cycle. Use evidence templates retrieved via `get_fraim_file({ path: "templates/evidence/..." })`:
396
-
397
- ```markdown
398
- # Iterative Improvement Report
399
-
400
- ## Iteration Summary
401
- - **Total Iterations**: [number]
402
- - **Issues Found**: [number]
403
- - **Issues Fixed**: [number]
404
- - **Remaining Issues**: [number]
405
-
406
- ## Issues Fixed
407
- [Detailed list of all fixes]
408
-
409
- ## Remaining Issues
410
- [Any issues not yet fixed]
411
-
412
- ## Test Coverage
413
- - Unit tests: [coverage %]
414
- - Integration tests: [count]
415
- - E2E tests: [count]
416
-
417
- ## Final Status
418
- - [ ] All critical issues resolved
419
- - [ ] Application is stable
420
- - [ ] User experience is good
421
- - [ ] Ready for production
422
- ```
423
-
424
- ### 6.2 Update Related Documentation
425
- - Update README if needed
426
- - Update deployment docs if changed
427
- - Update test documentation
428
- - Update use case documentation (if applicable)
429
-
430
- ## Best Practices
431
-
432
- ### 1. Focus on One Issue at a Time
433
- - Don't try to fix everything at once
434
- - Complete one fix fully before moving to next
435
- - Verify each fix before proceeding
436
-
437
- ### 2. Keep Fixes Small and Targeted
438
- - Make minimal changes
439
- - Don't refactor unnecessarily
440
- - Don't fix unrelated issues
441
- - Follow `workflows/implement.md` principles
442
-
443
- ### 3. Always Validate
444
- - Never skip validation
445
- - Test in browser after each fix
446
- - Run tests after each fix
447
- - Check for regressions
448
-
449
- ### 4. Document Everything
450
- - Document issues clearly
451
- - Document fixes clearly
452
- - Update tests
453
- - Update documentation
454
- - Use evidence templates retrieved via `get_fraim_file({ path: "templates/evidence/..." })`
455
-
456
- ### 5. Use Git Effectively
457
- - Commit after each fix
458
- - Write clear commit messages
459
- - Link commits to issues
460
- - Keep commits focused
461
-
462
- ### 6. Iterate Quickly
463
- - Short cycles are better than long ones
464
- - Fix, validate, move on
465
- - Don't overthink
466
- - Don't over-engineer
467
-
468
- ## Common Patterns
469
-
470
- ### Pattern 1: UI/UX Issues
471
- ```
472
- Review → Identify styling/layout issues → Fix CSS/styling → Validate in browser → Iterate
473
- ```
474
-
475
- ### Pattern 2: Functionality Issues
476
- ```
477
- Review → Identify broken feature → Debug → Fix code (follow workflows/implement.md) → Write test (follow workflows/test.md) → Validate → Iterate
478
- ```
479
-
480
- ### Pattern 3: Data Issues
481
- ```
482
- Review → Identify data problems → Check database → Fix seed/data → Validate → Iterate
483
- ```
484
-
485
- ### Pattern 4: Performance Issues
486
- ```
487
- Review → Identify slow features → Profile → Optimize → Validate → Iterate
488
- ```
489
-
490
- ## Tools & Commands
491
-
492
- ### Development
493
- ```bash
494
- # Start server in watch mode
495
- npm run dev:server # or equivalent
496
-
497
- # Start client in watch mode
498
- npm run dev # or equivalent
499
-
500
- # Run tests
501
- npm test
502
-
503
- # Run specific test
504
- npm test -- [test-file]
505
-
506
- # Build for production
507
- npm run build
508
- ```
509
-
510
- ### Validation
511
- ```bash
512
- # Check server health
513
- curl http://localhost:5000/api/health # adjust port as needed
514
-
515
- # Check API endpoints
516
- curl http://localhost:5000/api/[endpoint] # adjust as needed
517
-
518
- # Run linter
519
- npm run lint
520
-
521
- # Type check
522
- npm run type-check
523
- ```
524
-
525
- ## Success Criteria
526
-
527
- An iteration cycle is successful when:
528
- - ✅ All identified issues are fixed
529
- - ✅ All fixes are validated
530
- - ✅ No regressions introduced
531
- - ✅ Tests pass
532
- - ✅ Application is stable
533
- - ✅ User experience is good
534
- - ✅ Ready for next iteration or production
535
-
536
- ## Related Workflows
537
- - `workflows/implement.md` - Implementation workflow to follow when fixing issues
538
- - `workflows/test.md` - Testing workflow for writing and running tests
539
- - `workflows/quality-assurance/browser-validation.md` - Detailed browser testing
540
- - `workflows/deploy/cloud-deployment.md` - Deployment validation
541
- - Retrieve via `get_fraim_file({ path: "templates/evidence/..." })` - Evidence templates for documentation
542
-
543
- ## Notes for Future Agents
544
-
545
- 1. **Don't skip steps** - Each phase is important
546
- 2. **Be thorough** - Review everything systematically
547
- 3. **Be honest** - Don't ignore issues
548
- 4. **Be focused** - Fix one thing at a time
549
- 5. **Always validate** - Never assume fixes work
550
- 6. **Iterate until satisfied** - Quality takes multiple passes
551
- 7. **Document everything** - Future you will thank you
552
- 8. **Follow existing workflows** - Use `workflows/implement.md` and `workflows/test.md` for fixes
553
-
554
- ## Output Artifacts
555
-
556
- After completing this workflow, you should have:
557
- 1. **Issue Log** - All issues found and fixed
558
- 2. **Improvement Report** - Summary of iterations (using evidence templates)
559
- 3. **Test Results** - All tests passing
560
- 4. **Validation Report** - Browser validation results
561
- 5. **Git History** - Clear commit history of fixes
562
- 6. **Updated Documentation** - Any docs that changed