@optima-chat/optima-agent 0.9.15 → 0.9.17

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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: scout
3
- description: "Interactive Amazon product research consultant with 1688 supplier sourcing and Keepa historical data. Search products, analyze markets, find suppliers (by keyword or image), track price/BSR history, and generate professional reports. ALWAYS use when user asks about: selling products (卖/开店), product ideas (产品/商品), market research (市场/竞品), suppliers (供应商/厂家), sourcing (采购/进货/货源), image search (图片找货/以图搜货/找同款), evaluating business opportunities (生意/创业), product trends (趋势/走势), price history (价格历史/价格变化), BSR ranking (排名/销量排名), product lifecycle (生命周期/增长期/衰退期). Uses 'scout search', 'scout product', 'scout keepa *', 'scout supplier-search', and 'scout supplier-search-image' commands."
3
+ description: "Interactive Amazon product research consultant with 1688 supplier sourcing and Keepa historical data. Search products, analyze markets, deep-dive reviews for pain points, find suppliers (by keyword or image), track price/BSR history, and generate professional reports. ALWAYS use when user asks about: selling products (卖/开店), product ideas (产品/商品), market research (市场/竞品), reviews/pain points (评论/差评/痛点/用户反馈), suppliers (供应商/厂家), sourcing (采购/进货/货源), image search (图片找货/以图搜货/找同款), evaluating business opportunities (生意/创业), product trends (趋势/走势), price history (价格历史/价格变化), BSR ranking (排名/销量排名), product lifecycle (生命周期/增长期/衰退期). Uses 'scout search', 'scout product', 'scout reviews', 'scout keepa *', 'scout supplier-search', and 'scout supplier-search-image' commands."
4
4
  ---
5
5
 
6
6
  # Optima Scout - AI Product Research
@@ -139,7 +139,43 @@ scout product ASIN
139
139
  - **Images count** - 7 is standard, fewer = poor optimization
140
140
  - **Specifications** - May include BSR in multiple categories
141
141
 
142
- ### 3. Search 1688 Suppliers (Keyword): `scout supplier-search`
142
+ ### 3. Get Product Reviews: `scout reviews`
143
+
144
+ Fetch Amazon product reviews with pagination. Use for deep pain-point analysis beyond the 8-13 top_reviews returned by `scout product`.
145
+
146
+ **Syntax:**
147
+ ```bash
148
+ scout reviews ASIN # 默认 3 页 (~30 条)
149
+ scout reviews ASIN --pages 10 # 最多 10 页 (~100 条)
150
+ scout reviews ASIN --star one_star # 只看 1 星差评
151
+ scout reviews ASIN --all-stars --pages 5 # 每个星级各 5 页 (~250 条)
152
+ scout reviews ASIN --verified # 只看 verified purchase
153
+ scout reviews ASIN --sort helpful # 按 helpful 排序
154
+ ```
155
+
156
+ **Parameters:**
157
+ - `ASIN`: 10-character Amazon product ID
158
+ - `--pages`: Number of pages per request (1-10, default: 3, ~10 reviews/page)
159
+ - `--sort`: `recent` (default) or `helpful`
160
+ - `--star`: Filter by star rating (`one_star` ~ `five_star`)
161
+ - `--all-stars`: Fetch all 5 star ratings in one batch (max ~500 reviews)
162
+ - `--verified`: Only verified purchase reviews
163
+ - `--domain`: Amazon domain code (default: com)
164
+ - `--format`: `json` (default) or `text`
165
+
166
+ **Returns:**
167
+ - Review list: id, title, body, rating, date, verified, helpful_votes, images
168
+ - Product summary: title, rating, total_ratings, rating_breakdown (percentages)
169
+
170
+ **When to use:**
171
+ - `scout product` gives 8-13 top_reviews — enough for quick scan
172
+ - `scout reviews` gives 30-500 reviews — use for **deep pain-point analysis**, sentiment clustering, and improvement opportunity identification
173
+ - **痛点分析**:`scout reviews ASIN --star one_star --pages 5` 拉差评做聚类
174
+ - **竞品评论对比**:分别拉两个竞品的差评,找差异化机会
175
+
176
+ **Cost awareness:** Each page costs ~$0.0075 Apify credits. `--all-stars --pages 10` (~500 reviews) costs ~$0.38.
177
+
178
+ ### 4. Search 1688 Suppliers (Keyword): `scout supplier-search`
143
179
 
144
180
  Search for suppliers on 1688.com using keywords.
145
181
 
@@ -165,7 +201,7 @@ scout supplier-search "KEYWORD" --limit NUMBER
165
201
  - Years in business (8+ years = established)
166
202
  - Return rate (lower = better, typical: 30-50%)
167
203
 
168
- ### 4. Search 1688 Suppliers (Image): `scout supplier-search-image`
204
+ ### 5. Search 1688 Suppliers (Image): `scout supplier-search-image`
169
205
 
170
206
  Search for suppliers on 1688.com using product images - perfect for finding sources for products you see on Amazon, Shopify, or other platforms.
171
207
 
@@ -293,37 +329,40 @@ scout keepa tokens
293
329
 
294
330
  **Phase 2: Deep Dive & Refinement**
295
331
  4. **Targeted Analysis** → Based on user feedback, run `scout product` on relevant ASINs
296
- 5. **Historical Trend Analysis** → Run `scout keepa product ASIN1,ASIN2,ASIN3 --stats 180` to get historical data
297
- 6. **Extract Insights** → Combine realtime + historical data:
332
+ 5. **Deep Review Analysis** → Run `scout reviews ASIN --star one_star --pages 5` to extract pain points, then `scout reviews ASIN --sort helpful --pages 3` to see most impactful reviews
333
+ 6. **Historical Trend Analysis** → Run `scout keepa product ASIN1,ASIN2,ASIN3 --stats 180` to get historical data
334
+ 7. **Extract Insights** → Combine realtime + historical + review data:
298
335
  - BSR trend → 增长期/成熟期/衰退期?
299
336
  - `salesRankDrops30/90` → 估算月销量
300
337
  - 价格历史 → 利润空间稳定吗?有价格战吗?
301
338
  - 卖家数量变化 → 竞争在加剧吗?
302
- 7. **Iterate & Explore** User may request different keywords, specific competitor analysis, or alternative product categories
339
+ - 差评聚类用户核心痛点是什么?能改进吗?
340
+ - 好评亮点 → 用户最看重什么功能?
341
+ 8. **Iterate & Explore** → User may request different keywords, specific competitor analysis, or alternative product categories
303
342
 
304
343
  **Phase 2.5: Supplier Sourcing (Optional but Recommended)**
305
- 8. **Trigger**: User shows interest in costs/sourcing, or after market validation
344
+ 9. **Trigger**: User shows interest in costs/sourcing, or after market validation
306
345
  - "成本大概多少?" "批发价怎么样?" "利润空间大吗?"
307
346
  - "哪里进货?" "供应商怎么找?"
308
347
  - "这个图片能找到货源吗?" "Amazon这个能在1688找到吗?"
309
348
 
310
- 9. **Choose search method**:
349
+ 10. **Choose search method**:
311
350
  - **With image**: `scout supplier-search-image "https://..."` ← More accurate for visual products
312
351
  - **With keyword**: `scout supplier-search "产品关键词"`
313
352
  - **Best practice**: Try both and compare results
314
353
 
315
- 10. **Share Findings**:
354
+ 11. **Share Findings**:
316
355
  - Wholesale price range (e.g., ¥429-599)
317
356
  - MOQ (minimum order quantity)
318
357
  - Profit margin calculation: Amazon price ($60-80) - 1688 cost (¥429 ≈ $60) - shipping ($10-15)
319
358
  - Supplier quality indicators (years in business, certifications)
320
359
 
321
- 11. **Ask**: "要不要我详细分析几个供应商?" or proceed to report
360
+ 12. **Ask**: "要不要我详细分析几个供应商?" or proceed to report
322
361
 
323
362
  **Phase 3: Report Generation (Proactive Suggestion)**
324
- 12. **Gauge Completion** → After sufficient data, suggest: "要不要我整理成一份完整的市场分析报告?"
325
- 13. **Generate Report** → Create comprehensive markdown report with all findings
326
- 14. **Save & Iterate** → Offer to save report and refine based on feedback
363
+ 13. **Gauge Completion** → After sufficient data, suggest: "要不要我整理成一份完整的市场分析报告?"
364
+ 14. **Generate Report** → Create comprehensive markdown report with all findings
365
+ 15. **Save & Iterate** → Offer to save report and refine based on feedback
327
366
 
328
367
  ---
329
368
 
@@ -332,9 +371,10 @@ scout keepa tokens
332
371
  When user explicitly requests a report upfront:
333
372
  1. Run 3-4 diverse keyword searches
334
373
  2. Analyze top 3-5 products with `scout product`
335
- 3. Pull historical trends with `scout keepa product` (batch ASINs)
336
- 4. Search 1688 suppliers (image + keyword)
337
- 5. Generate comprehensive report directly
374
+ 3. Deep review analysis: `scout reviews ASIN --star one_star --pages 5` on top competitors
375
+ 4. Pull historical trends with `scout keepa product` (batch ASINs)
376
+ 5. Search 1688 suppliers (image + keyword)
377
+ 6. Generate comprehensive report directly
338
378
 
339
379
  ### Multi-Keyword Research Strategy
340
380
 
@@ -420,10 +460,10 @@ scout product B0788F3R8X
420
460
  - Product description completeness
421
461
  - A+ content presence
422
462
  - ✅ **User Feedback Deep-Dive**
423
- - Top 3 positive mentions (from top_reviews)
424
- - Top 3 complaints/pain points (from top_reviews)
425
- - Improvement opportunities
426
- - Common feature requests
463
+ - Quick scan: `scout product` top_reviews (8-13 条精选)
464
+ - Deep dive: `scout reviews ASIN --star one_star --pages 5` (差评痛点聚类)
465
+ - Top 3 positive mentions and top 3 complaints
466
+ - Improvement opportunities and common feature requests
427
467
  - ✅ **Competitive Advantages**
428
468
  - Unique selling points in feature_bullets
429
469
  - Price positioning vs. competitors
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: video-edit
3
- description: "剪辑用户【已有的】口播视频——去除卡顿停顿让视频更流畅紧凑。
3
+ description: "剪辑用户【已有的】口播视频——去除卡顿停顿、NG 重拍、口头禅让视频更流畅紧凑。
4
4
 
5
5
  必备前提:用户已经有视频文件(拍好的、上传的、或给出文件路径)。
6
6
 
@@ -26,30 +26,50 @@ description: "剪辑用户【已有的】口播视频——去除卡顿停顿让
26
26
  只有当用户提到平台但**没说目标时长**时(如"剪成 TikTok"无时长),才追问"目标多长?"。
27
27
  其他情况**直接动手**,不要废话。
28
28
 
29
- ## 核心原则:一键出片,不满意再调
29
+ ## 核心原则:你是语义剪辑器
30
30
 
31
- 用户说"剪一下",你**直接出成片**,不要中途停下来问确认。像开拍 app 一样:上传 → 自动出片 → 不满意再调。
31
+ cut 工具**只能删静音**(>=0.25s 的停顿),它**永远删不了**这些:
32
+ - NG 重拍(重新说一遍同一句)
33
+ - 重复字("我我我",发声不停顿)
34
+ - 口头禅("嗯"/"啊"/"那个"/"就是")
35
+ - 跑题片段(语法完整但内容废)
32
36
 
33
- **不满意时的调整**:用户看完成片说"第X段不该删"/"XX那句话留着",你编辑 `cut_proposal.md`(去掉/加上 `#` 注释),重跑 `cut` + `subtitle`,几秒出新版。
37
+ **所以你必须自己审一遍 proposal**——你就是这个流程的语义剪辑器。如果跳过审片直接出片,成片会有大量 NG/口头禅/重复,用户会觉得"非常多卡顿"
34
38
 
35
39
  ## 你的内部流程
36
40
 
37
41
  ### 默认剪辑(剪 + 字幕,最常见)
38
42
 
39
- 一步到位,不要分步等确认:
43
+ 四步走:
44
+
45
+ ```bash
46
+ video-edit analyze <video>
47
+ ```
48
+
49
+ 读 `<video>.work/cut_proposal.md`。每行是一个短语,看每行决定保留还是删除:
50
+
51
+ - **删(行首加 `#`)**:
52
+ - 单独的口头禅 phrase:"嗯"/"啊"/"呃"/"那个"/"就是"/"对吧"/"然后那个"
53
+ - NG 重拍:相邻两行说同一件事但措辞稍变("我们要做的就是——我们要做的是"),**留最后一遍**(通常最干净)
54
+ - 字面重复:"我我我"/"那那那"
55
+ - 跑题/废话:与主题无关的旁白、自语、笑场
56
+ - 太短的连接词单独成行(如只有"那"/"嗯啊")
57
+ - **留**:所有有信息量的句子
58
+
59
+ 按上述规则编辑 proposal,保存。然后:
60
+
40
61
  ```bash
41
- video-edit both <video>
62
+ video-edit cut <video>
42
63
  video-edit subtitle <video>
43
64
  ```
44
65
 
45
- `both` = analyze + cut,一口气完成转写、静音检测、生成 proposal、执行剪辑。
46
- `subtitle` 从原始转写推算字幕时间轴(不会重新调 whisper),烧录输出 `<原片>_subbed.mp4`。
66
+ `cut` 按你标注的 proposal 剪辑,`subtitle` 对成片重新转写并烧字幕。
47
67
 
48
68
  ### 用户要求调整时
49
69
 
50
70
  用户看完成片说某段不对:
51
- 1. `<video>.work/cut_proposal.md`
52
- 2. 编辑对应行(`#` 注释 = 删除,去掉 `#` = 保留)
71
+ 1. 重新读 `<video>.work/cut_proposal.md`
72
+ 2. 调整对应行(`#` 注释 = 删除,去掉 `#` = 保留)
53
73
  3. 删除 `<video>.work/subs.ass`(让 subtitle 重新生成)
54
74
  4. 重跑:
55
75
  ```bash
@@ -61,22 +81,10 @@ video-edit subtitle <video>
61
81
 
62
82
  ### 限时长精剪(用户给了目标时长)
63
83
 
64
- ```bash
65
- video-edit analyze <video>
66
- ```
67
-
68
- 读 `<video>.work/cut_proposal.md`,**你自己**做这些判断:
84
+ `analyze` → 审 proposal 时**额外做这些**:
69
85
  - 找钩子句放最前
70
- - 删跑题、删 NG、删填充词
71
- - 压到目标时长
72
- - 把要删的行首加 `#`,保存
73
- - 删除 `<video>.work/subs.ass`
74
-
75
- 然后:
76
- ```bash
77
- video-edit cut <video>
78
- video-edit subtitle <video>
79
- ```
86
+ - 压到目标时长(更激进地删)
87
+ - 其余流程同上
80
88
 
81
89
  ### 仅字幕(用户明确说不剪)
82
90
 
@@ -89,11 +97,24 @@ video-edit subtitle <video>
89
97
  ### 无字幕版(用户明确说不要字幕)
90
98
 
91
99
  ```bash
92
- video-edit both <video>
100
+ video-edit analyze <video>
101
+ # 审 proposal 标 #
102
+ video-edit cut <video>
93
103
  ```
94
104
 
95
105
  交付 `<原片>_edited.mp4`,不跑 subtitle。
96
106
 
107
+ ## 审片心法
108
+
109
+ 读 proposal 时**不要逐行纠结**——每行 1 秒判断,按这个决策树:
110
+
111
+ 1. 这行只有口头禅/单字 → `#`
112
+ 2. 这行跟前一行/后一行说同一件事 → 留信息量最高的那遍
113
+ 3. 这行内容跟主题无关 → `#`
114
+ 4. 其他 → 留
115
+
116
+ **追求"看着不卡",不追求 100% 完美**。删多了用户会说"这句要留",你再调;删少了成片很卡,用户体验更差。**宁可激进一点**。
117
+
97
118
  ## 交付怎么说
98
119
 
99
120
  简洁,**只说结果**:
@@ -101,13 +122,13 @@ video-edit both <video>
101
122
  - ✅ "剪好了,xxx_subbed.mp4,时长 23 秒"
102
123
  - ✅ "无字幕版剪好了,xxx_edited.mp4,时长 23 秒"
103
124
  - ❌ "我用了 video-edit analyze,然后编辑了 cut_proposal.md..."
104
- - ❌ "review 显示 3 个 WARN,但都不影响..."
125
+ - ❌ "审片删了 8 NG..."
105
126
 
106
127
  ## 不要做的事
107
128
 
108
- - ❌ 用户说"剪一下"就追问平台/钩子/时长——直接 `both` + `subtitle`
129
+ - ❌ 跳过审 proposal 直接 `both` 出片——必有大量卡顿
130
+ - ❌ 用户说"剪一下"就追问平台/钩子/时长——按默认流程动手
109
131
  - ❌ 用户说"剪一下"只交付 `_edited.mp4` 不烧字幕——**默认带字幕**
110
- - ❌ 剪之前停下来展示方案等确认——**直接出片**,不满意再调
111
132
  - ❌ 把命令名、cut_proposal.md 路径暴露给用户——内部实现细节
112
133
  - ❌ 编造命令(仅 5 个:both / analyze / cut / review / subtitle)
113
134
  - ❌ 用户说"剪掉前 X 秒"/"剪掉中间一段"——定点裁剪不是去卡顿,告诉用户"我擅长去卡顿停顿,定点裁剪请用别的方式"
@@ -116,8 +137,8 @@ video-edit both <video>
116
137
 
117
138
  | 命令 | 用途 |
118
139
  |---|---|
119
- | `video-edit both <video>` | **默认用这个**:analyze + cut 一步到位 |
120
- | `video-edit analyze <video>` | 仅转写 + 生成 proposal(限时长精剪时用) |
140
+ | `video-edit analyze <video>` | 转写 + 生成 proposal(**默认入口**,审完后跑 cut |
121
141
  | `video-edit cut <video>` | 按 proposal 剪辑,生成 `_edited.mp4` |
142
+ | `video-edit subtitle <video>` | 对成片重新转写 + 烧字幕,输出 `<原片>_subbed.mp4` |
143
+ | `video-edit both <video>` | analyze + cut 一步到位(**已弃用**:跳过审片质量差) |
122
144
  | `video-edit review <video>` | 诊断用:检查 `_edited.mp4`,输出 review_report.md |
123
- | `video-edit subtitle <video>` | 烧字幕。传**原片路径**,自动找 `_edited.mp4` 做输入,输出 `<原片>_subbed.mp4` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/optima-agent",
3
- "version": "0.9.15",
3
+ "version": "0.9.17",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",