fraim-framework 2.0.55 → 2.0.56

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 (126) 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/user-survey-phases/phase1-survey-scoping.md +60 -0
  6. package/dist/registry/ai-manager-rules/user-survey-phases/phase2-survey-build-linkedin.md +23 -0
  7. package/dist/registry/ai-manager-rules/user-survey-phases/phase3-survey-build-reddit.md +22 -0
  8. package/dist/registry/ai-manager-rules/user-survey-phases/phase4-survey-build-x.md +21 -0
  9. package/dist/registry/ai-manager-rules/user-survey-phases/phase5-survey-build-facebook.md +19 -0
  10. package/dist/registry/ai-manager-rules/user-survey-phases/phase6-survey-build-custom.md +15 -0
  11. package/dist/registry/ai-manager-rules/user-survey-phases/phase7-survey-dispatch.md +45 -0
  12. package/dist/registry/templates/bootstrap/ARCHITECTURE-TEMPLATE.md +53 -0
  13. package/dist/registry/templates/bootstrap/CODE-QUALITY-REPORT-TEMPLATE.md +37 -0
  14. package/dist/registry/templates/bootstrap/TEST-COVERAGE-REPORT-TEMPLATE.md +35 -0
  15. package/dist/registry/templates/business-development/IDEATION-REPORT-TEMPLATE.md +29 -0
  16. package/dist/registry/templates/business-development/PRICING-STRATEGY-TEMPLATE.md +126 -0
  17. package/dist/registry/templates/customer-development/customer-interview-template.md +99 -0
  18. package/dist/registry/templates/customer-development/customer-persona-template.md +69 -0
  19. package/dist/registry/templates/customer-development/follow-up-email-templates.md +132 -0
  20. package/dist/registry/templates/customer-development/insight-analysis-template.md +74 -0
  21. package/dist/registry/templates/customer-development/prospect-inventory-template.csv +3 -0
  22. package/dist/registry/templates/customer-development/search-strategy-template.md +123 -0
  23. package/dist/registry/templates/customer-development/strategic-recommendations-template.md +53 -0
  24. package/dist/registry/templates/customer-development/thank-you-email-template.html +124 -0
  25. package/dist/registry/templates/customer-development/thank-you-note-template.md +16 -0
  26. package/dist/registry/templates/customer-development/triage-log-template.md +278 -0
  27. package/dist/registry/templates/customer-development/weekly-newsletter-template.html +204 -0
  28. package/dist/registry/templates/evidence/Design-Evidence.md +30 -0
  29. package/dist/registry/templates/evidence/Implementation-BugEvidence.md +94 -0
  30. package/dist/registry/templates/evidence/Implementation-FeatureEvidence.md +129 -0
  31. package/dist/registry/templates/evidence/Spec-Evidence.md +19 -0
  32. package/dist/registry/templates/help/HelpNeeded.md +14 -0
  33. package/dist/registry/templates/legal/NDA-TEMPLATE.md +170 -0
  34. package/dist/registry/templates/legal/PATENT-TEMPLATE.md +372 -0
  35. package/dist/registry/templates/legal/TRADEMARK-TEMPLATE.md +339 -0
  36. package/dist/registry/templates/legal/contract-review-checklist.md +193 -0
  37. package/dist/registry/templates/legal/review-report-template.md +198 -0
  38. package/dist/registry/templates/legal/saas-terms-template.md +174 -0
  39. package/dist/registry/templates/legal/sow-template.md +117 -0
  40. package/dist/registry/templates/legal/template-variables.md +131 -0
  41. package/dist/registry/templates/marketing/DOMAIN-REGISTRATION-TEMPLATE.md +194 -0
  42. package/dist/registry/templates/marketing/HBR-ARTICLE-TEMPLATE.md +66 -0
  43. package/dist/registry/templates/marketing/STORYTELLING-TEMPLATE.md +130 -0
  44. package/dist/registry/templates/marketing/WEBSITE-TEMPLATE.md +262 -0
  45. package/dist/registry/templates/marketing/github-pages-workflow.yml +64 -0
  46. package/dist/registry/templates/replicate/implementation-checklist.md +39 -0
  47. package/dist/registry/templates/replicate/use-cases-template.md +88 -0
  48. package/dist/registry/templates/retrospective/RETROSPECTIVE-TEMPLATE.md +55 -0
  49. package/dist/registry/templates/specs/BUGSPEC-TEMPLATE.md +37 -0
  50. package/dist/registry/templates/specs/FEATURESPEC-TEMPLATE.md +66 -0
  51. package/dist/registry/templates/specs/TECHSPEC-TEMPLATE.md +39 -0
  52. package/dist/registry/workflows/bootstrap/create-architecture.md +38 -0
  53. package/dist/registry/workflows/bootstrap/detect-broken-windows.md +300 -0
  54. package/dist/registry/workflows/bootstrap/evaluate-code-quality.md +35 -0
  55. package/dist/registry/workflows/bootstrap/verify-test-coverage.md +36 -0
  56. package/dist/registry/workflows/brainstorming/blue-sky-brainstorming.md +211 -0
  57. package/dist/registry/workflows/brainstorming/codebase-brainstorming.md +165 -0
  58. package/dist/registry/workflows/business-development/create-business-plan.md +737 -0
  59. package/dist/registry/workflows/business-development/ideate-business-opportunity.md +55 -0
  60. package/dist/registry/workflows/business-development/price-product.md +325 -0
  61. package/dist/registry/workflows/compliance/detect-compliance-requirements.md +78 -0
  62. package/dist/registry/workflows/compliance/generate-audit-evidence.md +75 -0
  63. package/dist/registry/workflows/compliance/soc2-evidence-generator.md +332 -0
  64. package/dist/registry/workflows/customer-development/insight-analysis.md +156 -0
  65. package/dist/registry/workflows/customer-development/insight-triage.md +938 -0
  66. package/dist/registry/workflows/customer-development/interview-preparation.md +452 -0
  67. package/dist/registry/workflows/customer-development/linkedin-outreach.md +593 -0
  68. package/dist/registry/workflows/customer-development/strategic-brainstorming.md +146 -0
  69. package/dist/registry/workflows/customer-development/thank-customers.md +203 -0
  70. package/dist/registry/workflows/customer-development/user-survey-dispatch.md +60 -0
  71. package/dist/registry/workflows/customer-development/users-to-target.md +112 -0
  72. package/dist/registry/workflows/customer-development/weekly-newsletter.md +366 -0
  73. package/dist/registry/workflows/deploy/cloud-deployment.md +310 -0
  74. package/dist/registry/workflows/improve-fraim/contribute.md +32 -0
  75. package/dist/registry/workflows/improve-fraim/file-issue.md +32 -0
  76. package/dist/registry/workflows/learning/build-skillset.md +212 -0
  77. package/dist/registry/workflows/learning/synthesize-learnings.md +284 -0
  78. package/dist/registry/workflows/legal/contract-review-analysis.md +382 -0
  79. package/dist/registry/workflows/legal/nda.md +69 -0
  80. package/dist/registry/workflows/legal/patent-filing.md +76 -0
  81. package/dist/registry/workflows/legal/saas-contract-development.md +213 -0
  82. package/dist/registry/workflows/legal/trademark-filing.md +77 -0
  83. package/dist/registry/workflows/marketing/content-creation.md +37 -0
  84. package/dist/registry/workflows/marketing/convert-to-pdf.md +235 -0
  85. package/dist/registry/workflows/marketing/create-modern-website.md +456 -0
  86. package/dist/registry/workflows/marketing/domain-registration.md +323 -0
  87. package/dist/registry/workflows/marketing/hbr-article.md +73 -0
  88. package/dist/registry/workflows/marketing/launch-checklist.md +37 -0
  89. package/dist/registry/workflows/marketing/marketing-strategy.md +45 -0
  90. package/dist/registry/workflows/marketing/storytelling.md +65 -0
  91. package/dist/registry/workflows/performance/analyze-performance.md +65 -0
  92. package/dist/registry/workflows/product-building/design.md +103 -0
  93. package/dist/registry/workflows/product-building/implement.md +74 -0
  94. package/dist/registry/workflows/product-building/iterate-on-pr-comments.md +70 -0
  95. package/dist/registry/workflows/product-building/prep-issue.md +41 -0
  96. package/dist/registry/workflows/product-building/prototype.md +65 -0
  97. package/dist/registry/workflows/product-building/resolve.md +168 -0
  98. package/dist/registry/workflows/product-building/retrospect.md +86 -0
  99. package/dist/registry/workflows/product-building/spec.md +181 -0
  100. package/dist/registry/workflows/product-building/test.md +125 -0
  101. package/dist/registry/workflows/productivity-report/productivity-report.md +263 -0
  102. package/dist/registry/workflows/quality-assurance/browser-validation.md +221 -0
  103. package/dist/registry/workflows/quality-assurance/iterative-improvement-cycle.md +562 -0
  104. package/dist/registry/workflows/replicate/replicate-discovery.md +336 -0
  105. package/dist/registry/workflows/replicate/replicate-to-issues.md +324 -0
  106. package/dist/registry/workflows/reviewer/review-implementation-vs-design-spec.md +638 -0
  107. package/dist/registry/workflows/reviewer/review-implementation-vs-feature-spec.md +675 -0
  108. package/dist/registry/workflows/startup-credits/aws-activate-application.md +535 -0
  109. package/dist/registry/workflows/startup-credits/google-cloud-application.md +647 -0
  110. package/dist/registry/workflows/startup-credits/microsoft-azure-application.md +538 -0
  111. package/dist/src/ai-manager/ai-manager.js +4 -6
  112. package/dist/tests/test-users-to-target-workflow.js +2 -2
  113. package/package.json +1 -1
  114. package/registry/stubs/workflows/customer-development/ai-coach-phases/phase1-customer-profiling.md +0 -11
  115. package/registry/stubs/workflows/customer-development/ai-coach-phases/phase1-survey-scoping.md +0 -11
  116. package/registry/stubs/workflows/customer-development/ai-coach-phases/phase2-platform-discovery.md +0 -11
  117. package/registry/stubs/workflows/customer-development/ai-coach-phases/phase2-survey-build-linkedin.md +0 -11
  118. package/registry/stubs/workflows/customer-development/ai-coach-phases/phase3-prospect-qualification.md +0 -11
  119. package/registry/stubs/workflows/customer-development/ai-coach-phases/phase3-survey-build-reddit.md +0 -11
  120. package/registry/stubs/workflows/customer-development/ai-coach-phases/phase4-inventory-compilation.md +0 -11
  121. package/registry/stubs/workflows/customer-development/ai-coach-phases/phase4-survey-build-x.md +0 -11
  122. package/registry/stubs/workflows/customer-development/ai-coach-phases/phase5-survey-build-facebook.md +0 -11
  123. package/registry/stubs/workflows/customer-development/ai-coach-phases/phase6-survey-build-custom.md +0 -11
  124. package/registry/stubs/workflows/customer-development/ai-coach-phases/phase7-survey-dispatch.md +0 -11
  125. package/registry/stubs/workflows/customer-development/templates/customer-persona-template.md +0 -11
  126. package/registry/stubs/workflows/customer-development/templates/search-strategy-template.md +0 -11
@@ -0,0 +1,32 @@
1
+ # Workflow: File Issue for FRAIM
2
+
3
+ **Path:** `workflows/improve-fraim/file-issue.md`
4
+
5
+ ---
6
+
7
+ # File Issue Workflow
8
+
9
+ ## INTENT
10
+ Allows users to easily file bugs or feature requests for the FRAIM framework directly from their working environment.
11
+
12
+ ## STEPS
13
+
14
+ ### Step 1: Gather Information
15
+ 1. Ask the user to describe the **Issue** (Bug or Feature Request).
16
+ - Example: "Please describe the bug you encountered or the feature you would like to request."
17
+
18
+ ### Step 2: Categorization (Optional)
19
+ Ask if this is a **Bug** or a **Feature**.
20
+ - If Bug: Use label `bug`.
21
+ - If Feature: Use label `enhancement`.
22
+ - Default: `triage`.
23
+
24
+ ### Step 3: Execute Issue Filing
25
+ Call the `file_issue` tool with the details gathered.
26
+
27
+ - `title`: `"[ISSUE]: <Short Summary>"`
28
+ - `body`: `"<Full Description>"`
29
+ - `labels`: `["<bug/enhancement>"]`
30
+
31
+ ### Step 4: Completion
32
+ Notify the user that the issue has been filed successfully. Summarize the information (title and body) that was filed. Do not provide the issue number or URL.
@@ -0,0 +1,212 @@
1
+ # Workflow: build-skillset
2
+
3
+ **Path:** `workflows/learning/build-skillset.md`
4
+
5
+ ---
6
+
7
+ # Build Skillset
8
+
9
+ ## INTENT
10
+ Create new project-specific skills through conversation with the user. This workflow allows agents to learn and document custom workflows, processes, and knowledge that are specific to the current project or team.
11
+
12
+ ## PRINCIPLES
13
+ - **Conversational Learning**: Learn through natural dialogue with the user
14
+ - **Project-Specific**: Focus on skills unique to this project/team
15
+ - **Structured Documentation**: Create well-formatted, reusable skill documents
16
+ - **Iterative Refinement**: Allow for feedback and improvement of skills
17
+ - **Knowledge Persistence**: Store skills locally for future use
18
+
19
+ ## WORKFLOW
20
+
21
+ ### Phase 1: Skill Discovery
22
+ **Objective**: Understand what skill the user wants to create
23
+
24
+ **Actions**:
25
+ 1. **Initiate Conversation**: Ask the user what skill they want to build
26
+ - "What process or workflow would you like me to learn?"
27
+ - "What makes this unique to your project/team?"
28
+ - "What are the key steps or considerations?"
29
+
30
+ 2. **Gather Context**: Ask clarifying questions
31
+ - Tools and technologies involved
32
+ - Common pain points or challenges
33
+ - Success criteria and outcomes
34
+ - Frequency of use
35
+ - Team members involved
36
+
37
+ 3. **Research Existing Skills**: Check if similar workflows exist
38
+ - Search registry workflows for related patterns using get_fraim_file()
39
+ - Check local learned-skills directory for existing custom skills
40
+ - Identify gaps or unique aspects
41
+
42
+ **Output**: Clear understanding of the skill to be created
43
+
44
+ ### Phase 2: Skill Design
45
+ **Objective**: Design the structure and content of the new skill
46
+
47
+ **Actions**:
48
+ 1. **Present Draft Structure**: Show the user a proposed workflow outline
49
+ - Intent and principles
50
+ - Key phases or steps
51
+ - Tools and resources needed
52
+ - Success criteria
53
+
54
+ 2. **Gather Feedback**: Iterate on the structure
55
+ - "Does this capture your process correctly?"
56
+ - "What am I missing?"
57
+ - "Are these the right steps?"
58
+
59
+ 3. **Refine Content**: Incorporate user feedback
60
+ - Add missing steps
61
+ - Clarify ambiguous points
62
+ - Include specific examples
63
+ - Add project-specific context
64
+
65
+ **Output**: Approved skill structure and content
66
+
67
+ ### Phase 3: Skill Implementation
68
+ **Objective**: Create the skill document in the learned-skills directory
69
+
70
+ **Actions**:
71
+ 1. **Create Directory Structure**: Ensure proper organization in local project
72
+ ```
73
+ Local learned-skills directory structure:
74
+ ├── [category]/
75
+ │ └── [skill-name].md
76
+ ```
77
+
78
+ 2. **Write Skill Document**: Follow standard workflow format
79
+ - Title and metadata
80
+ - Intent and principles
81
+ - Detailed workflow steps
82
+ - Examples and templates
83
+ - Success criteria
84
+
85
+ 3. **Validate Format**: Ensure consistency with existing workflows
86
+ - Use similar structure to registry workflows
87
+ - Include proper markdown formatting
88
+ - Add relevant metadata
89
+
90
+ **Output**: Complete skill document in local learned-skills directory
91
+
92
+ ### Phase 4: Skill Integration
93
+ **Objective**: Make the skill discoverable and usable
94
+
95
+ **Actions**:
96
+ 1. **Test Accessibility**: Verify the skill can be found
97
+ - Confirm file is in correct location
98
+ - Test that content is readable
99
+ - Validate markdown formatting
100
+
101
+ 2. **Present to User**: Show the completed skill
102
+ - Walk through the final document
103
+ - Confirm it meets expectations
104
+ - Note how to access it in future
105
+
106
+ **Output**: Integrated, accessible skill ready for use
107
+
108
+ ## SKILL DOCUMENT TEMPLATE
109
+
110
+ ```markdown
111
+ # Learned Skill: {skill-name}
112
+
113
+ **Category:** {category}
114
+ **Created:** {date}
115
+ **Last Updated:** {date}
116
+ **Project Context:** {project-specific context}
117
+
118
+ ---
119
+
120
+ ## INTENT
121
+ {What this skill accomplishes and why it's needed}
122
+
123
+ ## PRINCIPLES
124
+ - {Key principle 1}
125
+ - {Key principle 2}
126
+ - {Key principle 3}
127
+
128
+ ## WORKFLOW
129
+
130
+ ### Step 1: {Step Name}
131
+ **Objective**: {What this step accomplishes}
132
+
133
+ **Actions**:
134
+ 1. {Specific action}
135
+ 2. {Specific action}
136
+ 3. {Specific action}
137
+
138
+ **Tools/Resources**:
139
+ - {Tool or resource needed}
140
+ - {Tool or resource needed}
141
+
142
+ **Output**: {What this step produces}
143
+
144
+ ### Step 2: {Step Name}
145
+ {Similar format}
146
+
147
+ ## EXAMPLES
148
+
149
+ ### Good Example
150
+ {Concrete example of successful execution}
151
+
152
+ ### Common Pitfalls
153
+ {Things to avoid or watch out for}
154
+
155
+ ## SUCCESS CRITERIA
156
+ - [ ] {Measurable outcome 1}
157
+ - [ ] {Measurable outcome 2}
158
+ - [ ] {Measurable outcome 3}
159
+
160
+ ## NOTES
161
+ {Any additional context, tips, or considerations}
162
+ ```
163
+
164
+ ## DIRECTORY STRUCTURE
165
+
166
+ Learned skills are organized by category in the local project:
167
+
168
+ ```
169
+ Local learned-skills directory structure:
170
+ ├── deployment/
171
+ │ ├── our-k8s-deployment.md
172
+ │ └── staging-validation.md
173
+ ├── code-review/
174
+ │ ├── security-focused-review.md
175
+ │ └── performance-review.md
176
+ ├── testing/
177
+ │ ├── integration-test-strategy.md
178
+ │ └── load-testing-protocol.md
179
+ ├── communication/
180
+ │ ├── stakeholder-updates.md
181
+ │ └── incident-response.md
182
+ └── tools/
183
+ ├── custom-cli-usage.md
184
+ └── monitoring-setup.md
185
+ ```
186
+
187
+ ## CONVERSATION EXAMPLES
188
+
189
+ ### Example 1: Deployment Process
190
+ ```
191
+ Agent: "What process would you like me to learn?"
192
+ User: "Our deployment process is pretty specific - we use a custom K8s setup with manual approval gates"
193
+ Agent: "Tell me more about these approval gates. Who approves and what do they check?"
194
+ User: "The tech lead reviews the staging deployment, then ops approves production"
195
+ Agent: "What tools do you use for the deployments?"
196
+ User: "kubectl, our custom deploy script, and Slack for notifications"
197
+ Agent: "Here's what I understand... [presents draft workflow]"
198
+ User: "That's mostly right, but you missed the database migration step"
199
+ Agent: "Got it, let me add that. Where does that fit in the process?"
200
+ ```
201
+
202
+ ### Example 2: Code Review Standards
203
+ ```
204
+ Agent: "What skill should I learn?"
205
+ User: "We have specific code review standards that aren't documented anywhere"
206
+ Agent: "What makes your code reviews different from standard practices?"
207
+ User: "We focus heavily on security since we handle financial data"
208
+ Agent: "What specific security checks do reviewers perform?"
209
+ User: "SQL injection prevention, input validation, audit logging..."
210
+ Agent: "How do you handle performance reviews?"
211
+ User: "Every PR that touches the API gets a performance review"
212
+ ```
@@ -0,0 +1,284 @@
1
+ # Workflow: synthesize-learnings
2
+
3
+ **Path:** `workflows/learning/synthesize-learnings.md`
4
+
5
+ ---
6
+
7
+ # Synthesize Learnings
8
+
9
+ ## INTENT
10
+ Analyze accumulated retrospectives and feedback to identify patterns, update agent rules, and prioritize common issues. This is the "sleep synthesis" moment where the system consolidates learning across all agents.
11
+
12
+ ## PRINCIPLES
13
+ - **Pattern Recognition**: Identify recurring themes across multiple retrospectives
14
+ - **Evidence-Based Updates**: Only update rules based on statistically significant patterns
15
+ - **Priority Adjustment**: Elevate common issues, deprioritize rare ones
16
+ - **Continuous Improvement**: System gets smarter with each synthesis cycle
17
+
18
+ ## WORKFLOW
19
+
20
+ ### Phase 1: Preparation and Scope Analysis
21
+ **Objective**: Determine what retrospectives and feedback to analyze
22
+
23
+ **Actions**:
24
+ 1. **Check Last Synthesis**: Read `lastSynthesisDate` from `.fraim/config.json`
25
+ 2. **Scan Retrospectives**: Find all files in `retrospectives/` modified after last synthesis date
26
+ 3. **Scan Evidence**: Find all files in `docs/evidence/` with feedback sections modified after last synthesis
27
+ 4. **Validate Scope**: Ensure minimum threshold (e.g., 5+ retrospectives) for meaningful analysis
28
+
29
+ **Output**: List of files to analyze and date range
30
+
31
+ ### Phase 2: Pattern Extraction
32
+ **Objective**: Extract learnings, patterns, and feedback themes
33
+
34
+ **Analysis Categories**:
35
+
36
+ #### A. Failure Patterns
37
+ - **Root Causes**: What went wrong and why
38
+ - **Phase-Specific Issues**: Which phases have highest failure rates
39
+ - **Common Mistakes**: Recurring errors across different agents
40
+ - **Context Patterns**: Types of issues that lead to specific failures
41
+
42
+ #### B. Success Factors
43
+ - **What Worked Well**: Patterns from successful implementations
44
+ - **Effective Approaches**: Techniques that consistently work
45
+ - **Time Efficiency**: Patterns that lead to faster completion
46
+ - **Quality Indicators**: What correlates with high-quality outcomes
47
+
48
+ #### C. Feedback Analysis
49
+ - **User Feedback Themes**: Common types of feedback received
50
+ - **PR Comment Patterns**: Recurring review comments
51
+ - **Learning Gaps**: Areas where agents consistently need guidance
52
+ - **Communication Issues**: Misunderstandings between agents and users
53
+
54
+ **Extraction Process**:
55
+ 1. **Text Analysis**: Parse retrospectives for key sections (Root Cause, Lessons Learned, etc.)
56
+ 2. **Frequency Counting**: Count occurrences of similar patterns
57
+ 3. **Categorization**: Group related patterns together
58
+ 4. **Impact Assessment**: Evaluate severity and frequency of each pattern
59
+
60
+ ### Phase 3: Rule Enhancement
61
+ **Objective**: Update existing rules and create new ones based on patterns
62
+
63
+ **Rule Update Categories**:
64
+
65
+ #### A. High Priority Updates (>60% occurrence)
66
+ - **Mandatory Rule Changes**: Update existing rules with new requirements
67
+ - **New Critical Rules**: Create rules for newly identified critical patterns
68
+ - **Phase Instruction Updates**: Enhance phase-specific guidance
69
+
70
+ #### B. Medium Priority Updates (30-60% occurrence)
71
+ - **Guideline Enhancements**: Add warnings and best practices
72
+ - **Template Updates**: Improve evidence and retrospective templates
73
+ - **Workflow Refinements**: Adjust workflow steps based on learnings
74
+
75
+ #### C. Emerging Patterns (20-30% occurrence)
76
+ - **Watch List**: Track patterns that may become significant
77
+ - **Experimental Guidelines**: Test new approaches
78
+ - **Research Areas**: Identify areas needing further investigation
79
+
80
+ **Update Process**:
81
+ 1. **Identify Target Rules**: Determine which rule files need updates
82
+ 2. **Draft Enhancements**: Create specific rule additions/modifications
83
+ 3. **Validate Changes**: Ensure new rules don't conflict with existing ones
84
+ 4. **Apply Updates**: Modify rule files with new guidance
85
+
86
+ ### Phase 4: Priority Adjustment
87
+ **Objective**: Update system priorities based on pattern frequency and impact
88
+
89
+ **Priority Categories**:
90
+
91
+ #### A. Critical Priorities (Immediate Attention)
92
+ - Issues affecting >60% of implementations
93
+ - High-impact failures (complete rework required)
94
+ - Safety/security concerns
95
+ - User satisfaction issues
96
+
97
+ #### B. Important Priorities (Regular Attention)
98
+ - Issues affecting 30-60% of implementations
99
+ - Medium-impact failures (significant rework)
100
+ - Efficiency improvements
101
+ - Quality enhancements
102
+
103
+ #### C. Monitor Priorities (Periodic Attention)
104
+ - Issues affecting 10-30% of implementations
105
+ - Low-impact failures (minor adjustments)
106
+ - Nice-to-have improvements
107
+ - Experimental features
108
+
109
+ **Priority Updates**:
110
+ 1. **Update Config**: Modify `.fraim/config.json` with new priority rankings
111
+ 2. **Adjust Workflows**: Emphasize high-priority areas in workflow instructions
112
+ 3. **Update Templates**: Add priority-based guidance to templates
113
+
114
+ ### Phase 5: Documentation and Distribution
115
+ **Objective**: Document synthesis results and distribute learnings
116
+
117
+ **Outputs**:
118
+ 1. **Synthesis Report**: Comprehensive analysis of patterns and changes made
119
+ 2. **Updated Rules**: Modified rule files with new guidance
120
+ 3. **Priority Dashboard**: Summary of current system priorities
121
+ 4. **Change Log**: Record of all modifications made
122
+
123
+ **Distribution**:
124
+ 1. **Update Config**: Record synthesis completion date in `.fraim/config.json`
125
+ 2. **Sync Rules**: Ensure updated rules are distributed to all agents
126
+ 3. **Notify Stakeholders**: Create summary for human oversight
127
+ 4. **Archive Results**: Store synthesis report for future reference
128
+
129
+ ## SYNTHESIS REPORT TEMPLATE
130
+
131
+ ```markdown
132
+ # Learning Synthesis Report - {Date}
133
+
134
+ ## Analysis Scope
135
+ - **Period**: {start_date} to {end_date}
136
+ - **Retrospectives Analyzed**: {count}
137
+ - **Evidence Files Reviewed**: {count}
138
+ - **Total Issues Covered**: {count}
139
+
140
+ ## Pattern Analysis
141
+
142
+ ### Critical Patterns (>60% occurrence)
143
+ 1. **{Pattern Name}**: {frequency}% occurrence
144
+ - **Description**: {what happens}
145
+ - **Impact**: {consequences}
146
+ - **Rule Update**: {what was changed}
147
+
148
+ ### Important Patterns (30-60% occurrence)
149
+ [Similar format]
150
+
151
+ ### Emerging Patterns (20-30% occurrence)
152
+ [Similar format]
153
+
154
+ ## Rule Updates Made
155
+ - **{Rule File}**: {description of changes}
156
+ - **{Phase File}**: {description of enhancements}
157
+
158
+ ## Priority Adjustments
159
+ - **Elevated to Critical**: {list}
160
+ - **Elevated to Important**: {list}
161
+ - **Demoted**: {list}
162
+
163
+ ## Recommendations
164
+ 1. **Immediate Actions**: {high-priority items}
165
+ 2. **Medium-term Focus**: {important improvements}
166
+ 3. **Long-term Considerations**: {strategic changes}
167
+
168
+ ## Next Synthesis
169
+ - **Recommended Date**: {date}
170
+ - **Focus Areas**: {areas to watch}
171
+ ```
172
+
173
+ ## CONFIG.JSON INTEGRATION
174
+
175
+ Add to `.fraim/config.json`:
176
+
177
+ ```json
178
+ {
179
+ "learning": {
180
+ "lastSynthesisDate": "2026-01-30T10:00:00Z"
181
+ }
182
+ }
183
+ ```
184
+
185
+ ## PRIORITIZED LEARNINGS FILE
186
+
187
+ Create prioritized learnings file (via `get_fraim_file({ path: "prioritized-learnings.md" })`):
188
+
189
+ ```markdown
190
+ # Prioritized Learnings
191
+
192
+ **Last Updated**: 2026-01-30T10:00:00Z
193
+ **Analysis Period**: 2026-01-15 to 2026-01-30
194
+ **Retrospectives Analyzed**: 12
195
+
196
+ ## Critical Priorities (>60% occurrence)
197
+
198
+ ### Path Resolution Issues (73% occurrence)
199
+ **Pattern**: Agents assume tool paths relative to current directory instead of synced framework structure
200
+ **Impact**: Tool failures, incorrect file operations
201
+ **Rule Updates**:
202
+ - Enhanced `mandatory-pre-completion-reflection.md` with path verification
203
+ - Updated `implement-validate.md` with target repo testing requirement
204
+
205
+ ### Edge Case Testing Missing (67% occurrence)
206
+ **Pattern**: Agents skip edge case testing during validation phase
207
+ **Impact**: Bugs discovered in PR review, rework required
208
+ **Rule Updates**:
209
+ - Added edge case checklist to `implement-validate.md`
210
+ - Enhanced validation evidence requirements
211
+
212
+ ## Important Priorities (30-60% occurrence)
213
+
214
+ ### Context Blindness (47% occurrence)
215
+ **Pattern**: Agents misunderstand project context or user intent
216
+ **Impact**: Implementing wrong solution, user feedback required
217
+ **Rule Updates**:
218
+ - Added context verification step to `implement-scoping.md`
219
+ - Enhanced reflection questions about user intent
220
+
221
+ ## Monitor Priorities (20-30% occurrence)
222
+
223
+ ### Documentation Assumptions (27% occurrence)
224
+ **Pattern**: Agents assume documentation is complete/accurate
225
+ **Impact**: Minor implementation issues, clarification needed
226
+ **Watch Status**: Monitoring for trend increase
227
+
228
+ ## Pattern Thresholds
229
+ - **Critical**: ≥60% occurrence
230
+ - **Important**: 30-59% occurrence
231
+ - **Monitor**: 20-29% occurrence
232
+ - **Minimum Analysis**: 5+ retrospectives
233
+
234
+ ## Next Synthesis
235
+ **Recommended Date**: 2026-02-06
236
+ **Focus Areas**: Path resolution improvements, edge case testing adoption
237
+ ```
238
+ ```
239
+
240
+ ## RULE ENHANCEMENT TARGETS
241
+
242
+ Based on existing rule structure, synthesis would enhance:
243
+
244
+ ### Core Rules
245
+ - `mandatory-pre-completion-reflection.md`: Add pattern-specific reflection questions
246
+ - `agent-testing-guidelines.md`: Include common testing failure patterns
247
+ - `code-quality-and-debugging-patterns.md`: Add newly identified quality issues
248
+
249
+ ### Phase Rules
250
+ - `implement-scoping.md`: Add common scoping mistakes
251
+ - `implement-validate.md`: Include validation patterns that work
252
+ - `implement-code.md`: Add coding patterns and anti-patterns
253
+
254
+ ### New Rules (Created as Needed)
255
+ - `common-failure-patterns.md`: Catalog of frequent mistakes
256
+ - `success-patterns.md`: Proven approaches that work
257
+ - `priority-guidance.md`: Current system priorities and focus areas
258
+
259
+ ## EXECUTION FREQUENCY
260
+
261
+ **Recommended Schedule**:
262
+ - **Weekly**: For active development periods
263
+ - **Bi-weekly**: For stable periods
264
+ - **Monthly**: For maintenance periods
265
+ - **On-demand**: After significant issues or major changes
266
+
267
+ ## SUCCESS METRICS
268
+
269
+ 1. **Pattern Recognition**: % of patterns successfully identified and addressed
270
+ 2. **Rule Effectiveness**: Reduction in occurrence of addressed patterns
271
+ 3. **Agent Performance**: Improvement in success rates and time-to-completion
272
+ 4. **Feedback Quality**: Reduction in repeated feedback themes
273
+ 5. **System Evolution**: Continuous improvement in overall system effectiveness
274
+
275
+ ## SUMMARY
276
+
277
+ The synthesize-learnings workflow creates a continuous improvement loop where:
278
+ 1. **Patterns are identified** from retrospectives and feedback
279
+ 2. **Rules are enhanced** based on statistical evidence
280
+ 3. **Priorities are adjusted** to focus on common issues
281
+ 4. **System gets smarter** with each synthesis cycle
282
+ 5. **Agents benefit** from accumulated organizational learning
283
+
284
+ This transforms individual agent experiences into system-wide intelligence, creating a learning organization that continuously improves its effectiveness.