fraim-framework 2.0.65 → 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,202 @@
1
+ # Phase: submit-pr
2
+
3
+ ## INTENT
4
+ To submit completed work for review by creating/updating PR, setting proper labels, and documenting evidence.
5
+
6
+ ## OUTCOME
7
+ Work is submitted for review with:
8
+ - PR created/updated with work
9
+ - Proper issue labels applied
10
+ - Evidence documented
11
+ - Ready to enter PR review phase
12
+
13
+ ## PRINCIPLES
14
+ - **Complete Documentation**: Evidence shows all work done
15
+ - **Proper Labels**: Issue status reflects PR submission
16
+ - **Clear Communication**: PR and evidence are clear
17
+ - **Ready for Review**: No blockers for PR review process
18
+
19
+ ## RULES FOR THIS PHASE
20
+
21
+ ### Success Criteria
22
+ Read `registry/rules/agent-success-criteria.md` via `get_fraim_file` for the complete framework. Focus on:
23
+ - **Integrity** (honest documentation of all work completed)
24
+ - **Completeness** (all finalization steps completed)
25
+
26
+ ### Simplicity Principles
27
+ Read `registry/rules/simplicity.md` via `get_fraim_file` for complete guidelines. Key for finalization:
28
+ - **Focus on the assigned issue only** - document only relevant work
29
+ - **Clear communication** - evidence should be easy to understand
30
+
31
+ ### Git Operations (if needed)
32
+ When using git commands directly (if MCP tools unavailable), read `rules/git-safe-commands.md` via `get_fraim_file` to avoid interactive commands that hang agents.
33
+
34
+ ## WORKFLOW
35
+
36
+ ### Step 1: Create Evidence Document
37
+
38
+ **File location:**
39
+ ```
40
+ docs/evidence/{issue_number}-{workflow_type}-evidence.md
41
+ ```
42
+
43
+ **Evidence document should include:**
44
+
45
+ #### Summary
46
+ - Issue number and title
47
+ - Workflow type (spec, design, implement, test)
48
+ - Brief description of work completed
49
+
50
+ #### Work Completed
51
+ **For Spec Workflow:**
52
+ - Specification document created
53
+ - High-fidelity HTML mocks (if UI changes)
54
+ - Requirements coverage
55
+
56
+ **For Design Workflow:**
57
+ - Technical design document
58
+ - Architecture decisions
59
+ - API specifications
60
+ - Database schema (if applicable)
61
+
62
+ **For Implement Workflow:**
63
+ - Implementation details
64
+ - Key files changed
65
+ - Approach taken
66
+ - Testing completed
67
+
68
+ **For Test Workflow:**
69
+ - Test suite created/enhanced
70
+ - Coverage metrics
71
+ - Test results
72
+
73
+ #### PR Feedback History (if applicable)
74
+ **CRITICAL**: If PR feedback file exists (`docs/evidence/{issue_number}-{workflow_type}-feedback.md`), include its complete contents in the evidence document under this section.
75
+
76
+ This shows reviewers:
77
+ - All previous feedback received
78
+ - How each item was addressed
79
+ - Complete audit trail of review iterations
80
+
81
+ #### Validation
82
+ - How work was validated
83
+ - Validation results
84
+ - Screenshots/output (if applicable)
85
+
86
+ #### Quality Checks
87
+ - All deliverables complete
88
+ - Documentation clear and professional
89
+ - Work ready for next phase or review
90
+
91
+ #### Phase Completion
92
+ - All phases completed for this workflow
93
+ - Evidence from each phase
94
+ - Any iterations or challenges
95
+
96
+ ### Step 2: Commit and Sync Work
97
+
98
+ **Commit all changes:**
99
+ - Stage all modified files
100
+ - Create commit with descriptive message
101
+ - Push to feature branch
102
+
103
+ **Commit message format:**
104
+ ```
105
+ {workflow_type}({issue_number}): complete {phase_name} phase
106
+
107
+ - Evidence document created
108
+ - All deliverables complete
109
+ - Ready for review
110
+ ```
111
+
112
+ ### Step 3: Verify PR Exists
113
+
114
+ **Verify PR:**
115
+ - PR exists for the feature branch
116
+ - PR title reflects the issue and workflow
117
+ - PR description includes context and links to deliverables
118
+
119
+ **If PR doesn't exist:**
120
+ - Create PR manually
121
+ - Link to issue
122
+ - Add evidence document link
123
+
124
+ ### Step 4: Add PR Comment
125
+
126
+ Add comment to PR with link to evidence:
127
+ ```
128
+ {Workflow_type} workflow complete. Evidence document: docs/evidence/{issue_number}-{workflow_type}-evidence.md
129
+
130
+ All phases completed:
131
+ {workflow_specific_phases_checklist}
132
+
133
+ **PR Feedback History**:
134
+ {If feedback file exists, include: "This submission addresses all feedback from previous review rounds. See evidence document for complete feedback history and resolutions."}
135
+
136
+ Ready for human review.
137
+ ```
138
+
139
+ ### Step 5: Update Issue Labels
140
+
141
+ **Remove:**
142
+ - `status:wip`
143
+
144
+ **Add:**
145
+ - `status:needs-review`
146
+
147
+ **Keep:**
148
+ - Current phase label (e.g., `phase:spec`, `phase:design`, `phase:impl`) to indicate which phase is in PR
149
+
150
+ **GitHub Repository Context:**
151
+ Read `.fraim/config.json` for:
152
+ - `git.repoOwner` - GitHub repository owner
153
+ - `git.repoName` - GitHub repository name
154
+
155
+ Use GitHub MCP tools to update labels.
156
+
157
+ ### Step 6: Final Verification
158
+
159
+ **Checklist:**
160
+ - ✅ Issue labels updated (kept phase label, added needs-review)
161
+ - ✅ Evidence document created and complete
162
+ - ✅ All work committed and pushed to feature branch
163
+ - ✅ PR exists and is ready
164
+ - ✅ PR comment added with evidence link
165
+ - ✅ All deliverables complete
166
+ - ✅ Git status clean
167
+
168
+ ## VALIDATION
169
+
170
+ ### Phase Complete When:
171
+ - ✅ Issue has `status:needs-review` label
172
+ - ✅ Issue keeps current phase label to indicate what needs review
173
+ - ✅ Evidence document exists and is complete
174
+ - ✅ All work committed and synced to remote
175
+ - ✅ PR exists and is ready for review
176
+ - ✅ PR has comment linking to evidence
177
+ - ✅ All previous phases complete
178
+
179
+ ### Phase Incomplete If:
180
+ - ❌ Labels not updated correctly
181
+ - ❌ Evidence document missing or incomplete
182
+ - ❌ Work not committed and synced
183
+ - ❌ PR not ready
184
+ - ❌ Previous phases not complete
185
+
186
+ ### Report Back:
187
+ ```javascript
188
+ seekMentoring({
189
+ workflowType: "{workflow_type}",
190
+ issueNumber: "{issue_number}",
191
+ currentPhase: "submit-pr",
192
+ status: "complete",
193
+ evidence: {
194
+ labelsUpdated: "Issue has status:needs-review and keeps phase label",
195
+ evidenceDocument: "docs/evidence/{issue_number}-{workflow_type}-evidence.md created",
196
+ workCommitted: "All changes committed and pushed to feature branch",
197
+ prStatus: "PR ready for review",
198
+ prComment: "PR comment added with evidence link",
199
+ allPhasesComplete: "All {workflow_type} phases completed successfully"
200
+ }
201
+ })
202
+ ```
@@ -0,0 +1,170 @@
1
+ # Phase: wait-for-pr-review
2
+
3
+ ## INTENT
4
+ Wait for human instruction to check PR status, then evaluate if PR is ready for merge or needs more work.
5
+
6
+ ## OUTCOME
7
+ Either:
8
+ - **PR Approved**: Workflow complete, ready for merge
9
+ - **PR Has Comments**: Write feedback file and return to workflow to address feedback
10
+
11
+ ## RULES FOR THIS PHASE
12
+
13
+ ### Success Criteria
14
+ Read `registry/rules/agent-success-criteria.md` via `get_fraim_file` for the complete framework.
15
+
16
+ ## WORKFLOW
17
+
18
+ ### Step 1: Wait for Human Instruction
19
+
20
+ **Your task is to wait for human instruction.** Do not automatically poll or check PR status.
21
+
22
+ When human says "check the PR" or "proceed", move to Step 2.
23
+
24
+ ### Step 2: Check PR Status and Comments
25
+
26
+ Use GitHub MCP tools to check the PR comprehensively:
27
+
28
+ 1. **Get PR Status**: Use `mcp_github_pull_request_read` with method `get` to check if PR is approved
29
+ 2. **Get All Comment Types**:
30
+ - **PR-level comments**: Use method `get_comments`
31
+ - **Review comments**: Use method `get_review_comments` (inline/detailed comments)
32
+ - **Review status**: Use method `get_reviews` (approval/changes requested)
33
+
34
+ ### Step 3: Evaluate Results and Write Feedback File
35
+
36
+ **If PR status shows "approved" AND no unresolved comments:**
37
+ - PR is ready for merge
38
+ - Report success
39
+
40
+ **If PR has ANY comments OR is not approved:**
41
+ - PR needs more work
42
+ - **CRITICAL**: Write feedback file to `docs/evidence/{issueNumber}-{workflowType}-feedback.md`
43
+ - Use Round X format (check existing file to determine next round number)
44
+ - Report failure with feedback file path
45
+
46
+ ## FEEDBACK FILE FORMAT
47
+
48
+ Create or append to `docs/evidence/{issueNumber}-{workflowType}-feedback.md`:
49
+
50
+ ```markdown
51
+ # PR Feedback for Issue #{issueNumber} - {WorkflowType} Workflow
52
+
53
+ ## Round {X} Feedback
54
+ *Received: {timestamp}*
55
+
56
+ ### Comment {N} - UNADDRESSED
57
+ - **Author**: {author}
58
+ - **Type**: {pr_comment|review_comment|review}
59
+ - **File**: {file_path} (if applicable)
60
+ - **Line**: {line_number} (if applicable)
61
+ - **Comment**: {comment_body}
62
+ - **Status**: UNADDRESSED
63
+ ```
64
+
65
+ **Round Detection Logic**:
66
+ 1. If feedback file doesn't exist → Start with "Round 1"
67
+ 2. If feedback file exists → Parse to find highest "Round X", use "Round X+1"
68
+ 3. Always append new round, never overwrite existing rounds
69
+
70
+ ## VALIDATION
71
+
72
+ ### Phase Complete When:
73
+ - ✅ PR status is "approved" in GitHub
74
+ - ✅ No unresolved comment threads exist
75
+ - ✅ No pending review comments
76
+
77
+ **Report back with:**
78
+ ```javascript
79
+ seekMentoring({
80
+ workflowType: "{workflow_type}",
81
+ issueNumber: "{issue_number}",
82
+ currentPhase: "wait-for-pr-review",
83
+ status: "complete",
84
+ evidence: {
85
+ prStatus: "approved",
86
+ commentsResolved: true,
87
+ readyForMerge: true
88
+ }
89
+ })
90
+ ```
91
+
92
+ ### Phase Failed When:
93
+ - ✅ PR has unresolved comments
94
+ - ✅ PR status is not "approved"
95
+ - ✅ Review requests changes
96
+
97
+ ### Report Back:
98
+
99
+ **When PR is approved and ready:**
100
+ ```javascript
101
+ seekMentoring({
102
+ workflowType: "{workflow_type}",
103
+ issueNumber: "{issue_number}",
104
+ currentPhase: "wait-for-pr-review",
105
+ status: "complete",
106
+ evidence: {
107
+ prStatus: "approved",
108
+ commentsResolved: true,
109
+ readyForMerge: true
110
+ }
111
+ })
112
+ ```
113
+
114
+ **When PR has comments (CRITICAL: Write feedback file first):**
115
+ ```javascript
116
+ seekMentoring({
117
+ workflowType: "{workflow_type}",
118
+ issueNumber: "{issue_number}",
119
+ currentPhase: "wait-for-pr-review",
120
+ status: "failure",
121
+ findings: {
122
+ feedbackFile: "{issueNumber}-{workflowType}-feedback.md",
123
+ roundNumber: {X},
124
+ commentCount: {total_comments},
125
+ prStatus: "{current_status}"
126
+ }
127
+ })
128
+ ```
129
+
130
+ ## GITHUB MCP TOOLS TO USE
131
+
132
+ 1. **Check PR Status**:
133
+ ```javascript
134
+ mcp_github_pull_request_read({
135
+ method: "get",
136
+ owner: "{repo_owner}",
137
+ repo: "{repo_name}",
138
+ pullNumber: {pr_number}
139
+ })
140
+ ```
141
+
142
+ 2. **Get PR Comments**:
143
+ ```javascript
144
+ mcp_github_pull_request_read({
145
+ method: "get_comments",
146
+ owner: "{repo_owner}",
147
+ repo: "{repo_name}",
148
+ pullNumber: {pr_number}
149
+ })
150
+ ```
151
+
152
+ 3. **Get Review Comments**:
153
+ ```javascript
154
+ mcp_github_pull_request_read({
155
+ method: "get_review_comments",
156
+ owner: "{repo_owner}",
157
+ repo: "{repo_name}",
158
+ pullNumber: {pr_number}
159
+ })
160
+ ```
161
+
162
+ 4. **Get Reviews**:
163
+ ```javascript
164
+ mcp_github_pull_request_read({
165
+ method: "get_reviews",
166
+ owner: "{repo_owner}",
167
+ repo: "{repo_name}",
168
+ pullNumber: {pr_number}
169
+ })
170
+ ```
@@ -0,0 +1,60 @@
1
+ # Phase: Finalize
2
+
3
+ ## INTENT
4
+ To prepare completed work for human review by setting proper labels, creating/updating PR, and documenting evidence.
5
+
6
+ ## OUTCOME
7
+ Work is ready for human review with:
8
+ - Proper issue labels applied
9
+ - PR created/updated with work
10
+ - Evidence documented
11
+ - Clean handoff to next phase or review
12
+
13
+ ## WORKFLOW
14
+
15
+ ### Step 1: Apply Issue Labels
16
+ - Remove current phase label (e.g., `phase:spec`, `phase:design`, `phase:impl`)
17
+ - Add `status:needs-review` label
18
+ - Keep any other relevant labels
19
+
20
+ ### Step 2: Create/Update Pull Request
21
+ - Ensure PR exists for the feature branch
22
+ - Update PR title to reflect completed work
23
+ - Update PR description with summary of work completed
24
+ - Link to relevant documents (specs, designs, evidence)
25
+
26
+ ### Step 3: Document Evidence
27
+ - Create evidence file at `docs/evidence/{issue_number}-{workflow}-evidence.md`
28
+ - Document key decisions made
29
+ - List deliverables created
30
+ - Note any recommendations for next phase
31
+
32
+ ### Step 4: Prepare Handoff
33
+ - Ensure all work is committed to git
34
+ - Verify documentation is complete
35
+ - Confirm work is ready for human review
36
+
37
+ ## VALIDATION
38
+
39
+ ### Phase Complete When:
40
+ - ✅ Issue labels updated (`status:needs-review`)
41
+ - ✅ PR created/updated with work summary
42
+ - ✅ Evidence documented
43
+ - ✅ All work committed to git
44
+ - ✅ Ready for human review
45
+
46
+ ### Report Back:
47
+ ```javascript
48
+ seekCoachingOnNextStep({
49
+ workflowType: "{workflow_type}",
50
+ issueNumber: "{issue_number}",
51
+ currentPhase: "finalize",
52
+ status: "complete",
53
+ evidence: {
54
+ labelsApplied: ["status:needs-review"],
55
+ prUpdated: true,
56
+ evidenceDocumented: "docs/evidence/{issue_number}-{workflow}-evidence.md",
57
+ workCommitted: true
58
+ }
59
+ })
60
+ ```
@@ -0,0 +1,105 @@
1
+ # Phase: spec-competitor-analysis
2
+
3
+ ## INTENT
4
+ To conduct systematic competitive research and analysis for the feature being specified, ensuring comprehensive understanding of competitive landscape and clear differentiation strategy.
5
+
6
+ ## OUTCOME
7
+ A comprehensive competitive analysis that:
8
+ - Documents all configured competitors and their approaches
9
+ - Identifies new competitors through systematic research
10
+ - Proposes configuration updates with user approval
11
+ - Defines clear differentiation strategy and competitive positioning
12
+ - Updates the specification with complete competitive landscape analysis
13
+
14
+ ## TRIGGER
15
+ This phase is triggered after `spec-spec` completion and before `spec-completeness-review`.
16
+
17
+ ## CONTEXT ADVANTAGES
18
+ - **Full Feature Context**: Complete understanding of proposed feature and requirements
19
+ - **Fresh Research**: Current competitive landscape information
20
+ - **Strategic Positioning**: Ability to influence feature design based on competitive insights
21
+ - **Configuration-Driven**: Systematic analysis of known competitors plus discovery of new ones
22
+
23
+ ## WORKFLOW
24
+
25
+ ### Step 1: Load Competitor Configuration
26
+ - Read `.fraim/config.json` competitors section
27
+ - Extract configured competitors and their competitive spaces
28
+ - Note any existing competitive intelligence
29
+
30
+ ### Step 2: Research Configured Competitors
31
+ For each competitor in config:
32
+ - Research their current solution for this feature area
33
+ - Analyze their strengths and weaknesses in this space
34
+ - Gather customer feedback and reviews
35
+ - Assess market position and pricing approach
36
+ - Document findings in structured format
37
+
38
+ ### Step 3: Discover Additional Competitors
39
+ - Use web search to find other competitors in the feature space
40
+ - Research market for competitors not in configuration
41
+ - Identify direct, adjacent, and emerging competitors
42
+ - Focus on competitors specifically relevant to this feature
43
+
44
+ ### Step 4: Competitor Configuration Updates
45
+ - **Identify New Competitors**: Present newly discovered competitors to user
46
+ - **Configuration Proposal**: Suggest adding relevant competitors to `.fraim/config.json`
47
+ - **User Approval**: Ask user to approve additions: "Found new competitor 'X' in space 'Y'. Add to config?"
48
+ - **Auto-Update**: If user approves, automatically update configuration file
49
+ - **Documentation**: Note configuration changes in competitive analysis
50
+
51
+ ### Step 5: Competitive Analysis
52
+ - Compare competitor approaches to our proposed solution
53
+ - Identify competitive advantages and disadvantages
54
+ - Develop differentiation strategy
55
+ - Plan competitive response strategies
56
+ - Define market positioning approach
57
+
58
+ ### Step 6: Update Specification
59
+ - Update Competitive Landscape section with findings
60
+ - Ensure all configured competitors are covered
61
+ - Include newly discovered competitors
62
+ - Add competitive positioning strategy
63
+ - Document research sources and methodology
64
+ - Validate analysis completeness
65
+
66
+ ## VALIDATION
67
+
68
+ ### Phase Complete When:
69
+ - ✅ All configured competitors analyzed
70
+ - ✅ Additional competitors discovered through research
71
+ - ✅ User consulted on adding new competitors to config
72
+ - ✅ Configuration updated with user-approved competitors
73
+ - ✅ Competitive positioning strategy defined
74
+ - ✅ Differentiation advantages clearly articulated
75
+ - ✅ Research sources documented
76
+ - ✅ Analysis covers both configured and discovered competitors
77
+ - ✅ Specification competitive landscape section updated
78
+
79
+ ### Report Back:
80
+ When this phase is complete, call:
81
+ ```javascript
82
+ seekMentoring({
83
+ workflowType: "spec",
84
+ issueNumber: "your-issue-number",
85
+ currentPhase: "spec-competitor-analysis",
86
+ status: "complete",
87
+ evidence: {
88
+ competitorsAnalyzed: ["competitor1", "competitor2"],
89
+ newCompetitorsFound: ["new-competitor1"],
90
+ configurationUpdated: true,
91
+ differentiationStrategy: "summary of strategy",
92
+ specificationUpdated: true
93
+ }
94
+ })
95
+ ```
96
+
97
+ ### Phase Incomplete If:
98
+ - Configuration competitors not fully researched
99
+ - No additional competitor discovery attempted
100
+ - User not consulted on configuration updates
101
+ - Competitive positioning strategy missing
102
+ - Specification not updated with findings
103
+
104
+ ## NEXT PHASE
105
+ After completing competitor-analysis, proceed to `spec-completeness-review` phase.
@@ -0,0 +1,66 @@
1
+ # Phase: Spec-Completeness-Review
2
+
3
+ ## INTENT
4
+ To verify that the specification is complete and includes high-fidelity HTML mocks when UI changes are involved.
5
+
6
+ ## OUTCOME
7
+ Confirmation that:
8
+ - Specification document is complete and follows template
9
+ - High-fidelity HTML mocks exist for UI changes (not markdown code blocks)
10
+ - Mocks are accessible and render properly in browser
11
+ - All requirements from original issue are addressed
12
+
13
+ ## WORKFLOW
14
+
15
+ ### Step 1: Check Specification Completeness
16
+ - Verify spec document exists at `docs/feature specs/{issue_number}-*.md`
17
+ - Confirm all template sections are complete (not placeholder text)
18
+ - Check that customer, desired outcome, and user experience are well-defined
19
+
20
+ ### Step 2: Validate Mocks (if UI changes)
21
+ **If the feature involves UI changes:**
22
+ - Check that HTML mock files exist in `docs/feature specs/mocks/`
23
+ - Verify mocks are named `{issue_number}-*.html`
24
+ - Confirm mocks are actual HTML files (not markdown code blocks)
25
+ - **Ask agent to open mocks in browser** to verify they render properly
26
+ - Check that mocks show different states/views of the feature
27
+
28
+ **If no UI changes:**
29
+ - Confirm this is documented in the spec
30
+ - Verify the feature is purely backend/API
31
+
32
+ ### Step 3: Requirements Coverage
33
+ - Review original GitHub issue requirements
34
+ - Confirm all requirements are addressed in the specification
35
+ - Check that acceptance criteria are covered
36
+
37
+ ## VALIDATION
38
+
39
+ ### Phase Complete When:
40
+ - ✅ Specification document complete and professional quality
41
+ - ✅ High-fidelity HTML mocks created (if UI changes required)
42
+ - ✅ Agent has opened mocks in browser and confirmed they render
43
+ - ✅ All original issue requirements addressed
44
+ - ✅ Ready for design phase
45
+
46
+ ### Phase Incomplete If:
47
+ - ❌ Specification incomplete or poor quality
48
+ - ❌ UI changes specified but no HTML mocks provided
49
+ - ❌ Mocks don't render properly in browser
50
+ - ❌ Original requirements not fully addressed
51
+
52
+ ### Report Back:
53
+ ```javascript
54
+ seekMentoring({
55
+ workflowType: "spec",
56
+ issueNumber: "{issue_number}",
57
+ currentPhase: "spec-completeness-review",
58
+ status: "complete",
59
+ evidence: {
60
+ specComplete: true,
61
+ mockFilesCreated: ["docs/feature specs/mocks/21-view1.html", "21-view2.html"],
62
+ browserValidated: true,
63
+ requirementsCovered: true
64
+ }
65
+ })
66
+ ```