cmp-standards 2.7.0 → 2.8.0

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 (162) hide show
  1. package/README.md +633 -633
  2. package/dist/cache/EmbeddingCache.d.ts +110 -0
  3. package/dist/cache/EmbeddingCache.d.ts.map +1 -0
  4. package/dist/cache/EmbeddingCache.js +239 -0
  5. package/dist/cache/EmbeddingCache.js.map +1 -0
  6. package/dist/cache/index.d.ts +6 -0
  7. package/dist/cache/index.d.ts.map +1 -0
  8. package/dist/cache/index.js +6 -0
  9. package/dist/cache/index.js.map +1 -0
  10. package/dist/cli/index.js +0 -0
  11. package/dist/db/cloud.d.ts +1 -0
  12. package/dist/db/cloud.d.ts.map +1 -1
  13. package/dist/db/drizzle-client.d.ts +10 -1
  14. package/dist/db/drizzle-client.d.ts.map +1 -1
  15. package/dist/db/drizzle-client.js +57 -3
  16. package/dist/db/drizzle-client.js.map +1 -1
  17. package/dist/db/errors.d.ts +13 -1
  18. package/dist/db/errors.d.ts.map +1 -1
  19. package/dist/db/errors.js +49 -5
  20. package/dist/db/errors.js.map +1 -1
  21. package/dist/db/migrations.d.ts +42 -0
  22. package/dist/db/migrations.d.ts.map +1 -0
  23. package/dist/db/migrations.js +173 -0
  24. package/dist/db/migrations.js.map +1 -0
  25. package/dist/db/turso-client.d.ts +15 -3
  26. package/dist/db/turso-client.d.ts.map +1 -1
  27. package/dist/db/turso-client.js +50 -39
  28. package/dist/db/turso-client.js.map +1 -1
  29. package/dist/eslint/rules/no-async-useeffect.js +6 -6
  30. package/dist/events/EventBus.d.ts +97 -0
  31. package/dist/events/EventBus.d.ts.map +1 -0
  32. package/dist/events/EventBus.js +256 -0
  33. package/dist/events/EventBus.js.map +1 -0
  34. package/dist/events/index.d.ts +7 -0
  35. package/dist/events/index.d.ts.map +1 -0
  36. package/dist/events/index.js +9 -0
  37. package/dist/events/index.js.map +1 -0
  38. package/dist/events/types.d.ts +989 -0
  39. package/dist/events/types.d.ts.map +1 -0
  40. package/dist/events/types.js +136 -0
  41. package/dist/events/types.js.map +1 -0
  42. package/dist/experts/ConsensusEngine.d.ts +57 -0
  43. package/dist/experts/ConsensusEngine.d.ts.map +1 -0
  44. package/dist/experts/ConsensusEngine.js +146 -0
  45. package/dist/experts/ConsensusEngine.js.map +1 -0
  46. package/dist/experts/ExpertPanelService.d.ts +84 -0
  47. package/dist/experts/ExpertPanelService.d.ts.map +1 -0
  48. package/dist/experts/ExpertPanelService.js +204 -0
  49. package/dist/experts/ExpertPanelService.js.map +1 -0
  50. package/dist/experts/ExpertRouter.d.ts +68 -0
  51. package/dist/experts/ExpertRouter.d.ts.map +1 -0
  52. package/dist/experts/ExpertRouter.js +374 -0
  53. package/dist/experts/ExpertRouter.js.map +1 -0
  54. package/dist/experts/VoteCollector.d.ts +58 -0
  55. package/dist/experts/VoteCollector.d.ts.map +1 -0
  56. package/dist/experts/VoteCollector.js +146 -0
  57. package/dist/experts/VoteCollector.js.map +1 -0
  58. package/dist/experts/index.d.ts +9 -0
  59. package/dist/experts/index.d.ts.map +1 -0
  60. package/dist/experts/index.js +13 -0
  61. package/dist/experts/index.js.map +1 -0
  62. package/dist/hooks/cloud-pre-tool-use.js +20 -20
  63. package/dist/hooks/expert-review.d.ts +74 -0
  64. package/dist/hooks/expert-review.d.ts.map +1 -0
  65. package/dist/hooks/expert-review.js +220 -0
  66. package/dist/hooks/expert-review.js.map +1 -0
  67. package/dist/hooks/index.d.ts +1 -0
  68. package/dist/hooks/index.d.ts.map +1 -1
  69. package/dist/hooks/index.js +2 -0
  70. package/dist/hooks/index.js.map +1 -1
  71. package/dist/index.d.ts +13 -0
  72. package/dist/index.d.ts.map +1 -1
  73. package/dist/index.js +22 -0
  74. package/dist/index.js.map +1 -1
  75. package/dist/interfaces/index.d.ts +450 -0
  76. package/dist/interfaces/index.d.ts.map +1 -0
  77. package/dist/interfaces/index.js +50 -0
  78. package/dist/interfaces/index.js.map +1 -0
  79. package/dist/mcp/schemas.d.ts +278 -0
  80. package/dist/mcp/schemas.d.ts.map +1 -0
  81. package/dist/mcp/schemas.js +166 -0
  82. package/dist/mcp/schemas.js.map +1 -0
  83. package/dist/mcp/server.d.ts.map +1 -1
  84. package/dist/mcp/server.js +14 -3
  85. package/dist/mcp/server.js.map +1 -1
  86. package/dist/patterns/feedback-loop.d.ts +264 -0
  87. package/dist/patterns/feedback-loop.d.ts.map +1 -0
  88. package/dist/patterns/feedback-loop.js +329 -0
  89. package/dist/patterns/feedback-loop.js.map +1 -0
  90. package/dist/patterns/index.d.ts +9 -0
  91. package/dist/patterns/index.d.ts.map +1 -0
  92. package/dist/patterns/index.js +9 -0
  93. package/dist/patterns/index.js.map +1 -0
  94. package/dist/patterns/lifecycle.d.ts +88 -0
  95. package/dist/patterns/lifecycle.d.ts.map +1 -0
  96. package/dist/patterns/lifecycle.js +284 -0
  97. package/dist/patterns/lifecycle.js.map +1 -0
  98. package/dist/patterns/registry.d.ts +142 -0
  99. package/dist/patterns/registry.d.ts.map +1 -0
  100. package/dist/patterns/registry.js +442 -0
  101. package/dist/patterns/registry.js.map +1 -0
  102. package/dist/performance/Debouncer.d.ts +91 -0
  103. package/dist/performance/Debouncer.d.ts.map +1 -0
  104. package/dist/performance/Debouncer.js +198 -0
  105. package/dist/performance/Debouncer.js.map +1 -0
  106. package/dist/performance/MemoryDecay.d.ts +82 -0
  107. package/dist/performance/MemoryDecay.d.ts.map +1 -0
  108. package/dist/performance/MemoryDecay.js +153 -0
  109. package/dist/performance/MemoryDecay.js.map +1 -0
  110. package/dist/performance/index.d.ts +7 -0
  111. package/dist/performance/index.d.ts.map +1 -0
  112. package/dist/performance/index.js +9 -0
  113. package/dist/performance/index.js.map +1 -0
  114. package/dist/schema/expert-types.d.ts +395 -0
  115. package/dist/schema/expert-types.d.ts.map +1 -0
  116. package/dist/schema/expert-types.js +250 -0
  117. package/dist/schema/expert-types.js.map +1 -0
  118. package/dist/services/ContextGenerator.js +7 -7
  119. package/dist/services/PlanManager.d.ts +1 -1
  120. package/dist/services/PlanManager.d.ts.map +1 -1
  121. package/dist/services/PlanManager.js +26 -6
  122. package/dist/services/PlanManager.js.map +1 -1
  123. package/dist/services/ProjectScaffold.js +76 -76
  124. package/dist/services/memory-router.js +35 -35
  125. package/dist/services/pattern-tracker.js +90 -90
  126. package/dist/services/semantic-search.js +2 -2
  127. package/package.json +105 -104
  128. package/standards/README.md +50 -50
  129. package/standards/experts/expert-routing.md +215 -215
  130. package/standards/general/code-quality.md +86 -86
  131. package/standards/general/memory-usage.md +205 -205
  132. package/standards/general/sync-workflow.md +235 -235
  133. package/standards/general/workflow.md +82 -82
  134. package/standards/hooks/mandatory-tracking.md +446 -446
  135. package/standards/infrastructure/cloud-database.md +287 -287
  136. package/standards/mcp/server-design.md +243 -243
  137. package/standards/mcp/tool-patterns.md +354 -354
  138. package/standards/skills/skill-structure.md +286 -286
  139. package/standards/skills/workflow-design.md +323 -323
  140. package/standards/tools/tool-design.md +297 -297
  141. package/templates/agents/architecture-expert.md +61 -61
  142. package/templates/agents/database-expert.md +62 -62
  143. package/templates/agents/documentation-expert.md +57 -57
  144. package/templates/agents/memory-expert.md +88 -88
  145. package/templates/agents/performance-expert.md +61 -61
  146. package/templates/agents/security-expert.md +59 -59
  147. package/templates/agents/ux-expert.md +63 -63
  148. package/templates/agents/worker.md +75 -75
  149. package/templates/ai-skills/SKILL_TEMPLATE.md +55 -55
  150. package/templates/claude-settings.json +72 -72
  151. package/templates/commands/experts.md +138 -138
  152. package/templates/hooks/README.md +158 -158
  153. package/templates/hooks/project.config.json.template +77 -77
  154. package/templates/hooks/settings.local.json.template +57 -57
  155. package/templates/memory-config.json +56 -56
  156. package/templates/memory-config.schema.json +212 -212
  157. package/templates/settings.json +58 -58
  158. package/templates/skills/continue.md +205 -205
  159. package/templates/workflows/business-improvement.md +264 -264
  160. package/templates/workflows/expert-review.md +153 -153
  161. package/templates/workflows/internal-app.md +245 -245
  162. package/templates/workflows/sync-docs.md +187 -187
@@ -1,264 +1,264 @@
1
- ---
2
- description: "/business-improvement - Self-improving research system that enhances business documents through web research"
3
- ---
4
-
5
- # /business-improvement - Self-Improving Research System
6
-
7
- > **Purpose**: Continuously improve business knowledge base through iterative web research
8
- > **Philosophy**: Research -> Learn -> Document -> Generate Follow-ups -> Repeat
9
-
10
- ---
11
-
12
- ## Overview
13
-
14
- The `/business-improvement` command is a **self-improving research engine** that:
15
-
16
- 1. **Researches** - Executes web searches on business/marketing topics
17
- 2. **Learns** - Extracts key insights and facts from results
18
- 3. **Documents** - Updates or creates files with new knowledge
19
- 4. **Generates** - Produces derived queries for next research cycle
20
- 5. **Tracks** - Logs every search, learning, and improvement for meta-analysis
21
-
22
- ---
23
-
24
- ## Execution Protocol
25
-
26
- ### Phase 1: Pre-Research Analysis
27
-
28
- 1. **Review current knowledge state**
29
- - Check existing business documentation
30
- - Identify knowledge gaps and stale content
31
-
32
- 2. **Identify improvement opportunities**
33
- - Review documents for incomplete sections
34
- - Check dates of last updates (stale content = improvement opportunity)
35
- - Identify documents with completeness < 80%
36
-
37
- 3. **Select focus area** based on priority:
38
- | Priority | Topic Area | Documents |
39
- |:---|:---|:---|
40
- | HIGH | Strategic | Business Plan, SWOT, Value Proposition |
41
- | MEDIUM | Market Intel | Competitor Analysis, Market Trends |
42
- | LOW | Campaign | Content Pillars, Messaging Framework |
43
-
44
- ---
45
-
46
- ### Phase 2: Research Execution
47
-
48
- 4. **Initial Research Query**
49
- - Start with a focused, specific query related to the focus area
50
- - Example: `"[industry] management software trends [year]"`
51
-
52
- 5. **Execute web search**
53
- - Use WebSearch tool with focused query
54
- - Capture top 5-7 results
55
-
56
- 6. **Extract Knowledge**
57
- For each search result, extract:
58
- ```json
59
- {
60
- "query": "original search query",
61
- "source": "URL of the source",
62
- "learnings": [
63
- "Key fact or insight 1",
64
- "Key fact or insight 2"
65
- ],
66
- "confidence": 85,
67
- "derivedQueries": [
68
- "Follow-up query based on learning 1",
69
- "Follow-up query based on learning 2"
70
- ]
71
- }
72
- ```
73
-
74
- 7. **Log to Research Tracker**
75
- - Track: Query -> Results -> Learnings -> Follow-ups
76
-
77
- ---
78
-
79
- ### Phase 3: Knowledge Integration
80
-
81
- 8. **Update existing documents** (PREFERRED)
82
- - If learning fits existing document section -> enhance it
83
- - Add new data points, statistics, competitor info
84
- - Update timestamps
85
-
86
- 9. **Create new section** (if appropriate)
87
- - Only if learning reveals entirely new topic area
88
- - Must be extremely relevant to the business
89
-
90
- 10. **Format documents beautifully**
91
- - Use structured markdown for visual appeal
92
- - Include tables for comparative data
93
- - Use H1/H2/H3, lists, quotes
94
- - Add emojis sparingly for scanability
95
-
96
- ---
97
-
98
- ### Phase 4: Session Documentation
99
-
100
- 11. **Create Research Session Report**
101
- ```json
102
- {
103
- "sessionId": "ULID",
104
- "date": "YYYY-MM-DD",
105
- "topic": "Research Focus Area",
106
- "queriesExecuted": 5,
107
- "learningsAcquired": 12,
108
- "documentsUpdated": ["value_proposition", "swot"],
109
- "derivedQueriesPending": [
110
- "Follow-up query 1",
111
- "Follow-up query 2"
112
- ],
113
- "nextSessionPriority": "HIGH"
114
- }
115
- ```
116
-
117
- 12. **Update task tracker**
118
- - Mark improvements in task list
119
- - Add new items for pending derived queries
120
-
121
- ---
122
-
123
- ## Research Query Framework
124
-
125
- ### Query Templates by Topic
126
-
127
- **Competitor Analysis:**
128
- - `"[Competitor] pricing [year]"`
129
- - `"[Competitor] features comparison"`
130
- - `"[Competitor] customer reviews [year]"`
131
-
132
- **Market Trends:**
133
- - `"[industry] market size [year]"`
134
- - `"[industry] software trends"`
135
- - `"B2B SaaS [industry]"`
136
-
137
- **Audience Research:**
138
- - `"[target audience] pain points"`
139
- - `"[industry] software needs"`
140
- - `"[user type] app features"`
141
-
142
- **Product Positioning:**
143
- - `"all-in-one [industry] management"`
144
- - `"[product type] software comparison"`
145
- - `"[industry] operations automation"`
146
-
147
- ---
148
-
149
- ## Expert Review Integration
150
-
151
- After completing research, invoke `/experts` for validation:
152
-
153
- - **Security Expert**: No sensitive data exposed
154
- - **Architecture Expert**: Document structure valid
155
- - **UX Expert**: Content follows brand voice
156
- - **Memory Expert**: Patterns detected, auto-improvements triggered
157
-
158
- ---
159
-
160
- ## Document Quality Standards
161
-
162
- ### Visual Format Requirements
163
-
164
- Every document must have:
165
- - Clear H1 title
166
- - Executive summary (2-3 sentences)
167
- - Structured sections with H2/H3
168
- - Tables for comparative data
169
- - Bullet lists for quick scanning
170
- - Timestamps (created/updated)
171
- - Source citations where applicable
172
-
173
- ### Content Quality Checks
174
- - No placeholder text ("lorem ipsum", "TBD")
175
- - No outdated data (> 6 months old)
176
- - No unsupported claims
177
- - Specific numbers and dates
178
- - Competitor names and products
179
- - Actionable insights
180
-
181
- ---
182
-
183
- ## Example Session Output
184
-
185
- ```
186
- ## Business Improvement Session
187
-
188
- Date: YYYY-MM-DD
189
- Focus: Competitor Pricing Update
190
-
191
- ### Queries Executed
192
- 1. "[Competitor A] pricing model [year]" -> 3 learnings
193
- 2. "[Competitor B] subscription tiers" -> 2 learnings
194
- 3. "[Competitor A] vs [Competitor B]" -> 4 learnings
195
-
196
- ### Knowledge Acquired
197
- - Competitor A uses flat monthly fee (no commission)
198
- - Competitor B: $99-499/month based on usage
199
- - Competitor C: Legacy pricing, higher cost
200
- - Market trend: Moving away from per-transaction %
201
-
202
- ### Documents Updated
203
- - Value Proposition Canvas - Added competitive pricing section
204
- - SWOT Analysis - Updated threats with pricing pressure
205
-
206
- ### Derived Queries (Next Session)
207
- - "[Competitor A] API capabilities"
208
- - "[Industry] software free trial comparison"
209
- - "[Market segment] market share [year]"
210
-
211
- ### Session Score: 4/5
212
- Learnings: 9 | Documents: 2 | Next queries: 3
213
- ```
214
-
215
- ---
216
-
217
- ## Automation Hooks
218
-
219
- ### Recommended Schedule
220
- - **Weekly**: Run basic improvement cycle (1 focus area)
221
- - **Monthly**: Deep dive on all priority areas
222
- - **Quarterly**: Full competitive landscape refresh
223
-
224
- ### Integration with CLI
225
- ```bash
226
- # Future enhancement
227
- cmp-memory improve --topic "competitors"
228
- cmp-memory improve --pending # Process derived queries
229
- cmp-memory improve --status # Show improvement metrics
230
- ```
231
-
232
- ---
233
-
234
- ## Success Metrics
235
-
236
- The system is working correctly if:
237
-
238
- - **Query coverage** - All topic areas researched quarterly
239
- - **Learning rate** - 5+ new insights per session
240
- - **Document freshness** - No content older than 3 months
241
- - **Derived query backlog** - Always have next topics ready
242
- - **Pattern detection** - Memory Expert finds recurring themes
243
-
244
- ---
245
-
246
- ## When to Use /business-improvement
247
-
248
- ### Use When:
249
- - Need to update market intelligence
250
- - Competitor released new features/pricing
251
- - Preparing for investor/client presentations
252
- - Monthly knowledge refresh cycle
253
- - After major product launch by competitor
254
-
255
- ### Don't Use For:
256
- - Quick fact-checking (use direct web search)
257
- - Creating new documents from scratch (use `/experts implement`)
258
- - Trivial content updates (edit directly)
259
-
260
- ---
261
-
262
- The `/business-improvement` command transforms your business knowledge base into a **living, self-improving system**. Each research session makes the next one more targeted through derived queries.
263
-
264
- **Pro tip**: Run `/business-improvement` weekly on rotating topics to maintain fresh, competitive intelligence.
1
+ ---
2
+ description: "/business-improvement - Self-improving research system that enhances business documents through web research"
3
+ ---
4
+
5
+ # /business-improvement - Self-Improving Research System
6
+
7
+ > **Purpose**: Continuously improve business knowledge base through iterative web research
8
+ > **Philosophy**: Research -> Learn -> Document -> Generate Follow-ups -> Repeat
9
+
10
+ ---
11
+
12
+ ## Overview
13
+
14
+ The `/business-improvement` command is a **self-improving research engine** that:
15
+
16
+ 1. **Researches** - Executes web searches on business/marketing topics
17
+ 2. **Learns** - Extracts key insights and facts from results
18
+ 3. **Documents** - Updates or creates files with new knowledge
19
+ 4. **Generates** - Produces derived queries for next research cycle
20
+ 5. **Tracks** - Logs every search, learning, and improvement for meta-analysis
21
+
22
+ ---
23
+
24
+ ## Execution Protocol
25
+
26
+ ### Phase 1: Pre-Research Analysis
27
+
28
+ 1. **Review current knowledge state**
29
+ - Check existing business documentation
30
+ - Identify knowledge gaps and stale content
31
+
32
+ 2. **Identify improvement opportunities**
33
+ - Review documents for incomplete sections
34
+ - Check dates of last updates (stale content = improvement opportunity)
35
+ - Identify documents with completeness < 80%
36
+
37
+ 3. **Select focus area** based on priority:
38
+ | Priority | Topic Area | Documents |
39
+ |:---|:---|:---|
40
+ | HIGH | Strategic | Business Plan, SWOT, Value Proposition |
41
+ | MEDIUM | Market Intel | Competitor Analysis, Market Trends |
42
+ | LOW | Campaign | Content Pillars, Messaging Framework |
43
+
44
+ ---
45
+
46
+ ### Phase 2: Research Execution
47
+
48
+ 4. **Initial Research Query**
49
+ - Start with a focused, specific query related to the focus area
50
+ - Example: `"[industry] management software trends [year]"`
51
+
52
+ 5. **Execute web search**
53
+ - Use WebSearch tool with focused query
54
+ - Capture top 5-7 results
55
+
56
+ 6. **Extract Knowledge**
57
+ For each search result, extract:
58
+ ```json
59
+ {
60
+ "query": "original search query",
61
+ "source": "URL of the source",
62
+ "learnings": [
63
+ "Key fact or insight 1",
64
+ "Key fact or insight 2"
65
+ ],
66
+ "confidence": 85,
67
+ "derivedQueries": [
68
+ "Follow-up query based on learning 1",
69
+ "Follow-up query based on learning 2"
70
+ ]
71
+ }
72
+ ```
73
+
74
+ 7. **Log to Research Tracker**
75
+ - Track: Query -> Results -> Learnings -> Follow-ups
76
+
77
+ ---
78
+
79
+ ### Phase 3: Knowledge Integration
80
+
81
+ 8. **Update existing documents** (PREFERRED)
82
+ - If learning fits existing document section -> enhance it
83
+ - Add new data points, statistics, competitor info
84
+ - Update timestamps
85
+
86
+ 9. **Create new section** (if appropriate)
87
+ - Only if learning reveals entirely new topic area
88
+ - Must be extremely relevant to the business
89
+
90
+ 10. **Format documents beautifully**
91
+ - Use structured markdown for visual appeal
92
+ - Include tables for comparative data
93
+ - Use H1/H2/H3, lists, quotes
94
+ - Add emojis sparingly for scanability
95
+
96
+ ---
97
+
98
+ ### Phase 4: Session Documentation
99
+
100
+ 11. **Create Research Session Report**
101
+ ```json
102
+ {
103
+ "sessionId": "ULID",
104
+ "date": "YYYY-MM-DD",
105
+ "topic": "Research Focus Area",
106
+ "queriesExecuted": 5,
107
+ "learningsAcquired": 12,
108
+ "documentsUpdated": ["value_proposition", "swot"],
109
+ "derivedQueriesPending": [
110
+ "Follow-up query 1",
111
+ "Follow-up query 2"
112
+ ],
113
+ "nextSessionPriority": "HIGH"
114
+ }
115
+ ```
116
+
117
+ 12. **Update task tracker**
118
+ - Mark improvements in task list
119
+ - Add new items for pending derived queries
120
+
121
+ ---
122
+
123
+ ## Research Query Framework
124
+
125
+ ### Query Templates by Topic
126
+
127
+ **Competitor Analysis:**
128
+ - `"[Competitor] pricing [year]"`
129
+ - `"[Competitor] features comparison"`
130
+ - `"[Competitor] customer reviews [year]"`
131
+
132
+ **Market Trends:**
133
+ - `"[industry] market size [year]"`
134
+ - `"[industry] software trends"`
135
+ - `"B2B SaaS [industry]"`
136
+
137
+ **Audience Research:**
138
+ - `"[target audience] pain points"`
139
+ - `"[industry] software needs"`
140
+ - `"[user type] app features"`
141
+
142
+ **Product Positioning:**
143
+ - `"all-in-one [industry] management"`
144
+ - `"[product type] software comparison"`
145
+ - `"[industry] operations automation"`
146
+
147
+ ---
148
+
149
+ ## Expert Review Integration
150
+
151
+ After completing research, invoke `/experts` for validation:
152
+
153
+ - **Security Expert**: No sensitive data exposed
154
+ - **Architecture Expert**: Document structure valid
155
+ - **UX Expert**: Content follows brand voice
156
+ - **Memory Expert**: Patterns detected, auto-improvements triggered
157
+
158
+ ---
159
+
160
+ ## Document Quality Standards
161
+
162
+ ### Visual Format Requirements
163
+
164
+ Every document must have:
165
+ - Clear H1 title
166
+ - Executive summary (2-3 sentences)
167
+ - Structured sections with H2/H3
168
+ - Tables for comparative data
169
+ - Bullet lists for quick scanning
170
+ - Timestamps (created/updated)
171
+ - Source citations where applicable
172
+
173
+ ### Content Quality Checks
174
+ - No placeholder text ("lorem ipsum", "TBD")
175
+ - No outdated data (> 6 months old)
176
+ - No unsupported claims
177
+ - Specific numbers and dates
178
+ - Competitor names and products
179
+ - Actionable insights
180
+
181
+ ---
182
+
183
+ ## Example Session Output
184
+
185
+ ```
186
+ ## Business Improvement Session
187
+
188
+ Date: YYYY-MM-DD
189
+ Focus: Competitor Pricing Update
190
+
191
+ ### Queries Executed
192
+ 1. "[Competitor A] pricing model [year]" -> 3 learnings
193
+ 2. "[Competitor B] subscription tiers" -> 2 learnings
194
+ 3. "[Competitor A] vs [Competitor B]" -> 4 learnings
195
+
196
+ ### Knowledge Acquired
197
+ - Competitor A uses flat monthly fee (no commission)
198
+ - Competitor B: $99-499/month based on usage
199
+ - Competitor C: Legacy pricing, higher cost
200
+ - Market trend: Moving away from per-transaction %
201
+
202
+ ### Documents Updated
203
+ - Value Proposition Canvas - Added competitive pricing section
204
+ - SWOT Analysis - Updated threats with pricing pressure
205
+
206
+ ### Derived Queries (Next Session)
207
+ - "[Competitor A] API capabilities"
208
+ - "[Industry] software free trial comparison"
209
+ - "[Market segment] market share [year]"
210
+
211
+ ### Session Score: 4/5
212
+ Learnings: 9 | Documents: 2 | Next queries: 3
213
+ ```
214
+
215
+ ---
216
+
217
+ ## Automation Hooks
218
+
219
+ ### Recommended Schedule
220
+ - **Weekly**: Run basic improvement cycle (1 focus area)
221
+ - **Monthly**: Deep dive on all priority areas
222
+ - **Quarterly**: Full competitive landscape refresh
223
+
224
+ ### Integration with CLI
225
+ ```bash
226
+ # Future enhancement
227
+ cmp-memory improve --topic "competitors"
228
+ cmp-memory improve --pending # Process derived queries
229
+ cmp-memory improve --status # Show improvement metrics
230
+ ```
231
+
232
+ ---
233
+
234
+ ## Success Metrics
235
+
236
+ The system is working correctly if:
237
+
238
+ - **Query coverage** - All topic areas researched quarterly
239
+ - **Learning rate** - 5+ new insights per session
240
+ - **Document freshness** - No content older than 3 months
241
+ - **Derived query backlog** - Always have next topics ready
242
+ - **Pattern detection** - Memory Expert finds recurring themes
243
+
244
+ ---
245
+
246
+ ## When to Use /business-improvement
247
+
248
+ ### Use When:
249
+ - Need to update market intelligence
250
+ - Competitor released new features/pricing
251
+ - Preparing for investor/client presentations
252
+ - Monthly knowledge refresh cycle
253
+ - After major product launch by competitor
254
+
255
+ ### Don't Use For:
256
+ - Quick fact-checking (use direct web search)
257
+ - Creating new documents from scratch (use `/experts implement`)
258
+ - Trivial content updates (edit directly)
259
+
260
+ ---
261
+
262
+ The `/business-improvement` command transforms your business knowledge base into a **living, self-improving system**. Each research session makes the next one more targeted through derived queries.
263
+
264
+ **Pro tip**: Run `/business-improvement` weekly on rotating topics to maintain fresh, competitive intelligence.