cmp-standards 2.7.0 → 2.8.0-alpha
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.
- package/README.md +633 -633
- package/dist/cache/EmbeddingCache.d.ts +109 -0
- package/dist/cache/EmbeddingCache.d.ts.map +1 -0
- package/dist/cache/EmbeddingCache.js +239 -0
- package/dist/cache/EmbeddingCache.js.map +1 -0
- package/dist/cache/index.d.ts +6 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +6 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/cli/index.js +0 -0
- package/dist/db/turso-client.js +11 -11
- package/dist/eslint/rules/no-async-useeffect.js +6 -6
- package/dist/events/EventBus.d.ts +87 -0
- package/dist/events/EventBus.d.ts.map +1 -0
- package/dist/events/EventBus.js +200 -0
- package/dist/events/EventBus.js.map +1 -0
- package/dist/events/index.d.ts +7 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +9 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/types.d.ts +989 -0
- package/dist/events/types.d.ts.map +1 -0
- package/dist/events/types.js +136 -0
- package/dist/events/types.js.map +1 -0
- package/dist/experts/ConsensusEngine.d.ts +57 -0
- package/dist/experts/ConsensusEngine.d.ts.map +1 -0
- package/dist/experts/ConsensusEngine.js +146 -0
- package/dist/experts/ConsensusEngine.js.map +1 -0
- package/dist/experts/ExpertPanelService.d.ts +84 -0
- package/dist/experts/ExpertPanelService.d.ts.map +1 -0
- package/dist/experts/ExpertPanelService.js +204 -0
- package/dist/experts/ExpertPanelService.js.map +1 -0
- package/dist/experts/ExpertRouter.d.ts +68 -0
- package/dist/experts/ExpertRouter.d.ts.map +1 -0
- package/dist/experts/ExpertRouter.js +374 -0
- package/dist/experts/ExpertRouter.js.map +1 -0
- package/dist/experts/VoteCollector.d.ts +58 -0
- package/dist/experts/VoteCollector.d.ts.map +1 -0
- package/dist/experts/VoteCollector.js +146 -0
- package/dist/experts/VoteCollector.js.map +1 -0
- package/dist/experts/index.d.ts +9 -0
- package/dist/experts/index.d.ts.map +1 -0
- package/dist/experts/index.js +13 -0
- package/dist/experts/index.js.map +1 -0
- package/dist/hooks/cloud-pre-tool-use.js +20 -20
- package/dist/hooks/expert-review.d.ts +74 -0
- package/dist/hooks/expert-review.d.ts.map +1 -0
- package/dist/hooks/expert-review.js +220 -0
- package/dist/hooks/expert-review.js.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/performance/Debouncer.d.ts +91 -0
- package/dist/performance/Debouncer.d.ts.map +1 -0
- package/dist/performance/Debouncer.js +198 -0
- package/dist/performance/Debouncer.js.map +1 -0
- package/dist/performance/MemoryDecay.d.ts +82 -0
- package/dist/performance/MemoryDecay.d.ts.map +1 -0
- package/dist/performance/MemoryDecay.js +153 -0
- package/dist/performance/MemoryDecay.js.map +1 -0
- package/dist/performance/index.d.ts +7 -0
- package/dist/performance/index.d.ts.map +1 -0
- package/dist/performance/index.js +9 -0
- package/dist/performance/index.js.map +1 -0
- package/dist/schema/expert-types.d.ts +395 -0
- package/dist/schema/expert-types.d.ts.map +1 -0
- package/dist/schema/expert-types.js +250 -0
- package/dist/schema/expert-types.js.map +1 -0
- package/dist/services/ContextGenerator.js +7 -7
- package/dist/services/ProjectScaffold.js +76 -76
- package/dist/services/memory-router.js +35 -35
- package/dist/services/pattern-tracker.js +90 -90
- package/dist/services/semantic-search.js +2 -2
- package/package.json +105 -104
- package/standards/README.md +50 -50
- package/standards/experts/expert-routing.md +215 -215
- package/standards/general/code-quality.md +86 -86
- package/standards/general/memory-usage.md +205 -205
- package/standards/general/sync-workflow.md +235 -235
- package/standards/general/workflow.md +82 -82
- package/standards/hooks/mandatory-tracking.md +446 -446
- package/standards/infrastructure/cloud-database.md +287 -287
- package/standards/mcp/server-design.md +243 -243
- package/standards/mcp/tool-patterns.md +354 -354
- package/standards/skills/skill-structure.md +286 -286
- package/standards/skills/workflow-design.md +323 -323
- package/standards/tools/tool-design.md +297 -297
- package/templates/agents/architecture-expert.md +61 -61
- package/templates/agents/database-expert.md +62 -62
- package/templates/agents/documentation-expert.md +57 -57
- package/templates/agents/memory-expert.md +88 -88
- package/templates/agents/performance-expert.md +61 -61
- package/templates/agents/security-expert.md +59 -59
- package/templates/agents/ux-expert.md +63 -63
- package/templates/agents/worker.md +75 -75
- package/templates/ai-skills/SKILL_TEMPLATE.md +55 -55
- package/templates/claude-settings.json +72 -72
- package/templates/commands/experts.md +138 -138
- package/templates/hooks/README.md +158 -158
- package/templates/hooks/project.config.json.template +77 -77
- package/templates/hooks/settings.local.json.template +57 -57
- package/templates/memory-config.json +56 -56
- package/templates/memory-config.schema.json +212 -212
- package/templates/settings.json +58 -58
- package/templates/skills/continue.md +205 -205
- package/templates/workflows/business-improvement.md +264 -264
- package/templates/workflows/expert-review.md +153 -153
- package/templates/workflows/internal-app.md +245 -245
- 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.
|