fraim-framework 2.0.66 → 2.0.67

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 (254) hide show
  1. package/dist/registry/ai-manager-rules/customer-development-phases/phase1-customer-profiling.md +101 -0
  2. package/dist/registry/ai-manager-rules/customer-development-phases/phase2-platform-discovery.md +235 -0
  3. package/dist/registry/ai-manager-rules/customer-development-phases/phase3-prospect-qualification.md +243 -0
  4. package/dist/registry/ai-manager-rules/customer-development-phases/phase4-inventory-compilation.md +206 -0
  5. package/dist/registry/ai-manager-rules/design-phases/design-completeness-review.md +73 -0
  6. package/dist/registry/ai-manager-rules/design-phases/design-design.md +145 -0
  7. package/dist/registry/ai-manager-rules/design-phases/design.md +108 -0
  8. package/dist/registry/ai-manager-rules/design-phases/finalize.md +60 -0
  9. package/dist/registry/ai-manager-rules/design-phases/validate.md +125 -0
  10. package/dist/registry/ai-manager-rules/design.json +97 -0
  11. package/dist/registry/ai-manager-rules/implement-phases/code.md +323 -0
  12. package/dist/registry/ai-manager-rules/implement-phases/completeness-review.md +94 -0
  13. package/dist/registry/ai-manager-rules/implement-phases/finalize.md +177 -0
  14. package/dist/registry/ai-manager-rules/implement-phases/implement-code.md +283 -0
  15. package/dist/registry/ai-manager-rules/implement-phases/implement-completeness-review.md +120 -0
  16. package/dist/registry/ai-manager-rules/implement-phases/implement-regression.md +173 -0
  17. package/dist/registry/ai-manager-rules/implement-phases/implement-repro.md +104 -0
  18. package/dist/registry/ai-manager-rules/implement-phases/implement-scoping.md +100 -0
  19. package/dist/registry/ai-manager-rules/implement-phases/implement-smoke.md +237 -0
  20. package/dist/registry/ai-manager-rules/implement-phases/implement-spike.md +121 -0
  21. package/dist/registry/ai-manager-rules/implement-phases/implement-validate.md +375 -0
  22. package/dist/registry/ai-manager-rules/implement-phases/quality-review.md +304 -0
  23. package/dist/registry/ai-manager-rules/implement-phases/regression.md +159 -0
  24. package/dist/registry/ai-manager-rules/implement-phases/repro.md +101 -0
  25. package/dist/registry/ai-manager-rules/implement-phases/scoping.md +93 -0
  26. package/dist/registry/ai-manager-rules/implement-phases/smoke.md +225 -0
  27. package/dist/registry/ai-manager-rules/implement-phases/spike.md +118 -0
  28. package/dist/registry/ai-manager-rules/implement-phases/validate.md +347 -0
  29. package/dist/registry/ai-manager-rules/implement.json +153 -0
  30. package/dist/registry/ai-manager-rules/retrospective.md +116 -0
  31. package/dist/registry/ai-manager-rules/shared-phases/address-pr-feedback.md +188 -0
  32. package/dist/registry/ai-manager-rules/shared-phases/finalize.md +169 -0
  33. package/dist/registry/ai-manager-rules/shared-phases/submit-pr.md +202 -0
  34. package/dist/registry/ai-manager-rules/shared-phases/wait-for-pr-review.md +170 -0
  35. package/dist/registry/ai-manager-rules/spec-phases/finalize.md +60 -0
  36. package/dist/registry/ai-manager-rules/spec-phases/spec-competitor-analysis.md +105 -0
  37. package/dist/registry/ai-manager-rules/spec-phases/spec-completeness-review.md +66 -0
  38. package/dist/registry/ai-manager-rules/spec-phases/spec-spec.md +139 -0
  39. package/dist/registry/ai-manager-rules/spec-phases/spec.md +102 -0
  40. package/dist/registry/ai-manager-rules/spec-phases/validate.md +118 -0
  41. package/dist/registry/ai-manager-rules/spec.json +112 -0
  42. package/dist/registry/ai-manager-rules/test.json +98 -0
  43. package/dist/registry/ai-manager-rules/user-survey-phases/phase1-survey-scoping.md +60 -0
  44. package/dist/registry/ai-manager-rules/user-survey-phases/phase2-survey-build-linkedin.md +23 -0
  45. package/dist/registry/ai-manager-rules/user-survey-phases/phase3-survey-build-reddit.md +22 -0
  46. package/dist/registry/ai-manager-rules/user-survey-phases/phase4-survey-build-x.md +21 -0
  47. package/dist/registry/ai-manager-rules/user-survey-phases/phase5-survey-build-facebook.md +19 -0
  48. package/dist/registry/ai-manager-rules/user-survey-phases/phase6-survey-build-custom.md +15 -0
  49. package/dist/registry/ai-manager-rules/user-survey-phases/phase7-survey-dispatch.md +45 -0
  50. package/dist/registry/delivery/address-feedback.md +83 -0
  51. package/dist/registry/delivery/retrospective.md +78 -0
  52. package/dist/registry/delivery/submit.md +79 -0
  53. package/dist/registry/providers/ado.json +19 -0
  54. package/dist/registry/providers/delivery-conversation.json +9 -0
  55. package/dist/registry/providers/delivery-pr.json +9 -0
  56. package/dist/registry/providers/github.json +19 -0
  57. package/dist/registry/rules/agent-success-criteria.md +101 -0
  58. package/dist/registry/rules/agent-testing-guidelines.md +502 -0
  59. package/dist/registry/rules/architecture.md +126 -0
  60. package/dist/registry/rules/communication.md +122 -0
  61. package/dist/registry/rules/continuous-learning.md +55 -0
  62. package/dist/registry/rules/debugging-multitenancy-issues.md +85 -0
  63. package/dist/registry/rules/ephemeral-execution.md +54 -0
  64. package/dist/registry/rules/git-safe-commands.md +34 -0
  65. package/dist/registry/rules/hitl-ppe-record-analysis.md +302 -0
  66. package/dist/registry/rules/integrity-and-test-ethics.md +275 -0
  67. package/dist/registry/rules/local-development.md +275 -0
  68. package/dist/registry/rules/mandatory-pre-completion-reflection.md +193 -0
  69. package/dist/registry/rules/merge-requirements.md +238 -0
  70. package/dist/registry/rules/simplicity.md +118 -0
  71. package/dist/registry/rules/software-development-lifecycle.md +105 -0
  72. package/dist/registry/rules/spike-first-development.md +205 -0
  73. package/dist/registry/rules/successful-debugging-patterns.md +488 -0
  74. package/dist/registry/scripts/build-scripts-generator.js +205 -0
  75. package/dist/registry/scripts/cleanup-branch.js +287 -0
  76. package/dist/registry/scripts/evaluate-code-quality.js +66 -0
  77. package/dist/registry/scripts/exec-with-timeout.js +142 -0
  78. package/dist/registry/scripts/fraim-config.js +61 -0
  79. package/dist/registry/scripts/generate-engagement-emails.js +705 -0
  80. package/dist/registry/scripts/generic-issues-api.js +100 -0
  81. package/dist/registry/scripts/newsletter-helpers.js +671 -0
  82. package/dist/registry/scripts/openapi-generator.js +664 -0
  83. package/dist/registry/scripts/performance/profile-server.js +390 -0
  84. package/dist/registry/scripts/profile-server.js +389 -0
  85. package/dist/registry/scripts/run-thank-you-workflow.js +92 -0
  86. package/dist/registry/scripts/send-newsletter-simple.js +85 -0
  87. package/dist/registry/scripts/send-thank-you-emails.js +54 -0
  88. package/dist/registry/scripts/validate-openapi-limits.js +311 -0
  89. package/dist/registry/scripts/validate-test-coverage.js +262 -0
  90. package/dist/registry/scripts/verify-test-coverage.js +66 -0
  91. package/dist/registry/stubs/workflows/azure/cost-optimization.md +11 -0
  92. package/dist/registry/stubs/workflows/bootstrap/create-architecture.md +11 -0
  93. package/dist/registry/stubs/workflows/bootstrap/detect-broken-windows.md +11 -0
  94. package/dist/registry/stubs/workflows/bootstrap/evaluate-code-quality.md +11 -0
  95. package/dist/registry/stubs/workflows/bootstrap/verify-test-coverage.md +11 -0
  96. package/dist/registry/stubs/workflows/brainstorming/blue-sky-brainstorming.md +11 -0
  97. package/dist/registry/stubs/workflows/brainstorming/codebase-brainstorming.md +11 -0
  98. package/dist/registry/stubs/workflows/business-development/create-business-plan.md +11 -0
  99. package/dist/registry/stubs/workflows/business-development/ideate-business-opportunity.md +11 -0
  100. package/dist/registry/stubs/workflows/business-development/price-product.md +18 -0
  101. package/dist/registry/stubs/workflows/compliance/detect-compliance-requirements.md +11 -0
  102. package/dist/registry/stubs/workflows/compliance/generate-audit-evidence.md +11 -0
  103. package/dist/registry/stubs/workflows/compliance/soc2-evidence-generator.md +11 -0
  104. package/dist/registry/stubs/workflows/customer-development/insight-analysis.md +11 -0
  105. package/dist/registry/stubs/workflows/customer-development/insight-triage.md +11 -0
  106. package/dist/registry/stubs/workflows/customer-development/interview-preparation.md +11 -0
  107. package/dist/registry/stubs/workflows/customer-development/linkedin-outreach.md +11 -0
  108. package/dist/registry/stubs/workflows/customer-development/strategic-brainstorming.md +11 -0
  109. package/dist/registry/stubs/workflows/customer-development/thank-customers.md +11 -0
  110. package/dist/registry/stubs/workflows/customer-development/user-survey-dispatch.md +11 -0
  111. package/dist/registry/stubs/workflows/customer-development/users-to-target.md +11 -0
  112. package/dist/registry/stubs/workflows/customer-development/weekly-newsletter.md +11 -0
  113. package/dist/registry/stubs/workflows/deploy/cloud-deployment.md +11 -0
  114. package/dist/registry/stubs/workflows/improve-fraim/contribute.md +11 -0
  115. package/dist/registry/stubs/workflows/improve-fraim/file-issue.md +11 -0
  116. package/dist/registry/stubs/workflows/learning/build-skillset.md +11 -0
  117. package/dist/registry/stubs/workflows/learning/synthesize-learnings.md +11 -0
  118. package/dist/registry/stubs/workflows/legal/contract-review-analysis.md +11 -0
  119. package/dist/registry/stubs/workflows/legal/nda.md +11 -0
  120. package/dist/registry/stubs/workflows/legal/patent-filing.md +11 -0
  121. package/dist/registry/stubs/workflows/legal/saas-contract-development.md +11 -0
  122. package/dist/registry/stubs/workflows/legal/trademark-filing.md +11 -0
  123. package/dist/registry/stubs/workflows/marketing/content-creation.md +11 -0
  124. package/dist/registry/stubs/workflows/marketing/convert-to-pdf.md +11 -0
  125. package/dist/registry/stubs/workflows/marketing/create-modern-website.md +11 -0
  126. package/dist/registry/stubs/workflows/marketing/domain-registration.md +11 -0
  127. package/dist/registry/stubs/workflows/marketing/evangelize.md +11 -0
  128. package/dist/registry/stubs/workflows/marketing/hbr-article.md +11 -0
  129. package/dist/registry/stubs/workflows/marketing/launch-checklist.md +11 -0
  130. package/dist/registry/stubs/workflows/marketing/marketing-strategy.md +11 -0
  131. package/dist/registry/stubs/workflows/marketing/storytelling.md +11 -0
  132. package/dist/registry/stubs/workflows/performance/analyze-performance.md +11 -0
  133. package/dist/registry/stubs/workflows/product-building/design.md +11 -0
  134. package/dist/registry/stubs/workflows/product-building/implement.md +11 -0
  135. package/dist/registry/stubs/workflows/product-building/iterate-on-pr-comments.md +11 -0
  136. package/dist/registry/stubs/workflows/product-building/prep-issue.md +11 -0
  137. package/dist/registry/stubs/workflows/product-building/prototype.md +11 -0
  138. package/dist/registry/stubs/workflows/product-building/resolve.md +11 -0
  139. package/dist/registry/stubs/workflows/product-building/retrospect.md +11 -0
  140. package/dist/registry/stubs/workflows/product-building/spec.md +11 -0
  141. package/dist/registry/stubs/workflows/product-building/test.md +11 -0
  142. package/dist/registry/stubs/workflows/productivity-report/productivity-report.md +11 -0
  143. package/dist/registry/stubs/workflows/quality-assurance/browser-validation.md +11 -0
  144. package/dist/registry/stubs/workflows/quality-assurance/iterative-improvement-cycle.md +11 -0
  145. package/dist/registry/stubs/workflows/replicate/replicate-discovery.md +11 -0
  146. package/dist/registry/stubs/workflows/replicate/replicate-to-issues.md +11 -0
  147. package/dist/registry/stubs/workflows/reviewer/review-implementation-vs-design-spec.md +11 -0
  148. package/dist/registry/stubs/workflows/reviewer/review-implementation-vs-feature-spec.md +11 -0
  149. package/dist/registry/stubs/workflows/startup-credits/aws-activate-application.md +11 -0
  150. package/dist/registry/stubs/workflows/startup-credits/google-cloud-application.md +11 -0
  151. package/dist/registry/stubs/workflows/startup-credits/microsoft-azure-application.md +11 -0
  152. package/dist/registry/templates/bootstrap/ARCHITECTURE-TEMPLATE.md +53 -0
  153. package/dist/registry/templates/bootstrap/CODE-QUALITY-REPORT-TEMPLATE.md +37 -0
  154. package/dist/registry/templates/bootstrap/TEST-COVERAGE-REPORT-TEMPLATE.md +35 -0
  155. package/dist/registry/templates/business-development/IDEATION-REPORT-TEMPLATE.md +29 -0
  156. package/dist/registry/templates/business-development/PRICING-STRATEGY-TEMPLATE.md +126 -0
  157. package/dist/registry/templates/customer-development/customer-interview-template.md +99 -0
  158. package/dist/registry/templates/customer-development/customer-persona-template.md +69 -0
  159. package/dist/registry/templates/customer-development/follow-up-email-templates.md +132 -0
  160. package/dist/registry/templates/customer-development/insight-analysis-template.md +74 -0
  161. package/dist/registry/templates/customer-development/prospect-inventory-template.csv +3 -0
  162. package/dist/registry/templates/customer-development/search-strategy-template.md +123 -0
  163. package/dist/registry/templates/customer-development/strategic-recommendations-template.md +53 -0
  164. package/dist/registry/templates/customer-development/thank-you-email-template.html +124 -0
  165. package/dist/registry/templates/customer-development/thank-you-note-template.md +16 -0
  166. package/dist/registry/templates/customer-development/triage-log-template.md +278 -0
  167. package/dist/registry/templates/customer-development/weekly-newsletter-template.html +204 -0
  168. package/dist/registry/templates/evidence/Design-Evidence.md +30 -0
  169. package/dist/registry/templates/evidence/Implementation-BugEvidence.md +122 -0
  170. package/dist/registry/templates/evidence/Implementation-FeatureEvidence.md +160 -0
  171. package/dist/registry/templates/evidence/Spec-Evidence.md +19 -0
  172. package/dist/registry/templates/help/HelpNeeded.md +14 -0
  173. package/dist/registry/templates/legal/NDA-TEMPLATE.md +170 -0
  174. package/dist/registry/templates/legal/PATENT-TEMPLATE.md +372 -0
  175. package/dist/registry/templates/legal/TRADEMARK-TEMPLATE.md +339 -0
  176. package/dist/registry/templates/legal/contract-review-checklist.md +193 -0
  177. package/dist/registry/templates/legal/review-report-template.md +198 -0
  178. package/dist/registry/templates/legal/saas-terms-template.md +174 -0
  179. package/dist/registry/templates/legal/sow-template.md +117 -0
  180. package/dist/registry/templates/legal/template-variables.md +131 -0
  181. package/dist/registry/templates/marketing/DOMAIN-REGISTRATION-TEMPLATE.md +194 -0
  182. package/dist/registry/templates/marketing/EVANGELIZE-TEMPLATE.md +102 -0
  183. package/dist/registry/templates/marketing/HBR-ARTICLE-TEMPLATE.md +66 -0
  184. package/dist/registry/templates/marketing/STORYTELLING-TEMPLATE.md +130 -0
  185. package/dist/registry/templates/marketing/WEBSITE-TEMPLATE.md +262 -0
  186. package/dist/registry/templates/marketing/github-pages-workflow.yml +64 -0
  187. package/dist/registry/templates/replicate/implementation-checklist.md +39 -0
  188. package/dist/registry/templates/replicate/use-cases-template.md +88 -0
  189. package/dist/registry/templates/retrospective/RETROSPECTIVE-TEMPLATE.md +55 -0
  190. package/dist/registry/templates/specs/BUGSPEC-TEMPLATE.md +37 -0
  191. package/dist/registry/templates/specs/FEATURESPEC-TEMPLATE.md +66 -0
  192. package/dist/registry/templates/specs/TECHSPEC-TEMPLATE.md +39 -0
  193. package/dist/registry/workflows/azure/cost-optimization.md +772 -0
  194. package/dist/registry/workflows/bootstrap/create-architecture.md +37 -0
  195. package/dist/registry/workflows/bootstrap/detect-broken-windows.md +300 -0
  196. package/dist/registry/workflows/bootstrap/evaluate-code-quality.md +35 -0
  197. package/dist/registry/workflows/bootstrap/verify-test-coverage.md +36 -0
  198. package/dist/registry/workflows/brainstorming/blue-sky-brainstorming.md +211 -0
  199. package/dist/registry/workflows/brainstorming/codebase-brainstorming.md +159 -0
  200. package/dist/registry/workflows/business-development/create-business-plan.md +737 -0
  201. package/dist/registry/workflows/business-development/ideate-business-opportunity.md +55 -0
  202. package/dist/registry/workflows/business-development/price-product.md +325 -0
  203. package/dist/registry/workflows/compliance/detect-compliance-requirements.md +80 -0
  204. package/dist/registry/workflows/compliance/generate-audit-evidence.md +80 -0
  205. package/dist/registry/workflows/compliance/soc2-evidence-generator.md +332 -0
  206. package/dist/registry/workflows/customer-development/insight-analysis.md +156 -0
  207. package/dist/registry/workflows/customer-development/insight-triage.md +933 -0
  208. package/dist/registry/workflows/customer-development/interview-preparation.md +452 -0
  209. package/dist/registry/workflows/customer-development/linkedin-outreach.md +599 -0
  210. package/dist/registry/workflows/customer-development/strategic-brainstorming.md +146 -0
  211. package/dist/registry/workflows/customer-development/thank-customers.md +203 -0
  212. package/dist/registry/workflows/customer-development/user-survey-dispatch.md +312 -0
  213. package/dist/registry/workflows/customer-development/users-to-target.md +427 -0
  214. package/dist/registry/workflows/customer-development/weekly-newsletter.md +366 -0
  215. package/dist/registry/workflows/deploy/cloud-deployment.md +310 -0
  216. package/dist/registry/workflows/improve-fraim/contribute.md +32 -0
  217. package/dist/registry/workflows/improve-fraim/file-issue.md +32 -0
  218. package/dist/registry/workflows/learning/build-skillset.md +212 -0
  219. package/dist/registry/workflows/learning/synthesize-learnings.md +369 -0
  220. package/dist/registry/workflows/legal/contract-review-analysis.md +382 -0
  221. package/dist/registry/workflows/legal/nda.md +69 -0
  222. package/dist/registry/workflows/legal/patent-filing.md +76 -0
  223. package/dist/registry/workflows/legal/saas-contract-development.md +204 -0
  224. package/dist/registry/workflows/legal/trademark-filing.md +77 -0
  225. package/dist/registry/workflows/marketing/content-creation.md +40 -0
  226. package/dist/registry/workflows/marketing/convert-to-pdf.md +265 -0
  227. package/dist/registry/workflows/marketing/create-modern-website.md +456 -0
  228. package/dist/registry/workflows/marketing/domain-registration.md +323 -0
  229. package/dist/registry/workflows/marketing/evangelize.md +426 -0
  230. package/dist/registry/workflows/marketing/hbr-article.md +73 -0
  231. package/dist/registry/workflows/marketing/launch-checklist.md +37 -0
  232. package/dist/registry/workflows/marketing/marketing-strategy.md +45 -0
  233. package/dist/registry/workflows/marketing/storytelling.md +65 -0
  234. package/dist/registry/workflows/performance/analyze-performance.md +65 -0
  235. package/dist/registry/workflows/product-building/design.md +263 -0
  236. package/dist/registry/workflows/product-building/implement.md +771 -0
  237. package/dist/registry/workflows/product-building/iterate-on-pr-comments.md +70 -0
  238. package/dist/registry/workflows/product-building/prep-issue.md +41 -0
  239. package/dist/registry/workflows/product-building/prototype.md +60 -0
  240. package/dist/registry/workflows/product-building/resolve.md +175 -0
  241. package/dist/registry/workflows/product-building/retrospect.md +86 -0
  242. package/dist/registry/workflows/product-building/spec.md +303 -0
  243. package/dist/registry/workflows/product-building/test.md +125 -0
  244. package/dist/registry/workflows/productivity-report/productivity-report.md +263 -0
  245. package/dist/registry/workflows/quality-assurance/browser-validation.md +221 -0
  246. package/dist/registry/workflows/quality-assurance/iterative-improvement-cycle.md +562 -0
  247. package/dist/registry/workflows/replicate/replicate-discovery.md +336 -0
  248. package/dist/registry/workflows/replicate/replicate-to-issues.md +319 -0
  249. package/dist/registry/workflows/reviewer/review-implementation-vs-design-spec.md +694 -0
  250. package/dist/registry/workflows/reviewer/review-implementation-vs-feature-spec.md +734 -0
  251. package/dist/registry/workflows/startup-credits/aws-activate-application.md +535 -0
  252. package/dist/registry/workflows/startup-credits/google-cloud-application.md +647 -0
  253. package/dist/registry/workflows/startup-credits/microsoft-azure-application.md +538 -0
  254. package/package.json +2 -1
@@ -0,0 +1,562 @@
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
+ npx tsx ~/.fraim/scripts/exec-with-timeout.ts --timeout 120 -- npm test
335
+
336
+ # Run E2E tests if available
337
+ npx tsx ~/.fraim/scripts/exec-with-timeout.ts --timeout 180 -- 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
+ npx tsx ~/.fraim/scripts/exec-with-timeout.ts --timeout 120 -- npm test
502
+
503
+ # Run specific test
504
+ npx tsx ~/.fraim/scripts/exec-with-timeout.ts --timeout 120 -- 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