@optima-chat/optima-agent 0.7.10 → 0.8.1
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/.claude/skills/merchant/SKILL.md +1 -0
- package/.claude/skills/order/SKILL.md +19 -15
- package/.claude/skills/scout/SKILL.md +134 -204
- package/.claude/skills/shipping/SKILL.md +3 -6
- package/dist/bin/bi-cli.js +0 -0
- package/dist/bin/comfy.js +0 -0
- package/dist/bin/commerce.js +0 -0
- package/dist/bin/google-ads.js +0 -0
- package/dist/bin/optima.js +0 -0
- package/dist/bin/scout.js +0 -0
- package/package.json +3 -3
- package/.claude/settings.local.json +0 -118
- package/dist/src/hooks-loader.d.ts +0 -6
- package/dist/src/hooks-loader.d.ts.map +0 -1
- package/dist/src/hooks-loader.js +0 -215
- package/dist/src/hooks-loader.js.map +0 -1
- package/dist/src/ui/App.d.ts +0 -6
- package/dist/src/ui/App.d.ts.map +0 -1
- package/dist/src/ui/App.js +0 -164
- package/dist/src/ui/App.js.map +0 -1
- package/dist/src/ui/components/Composer.d.ts +0 -10
- package/dist/src/ui/components/Composer.d.ts.map +0 -1
- package/dist/src/ui/components/Composer.js +0 -13
- package/dist/src/ui/components/Composer.js.map +0 -1
- package/dist/src/ui/components/Header.d.ts +0 -7
- package/dist/src/ui/components/Header.d.ts.map +0 -1
- package/dist/src/ui/components/Header.js +0 -7
- package/dist/src/ui/components/Header.js.map +0 -1
- package/dist/src/ui/components/Message.d.ts +0 -12
- package/dist/src/ui/components/Message.d.ts.map +0 -1
- package/dist/src/ui/components/Message.js +0 -21
- package/dist/src/ui/components/Message.js.map +0 -1
- package/dist/src/ui/components/MessageList.d.ts +0 -9
- package/dist/src/ui/components/MessageList.d.ts.map +0 -1
- package/dist/src/ui/components/MessageList.js +0 -18
- package/dist/src/ui/components/MessageList.js.map +0 -1
- package/dist/src/ui/components/Spinner.d.ts +0 -6
- package/dist/src/ui/components/Spinner.d.ts.map +0 -1
- package/dist/src/ui/components/Spinner.js +0 -7
- package/dist/src/ui/components/Spinner.js.map +0 -1
- package/dist/src/ui/components/StatusBar.d.ts +0 -11
- package/dist/src/ui/components/StatusBar.d.ts.map +0 -1
- package/dist/src/ui/components/StatusBar.js +0 -7
- package/dist/src/ui/components/StatusBar.js.map +0 -1
- package/dist/src/ui/components/index.d.ts +0 -7
- package/dist/src/ui/components/index.d.ts.map +0 -1
- package/dist/src/ui/components/index.js +0 -7
- package/dist/src/ui/components/index.js.map +0 -1
- package/dist/src/validation/error-formatter.d.ts +0 -21
- package/dist/src/validation/error-formatter.d.ts.map +0 -1
- package/dist/src/validation/error-formatter.js +0 -98
- package/dist/src/validation/error-formatter.js.map +0 -1
- package/dist/src/validation/index.d.ts +0 -10
- package/dist/src/validation/index.d.ts.map +0 -1
- package/dist/src/validation/index.js +0 -10
- package/dist/src/validation/index.js.map +0 -1
- package/dist/src/validation/json-validator.d.ts +0 -25
- package/dist/src/validation/json-validator.d.ts.map +0 -1
- package/dist/src/validation/json-validator.js +0 -173
- package/dist/src/validation/json-validator.js.map +0 -1
- package/dist/src/validation/schema.d.ts +0 -353
- package/dist/src/validation/schema.d.ts.map +0 -1
- package/dist/src/validation/schema.js +0 -57
- package/dist/src/validation/schema.js.map +0 -1
- package/dist/src/validation/suggestions.d.ts +0 -25
- package/dist/src/validation/suggestions.d.ts.map +0 -1
- package/dist/src/validation/suggestions.js +0 -144
- package/dist/src/validation/suggestions.js.map +0 -1
- package/dist/src/validation/types.d.ts +0 -40
- package/dist/src/validation/types.d.ts.map +0 -1
- package/dist/src/validation/types.js +0 -5
- package/dist/src/validation/types.js.map +0 -1
- package/dist/src/validation/yaml-validator.d.ts +0 -25
- package/dist/src/validation/yaml-validator.d.ts.map +0 -1
- package/dist/src/validation/yaml-validator.js +0 -177
- package/dist/src/validation/yaml-validator.js.map +0 -1
|
@@ -12,7 +12,8 @@ description: Order fulfillment and shipping management. Process orders, ship pac
|
|
|
12
12
|
当用户说:
|
|
13
13
|
- "查看待发货订单" → `commerce order list --status paid`
|
|
14
14
|
- "订单XX发货" → 先查订单详情,根据 shipping_mode_used 决定发货方式(见下方流程)
|
|
15
|
-
- "查询订单物流" / "
|
|
15
|
+
- "查询订单物流" / "包裹到哪了" → `commerce order tracking --id XX`
|
|
16
|
+
- "运单标签好了吗" / "查标签" → `commerce order refresh-label --id XX`
|
|
16
17
|
- "取消订单XX" → `commerce order cancel --id XX --yes`
|
|
17
18
|
- "标记订单已送达" → `commerce order mark-delivered --id XX`
|
|
18
19
|
- "处理退款" → `commerce refund create --order-id XX --amount YY`
|
|
@@ -32,7 +33,7 @@ description: Order fulfillment and shipping management. Process orders, ship pac
|
|
|
32
33
|
2. **验证订单** - 检查库存、地址、特殊要求
|
|
33
34
|
3. **批量打包** - 准备商品、包装材料、打印面单
|
|
34
35
|
4. **标记发货** - 循环 `commerce order ship --id XX --tracking YY --carrier ZZ`
|
|
35
|
-
5. **物流跟踪** - 定期 `commerce order tracking`
|
|
36
|
+
5. **物流跟踪** - 定期 `commerce order tracking` 监控异常
|
|
36
37
|
6. **确认送达** - 签收后 `commerce order mark-delivered --id XX`
|
|
37
38
|
|
|
38
39
|
### 发货流程详解(重要)
|
|
@@ -101,9 +102,12 @@ commerce order ship --id <order-id> --easyship --courier-id <courier-id>
|
|
|
101
102
|
| `failed` / `technical_failed` | 生成失败 | 告知用户需要检查 EasyShip 后台或重新发货 |
|
|
102
103
|
|
|
103
104
|
**查询标签状态**:
|
|
105
|
+
|
|
106
|
+
如果发货时 label_state 为 pending/generating,稍后使用 `order refresh-label` 从 Easyship 同步最新状态:
|
|
104
107
|
```bash
|
|
105
|
-
commerce order
|
|
108
|
+
commerce order refresh-label --id <order-id>
|
|
106
109
|
```
|
|
110
|
+
返回最新的 `label_state` 和 `label_url`(如已生成)。
|
|
107
111
|
|
|
108
112
|
**查看可用快递**:
|
|
109
113
|
```bash
|
|
@@ -182,10 +186,16 @@ AskUserQuestion:
|
|
|
182
186
|
发货成功!运单号 ES123456789,快递公司 FedEx。
|
|
183
187
|
运单标签正在生成中,稍后可以让我帮你查询。
|
|
184
188
|
|
|
185
|
-
|
|
189
|
+
用户:标签好了吗
|
|
190
|
+
|
|
191
|
+
助手:[执行 Bash: commerce order refresh-label --id order_abc]
|
|
192
|
+
[检查返回结果中的 label_state 和 label_url]
|
|
186
193
|
|
|
187
|
-
|
|
194
|
+
[情况A:label_state = "generated",有 label_url]
|
|
188
195
|
运单标签已生成,请下载打印后贴在包裹上:https://...
|
|
196
|
+
|
|
197
|
+
[情况B:label_state 仍为 "pending" 或 "generating"]
|
|
198
|
+
运单标签仍在生成中,请稍后再试。
|
|
189
199
|
```
|
|
190
200
|
|
|
191
201
|
**场景2:固定运费订单**
|
|
@@ -282,7 +292,9 @@ commerce order ship --id order_789 --tracking DHL123458 --carrier DHL
|
|
|
282
292
|
- `commerce order list` - 查看订单列表
|
|
283
293
|
- `commerce order get` - 查看订单详情
|
|
284
294
|
- `commerce order ship` - 标记订单发货
|
|
285
|
-
- `commerce order tracking` -
|
|
295
|
+
- `commerce order tracking` - 查询物流跟踪(含轨迹、预计送达)
|
|
296
|
+
- `commerce order refresh-label` - 刷新 Easyship 运单标签状态
|
|
297
|
+
- `commerce order update-shipping-status` - 更新物流状态
|
|
286
298
|
- `commerce order cancel` - 取消订单
|
|
287
299
|
- `commerce order complete` - 完成订单
|
|
288
300
|
- `commerce order mark-delivered` - 标记已送达
|
|
@@ -294,15 +306,9 @@ commerce order ship --id order_789 --tracking DHL123458 --carrier DHL
|
|
|
294
306
|
- `commerce refund approve` - 批准退款
|
|
295
307
|
- `commerce refund reject` - 拒绝退款
|
|
296
308
|
|
|
297
|
-
### 物流状态
|
|
298
|
-
- `commerce order tracking` - 查询物流跟踪和标签状态
|
|
299
|
-
- `commerce order update-shipping-status` - 更新物流状态
|
|
300
|
-
- `commerce easyship track` - 查询 Easyship 详细物流轨迹
|
|
301
|
-
|
|
302
309
|
### Easyship 集成
|
|
303
310
|
- `commerce easyship couriers` - 查看可用快递公司
|
|
304
311
|
- `commerce easyship rates --order-id <id>` - 获取订单运费报价
|
|
305
|
-
- `commerce easyship track --order-id <id>` - 跟踪 Easyship 运单
|
|
306
312
|
|
|
307
313
|
## 详细示例
|
|
308
314
|
|
|
@@ -358,10 +364,8 @@ commerce refund approve --id refund_456
|
|
|
358
364
|
### 物流追踪
|
|
359
365
|
```bash
|
|
360
366
|
# 用户说:"查询订单order_123的物流信息"
|
|
367
|
+
# 返回物流轨迹(checkpoints)、预计送达时间、当前状态
|
|
361
368
|
commerce order tracking --id order_123
|
|
362
|
-
|
|
363
|
-
# 或查询 Easyship 详细轨迹
|
|
364
|
-
commerce easyship track --order-id order_123
|
|
365
369
|
```
|
|
366
370
|
|
|
367
371
|
## 重要提示
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: scout
|
|
3
|
-
description: "Interactive Amazon product research consultant with 1688 supplier sourcing. Search products, analyze markets, find suppliers, and generate professional reports. ALWAYS use when user asks about: selling products (卖/开店), product ideas (产品/商品), market research (市场/竞品), suppliers (供应商/厂家), sourcing (采购/进货/货源), evaluating business opportunities (生意/创业). Start with conversational exploration, then suggest comprehensive report generation. Uses 'scout search', 'scout product', and 'scout supplier-search' commands."
|
|
3
|
+
description: "Interactive Amazon product research consultant with 1688 supplier sourcing. Search products, analyze markets, find suppliers (by keyword or image), and generate professional reports. ALWAYS use when user asks about: selling products (卖/开店), product ideas (产品/商品), market research (市场/竞品), suppliers (供应商/厂家), sourcing (采购/进货/货源), image search (图片找货/以图搜货/找同款), evaluating business opportunities (生意/创业). Start with conversational exploration, then suggest comprehensive report generation. Uses 'scout search', 'scout product', 'scout supplier-search', and 'scout supplier-search-image' commands."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Optima Scout - AI Product Research
|
|
@@ -16,6 +16,7 @@ Use this skill when:
|
|
|
16
16
|
- User needs to find suppliers or manufacturers (e.g., "帮我找咖啡机供应商", "哪里进货")
|
|
17
17
|
- User wants to source products from 1688/Alibaba China
|
|
18
18
|
- User asks about wholesale prices, bulk purchasing costs, or profit margins (e.g., "成本多少", "批发价", "利润空间")
|
|
19
|
+
- User wants to find suppliers by product image (e.g., "这个图片能找到货源吗", "帮我找同款", "看图找货", "Amazon这个能在1688找到吗")
|
|
19
20
|
|
|
20
21
|
## Interaction Style: Conversational → Report
|
|
21
22
|
|
|
@@ -116,33 +117,60 @@ scout product ASIN
|
|
|
116
117
|
- **Images count** - 7 is standard, fewer = poor optimization
|
|
117
118
|
- **Specifications** - May include BSR in multiple categories
|
|
118
119
|
|
|
119
|
-
### 3. Search 1688 Suppliers: `scout supplier-search`
|
|
120
|
+
### 3. Search 1688 Suppliers (Keyword): `scout supplier-search`
|
|
120
121
|
|
|
121
|
-
Search for suppliers on 1688.com
|
|
122
|
+
Search for suppliers on 1688.com using keywords.
|
|
122
123
|
|
|
123
124
|
**Syntax:**
|
|
124
125
|
```bash
|
|
125
|
-
scout supplier-search "KEYWORD" --limit NUMBER
|
|
126
|
+
scout supplier-search "KEYWORD" --limit NUMBER
|
|
126
127
|
```
|
|
127
128
|
|
|
128
129
|
**Parameters:**
|
|
129
130
|
- `KEYWORD`: Product keywords in Chinese (e.g., "咖啡机", "蓝牙耳机", "钛合金杯子")
|
|
130
131
|
- `--limit`: Number of results (1-100, default: 20)
|
|
131
|
-
- `--format`: Output format - `text`
|
|
132
|
+
- `--format`: Output format - `text` or `json`
|
|
132
133
|
|
|
133
134
|
**Returns:**
|
|
134
|
-
- Supplier list with product info, pricing, MOQ
|
|
135
|
+
- Supplier list with product info, pricing, MOQ, supplier ratings
|
|
135
136
|
- Price tiers for bulk ordering (e.g., "2~49台: ¥599", "≥100台: ¥429")
|
|
136
|
-
- Supplier details:
|
|
137
|
+
- Supplier details: location, years in business, seller type
|
|
137
138
|
- Tags: shipping policies (退货包运费), payment terms (先采后付), certifications (实力商家)
|
|
138
139
|
|
|
139
140
|
**Key analysis:**
|
|
140
141
|
- MOQ constraints (minimum order quantity)
|
|
141
|
-
- Price tiers for bulk ordering
|
|
142
142
|
- Supplier type: 生产加工 (manufacturer) vs. 经销批发 (trader)
|
|
143
143
|
- Years in business (8+ years = established)
|
|
144
144
|
- Return rate (lower = better, typical: 30-50%)
|
|
145
145
|
|
|
146
|
+
### 4. Search 1688 Suppliers (Image): `scout supplier-search-image`
|
|
147
|
+
|
|
148
|
+
Search for suppliers on 1688.com using product images - perfect for finding sources for products you see on Amazon, Shopify, or other platforms.
|
|
149
|
+
|
|
150
|
+
**Syntax:**
|
|
151
|
+
```bash
|
|
152
|
+
scout supplier-search-image "IMAGE_URL" --limit NUMBER
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**Parameters:**
|
|
156
|
+
- `IMAGE_URL`: Product image URL (Amazon, Alibaba, or any accessible image URL)
|
|
157
|
+
- `--limit`: Number of results (1-100, default: 20)
|
|
158
|
+
- `--format`: Output format - `text` or `json`
|
|
159
|
+
|
|
160
|
+
**Returns:** Same as `supplier-search` (supplier list, pricing, MOQ, ratings)
|
|
161
|
+
|
|
162
|
+
**Use cases:**
|
|
163
|
+
- Finding 1688 alternatives for Amazon/Shopify products
|
|
164
|
+
- "找同款" / "看图找货" scenarios
|
|
165
|
+
- Visual products where images are more descriptive than keywords
|
|
166
|
+
- When user provides product image URL
|
|
167
|
+
|
|
168
|
+
**Important notes:**
|
|
169
|
+
- Works with images from any platform (Amazon, Alibaba, direct URLs)
|
|
170
|
+
- Non-Alibaba images are automatically converted for 1688 search
|
|
171
|
+
- If image is inaccessible (404, expired, auth-required), will return helpful error message
|
|
172
|
+
- **Best practice**: Try both image and keyword search for comprehensive results
|
|
173
|
+
|
|
146
174
|
## Research Workflow
|
|
147
175
|
|
|
148
176
|
### Interactive Research Flow (Recommended):
|
|
@@ -150,10 +178,7 @@ scout supplier-search "KEYWORD" --limit NUMBER --format FORMAT
|
|
|
150
178
|
**Phase 1: Initial Discovery & Discussion**
|
|
151
179
|
1. **Quick Market Scan** → Run 1-2 searches with key terms
|
|
152
180
|
2. **Share Initial Findings** → Present key metrics (price range, competition level, demand signals)
|
|
153
|
-
3. **Discuss with User** → Ask clarifying questions
|
|
154
|
-
- "我发现市场上有 X 个竞品,价格区间是 $Y-Z,你的目标价位是多少?"
|
|
155
|
-
- "看起来高端保温款竞争少,要不要深入看看这个方向?"
|
|
156
|
-
- "你更关注哪些产品?我可以详细分析"
|
|
181
|
+
3. **Discuss with User** → Ask clarifying questions about target price, market segment, priorities
|
|
157
182
|
|
|
158
183
|
**Phase 2: Deep Dive & Refinement**
|
|
159
184
|
4. **Targeted Analysis** → Based on user feedback, run `scout product` on relevant ASINs
|
|
@@ -161,25 +186,26 @@ scout supplier-search "KEYWORD" --limit NUMBER --format FORMAT
|
|
|
161
186
|
6. **Iterate & Explore** → User may request different keywords, specific competitor analysis, or alternative product categories
|
|
162
187
|
|
|
163
188
|
**Phase 2.5: Supplier Sourcing (Optional but Recommended)**
|
|
164
|
-
7. **Trigger**: User shows interest in
|
|
189
|
+
7. **Trigger**: User shows interest in costs/sourcing, or after market validation
|
|
165
190
|
- "成本大概多少?" "批发价怎么样?" "利润空间大吗?"
|
|
166
191
|
- "哪里进货?" "供应商怎么找?"
|
|
167
|
-
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
scout supplier-search "
|
|
171
|
-
|
|
192
|
+
- "这个图片能找到货源吗?" "Amazon这个能在1688找到吗?"
|
|
193
|
+
|
|
194
|
+
8. **Choose search method**:
|
|
195
|
+
- **With image**: `scout supplier-search-image "https://..."` ← More accurate for visual products
|
|
196
|
+
- **With keyword**: `scout supplier-search "产品关键词"`
|
|
197
|
+
- **Best practice**: Try both and compare results
|
|
198
|
+
|
|
172
199
|
9. **Share Findings**:
|
|
173
200
|
- Wholesale price range (e.g., ¥429-599)
|
|
174
201
|
- MOQ (minimum order quantity)
|
|
175
202
|
- Profit margin calculation: Amazon price ($60-80) - 1688 cost (¥429 ≈ $60) - shipping ($10-15)
|
|
176
203
|
- Supplier quality indicators (years in business, certifications)
|
|
204
|
+
|
|
177
205
|
10. **Ask**: "要不要我详细分析几个供应商?" or proceed to report
|
|
178
206
|
|
|
179
207
|
**Phase 3: Report Generation (Proactive Suggestion)**
|
|
180
|
-
11. **Gauge Completion** → After sufficient data
|
|
181
|
-
- "我已经收集了足够的数据,要不要我整理成一份完整的市场分析报告?"
|
|
182
|
-
- "我可以生成一份详细报告,包括市场规模、竞品分析、进入策略和财务预测"
|
|
208
|
+
11. **Gauge Completion** → After sufficient data, suggest: "要不要我整理成一份完整的市场分析报告?"
|
|
183
209
|
12. **Generate Report** → Create comprehensive markdown report with all findings
|
|
184
210
|
13. **Save & Iterate** → Offer to save report and refine based on feedback
|
|
185
211
|
|
|
@@ -187,12 +213,11 @@ scout supplier-search "KEYWORD" --limit NUMBER --format FORMAT
|
|
|
187
213
|
|
|
188
214
|
### Alternative: Quick Research Flow
|
|
189
215
|
|
|
190
|
-
When user explicitly requests a report upfront
|
|
216
|
+
When user explicitly requests a report upfront:
|
|
191
217
|
1. Run 3-4 diverse keyword searches
|
|
192
218
|
2. Analyze top 3-5 products with `scout product`
|
|
193
|
-
3. Search 1688 suppliers
|
|
219
|
+
3. Search 1688 suppliers (image + keyword)
|
|
194
220
|
4. Generate comprehensive report directly
|
|
195
|
-
5. Offer follow-up discussion after report delivery
|
|
196
221
|
|
|
197
222
|
### Multi-Keyword Research Strategy
|
|
198
223
|
|
|
@@ -201,138 +226,77 @@ When user explicitly requests a report upfront ("给我一份XX市场分析报
|
|
|
201
226
|
scout search "titanium cup" --limit 15
|
|
202
227
|
scout search "titanium mug" --limit 15
|
|
203
228
|
scout search "titanium tumbler" --limit 10
|
|
204
|
-
scout search "camping titanium" --limit 10
|
|
205
229
|
```
|
|
206
230
|
|
|
207
231
|
**Why multiple keywords:**
|
|
208
232
|
- Different keywords reveal different market segments
|
|
209
|
-
- Find niche opportunities
|
|
210
|
-
- Cross-validate market size
|
|
211
|
-
- Discover related products
|
|
212
|
-
|
|
213
|
-
## Complete Example: Interactive Research Session
|
|
214
|
-
|
|
215
|
-
**User**: "我想开个店卖钛合金杯子,你觉得合适吗"
|
|
216
|
-
|
|
217
|
-
**Assistant Phase 1 - Initial Scan:**
|
|
218
|
-
```bash
|
|
219
|
-
scout search "titanium cup" --limit 15
|
|
220
|
-
scout search "titanium mug" --limit 10
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
**Assistant**: "我先快速看了一下钛合金杯子市场:
|
|
224
|
-
- 市场上有约 50+ 个竞品
|
|
225
|
-
- 价格区间:$15-90,主要集中在 $20-30
|
|
226
|
-
- 头部产品月销约 200 件(看 'recent_sales' 数据)
|
|
227
|
-
- 竞争适中,评论数多在 50-200 之间
|
|
228
|
-
|
|
229
|
-
我注意到两个方向:
|
|
230
|
-
1. 低价位单层杯($15-25)- 竞争激烈
|
|
231
|
-
2. 高端保温款($60-90)- 产品很少
|
|
232
|
-
|
|
233
|
-
**你更倾向哪个价位段?或者你的目标客户群是什么?**"
|
|
234
|
-
|
|
235
|
-
**User**: "我想做中高端的,质量好的"
|
|
236
|
-
|
|
237
|
-
**Assistant Phase 2 - Targeted Deep Dive:**
|
|
238
|
-
```bash
|
|
239
|
-
scout product B0CTKWJDXX # TOAKS - 中端爆款
|
|
240
|
-
scout product B0DNCMN3NX # KOYASU - 高端保温款
|
|
241
|
-
scout product B083NLR6BF # usharedo - 低价参考
|
|
242
|
-
```
|
|
233
|
+
- Find niche opportunities
|
|
234
|
+
- Cross-validate market size
|
|
235
|
+
- Discover related products
|
|
243
236
|
|
|
244
|
-
|
|
237
|
+
## Usage Examples
|
|
245
238
|
|
|
246
|
-
|
|
247
|
-
- BSR #530 → 月销约 250 件
|
|
248
|
-
- 评分 4.7,87% 五星好评
|
|
249
|
-
- 用户最爱:超轻、品质好、无金属味
|
|
250
|
-
- 主要抱怨:散热快(无保温)、无盖子
|
|
239
|
+
### Example 1: Interactive Research (Keyword-based)
|
|
251
240
|
|
|
252
|
-
**
|
|
253
|
-
- 双层保温,$89.99
|
|
254
|
-
- 评论少(18 条)但 4.8 高分
|
|
255
|
-
- 这个方向竞争少!
|
|
256
|
-
|
|
257
|
-
**发现机会点:**
|
|
258
|
-
保温款市场几乎空白,但用户需求很强(很多人在评论里说希望有保温功能)。
|
|
259
|
-
|
|
260
|
-
**要不要我再看看 'titanium tumbler' 这个关键词,专门找保温方向的竞品?**"
|
|
261
|
-
|
|
262
|
-
**User**: "好的,你看看"
|
|
263
|
-
|
|
264
|
-
**Assistant Phase 3 - Refined Search:**
|
|
265
|
-
```bash
|
|
266
|
-
scout search "titanium tumbler" --limit 10
|
|
267
|
-
```
|
|
241
|
+
**User**: "我想开个店卖钛合金杯子,你觉得合适吗"
|
|
268
242
|
|
|
269
|
-
**
|
|
243
|
+
**Flow:**
|
|
244
|
+
1. Run `scout search "titanium cup"` + `scout search "titanium mug"`
|
|
245
|
+
2. Share: "市场有50+竞品,价格$15-90,主要在$20-30。头部产品月销约200件。两个方向:低价位($15-25)竞争激烈,高端保温款($60-90)产品很少。你更倾向哪个?"
|
|
246
|
+
3. User: "中高端的,质量好的"
|
|
247
|
+
4. Run `scout product` on 3 representative ASINs (B0CTKWJDXX, B0DNCMN3NX, B083NLR6BF)
|
|
248
|
+
5. Share: "TOAKS中端爆款BSR#530,月销250件,87%五星。用户最爱:超轻、品质好、无金属味。主要抱怨:散热快(无保温)。KOYASU高端保温$89.99,评论少但4.8分。保温款市场几乎空白!"
|
|
249
|
+
6. User: "好的,你看看"
|
|
250
|
+
7. Run `scout search "titanium tumbler"`
|
|
251
|
+
8. Share: "titanium tumbler竞品只5-6个,$60-110。现在查供应商成本?"
|
|
252
|
+
9. Run `scout supplier-search "钛合金保温杯"`
|
|
253
|
+
10. Share: "批发价区间:¥180-450(约$25-65),起订量多数50-100个。头部供应商:8年工厂,¥280批发价。**利润分析**:Amazon售价$70-90,1688成本¥280(约$40),运费+关税约$15,总成本约$55,**毛利率25-40%**。"
|
|
254
|
+
11. Suggest report generation
|
|
270
255
|
|
|
271
|
-
|
|
256
|
+
### Example 2: Image-Based Supplier Search
|
|
272
257
|
|
|
273
|
-
**User**: "
|
|
258
|
+
**User**: "我在Amazon看到这个蓝牙耳机很火,帮我找1688供应商 https://m.media-amazon.com/images/..."
|
|
274
259
|
|
|
275
|
-
**
|
|
260
|
+
**Flow:**
|
|
276
261
|
```bash
|
|
277
|
-
scout supplier-search "
|
|
262
|
+
scout supplier-search-image "https://m.media-amazon.com/images/..." --limit 20
|
|
278
263
|
```
|
|
279
264
|
|
|
280
|
-
**
|
|
281
|
-
- 批发价区间:¥180-450(约 $25-65)
|
|
282
|
-
- 起订量:多数 50-100 个
|
|
283
|
-
- 头部供应商:8年工厂,¥280 批发价,起订 50 个
|
|
284
|
-
|
|
285
|
-
**利润空间分析:**
|
|
286
|
-
- Amazon 售价:$70-90
|
|
287
|
-
- 1688 批发价:¥280(约 $40)
|
|
288
|
-
- 运费+关税:约 $15
|
|
289
|
-
- 总成本:约 $55
|
|
290
|
-
- 毛利率:约 25-40%
|
|
291
|
-
|
|
292
|
-
我现在收集了足够的数据:
|
|
293
|
-
- 4 个关键词搜索
|
|
294
|
-
- 5 个产品深度分析
|
|
295
|
-
- 供应商成本分析
|
|
296
|
-
- 明确的市场空白(保温款)
|
|
297
|
-
|
|
298
|
-
**要不要我把这些整理成一份完整的市场分析报告?可以包括:**
|
|
299
|
-
- 市场规模和竞争格局
|
|
300
|
-
- 头部产品深度拆解
|
|
301
|
-
- 保温款机会分析
|
|
302
|
-
- 进入策略(定价、差异化、供应链)
|
|
303
|
-
- 财务预测"
|
|
265
|
+
**Response**: "通过图片搜索找到15个供应商:
|
|
304
266
|
|
|
305
|
-
**
|
|
267
|
+
**TOP 3 推荐:**
|
|
268
|
+
1. 深圳某电子厂(8年工厂)
|
|
269
|
+
- 批发价:¥45-68 | Amazon售价:$89.99
|
|
270
|
+
- 起订量:50件 | 评分:4.8★
|
|
271
|
+
- **利润空间:~40-50%**
|
|
306
272
|
|
|
307
|
-
|
|
308
|
-
|
|
273
|
+
2. 东莞某科技(5年工厂)
|
|
274
|
+
- 批发价:¥38-55 | 起订量:100件
|
|
275
|
+
- 标签:退货包运费、7天包换
|
|
309
276
|
|
|
310
|
-
|
|
311
|
-
✅ 适合进入,但需专注中高端保温款($60-90)
|
|
312
|
-
✅ 避开低价位红海,填补保温功能空白
|
|
313
|
-
✅ 预计首年净利润 $17k,ROI 76%
|
|
277
|
+
3. [...]
|
|
314
278
|
|
|
315
|
-
|
|
279
|
+
要详细对比这几个供应商吗?"
|
|
316
280
|
|
|
317
|
-
|
|
281
|
+
### Example 3: Competitor Analysis
|
|
318
282
|
|
|
319
|
-
|
|
283
|
+
**User**: "帮我分析这个产品 B0788F3R8X"
|
|
320
284
|
|
|
285
|
+
**Action:**
|
|
321
286
|
```bash
|
|
322
287
|
scout product B0788F3R8X
|
|
323
288
|
```
|
|
324
289
|
|
|
325
290
|
**Analysis Checklist:**
|
|
326
291
|
- ✅ **BSR & Market Position**
|
|
327
|
-
- Check BSR in specifications
|
|
328
|
-
- Estimate sales volume from BSR
|
|
292
|
+
- Check BSR in specifications → estimate sales volume
|
|
329
293
|
- Compare with category averages
|
|
330
294
|
- ✅ **Customer Satisfaction**
|
|
331
295
|
- Rating breakdown (five-star %, one-star %)
|
|
332
296
|
- Total reviews count (market maturity indicator)
|
|
333
297
|
- Review trends over time
|
|
334
298
|
- ✅ **Listing Quality**
|
|
335
|
-
- Images count (7 is standard)
|
|
299
|
+
- Images count (7 is standard, fewer = poor optimization)
|
|
336
300
|
- Feature bullets count and quality
|
|
337
301
|
- Product description completeness
|
|
338
302
|
- A+ content presence
|
|
@@ -349,37 +313,42 @@ scout product B0788F3R8X
|
|
|
349
313
|
|
|
350
314
|
## Analysis Framework
|
|
351
315
|
|
|
352
|
-
### Market Viability
|
|
316
|
+
### Market Viability Quick Reference
|
|
353
317
|
|
|
354
318
|
| 指标 | 优秀市场 | 正常市场 | 风险市场 |
|
|
355
319
|
|------|---------|---------|---------|
|
|
356
320
|
| 竞品数量 | 10-50 | 5-10 或 50-100 | <5 或 >100 |
|
|
357
|
-
|
|
|
358
|
-
| 价格区间 |
|
|
359
|
-
| BSR
|
|
321
|
+
| 头部评论数 | 100-1000 | 50-100 或 1K-5K | <50 或 >5K |
|
|
322
|
+
| 价格区间 | 宽(差异化) | 中等 | 窄(价格战) |
|
|
323
|
+
| BSR范围 | 1K-10K | 10K-50K | >50K |
|
|
324
|
+
| 进入难度 | 适中 | 需差异化 | 很难或需求不明 |
|
|
325
|
+
|
|
326
|
+
### Key Metrics
|
|
327
|
+
|
|
328
|
+
**BSR (Best Seller Rank):**
|
|
329
|
+
- <1K = 月销500+件 | 1K-10K = 100-500件 | 10K-50K = 20-100件 | >50K = <20件
|
|
360
330
|
|
|
361
|
-
|
|
362
|
-
-
|
|
363
|
-
|
|
364
|
-
|
|
331
|
+
**Rating Breakdown:**
|
|
332
|
+
- 70%+ five-star = 优秀 | 60-70% = 正常 | <60% = 质量问题 | 10%+ one-star = 严重问题
|
|
333
|
+
|
|
334
|
+
**Market Maturity:**
|
|
335
|
+
- ratings_total >1000 = 成熟 | 100-1000 = 发展中 | <100 = 新兴/小众
|
|
365
336
|
|
|
366
|
-
|
|
337
|
+
**Demand Signals:**
|
|
367
338
|
|
|
368
|
-
|
|
369
|
-
- ✅ "10K+ bought in past month"
|
|
370
|
-
- ✅ 多个产品 ratings_total >
|
|
371
|
-
- ✅ BSR <
|
|
339
|
+
High Demand:
|
|
340
|
+
- ✅ "10K+ bought in past month"
|
|
341
|
+
- ✅ 多个产品 ratings_total >500
|
|
342
|
+
- ✅ BSR <10K
|
|
372
343
|
- ✅ 搜索结果超过 30 个相关产品
|
|
373
344
|
|
|
374
|
-
|
|
345
|
+
Low Demand:
|
|
375
346
|
- ⚠️ 少于 10 个搜索结果
|
|
376
347
|
- ⚠️ 头部产品 ratings_total < 50
|
|
377
348
|
- ⚠️ BSR > 100,000
|
|
378
349
|
- ⚠️ 没有 "bought in past month" 标签
|
|
379
350
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
**进入难度评估:**
|
|
351
|
+
**Entry Difficulty Assessment:**
|
|
383
352
|
|
|
384
353
|
| 维度 | 容易进入 | 中等难度 | 困难进入 |
|
|
385
354
|
|------|---------|---------|---------|
|
|
@@ -388,15 +357,14 @@ scout product B0788F3R8X
|
|
|
388
357
|
| 价格竞争 | 差异化定价 | 价格区间宽 | 价格战 |
|
|
389
358
|
| 评分分布 | <4.5 平均分 | 4.5-4.7 | >4.7(难超越) |
|
|
390
359
|
|
|
391
|
-
### Report Generation
|
|
360
|
+
### Report Generation
|
|
392
361
|
|
|
393
|
-
**When to suggest
|
|
394
|
-
-
|
|
395
|
-
-
|
|
396
|
-
-
|
|
397
|
-
- ✅ Clear opportunity or risk identified that should be documented
|
|
362
|
+
**When to suggest:**
|
|
363
|
+
- 3+ searches + 3-5 product analyses completed
|
|
364
|
+
- User asks: "所以你觉得呢?" "值得做吗?" "总结一下"
|
|
365
|
+
- Clear opportunity/risk identified that should be documented
|
|
398
366
|
|
|
399
|
-
**How to suggest
|
|
367
|
+
**How to suggest (use this natural template):**
|
|
400
368
|
```
|
|
401
369
|
"我已经分析了 X 个搜索和 Y 个竞品,发现了一些有意思的模式。
|
|
402
370
|
|
|
@@ -420,74 +388,36 @@ scout product B0788F3R8X
|
|
|
420
388
|
- Offer report again later if more data gathered
|
|
421
389
|
|
|
422
390
|
**Report must include:**
|
|
423
|
-
-
|
|
424
|
-
-
|
|
425
|
-
-
|
|
426
|
-
-
|
|
427
|
-
-
|
|
428
|
-
-
|
|
429
|
-
- **Supplier Analysis** (if Phase 2.5 completed) - 1688 供应商、成本、利润空间
|
|
391
|
+
- Executive Summary(核心结论前置:适合进入?风险是什么?)
|
|
392
|
+
- Market Analysis(基于搜索数据的市场概况)
|
|
393
|
+
- Competitor Deep-Dive(基于product details的竞品分析:BSR, rating breakdown, top reviews insights)
|
|
394
|
+
- Opportunity Assessment(SWOT 或机会/挑战分析)
|
|
395
|
+
- Entry Strategy(产品定位、定价、差异化策略)
|
|
396
|
+
- Supplier Analysis (if Phase 2.5 completed)(1688供应商、成本、利润空间)
|
|
430
397
|
|
|
431
|
-
**Report naming:**
|
|
432
|
-
- Save as: `{产品类型}市场分析报告.md`
|
|
433
|
-
- Example: `钛合金杯子市场分析报告.md`
|
|
434
|
-
|
|
435
|
-
## Key Metrics Quick Reference
|
|
436
|
-
|
|
437
|
-
**BSR (Best Seller Rank):**
|
|
438
|
-
- < 1,000 = 月销 500+ 件
|
|
439
|
-
- 1,000-10,000 = 月销 100-500 件
|
|
440
|
-
- 10,000-50,000 = 月销 20-100 件
|
|
441
|
-
- > 50,000 = 月销 <20 件
|
|
442
|
-
|
|
443
|
-
**Rating Breakdown:**
|
|
444
|
-
- 70%+ five-star = 优秀产品质量
|
|
445
|
-
- 60-70% five-star = 正常水平
|
|
446
|
-
- <60% five-star = 质量问题或期望不符
|
|
447
|
-
- 10%+ one-star = 严重质量问题
|
|
448
|
-
|
|
449
|
-
**Market Maturity:**
|
|
450
|
-
- ratings_total >1000 = 成熟市场
|
|
451
|
-
- ratings_total 100-1000 = 发展中市场
|
|
452
|
-
- ratings_total <100 = 新兴市场或小众
|
|
453
|
-
|
|
454
|
-
**Listing Quality:**
|
|
455
|
-
- 7 images = 标准
|
|
456
|
-
- 5+ feature bullets = 完整
|
|
457
|
-
- A+ content = 专业卖家
|
|
398
|
+
**Report naming:** `{产品类型}市场分析报告.md`
|
|
458
399
|
|
|
459
400
|
## Cross-Skill Integration
|
|
460
401
|
|
|
461
402
|
**TikTok/Instagram → Scout → Supplier 完整链路:**
|
|
462
403
|
|
|
463
|
-
1. **TikTok/Instagram
|
|
464
|
-
|
|
465
|
-
scout tiktok trending --has-product
|
|
466
|
-
# 或
|
|
467
|
-
scout instagram reels "产品关键词"
|
|
468
|
-
```
|
|
469
|
-
|
|
470
|
-
2. **Scout (Amazon)** - 验证市场需求
|
|
404
|
+
1. **Discover** (TikTok/Instagram) → Find trending products
|
|
405
|
+
2. **Validate** (Scout Amazon) → Verify market demand
|
|
471
406
|
```bash
|
|
472
407
|
scout search "product name" --limit 15
|
|
473
408
|
scout product <top_asin>
|
|
474
409
|
```
|
|
475
|
-
|
|
476
|
-
3. **Scout (1688)** - 找供应商和成本
|
|
410
|
+
3. **Source** (Scout 1688) → Find suppliers and cost
|
|
477
411
|
```bash
|
|
478
|
-
|
|
479
|
-
|
|
412
|
+
# Method A: Image search (recommended for visual match)
|
|
413
|
+
scout supplier-search-image "https://amazon-image-url"
|
|
480
414
|
|
|
481
|
-
|
|
482
|
-
-
|
|
483
|
-
- Amazon 验证购买需求和竞争
|
|
484
|
-
- 1688 验证供应链和利润空间
|
|
485
|
-
- 三者都通过 → 值得做
|
|
415
|
+
# Method B: Keyword search
|
|
416
|
+
scout supplier-search "产品关键词"
|
|
486
417
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
- Amazon 市场需求(价格 $Y, BSR Z)
|
|
491
|
-
- 1688 供应商成本(批发价 ¥W,起订 Q 个)
|
|
418
|
+
# Best: Try both
|
|
419
|
+
```
|
|
420
|
+
4. **Decide** →综合分析三者数据,都通过→值得做
|
|
492
421
|
|
|
493
|
-
|
|
422
|
+
**Proactive suggestion after cross-skill analysis:**
|
|
423
|
+
"我已经分析了TikTok热度、Amazon市场需求、1688供应商成本。要不要生成一份完整的产品机会分析报告?"
|
|
@@ -129,7 +129,7 @@ commerce shipping-zone delete --id <区域ID> --yes
|
|
|
129
129
|
|
|
130
130
|
## Easyship 集成
|
|
131
131
|
|
|
132
|
-
Easyship
|
|
132
|
+
Easyship 提供实时国际运费报价。
|
|
133
133
|
|
|
134
134
|
### 查看可用快递
|
|
135
135
|
```bash
|
|
@@ -162,10 +162,8 @@ commerce easyship validate-address \
|
|
|
162
162
|
```
|
|
163
163
|
|
|
164
164
|
### 物流追踪
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
commerce easyship track --order-id <订单ID>
|
|
168
|
-
```
|
|
165
|
+
|
|
166
|
+
物流追踪功能已统一到 `commerce order tracking` 命令(见 order skill)。
|
|
169
167
|
|
|
170
168
|
---
|
|
171
169
|
|
|
@@ -192,7 +190,6 @@ commerce easyship track --order-id <订单ID>
|
|
|
192
190
|
- `commerce easyship get-origin` - 查看发货地址
|
|
193
191
|
- `commerce easyship validate-origin` - 验证发货地址
|
|
194
192
|
- `commerce easyship validate-address` - 验证买家地址
|
|
195
|
-
- `commerce easyship track` - 物流追踪
|
|
196
193
|
|
|
197
194
|
**更新发货地址**用 `commerce merchant update --origin-*`(见 merchant skill)
|
|
198
195
|
|
package/dist/bin/bi-cli.js
CHANGED
|
File without changes
|
package/dist/bin/comfy.js
CHANGED
|
File without changes
|
package/dist/bin/commerce.js
CHANGED
|
File without changes
|
package/dist/bin/google-ads.js
CHANGED
|
File without changes
|
package/dist/bin/optima.js
CHANGED
|
File without changes
|
package/dist/bin/scout.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optima-chat/optima-agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "基于 Claude Agent SDK 的电商运营 AI 助手",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@anthropic-ai/claude-agent-sdk": "^0.1.55",
|
|
45
|
+
"@optima-chat/ads-cli": "latest",
|
|
45
46
|
"@optima-chat/bi-cli": "latest",
|
|
46
47
|
"@optima-chat/comfy-cli": "latest",
|
|
47
48
|
"@optima-chat/commerce-cli": "latest",
|
|
48
|
-
"@optima-chat/
|
|
49
|
-
"@optima-chat/scout-cli": "latest",
|
|
49
|
+
"@optima-chat/scout-cli": "^0.8.0",
|
|
50
50
|
"open": "^10.1.0",
|
|
51
51
|
"ws": "^8.18.3",
|
|
52
52
|
"zod": "^3.23.8"
|