fraim-framework 2.0.27 → 2.0.30

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 (98) hide show
  1. package/.github/workflows/deploy-fraim.yml +1 -1
  2. package/dist/registry/scripts/build-scripts-generator.js +205 -0
  3. package/dist/registry/scripts/cleanup-branch.js +258 -0
  4. package/dist/registry/scripts/evaluate-code-quality.js +66 -0
  5. package/dist/registry/scripts/exec-with-timeout.js +142 -0
  6. package/dist/registry/scripts/fraim-config.js +61 -0
  7. package/dist/registry/scripts/generate-engagement-emails.js +630 -0
  8. package/dist/registry/scripts/generic-issues-api.js +100 -0
  9. package/dist/registry/scripts/newsletter-helpers.js +731 -0
  10. package/dist/registry/scripts/openapi-generator.js +664 -0
  11. package/dist/registry/scripts/performance/profile-server.js +390 -0
  12. package/dist/registry/scripts/run-thank-you-workflow.js +92 -0
  13. package/dist/registry/scripts/send-newsletter-simple.js +85 -0
  14. package/dist/registry/scripts/send-thank-you-emails.js +54 -0
  15. package/dist/registry/scripts/validate-openapi-limits.js +311 -0
  16. package/dist/registry/scripts/validate-test-coverage.js +262 -0
  17. package/dist/registry/scripts/verify-test-coverage.js +66 -0
  18. package/dist/src/cli/commands/init.js +14 -14
  19. package/dist/src/cli/commands/sync.js +4 -4
  20. package/dist/src/cli/fraim.js +24 -22
  21. package/dist/src/cli/setup/first-run.js +13 -6
  22. package/dist/src/fraim/db-service.js +26 -15
  23. package/dist/src/fraim/issues.js +67 -0
  24. package/dist/src/fraim-mcp-server.js +272 -18
  25. package/dist/src/utils/git-utils.js +1 -1
  26. package/dist/tests/debug-tools.js +79 -0
  27. package/dist/tests/esm-compat.js +11 -0
  28. package/dist/tests/test-chalk-esm-issue.js +159 -0
  29. package/dist/tests/test-chalk-real-world.js +265 -0
  30. package/dist/tests/test-chalk-regression.js +327 -0
  31. package/dist/tests/test-chalk-resolution-issue.js +304 -0
  32. package/dist/tests/test-fraim-install-chalk-issue.js +254 -0
  33. package/dist/tests/test-fraim-issues.js +59 -0
  34. package/dist/tests/test-genericization.js +1 -1
  35. package/dist/tests/test-mcp-connection.js +166 -0
  36. package/dist/tests/test-mcp-issue-integration.js +144 -0
  37. package/dist/tests/test-mcp-lifecycle-methods.js +312 -0
  38. package/dist/tests/test-node-compatibility.js +71 -0
  39. package/dist/tests/test-npm-install.js +66 -0
  40. package/dist/tests/test-npm-resolution-diagnostic.js +140 -0
  41. package/dist/tests/test-session-rehydration.js +145 -0
  42. package/dist/tests/test-standalone.js +2 -8
  43. package/dist/tests/test-telemetry.js +190 -0
  44. package/package.json +10 -8
  45. package/registry/agent-guardrails.md +62 -54
  46. package/registry/rules/agent-success-criteria.md +52 -0
  47. package/registry/rules/agent-testing-guidelines.md +502 -502
  48. package/registry/rules/communication.md +121 -121
  49. package/registry/rules/continuous-learning.md +54 -54
  50. package/registry/rules/ephemeral-execution.md +10 -5
  51. package/registry/rules/hitl-ppe-record-analysis.md +302 -302
  52. package/registry/rules/local-development.md +251 -251
  53. package/registry/rules/software-development-lifecycle.md +104 -104
  54. package/registry/rules/successful-debugging-patterns.md +482 -478
  55. package/registry/rules/telemetry.md +67 -0
  56. package/registry/scripts/build-scripts-generator.ts +216 -215
  57. package/registry/scripts/cleanup-branch.ts +303 -284
  58. package/registry/scripts/code-quality-check.sh +559 -559
  59. package/registry/scripts/detect-tautological-tests.sh +38 -38
  60. package/registry/scripts/evaluate-code-quality.ts +1 -1
  61. package/registry/scripts/generate-engagement-emails.ts +744 -744
  62. package/registry/scripts/generic-issues-api.ts +110 -150
  63. package/registry/scripts/newsletter-helpers.ts +874 -874
  64. package/registry/scripts/openapi-generator.ts +695 -693
  65. package/registry/scripts/performance/profile-server.ts +5 -3
  66. package/registry/scripts/prep-issue.sh +468 -455
  67. package/registry/scripts/validate-openapi-limits.ts +366 -365
  68. package/registry/scripts/validate-test-coverage.ts +280 -280
  69. package/registry/scripts/verify-pr-comments.sh +70 -70
  70. package/registry/scripts/verify-test-coverage.ts +1 -1
  71. package/registry/templates/bootstrap/ARCHITECTURE-TEMPLATE.md +53 -53
  72. package/registry/templates/evidence/Implementation-BugEvidence.md +85 -85
  73. package/registry/templates/evidence/Implementation-FeatureEvidence.md +120 -120
  74. package/registry/templates/marketing/HBR-ARTICLE-TEMPLATE.md +66 -0
  75. package/registry/workflows/bootstrap/create-architecture.md +2 -2
  76. package/registry/workflows/bootstrap/evaluate-code-quality.md +3 -3
  77. package/registry/workflows/bootstrap/verify-test-coverage.md +2 -2
  78. package/registry/workflows/customer-development/insight-analysis.md +156 -156
  79. package/registry/workflows/customer-development/interview-preparation.md +421 -421
  80. package/registry/workflows/customer-development/strategic-brainstorming.md +146 -146
  81. package/registry/workflows/customer-development/thank-customers.md +193 -191
  82. package/registry/workflows/customer-development/weekly-newsletter.md +362 -352
  83. package/registry/workflows/improve-fraim/contribute.md +32 -0
  84. package/registry/workflows/improve-fraim/file-issue.md +32 -0
  85. package/registry/workflows/marketing/hbr-article.md +73 -0
  86. package/registry/workflows/performance/analyze-performance.md +63 -59
  87. package/registry/workflows/product-building/design.md +3 -2
  88. package/registry/workflows/product-building/implement.md +4 -3
  89. package/registry/workflows/product-building/prep-issue.md +28 -17
  90. package/registry/workflows/product-building/resolve.md +3 -2
  91. package/registry/workflows/product-building/retrospect.md +3 -2
  92. package/registry/workflows/product-building/spec.md +5 -4
  93. package/registry/workflows/product-building/test.md +3 -2
  94. package/registry/workflows/quality-assurance/iterative-improvement-cycle.md +562 -562
  95. package/registry/workflows/replicate/website-discovery-analysis.md +3 -3
  96. package/registry/workflows/reviewer/review-implementation-vs-design-spec.md +632 -632
  97. package/registry/workflows/reviewer/review-implementation-vs-feature-spec.md +669 -669
  98. package/tsconfig.json +2 -1
@@ -0,0 +1,66 @@
1
+ # Template: HBR Article
2
+
3
+ Use this template to capture the key checkpoints for every Harvard Business Review (or similar) thought leadership submission so any product team can execute the workflow without re-reading the original issue.
4
+
5
+ ## 1. Story Fit & Intent
6
+ - **Working Title**:
7
+ - **Thesis/Angle**: Why this matters to HBR readers and how it advances the product strategy.
8
+ - **Target Section**: (Strategy / Leadership / Technology / etc.)
9
+ - **Why Now**: Timeliness, data trend, or customer insight.
10
+ - **Assigned Reviewers**: Marketing lead, product lead, exec reviewer.
11
+ - **Central Message**:
12
+ - **Importance / Usefulness / Counterintuitive Angle**:
13
+ - **New Contribution**:
14
+ - **Why Leaders Must Know & How to Apply Today**:
15
+ - **Source of Authority** (previous work, credentials, experience):
16
+
17
+ ## 2. HBR Guideline Checklist
18
+ - [ ] Exclusive submission (no simultaneous submissions).
19
+ - [ ] Word count within HBR limits (note specific count).
20
+ - [ ] Proper byline and contributor list.
21
+ - [ ] Conflicts of interest disclosed (partners, competitors, etc.).
22
+ - [ ] Tone matches HBR's voice (professional, evidence-based).
23
+ - [ ] All supporting data, quotes, and frameworks cite originals.
24
+
25
+ ## 3. Research & References
26
+ - **Customer Evidence**: List customer stories, interviews, or experiments.
27
+ - **Metrics/Data**: Include telemetry or KPIs.
28
+ - **Internal Experiments**: Describe what was learned.
29
+ - **External Sources**: Link to relevant HBR articles or academic references.
30
+ - **Attachments Needed**: Charts, tables, framework diagrams.
31
+ - **Research & Examples That Back the Idea**:
32
+ - **Academic / Professional / Personal Experience to Draw On**:
33
+
34
+ ## 4. Outline Structure
35
+ - Hook + symptom/problem framing.
36
+ - Diagnostic + evidence blocks.
37
+ - Recommendations/practical steps for leaders.
38
+ - Closing call to action aligning to the product roadmap.
39
+ - Note attachments/reference for each section.
40
+
41
+ ## 5. Draft & Versions
42
+ - **Draft Link/Location**:
43
+ - **Word Count**:
44
+ - **Key edits/versions**: (Version 1, 2, etc.)
45
+ - **Peer Review Notes**:
46
+ - **Exec Review Notes**:
47
+ - **Headline Variants**:
48
+
49
+ ## 6. Submission Plan
50
+ - **Email Synopsis**: Subject line + elevator pitch.
51
+ - **Attachments**: Outline, draft, data, disclosure matrix.
52
+ - **Target Submission Window**: Date/time.
53
+ - **Submission Log**: Who submitted, when, portal used.
54
+ - **Follow-up Plan**: Reminder to track publication status and audience engagement.
55
+
56
+ ## 7. Launch Collateral
57
+ - **Blog Post**: Angle, owner, status.
58
+ - **Newsletter Mention**: Message, owner.
59
+ - **Exec Update**: Key points.
60
+ - **Social/LinkedIn**: Thread plan, owner.
61
+ - **Measurement**: Metrics to track (clicks, reads, references).
62
+
63
+ ## 8. Post-Publication Notes
64
+ - Feedback from reviewers or editors.
65
+ - Audience reactions.
66
+ - Learnings for the next HBR submission.
@@ -11,7 +11,7 @@ To analyze the codebase and author a comprehensive `docs/architecture/architectu
11
11
  - Identify main entry points and architectural patterns.
12
12
 
13
13
  2. **Author Architecture Document**
14
- - Locate the `ARCHITECTURE-TEMPLATE.md` in the FRAIM registry templates.
14
+ - Locate the template: `get_fraim_file({ path: "templates/bootstrap/ARCHITECTURE-TEMPLATE.md" })`
15
15
  - Analyze your findings from Step 1.
16
16
  - Create a new file at `docs/architecture/architecture.md`.
17
17
  - Use your intelligence to synthesize the findings into the template:
@@ -21,7 +21,7 @@ To analyze the codebase and author a comprehensive `docs/architecture/architectu
21
21
  - **Data Flow**: Explain the lifecycle of a typical request or action.
22
22
 
23
23
  3. **Update FRAIM Configuration**
24
- - Read `.fraim/config.json`.
24
+ - Read the project configuration file at `.fraim/config.json`.
25
25
  - Update it to include a reference to the architecture document:
26
26
  ```json
27
27
  {
@@ -7,15 +7,15 @@ To perform a deep analysis of the codebase's quality, evaluating it against FRAI
7
7
 
8
8
  1. **Environment Check**
9
9
  - Ensure `npm install` and `npm run build` have been attempted.
10
- - Verify that `.fraim/config.json` is present.
10
+ - Verify that `.fraim` directory (or equivalent config) is present.
11
11
 
12
12
  2. **Run Quality Analysis**
13
13
  - Find the `evaluate-code-quality.ts` script in the FRAIM registry.
14
- - Execute it using `npx tsx <registry_path>/scripts/evaluate-code-quality.ts`.
14
+ - Execute it using `scripts/evaluate-code-quality.ts` (fetch via `get_fraim_file` first).
15
15
 
16
16
  3. **Author Report**
17
17
  - Read the terminal output from Step 2.
18
- - Locate the `CODE-QUALITY-REPORT-TEMPLATE.md` in the registry templates.
18
+ - Locate the template: `get_fraim_file({ path: "templates/bootstrap/CODE-QUALITY-REPORT-TEMPLATE.md" })`
19
19
  - Create a new file at `docs/bootstrap/code-quality-report.md`.
20
20
  - Use your intelligence to synthesize the findings into the template:
21
21
  - Assign a fair grade (A-F) based on build success and diagnostic results.
@@ -15,11 +15,11 @@ To verify the depth and effectiveness of the test suite by comparing actual test
15
15
 
16
16
  3. **Analyze Coverage Gaps**
17
17
  - Find the `verify-test-coverage.ts` script in the FRAIM registry.
18
- - Execute it using `npx tsx <registry_path>/scripts/verify-test-coverage.ts`.
18
+ - Execute it using `scripts/verify-test-coverage.ts` (fetch via `get_fraim_file` first).
19
19
 
20
20
  4. **Author Report**
21
21
  - Read the terminal output from Step 3.
22
- - Locate the `TEST-COVERAGE-REPORT-TEMPLATE.md` in the registry templates.
22
+ - Locate the template: `get_fraim_file({ path: "templates/bootstrap/TEST-COVERAGE-REPORT-TEMPLATE.md" })`
23
23
  - Create a new file at `docs/bootstrap/test-coverage-report.md`.
24
24
  - Use your intelligence to synthesize the findings into the template:
25
25
  - Highlight mission-critical scenarios that lack automated test evidence.
@@ -1,156 +1,156 @@
1
- # Insight Analysis Workflow
2
-
3
- ## INTENT
4
- To help Product Managers extract, structure, and analyze customer insights from interview notes, enabling data-driven product decisions and systematic customer relationship management.
5
-
6
- ## PRINCIPLES
7
- - **Comprehensive Extraction**: Capture all insights from raw notes
8
- - **Structured Analysis**: Organize insights into actionable categories
9
- - **Customer Scoring**: Evaluate customer fit and prioritization
10
- - **Follow-up Generation**: Create personalized follow-up communications
11
-
12
- ## WORKFLOW TRIGGER
13
- **PM explicitly starts this workflow**:
14
- - "Starting Insight Analysis for [Customer Name]"
15
- - "I want to analyze the interview with [Customer Name]"
16
- - "Following the insight analysis workflow"
17
-
18
- ## INPUT REQUIREMENTS
19
- **PM provides**:
20
- - The `[customer-name]-interview-prep.md` file that needs to be updated
21
- - Raw interview notes in any format (bullet points, paragraphs, voice-to-text, etc.)
22
- - Brief unstructured thoughts about the interview (optional but helpful)
23
-
24
- ## AI AGENT PROCESS
25
-
26
- ### Step 1: Insight Extraction & Template Update
27
- **AI Agent Analysis Process**:
28
- 1. **Read Existing Prep File**
29
- - Load the `[customer-name]-interview-prep.md` file
30
- - Understand the customer context and research from preparation phase
31
- - Review the pre-filled template structure
32
-
33
- 2. **Parse Raw Notes**
34
- - Extract customer quotes and key statements
35
- - Identify pain points and challenges
36
- - Capture success and failure criteria
37
- - Note feature requests and preferences
38
- - **Date Handling**: If user provides relative time references (e.g., "yesterday", "today", "last Friday"), run `new Date()` to determine the actual date and use that in the analysis file
39
-
40
- 3. **Create Analysis File**
41
- - Create new file: `[customer-name]-interview-analysis.md`
42
- - Include comprehensive analysis with customer scoring and insights
43
- - Reference the prep file for context but keep files separate
44
- - Include follow-up actions and next steps
45
-
46
- ### Step 2: Customer Scoring & Prioritization
47
- **AI Agent Scoring Process**:
48
- 1. **Customer Fit Scoring (1-10)**
49
- - Target customer segment alignment
50
- - Pain point severity and frequency
51
- - Budget and decision-making authority
52
- - Influence and referral potential
53
-
54
- 2. **Urgency Assessment**
55
- - Active seeking of solutions
56
- - Budget allocation and timeline
57
- - Competitive pressure
58
- - Implementation readiness
59
-
60
- 3. **Willingness to Pay**
61
- - Budget authority and constraints
62
- - Current spending on similar solutions
63
- - Value perception and ROI understanding
64
-
65
- ### Step 3: Follow-up Generation
66
- **AI Agent Communication Process**:
67
- 1. **Generate Follow-up Email**
68
- - Use follow-up email templates as reference
69
- - Create personalized email based on interview content
70
- - Include key takeaways confirmation
71
- - Add specific next steps and timeline
72
- - Reference customer quotes and insights
73
-
74
- 2. **Follow-up Questions**
75
- - Clarify any gaps in understanding
76
- - Deepen insights on key topics
77
- - Validate assumptions and priorities
78
- - Explore referral opportunities
79
-
80
- 3. **Next Steps Planning**
81
- - Demo scheduling if appropriate
82
- - Additional stakeholder meetings
83
- - Resource sharing and education
84
- - Timeline and milestone setting
85
-
86
- ### Step 4: File Creation & Finalization
87
- **AI Agent File Management**:
88
- 1. **Create Analysis File**
89
- - Create `[customer-name]-interview-analysis.md` with comprehensive analysis
90
- - Include customer scoring, insights, and follow-up actions
91
- - Reference the prep file for context but keep files separate
92
-
93
- 2. **Preserve Prep File**
94
- - Keep `[customer-name]-interview-prep.md` unchanged
95
- - Maintains clean separation between preparation and analysis
96
- - Both files can be referenced independently
97
-
98
- ## OUTPUT TEMPLATE
99
-
100
- ### Analysis File Template
101
- **Template**: `.ai-agents/templates/customer-development/insight-analysis-template.md`
102
- **File Location**: `docs/customer-development/[customer-name]-interview-analysis.md`
103
-
104
- **Process**:
105
- 1. Use the insight analysis template
106
- 2. Extract insights from raw interview notes
107
- 3. Score customer based on fit, urgency, willingness to pay, and likelihood to buy
108
- 4. Include direct customer quotes for authenticity
109
- 5. Create next steps and follow-up questions
110
- 6. Reference the original prep file for context
111
- 7. **Generate personalized follow-up email** using follow-up email templates as reference `.ai-agents/templates/customer-development/follow-up-email-templates.md` ... add this to the end of the analysis file.
112
-
113
- ## EXAMPLES
114
-
115
- ### Good: Insight Analysis
116
- ```
117
- Input:
118
- - File: ronil-dhruva-interview-prep.md
119
- - Raw notes: "Ronil mentioned calendar conflicts, uses Outlook, frustrated with rescheduling, would pay $50/month, concerned about AI decisions. He was really engaged and seemed to understand the problem well."
120
-
121
- AI Agent Process:
122
- 1. Reads existing prep file with LinkedIn research
123
- 2. Extracts insights from raw notes
124
- 3. Creates separate analysis file: ronil-dhruva-interview-analysis.md
125
- 4. Preserves original prep file unchanged
126
- 5. **Generates personalized follow-up email** using follow-up email templates
127
- 6. Creates next steps and follow-up questions
128
-
129
- Output:
130
- - New analysis file: ronil-dhruva-interview-analysis.md
131
- - Original prep file: ronil-dhruva-interview-prep.md (unchanged)
132
- - Customer score: 8/10 (high fit, clear pain points, enterprise budget)
133
- - **Personalized follow-up email** using template structure with customer-specific content
134
- - Next questions: "What specific hierarchy rules should AI respect?"
135
- ```
136
-
137
- ### Bad: Surface-Level Analysis
138
- ```
139
- Input:
140
- - File: ronil-dhruva-interview-prep.md
141
- - Raw notes: "Ronil interview went well"
142
-
143
- AI Agent Output:
144
- - Generic analysis with no specific insights
145
- - No customer scoring or prioritization
146
- - No follow-up recommendations
147
- - No actionable next steps
148
-
149
- Result: Lost insights, no clear next steps, wasted prep work
150
- ```
151
-
152
- ## SUCCESS METRICS
153
- - **Insight Extraction**: 95% of key insights captured from raw notes
154
- - **Customer Scoring**: Consistent scoring across all customers
155
- - **Follow-up Quality**: 80% of follow-up emails result in positive responses
156
- - **Action Clarity**: Clear next steps for every customer
1
+ # Insight Analysis Workflow
2
+
3
+ ## INTENT
4
+ To help Product Managers extract, structure, and analyze customer insights from interview notes, enabling data-driven product decisions and systematic customer relationship management.
5
+
6
+ ## PRINCIPLES
7
+ - **Comprehensive Extraction**: Capture all insights from raw notes
8
+ - **Structured Analysis**: Organize insights into actionable categories
9
+ - **Customer Scoring**: Evaluate customer fit and prioritization
10
+ - **Follow-up Generation**: Create personalized follow-up communications
11
+
12
+ ## WORKFLOW TRIGGER
13
+ **PM explicitly starts this workflow**:
14
+ - "Starting Insight Analysis for [Customer Name]"
15
+ - "I want to analyze the interview with [Customer Name]"
16
+ - "Following the insight analysis workflow"
17
+
18
+ ## INPUT REQUIREMENTS
19
+ **PM provides**:
20
+ - The `[customer-name]-interview-prep.md` file that needs to be updated
21
+ - Raw interview notes in any format (bullet points, paragraphs, voice-to-text, etc.)
22
+ - Brief unstructured thoughts about the interview (optional but helpful)
23
+
24
+ ## AI AGENT PROCESS
25
+
26
+ ### Step 1: Insight Extraction & Template Update
27
+ **AI Agent Analysis Process**:
28
+ 1. **Read Existing Prep File**
29
+ - Load the `[customer-name]-interview-prep.md` file
30
+ - Understand the customer context and research from preparation phase
31
+ - Review the pre-filled template structure
32
+
33
+ 2. **Parse Raw Notes**
34
+ - Extract customer quotes and key statements
35
+ - Identify pain points and challenges
36
+ - Capture success and failure criteria
37
+ - Note feature requests and preferences
38
+ - **Date Handling**: If user provides relative time references (e.g., "yesterday", "today", "last Friday"), run `new Date()` to determine the actual date and use that in the analysis file
39
+
40
+ 3. **Create Analysis File**
41
+ - Create new file: `[customer-name]-interview-analysis.md`
42
+ - Include comprehensive analysis with customer scoring and insights
43
+ - Reference the prep file for context but keep files separate
44
+ - Include follow-up actions and next steps
45
+
46
+ ### Step 2: Customer Scoring & Prioritization
47
+ **AI Agent Scoring Process**:
48
+ 1. **Customer Fit Scoring (1-10)**
49
+ - Target customer segment alignment
50
+ - Pain point severity and frequency
51
+ - Budget and decision-making authority
52
+ - Influence and referral potential
53
+
54
+ 2. **Urgency Assessment**
55
+ - Active seeking of solutions
56
+ - Budget allocation and timeline
57
+ - Competitive pressure
58
+ - Implementation readiness
59
+
60
+ 3. **Willingness to Pay**
61
+ - Budget authority and constraints
62
+ - Current spending on similar solutions
63
+ - Value perception and ROI understanding
64
+
65
+ ### Step 3: Follow-up Generation
66
+ **AI Agent Communication Process**:
67
+ 1. **Generate Follow-up Email**
68
+ - Use follow-up email templates as reference
69
+ - Create personalized email based on interview content
70
+ - Include key takeaways confirmation
71
+ - Add specific next steps and timeline
72
+ - Reference customer quotes and insights
73
+
74
+ 2. **Follow-up Questions**
75
+ - Clarify any gaps in understanding
76
+ - Deepen insights on key topics
77
+ - Validate assumptions and priorities
78
+ - Explore referral opportunities
79
+
80
+ 3. **Next Steps Planning**
81
+ - Demo scheduling if appropriate
82
+ - Additional stakeholder meetings
83
+ - Resource sharing and education
84
+ - Timeline and milestone setting
85
+
86
+ ### Step 4: File Creation & Finalization
87
+ **AI Agent File Management**:
88
+ 1. **Create Analysis File**
89
+ - Create `[customer-name]-interview-analysis.md` with comprehensive analysis
90
+ - Include customer scoring, insights, and follow-up actions
91
+ - Reference the prep file for context but keep files separate
92
+
93
+ 2. **Preserve Prep File**
94
+ - Keep `[customer-name]-interview-prep.md` unchanged
95
+ - Maintains clean separation between preparation and analysis
96
+ - Both files can be referenced independently
97
+
98
+ ## OUTPUT TEMPLATE
99
+
100
+ ### Analysis File Template
101
+ **Template**: Retrieve via `get_fraim_file({ path: "templates/customer-development/insight-analysis-template.md" })`
102
+ **File Location**: `docs/customer-development/[customer-name]-interview-analysis.md`
103
+
104
+ **Process**:
105
+ 1. Use the insight analysis template
106
+ 2. Extract insights from raw interview notes
107
+ 3. Score customer based on fit, urgency, willingness to pay, and likelihood to buy
108
+ 4. Include direct customer quotes for authenticity
109
+ 5. Create next steps and follow-up questions
110
+ 6. Reference the original prep file for context
111
+ 7. **Generate personalized follow-up email** using follow-up email templates as reference `get_fraim_file({ path: "templates/customer-development/follow-up-email-templates.md" })` ... add this to the end of the analysis file.
112
+
113
+ ## EXAMPLES
114
+
115
+ ### Good: Insight Analysis
116
+ ```
117
+ Input:
118
+ - File: ronil-dhruva-interview-prep.md
119
+ - Raw notes: "Ronil mentioned calendar conflicts, uses Outlook, frustrated with rescheduling, would pay $50/month, concerned about AI decisions. He was really engaged and seemed to understand the problem well."
120
+
121
+ AI Agent Process:
122
+ 1. Reads existing prep file with LinkedIn research
123
+ 2. Extracts insights from raw notes
124
+ 3. Creates separate analysis file: ronil-dhruva-interview-analysis.md
125
+ 4. Preserves original prep file unchanged
126
+ 5. **Generates personalized follow-up email** using follow-up email templates
127
+ 6. Creates next steps and follow-up questions
128
+
129
+ Output:
130
+ - New analysis file: ronil-dhruva-interview-analysis.md
131
+ - Original prep file: ronil-dhruva-interview-prep.md (unchanged)
132
+ - Customer score: 8/10 (high fit, clear pain points, enterprise budget)
133
+ - **Personalized follow-up email** using template structure with customer-specific content
134
+ - Next questions: "What specific hierarchy rules should AI respect?"
135
+ ```
136
+
137
+ ### Bad: Surface-Level Analysis
138
+ ```
139
+ Input:
140
+ - File: ronil-dhruva-interview-prep.md
141
+ - Raw notes: "Ronil interview went well"
142
+
143
+ AI Agent Output:
144
+ - Generic analysis with no specific insights
145
+ - No customer scoring or prioritization
146
+ - No follow-up recommendations
147
+ - No actionable next steps
148
+
149
+ Result: Lost insights, no clear next steps, wasted prep work
150
+ ```
151
+
152
+ ## SUCCESS METRICS
153
+ - **Insight Extraction**: 95% of key insights captured from raw notes
154
+ - **Customer Scoring**: Consistent scoring across all customers
155
+ - **Follow-up Quality**: 80% of follow-up emails result in positive responses
156
+ - **Action Clarity**: Clear next steps for every customer