@optima-chat/scout-cli 0.1.8 → 0.1.9

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.
@@ -0,0 +1,480 @@
1
+ ---
2
+ name: optima-scout
3
+ description: "Interactive Amazon product research consultant. Search products, analyze markets, and generate professional reports. ALWAYS use when user asks about: selling products (卖/开店), product ideas (产品/商品), market research (市场/竞品), evaluating business opportunities (生意/创业). Start with conversational exploration, then suggest comprehensive report generation. Uses 'scout search' and 'scout product' commands."
4
+ ---
5
+
6
+ # Optima Scout - AI Product Research
7
+
8
+ ## When to Use This Skill
9
+
10
+ Use this skill when:
11
+ - User wants to research products or validate product ideas (e.g., "我想开店卖钛合金杯子", "帮我搜索一下XX")
12
+ - User needs market analysis or competitive research
13
+ - User asks about product pricing, ratings, sales data, or market trends
14
+ - User wants to evaluate business opportunities or find products to sell
15
+ - User needs detailed competitor analysis or listing quality assessment
16
+
17
+ ## Interaction Style: Conversational → Report
18
+
19
+ **Default approach: Interactive & Consultative**
20
+ - Start with quick scans, share findings, ask clarifying questions
21
+ - Iterate based on user feedback and interests
22
+ - **Proactively suggest report generation** after sufficient data gathering
23
+ - Don't assume what user wants - ask and discuss first
24
+
25
+ **When to suggest full report:**
26
+ - After sufficient exploration (typically 3+ searches, 3-5 product analyses)
27
+ - User signals readiness: "所以你觉得呢?" "值得做吗?" "总结一下"
28
+ - Clear insights emerged that warrant documentation
29
+ - **Always ask permission first** - never assume user wants a long report
30
+
31
+ **Exception - Direct report mode:**
32
+ - User explicitly requests: "给我一份XX市场分析报告"
33
+ - User wants fast results without discussion
34
+ - In this case, skip conversation and generate report directly
35
+
36
+ ## Quick Start - First Step
37
+
38
+ When user asks about product opportunities or market research:
39
+ 1. **IMMEDIATELY run `scout search`** with 1-2 relevant keywords
40
+ 2. Get real Amazon market data before providing any advice
41
+ 3. **Share initial findings conversationally** - don't overwhelm with full report
42
+ 4. **Ask clarifying questions** based on what you found
43
+ 5. Iterate and deepen analysis based on user responses
44
+
45
+ Example: If user asks "我想开店卖钛合金杯子", your FIRST actions should be:
46
+ ```bash
47
+ scout search "titanium cup" --limit 15
48
+ scout search "titanium mug" --limit 10
49
+ ```
50
+
51
+ Then share findings and ask:
52
+ - "我发现市场价格区间是 $15-90,你的目标价位是多少?"
53
+ - "看起来高端保温款竞争少,要不要深入看看?"
54
+
55
+ **Critical First Steps:**
56
+ - ✅ Always get data before giving advice - run searches immediately
57
+ - ✅ Share findings conversationally - don't dump raw data
58
+ - ✅ Ask clarifying questions - understand user's goals before deep diving
59
+
60
+ ## Available Commands
61
+
62
+ ### 1. Search Products: `scout search`
63
+
64
+ Search for products on Amazon to analyze market opportunities.
65
+
66
+ **Syntax:**
67
+ ```bash
68
+ scout search "QUERY" --limit NUMBER
69
+ ```
70
+
71
+ **Parameters:**
72
+ - `QUERY`: Product keywords (e.g., "wireless mouse", "titanium water bottle")
73
+ - `--limit`: Number of results (1-50, default: 10)
74
+ - `--domain`: Amazon domain (default: amazon.com)
75
+
76
+ **Returns:**
77
+ - Product list with ASIN, title, price, rating, reviews, recent sales
78
+ - Market overview data for competitive analysis
79
+
80
+ **When to use:**
81
+ - Initial market research
82
+ - Finding product categories or niches
83
+ - Comparing multiple products
84
+ - Identifying market trends
85
+
86
+ ### 2. Get Product Details: `scout product`
87
+
88
+ Get comprehensive details about a specific product by ASIN.
89
+
90
+ **Syntax:**
91
+ ```bash
92
+ scout product ASIN
93
+ ```
94
+
95
+ **Parameters:**
96
+ - `ASIN`: 10-character Amazon product ID (e.g., B01GJOMWVA)
97
+ - `--domain`: Amazon domain (default: amazon.com)
98
+
99
+ **Returns:**
100
+ - Complete product data: pricing, sales, reviews, specifications
101
+ - Rating breakdown, BSR, listing quality indicators
102
+ - Feature bullets, images, description, categories
103
+
104
+ **When to use:**
105
+ - Deep-dive competitor analysis
106
+ - Following up on search results
107
+ - Evaluating specific products
108
+ - Analyzing listing quality
109
+
110
+ **Key data to extract:**
111
+ - BSR (Best Seller Rank) - Indicates sales volume and market position
112
+ - Rating breakdown - Five-star/one-star percentages reveal satisfaction level
113
+ - Top reviews - Extract user pain points and satisfaction drivers
114
+ - Feature bullets - Identify competitive selling points
115
+ - Images count - Assess listing quality (7 images is standard)
116
+ - Specifications - May include BSR in multiple categories
117
+
118
+ ## Research Workflow
119
+
120
+ ### Interactive Research Flow (Recommended):
121
+
122
+ **Phase 1: Initial Discovery & Discussion (5-10 minutes)**
123
+ 1. **Quick Market Scan** → Run 1-2 searches with key terms
124
+ 2. **Share Initial Findings** → Present key metrics (price range, competition level, demand signals)
125
+ 3. **Discuss with User** → Ask clarifying questions:
126
+ - "我发现市场上有 X 个竞品,价格区间是 $Y-Z,你的目标价位是多少?"
127
+ - "看起来高端保温款竞争少,要不要深入看看这个方向?"
128
+ - "你更关注哪些产品?我可以详细分析"
129
+
130
+ **Phase 2: Deep Dive & Refinement (10-15 minutes)**
131
+ 4. **Targeted Analysis** → Based on user feedback, run `scout product` on relevant ASINs
132
+ 5. **Extract Insights** → Share key findings (BSR, reviews, pain points)
133
+ 6. **Iterate & Explore** → User may request:
134
+ - Different keywords
135
+ - Specific competitor analysis
136
+ - Alternative product categories
137
+
138
+ **Phase 3: Report Generation (Proactive Suggestion)**
139
+ 7. **Gauge Completion** → After sufficient data gathering, **proactively suggest**:
140
+ - "我已经收集了足够的数据,要不要我整理成一份完整的市场分析报告?"
141
+ - "我可以生成一份详细报告,包括市场规模、竞品分析、进入策略和财务预测"
142
+ 8. **Generate Report** → Create comprehensive markdown report with all findings
143
+ 9. **Save & Iterate** → Offer to save report and refine based on feedback
144
+
145
+ ---
146
+
147
+ **Alternative: Quick Research Flow**
148
+
149
+ When user explicitly requests a report upfront ("给我一份XX市场分析报告"):
150
+ 1. Run 3-4 diverse keyword searches
151
+ 2. Analyze top 3-5 products with `scout product`
152
+ 3. Generate comprehensive report directly
153
+ 4. Offer follow-up discussion after report delivery
154
+
155
+ ### Multi-Keyword Research Strategy:
156
+
157
+ **Example: Researching titanium cups**
158
+ ```bash
159
+ scout search "titanium cup" --limit 15
160
+ scout search "titanium mug" --limit 15
161
+ scout search "titanium tumbler" --limit 10
162
+ scout search "camping titanium" --limit 10
163
+ ```
164
+
165
+ **Why multiple keywords:**
166
+ - Different keywords reveal different market segments
167
+ - Find niche opportunities (e.g., "insulated titanium" vs "camping titanium")
168
+ - Cross-validate market size across searches
169
+ - Discover related products and categories
170
+
171
+ ### Analysis Framework:
172
+
173
+ When analyzing results, consider:
174
+
175
+ **Market Viability:**
176
+ - Are there existing products? How many competitors?
177
+ - Price range and average price point
178
+ - Market saturation (high ratings_total = established market)
179
+ - **BSR (Best Seller Rank)** - Key market size indicator
180
+
181
+ **Demand Indicators:**
182
+ - "10K+ bought in past month" = high demand
183
+ - High ratings_total = proven demand
184
+ - Recent sales trends
185
+ - **BSR rank** - Lower BSR = higher sales volume
186
+
187
+ **Competitive Landscape:**
188
+ - Top products' ratings and review counts
189
+ - Price positioning opportunities
190
+ - Feature gaps or improvement opportunities
191
+ - **Rating breakdown** - Five-star vs one-star percentage
192
+ - **Listing quality** - Images count, feature bullets, A+ content
193
+
194
+ **Entry Barriers:**
195
+ - Established brands vs. new sellers
196
+ - Average review count of top products
197
+ - Price competition level
198
+ - **Top reviews analysis** - User pain points and satisfaction drivers
199
+
200
+ ## Examples
201
+
202
+ ### Example 1: Business Opportunity Evaluation (Interactive Flow)
203
+ **User**: "我想开个店卖钛合金杯子,你觉得合适吗"
204
+
205
+ **Assistant Phase 1 - Initial Scan:**
206
+ ```bash
207
+ scout search "titanium cup" --limit 15
208
+ scout search "titanium mug" --limit 10
209
+ ```
210
+
211
+ **Assistant**: "我先快速看了一下钛合金杯子市场:
212
+ - 市场上有约 50+ 个竞品
213
+ - 价格区间:$15-90,主要集中在 $20-30
214
+ - 头部产品月销约 200 件(看 'recent_sales' 数据)
215
+ - 竞争适中,评论数多在 50-200 之间
216
+
217
+ 我注意到两个方向:
218
+ 1. 低价位单层杯($15-25)- 竞争激烈
219
+ 2. 高端保温款($60-90)- 产品很少
220
+
221
+ **你更倾向哪个价位段?或者你的目标客户群是什么?**"
222
+
223
+ **User**: "我想做中高端的,质量好的"
224
+
225
+ **Assistant Phase 2 - Targeted Deep Dive:**
226
+ ```bash
227
+ scout product B0CTKWJDXX # TOAKS - 中端爆款
228
+ scout product B0DNCMN3NX # KOYASU - 高端保温款
229
+ scout product B083NLR6BF # usharedo - 低价参考
230
+ ```
231
+
232
+ **Assistant**: "我详细分析了 3 个代表性产品:
233
+
234
+ **TOAKS (中端爆款)**
235
+ - BSR #530 → 月销约 250 件
236
+ - 评分 4.7,87% 五星好评
237
+ - 用户最爱:超轻、品质好、无金属味
238
+ - 主要抱怨:散热快(无保温)、无盖子
239
+
240
+ **KOYASU (高端保温)**
241
+ - 双层保温,$89.99
242
+ - 评论少(18 条)但 4.8 高分
243
+ - 这个方向竞争少!
244
+
245
+ **发现机会点:**
246
+ 保温款市场几乎空白,但用户需求很强(很多人在评论里说希望有保温功能)。
247
+
248
+ **要不要我再看看 'titanium tumbler' 这个关键词,专门找保温方向的竞品?**"
249
+
250
+ **User**: "好的,你看看"
251
+
252
+ **Assistant Phase 3 - Refined Search:**
253
+ ```bash
254
+ scout search "titanium tumbler" --limit 10
255
+ ```
256
+
257
+ **Assistant**: "找到了!titanium tumbler 搜索结果更聚焦保温款,竞品只有 5-6 个,价格 $60-110。
258
+
259
+ 我现在收集了足够的数据:
260
+ - 4 个关键词搜索
261
+ - 5 个产品深度分析
262
+ - 明确的市场空白(保温款)
263
+
264
+ **要不要我把这些整理成一份完整的市场分析报告?可以包括:**
265
+ - 市场规模和竞争格局
266
+ - 头部产品深度拆解
267
+ - 保温款机会分析
268
+ - 进入策略(定价、差异化、供应链)
269
+ - 财务预测"
270
+
271
+ **User**: "好的,生成报告吧"
272
+
273
+ **Assistant Phase 4 - Generate Report:**
274
+ [Creates comprehensive report: `钛合金杯子市场分析报告.md`]
275
+
276
+ **Assistant**: "报告已生成!核心结论:
277
+ ✅ 适合进入,但需专注中高端保温款($60-90)
278
+ ✅ 避开低价位红海,填补保温功能空白
279
+ ✅ 预计首年净利润 $17k,ROI 76%
280
+
281
+ 报告已保存为 `钛合金杯子市场分析报告.md`,需要补充哪些信息吗?"
282
+
283
+ ### Example 2: Market Research
284
+ **User**: "帮我研究一下无线鼠标市场"
285
+
286
+ **Assistant**:
287
+ ```bash
288
+ scout search "wireless mouse" --limit 20
289
+ scout search "gaming mouse wireless" --limit 10
290
+ ```
291
+
292
+ "我看了一下无线鼠标市场:
293
+ - 价格从 $10 到 $150,主流在 $20-40
294
+ - 明显分为三个细分市场:办公轻便型、游戏型、静音型
295
+ - 游戏鼠标竞争最激烈,但价格也最高
296
+
297
+ 你想专注哪个细分?"
298
+
299
+ **User**: "办公用的静音鼠标"
300
+
301
+ **Assistant**:
302
+ ```bash
303
+ scout search "silent mouse wireless" --limit 15
304
+ scout product [TOP_3_SILENT_MOUSE_ASINS]
305
+ ```
306
+
307
+ "找到了!静音鼠标竞争比游戏鼠标少很多,价格 $15-35。要深入分析吗?"
308
+
309
+ ### Example 3: Quick Product Validation
310
+ **User**: "咖啡机现在好卖吗?"
311
+
312
+ **Assistant**:
313
+ ```bash
314
+ scout search "coffee maker" --limit 15
315
+ ```
316
+
317
+ "咖啡机市场很活跃!
318
+ - 头部产品都是 '10K+ bought in past month',需求很强
319
+ - 价格 $30-150,主要集中在 $40-80
320
+ - 但竞争也很激烈 - 前 10 名评论数都在 10,000+ 以上
321
+
322
+ 这是成熟市场,有需求但进入难度大。你是想自己做品牌,还是代理现有品牌?"
323
+
324
+ ### Example 4: Competitor Deep-Dive
325
+ **User**: "帮我分析一下这个产品 B0788F3R8X"
326
+
327
+ **Actions:**
328
+ ```bash
329
+ scout product B0788F3R8X
330
+ ```
331
+
332
+ **Analysis Checklist:**
333
+ - ✅ **BSR & Market Position**: Check BSR in specifications, estimate sales volume
334
+ - ✅ **Customer Satisfaction**:
335
+ - Rating breakdown (five-star %, one-star %)
336
+ - Total reviews count (market maturity indicator)
337
+ - ✅ **Listing Quality**:
338
+ - Images count (7 is standard)
339
+ - Feature bullets count and quality
340
+ - Product description completeness
341
+ - ✅ **User Feedback Deep-Dive**:
342
+ - Top 3 positive mentions (from top_reviews)
343
+ - Top 3 complaints/pain points (from top_reviews)
344
+ - Improvement opportunities
345
+ - ✅ **Competitive Advantages**:
346
+ - Unique selling points in feature_bullets
347
+ - Price positioning
348
+ - Brand strength
349
+
350
+ ## Output Format
351
+
352
+ Commands return structured JSON with product data and metadata. Key fields:
353
+ - **Search**: `results[]` (asin, title, price, rating, ratings_total, recent_sales) + `metadata`
354
+ - **Product**: `data.product` (full details, rating_breakdown, BSR in specifications) + `metadata`
355
+
356
+ ## Best Practices
357
+
358
+ ### 1. Conversational First, Report Later
359
+ **Principle:** Build understanding through dialogue, then document in report.
360
+
361
+ **Why this matters:**
362
+ - Users often don't know exactly what they want initially
363
+ - Early conversation reveals true goals and constraints
364
+ - Interactive exploration uncovers better insights than solo research
365
+ - Report becomes more valuable when it answers user's actual questions
366
+
367
+ **In practice:**
368
+ - Start with 1-2 quick searches, share highlights (not full data dump)
369
+ - Listen for what user cares about: price sensitivity, time to market, differentiation
370
+ - Adjust research direction based on reactions
371
+ - Think of yourself as a consultant, not a data processor
372
+
373
+ ### 2. Recognize When to Suggest Report
374
+ **Strong signals - Proactively suggest report:**
375
+ - ✅ 3+ searches completed with diverse keywords
376
+ - ✅ 3-5 products analyzed in detail (with BSR, reviews, etc.)
377
+ - ✅ User asks synthesizing questions:
378
+ - "所以你觉得呢?" "值得做吗?" "你的建议是什么?"
379
+ - "总结一下" "整体怎么样" "帮我分析分析"
380
+ - ✅ Conversation covers core dimensions: market size, competition, pricing, differentiation
381
+ - ✅ Clear opportunity or risk identified that should be documented
382
+ - ✅ Research session lasted 10-15 minutes (multiple rounds of Q&A)
383
+
384
+ **Weak signals - Continue exploring:**
385
+ - User still asking specific questions about individual products
386
+ - Only 1-2 searches done, limited data
387
+ - User exploring different categories (still deciding direction)
388
+
389
+ **How to suggest (Natural & Consultative):**
390
+ ```
391
+ "我已经分析了 X 个搜索和 Y 个竞品,发现了一些有意思的模式。
392
+
393
+ 核心发现:
394
+ - [1-2 句话总结主要发现]
395
+ - [机会或风险点]
396
+
397
+ 要不要我把这些整理成一份完整的市场分析报告?可以包括:
398
+ - 市场规模和竞争格局
399
+ - 头部产品深度分析
400
+ - 差异化机会点
401
+ - 进入策略建议
402
+ - 财务预测(如果你需要的话)
403
+
404
+ 报告会保存为 markdown 文件,方便你后续参考和分享。"
405
+ ```
406
+
407
+ **If user declines:**
408
+ - Respect decision: "好的,有需要随时告诉我"
409
+ - Continue exploration or answer follow-up questions
410
+ - Offer report again later if more data gathered
411
+
412
+ ### 3. Report Structure & Quality
413
+ **When generating report, include:**
414
+ - **Executive Summary** - 核心结论前置
415
+ - **Market Analysis** - 基于搜索数据的市场概况
416
+ - **Competitor Deep-Dive** - 基于 product details 的竞品分析
417
+ - Must include: BSR, rating breakdown, top reviews insights
418
+ - **Opportunity Assessment** - SWOT 或机会/挑战分析
419
+ - **Entry Strategy** - 产品定位、定价、差异化策略
420
+ - **Financial Projections** (optional) - 如果用户需要投资决策
421
+ - **Data Appendix** - 关键数据汇总表
422
+
423
+ **Report naming:**
424
+ - Save as: `{产品类型}市场分析报告.md`
425
+ - Example: `钛合金杯子市场分析报告.md`
426
+
427
+ ### 4. Look for Patterns
428
+ - Common price points across competitors
429
+ - Feature trends in top products
430
+ - Customer pain points in reviews (from top_reviews)
431
+ - Rating breakdown patterns (high five-star vs one-star issues)
432
+
433
+ ### 5. Assess Opportunity
434
+ - High demand (BSR, sales data) + Low competition (ratings count) = Good opportunity
435
+ - High demand + High competition = Difficult but proven market
436
+ - Low demand = Risky
437
+
438
+ ### 6. Present Insights
439
+ - Use user's language (Chinese if they asked in Chinese)
440
+ - Include specific examples and data evidence
441
+ - Provide actionable recommendations
442
+ - Explain reasoning with data
443
+
444
+ ### 7. Iterate & Refine
445
+ - After presenting report, ask: "需要补充哪些信息?"
446
+ - Offer follow-up analysis: "要不要看看相关品类?"
447
+ - Point out data limitations honestly
448
+
449
+ ## Tips
450
+
451
+ **Sales & Demand:**
452
+ - "10K+ bought in past month" = high demand indicator
453
+ - **BSR (Best Seller Rank)**: Lower number = higher sales
454
+ - BSR < 1,000 in category = very high sales
455
+ - BSR 1,000-10,000 = good sales
456
+ - BSR > 50,000 = low sales
457
+ - Compare ratings_total across competitors to gauge market maturity
458
+
459
+ **Market Entry Assessment:**
460
+ - Lower ratings_total on top results = easier market entry
461
+ - High sales (BSR) + Low reviews = newer market opportunity
462
+ - High sales + High reviews = established but proven market
463
+
464
+ **Customer Satisfaction:**
465
+ - Check rating_breakdown percentages:
466
+ - 70%+ five-star = excellent satisfaction
467
+ - 10%+ one-star = quality issues or high expectations
468
+ - Recent reviews often reveal current product issues or trends
469
+ - Top reviews expose pain points and satisfaction drivers
470
+
471
+ **Listing Quality:**
472
+ - 7 images is Amazon standard - fewer suggests poor optimization
473
+ - 5+ feature bullets with clear benefits
474
+ - A+ content presence indicates professional seller
475
+
476
+ **Research Strategy:**
477
+ - Use multiple search queries to get complete market view
478
+ - Search related keywords (e.g., "titanium cup" + "titanium mug" + "titanium tumbler")
479
+ - Cross-validate findings across different searches
480
+ - Analyze top 3-5 products in each search for patterns
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuQpC,eAAO,MAAM,WAAW,SA6DpB,CAAC"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,WAAW,SAgEpB,CAAC"}
@@ -1,264 +1,18 @@
1
1
  import { Command } from 'commander';
2
- import { mkdir, writeFile, access } from 'fs/promises';
3
- import { join } from 'path';
2
+ import { mkdir, writeFile, access, readFile } from 'fs/promises';
3
+ import { join, dirname } from 'path';
4
+ import { fileURLToPath } from 'url';
5
+ const __dirname = dirname(fileURLToPath(import.meta.url));
4
6
  /**
5
- * Skills templates for Claude Code
7
+ * Load skill templates from package files
6
8
  */
7
- const SKILLS_TEMPLATES = {
8
- 'optima-scout.md': `---
9
- name: optima-scout
10
- description: "Search Amazon products and analyze market data for product selection and business opportunities. ALWAYS use when user asks about: selling products (卖/开店), product ideas (产品/商品), market research (市场/竞品), evaluating business opportunities (生意/创业), or wants product data from Amazon. Uses 'scout search' and 'scout product' commands."
11
- ---
12
-
13
- # Optima Scout - AI Product Research
14
-
15
- ## When to Use This Skill
16
-
17
- Use this skill when:
18
- - User wants to research products or validate product ideas (e.g., "我想开店卖钛合金杯子", "帮我搜索一下XX")
19
- - User needs market analysis or competitive research
20
- - User asks about product pricing, ratings, sales data, or market trends
21
- - User wants to evaluate business opportunities or find products to sell
22
- - User needs detailed competitor analysis or listing quality assessment
23
-
24
- ## Quick Start - First Step
25
-
26
- When user asks about product opportunities or market research:
27
- 1. **IMMEDIATELY run \`scout search\`** with relevant keywords
28
- 2. Get real Amazon market data before providing any advice
29
- 3. Analyze results and provide data-driven recommendations
30
-
31
- Example: If user asks "我想开店卖钛合金杯子", your FIRST action should be:
32
- \`\`\`bash
33
- scout search "titanium cup" --limit 15
34
- \`\`\`
35
-
36
- DO NOT give generic business advice without data. Always search first.
37
-
38
- ## Available Commands
39
-
40
- ### 1. Search Products: \`scout search\`
41
-
42
- Search for products on Amazon to analyze market opportunities.
43
-
44
- **Syntax:**
45
- \`\`\`bash
46
- scout search "QUERY" --limit NUMBER
47
- \`\`\`
48
-
49
- **Parameters:**
50
- - \`QUERY\`: Product keywords (e.g., "wireless mouse", "titanium water bottle")
51
- - \`--limit\`: Number of results (1-50, default: 10)
52
- - \`--domain\`: Amazon domain (default: amazon.com)
53
-
54
- **Returns:**
55
- - Product list with ASIN, title, price, rating, reviews, recent sales
56
- - Market overview data for competitive analysis
57
-
58
- **When to use:**
59
- - Initial market research
60
- - Finding product categories or niches
61
- - Comparing multiple products
62
- - Identifying market trends
63
-
64
- ### 2. Get Product Details: \`scout product\`
65
-
66
- Get comprehensive details about a specific product by ASIN.
67
-
68
- **Syntax:**
69
- \`\`\`bash
70
- scout product ASIN
71
- \`\`\`
72
-
73
- **Parameters:**
74
- - \`ASIN\`: 10-character Amazon product ID (e.g., B01GJOMWVA)
75
- - \`--domain\`: Amazon domain (default: amazon.com)
76
-
77
- **Returns:**
78
- - Complete product data: pricing, sales, reviews, specifications
79
- - Rating breakdown, BSR, listing quality indicators
80
- - Feature bullets, images, description, categories
81
-
82
- **When to use:**
83
- - Deep-dive competitor analysis
84
- - Following up on search results
85
- - Evaluating specific products
86
- - Analyzing listing quality
87
-
88
- ## Research Workflow
89
-
90
- ### Typical Flow:
91
- 1. **Market Research** → Use \`scout search\` to understand the market
92
- 2. **Competitor Analysis** → Use \`scout product\` to analyze top products
93
- 3. **Opportunity Assessment** → Analyze data and provide recommendations
94
-
95
- ### Analysis Framework:
96
-
97
- When analyzing results, consider:
98
-
99
- **Market Viability:**
100
- - Are there existing products? How many competitors?
101
- - Price range and average price point
102
- - Market saturation (high ratings_total = established market)
103
-
104
- **Demand Indicators:**
105
- - "10K+ bought in past month" = high demand
106
- - High ratings_total = proven demand
107
- - Recent sales trends
108
-
109
- **Competitive Landscape:**
110
- - Top products' ratings and review counts
111
- - Price positioning opportunities
112
- - Feature gaps or improvement opportunities
113
-
114
- **Entry Barriers:**
115
- - Established brands vs. new sellers
116
- - Average review count of top products
117
- - Price competition level
118
-
119
- ## Examples
120
-
121
- ### Example 1: Business Opportunity Evaluation
122
- **User**: "我想开个店卖钛合金杯子,你觉得合适吗"
123
-
124
- **Actions:**
125
- \`\`\`bash
126
- scout search "titanium cup" --limit 15
127
- scout search "titanium water bottle" --limit 15
128
- # Analyze top products:
129
- scout product [TOP_ASIN_1]
130
- scout product [TOP_ASIN_2]
131
- \`\`\`
132
-
133
- **Analysis:**
134
- - Compare pricing ranges
135
- - Assess sales volume from "bought in past month" data
136
- - Evaluate competition level (ratings count)
137
- - Identify market gaps or differentiation opportunities
138
- - Provide recommendation with reasoning
139
-
140
- ### Example 2: Market Research
141
- **User**: "帮我研究一下无线鼠标市场"
142
-
143
- **Actions:**
144
- \`\`\`bash
145
- scout search "wireless mouse" --limit 20
146
- scout product [TOP_3_ASINS]
147
- \`\`\`
148
-
149
- **Analysis:**
150
- - Identify best-selling products and price ranges
151
- - Find feature trends (ergonomic, gaming, silent click, etc.)
152
- - Spot market opportunities (underserved features, price gaps)
153
-
154
- ### Example 3: Product Validation
155
- **User**: "咖啡机现在好卖吗?"
156
-
157
- **Actions:**
158
- \`\`\`bash
159
- scout search "coffee maker" --limit 15
160
- \`\`\`
161
-
162
- **Analysis:**
163
- - Check recent_sales data for demand indicators
164
- - Review ratings and review counts
165
- - Assess price ranges and competition
166
- - Provide market viability assessment
167
-
168
- ### Example 4: Competitor Deep-Dive
169
- **User**: "帮我分析一下这个产品 B0788F3R8X"
170
-
171
- **Actions:**
172
- \`\`\`bash
173
- scout product B0788F3R8X
174
- \`\`\`
175
-
176
- **Analysis:**
177
- - Sales performance and pricing
178
- - Customer satisfaction (rating breakdown)
179
- - Listing quality (images, bullets, description)
180
- - Improvement opportunities from reviews
181
-
182
- ## Output Format
183
-
184
- ### Search Results:
185
- \`\`\`json
186
- {
187
- "results": [
188
- {
189
- "position": 1,
190
- "asin": "B01GJOMWVA",
191
- "title": "Product Name",
192
- "link": "amazon.com/...",
193
- "price": { "value": 29.99, "currency": "USD" },
194
- "rating": 4.5,
195
- "ratings_total": 12000,
196
- "recent_sales": "10K+ bought in past month"
197
- }
198
- ],
199
- "metadata": { "total_results": 50, "cached": false }
200
- }
201
- \`\`\`
202
-
203
- ### Product Details:
204
- \`\`\`json
205
- {
206
- "data": {
207
- "asin": "B01GJOMWVA",
208
- "title": "Product Name",
209
- "brand": "Brand Name",
210
- "price": { "value": 29.99, "currency": "USD" },
211
- "rating": 4.5,
212
- "ratings_total": 12000,
213
- "rating_breakdown": {
214
- "five_star": { "percentage": 75, "count": 9000 },
215
- "four_star": { "percentage": 15, "count": 1800 }
216
- },
217
- "recent_sales": "10K+ bought in past month",
218
- "images": [...],
219
- "feature_bullets": [...],
220
- "categories": [...]
221
- }
9
+ async function loadSkillTemplates() {
10
+ const skillTemplateDir = join(__dirname, '../../.claude/skills/optima-scout');
11
+ const skillContent = await readFile(join(skillTemplateDir, 'SKILL.md'), 'utf-8');
12
+ return {
13
+ 'optima-scout.md': skillContent,
14
+ };
222
15
  }
223
- \`\`\`
224
-
225
- ## Best Practices
226
-
227
- 1. **Start Broad, Then Narrow:**
228
- - Begin with search to understand the market
229
- - Deep-dive top 3-5 products for detailed analysis
230
-
231
- 2. **Look for Patterns:**
232
- - Common price points
233
- - Feature trends
234
- - Customer pain points in reviews
235
-
236
- 3. **Assess Opportunity:**
237
- - High demand (sales data) + Low competition (ratings count) = Good opportunity
238
- - High demand + High competition = Difficult market
239
- - Low demand = Risky
240
-
241
- 4. **Present Insights:**
242
- - Use user's language (Chinese if they asked in Chinese)
243
- - Include specific examples and data
244
- - Provide actionable recommendations
245
- - Explain reasoning
246
-
247
- 5. **Follow-up Research:**
248
- - Suggest related searches
249
- - Recommend deeper analysis if needed
250
- - Point out data limitations
251
-
252
- ## Tips
253
-
254
- - Products with "10K+ bought in past month" indicate high demand
255
- - Compare ratings_total across competitors to gauge market maturity
256
- - Lower ratings_total on top results = easier market entry
257
- - Check rating_breakdown for customer satisfaction insights
258
- - Recent reviews often reveal current product issues or trends
259
- - Use multiple search queries to get complete market view
260
- `,
261
- };
262
16
  export const initCommand = new Command('init')
263
17
  .description('Initialize Claude Code Skills in current directory')
264
18
  .option('-f, --force', 'Overwrite existing skills', false)
@@ -282,9 +36,11 @@ export const initCommand = new Command('init')
282
36
  }
283
37
  // Create .claude/skills directory
284
38
  await mkdir(skillsDir, { recursive: true });
39
+ // Load skill templates from package files
40
+ const skillTemplates = await loadSkillTemplates();
285
41
  // Write skills files
286
42
  const createdSkills = [];
287
- for (const [skillName, content] of Object.entries(SKILLS_TEMPLATES)) {
43
+ for (const [skillName, content] of Object.entries(skillTemplates)) {
288
44
  // Create skill directory (e.g., .claude/skills/optima-scout/)
289
45
  const skillDirName = skillName.replace('.md', '');
290
46
  const skillDirPath = join(skillsDir, skillDirName);
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B;;GAEG;AACH,MAAM,gBAAgB,GAAG;IACvB,iBAAiB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4PpB;CACA,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;KAC3C,WAAW,CAAC,oDAAoD,CAAC;KACjE,MAAM,CAAC,aAAa,EAAE,2BAA2B,EAAE,KAAK,CAAC;KACzD,MAAM,CAAC,KAAK,EAAE,OAA2B,EAAE,EAAE;IAC5C,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;QAE3D,yCAAyC;QACzC,IAAI,MAAM,GAA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AAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QACtC,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;QACnC,OAAO,CAAC,GAAG,CAAC,mFAAmF,CAAC,CAAC;QACjG,OAAO,CAAC,GAAG,CAAC,8DAA8D,CAAC,CAAC;IAC9E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAClF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/scout-cli",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "AI-powered Amazon product research CLI tool - Search products and get detailed analytics",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -9,6 +9,7 @@
9
9
  },
10
10
  "files": [
11
11
  "dist",
12
+ ".claude",
12
13
  "README.md"
13
14
  ],
14
15
  "scripts": {