@optima-chat/optima-agent 0.9.11 → 0.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/.claude/skills/.kb-skills-managed.json +9 -9
  2. package/.claude/skills/ads/SKILL.md +244 -244
  3. package/.claude/skills/ads/template/campaign/CREATIVES.md +18 -18
  4. package/.claude/skills/ads/template/campaign/NOTES.md +10 -10
  5. package/.claude/skills/ads/template/campaign/STRATEGY.md +29 -29
  6. package/.claude/skills/ads/template/user/ADS.md +29 -29
  7. package/.claude/skills/ads/template/user/LEARNINGS.md +15 -15
  8. package/.claude/skills/ads/template/user/PROGRESS.md +20 -20
  9. package/.claude/skills/ads/template/user/README.md +25 -25
  10. package/.claude/skills/ads/template/user/assets/.gitignore +2 -2
  11. package/.claude/skills/bi/SKILL.md +131 -131
  12. package/.claude/skills/browser/SKILL.md +201 -201
  13. package/.claude/skills/channels/SKILL.md +188 -188
  14. package/.claude/skills/collection/SKILL.md +88 -88
  15. package/.claude/skills/douyin/SKILL.md +408 -408
  16. package/.claude/skills/ffmpeg/SKILL.md +164 -164
  17. package/.claude/skills/gen/SKILL.md +279 -279
  18. package/.claude/skills/growth/SKILL.md +90 -90
  19. package/.claude/skills/growth/template/ACCOUNTS.md +14 -14
  20. package/.claude/skills/growth/template/CALENDAR.md +7 -7
  21. package/.claude/skills/growth/template/COMMENTS.md +7 -7
  22. package/.claude/skills/growth/template/GROWTH.md +37 -37
  23. package/.claude/skills/growth/template/PROGRESS.md +4 -4
  24. package/.claude/skills/growth/template/README.md +20 -20
  25. package/.claude/skills/growth/template/TOPICS.md +7 -7
  26. package/.claude/skills/homepage/SKILL.md +177 -177
  27. package/.claude/skills/i18n/SKILL.md +517 -517
  28. package/.claude/skills/ingesting-sources/SKILL.md +94 -94
  29. package/.claude/skills/initializing-kb/SKILL.md +117 -117
  30. package/.claude/skills/instagram/SKILL.md +321 -321
  31. package/.claude/skills/inventory/SKILL.md +328 -328
  32. package/.claude/skills/kol-outreach/SKILL.md +232 -232
  33. package/.claude/skills/kol-outreach/template/campaign/CONFIG.md +60 -60
  34. package/.claude/skills/kol-outreach/template/campaign/KOLS.md +6 -6
  35. package/.claude/skills/kol-outreach/template/campaign/PROGRESS.md +3 -3
  36. package/.claude/skills/kol-outreach/template/campaign/TEMPLATES.md +88 -88
  37. package/.claude/skills/kol-outreach/template/merchant/BRAND.md +36 -36
  38. package/.claude/skills/kol-outreach/template/merchant/CAMPAIGNS.md +6 -6
  39. package/.claude/skills/kol-outreach/template/merchant/MERCHANT_LIMITS.md +16 -16
  40. package/.claude/skills/kol-outreach/template/merchant/PROGRESS.md +4 -4
  41. package/.claude/skills/kol-outreach/template/merchant/README.md +20 -20
  42. package/.claude/skills/linting-the-wiki/SKILL.md +68 -68
  43. package/.claude/skills/logistics/SKILL.md +180 -180
  44. package/.claude/skills/markdown-pdf/SKILL.md +72 -72
  45. package/.claude/skills/merchant/SKILL.md +110 -110
  46. package/.claude/skills/multigrid-poster/SKILL.md +192 -192
  47. package/.claude/skills/multigrid-poster/layouts/2x2.json +34 -34
  48. package/.claude/skills/multigrid-poster/layouts/3x3.json +43 -43
  49. package/.claude/skills/multigrid-poster/scripts/compose.py +116 -116
  50. package/.claude/skills/order/SKILL.md +452 -452
  51. package/.claude/skills/product/SKILL.md +379 -379
  52. package/.claude/skills/product-page/SKILL.md +106 -106
  53. package/.claude/skills/querying-the-wiki/SKILL.md +59 -59
  54. package/.claude/skills/reddit/SKILL.md +277 -277
  55. package/.claude/skills/review/SKILL.md +321 -321
  56. package/.claude/skills/scout/SKILL.md +575 -575
  57. package/.claude/skills/sentinel/SKILL.md +281 -281
  58. package/.claude/skills/shein/SKILL.md +246 -246
  59. package/.claude/skills/shipping/SKILL.md +200 -200
  60. package/.claude/skills/shop-content/SKILL.md +101 -101
  61. package/.claude/skills/shopify/SKILL.md +282 -282
  62. package/.claude/skills/skillify/SKILL.md +114 -114
  63. package/.claude/skills/taobao/SKILL.md +238 -238
  64. package/.claude/skills/tiktok/SKILL.md +381 -381
  65. package/.claude/skills/twitter/SKILL.md +302 -302
  66. package/.claude/skills/updating-related-pages/SKILL.md +65 -65
  67. package/.claude/skills/video-edit/SKILL.md +138 -138
  68. package/.claude/skills/video-gen/SKILL.md +630 -630
  69. package/.claude/skills/video-gen/templates/INDEX.md +78 -78
  70. package/.claude/skills/video-gen/templates/before-after-beauty.md +183 -183
  71. package/.claude/skills/video-gen/templates/drama-fmcg.md +183 -183
  72. package/.claude/skills/video-gen/templates/kol-reaction-food.md +193 -193
  73. package/.claude/skills/video-gen/templates/multi-point-apparel.md +185 -185
  74. package/.claude/skills/video-gen/templates/pain-solution-home.md +184 -184
  75. package/.claude/skills/video-gen/templates/pdp-360-showcase.md +189 -189
  76. package/.claude/skills/video-gen/templates/pdp-feature-highlight.md +182 -182
  77. package/.claude/skills/video-gen/templates/scene-digital.md +183 -183
  78. package/.claude/skills/wechat/SKILL.md +174 -174
  79. package/.claude/skills/xhs/SKILL.md +170 -170
  80. package/README.md +276 -276
  81. package/dist/bin/optima.js +26 -26
  82. package/dist/bin/serve.js +23 -23
  83. package/dist/bin/video-edit.d.ts +3 -0
  84. package/dist/bin/video-edit.d.ts.map +1 -0
  85. package/dist/bin/video-edit.js +153 -0
  86. package/dist/bin/video-edit.js.map +1 -0
  87. package/dist/src/agent.d.ts +1 -1
  88. package/dist/src/agent.js +4 -4
  89. package/dist/src/system-prompt.d.ts.map +1 -1
  90. package/dist/src/system-prompt.js +175 -173
  91. package/dist/src/system-prompt.js.map +1 -1
  92. package/dist/src/tools/memory.js +10 -10
  93. package/dist/src/ui/headless.js +7 -7
  94. package/package.json +79 -79
@@ -1,200 +1,200 @@
1
- ---
2
- name: shipping
3
- description: "运费配置和物流管理。使用场景:查看/设置运费模式、固定运费区域、计算运费、Easyship集成。当用户问运费设置、运费模式、运费区域、Easyship相关问题时使用。"
4
- ---
5
-
6
- # 运费管理
7
-
8
- > **注意**:`commerce easyship *` 命令已逐步迁移到 `logistics *`(见 **logistics** skill)。运费模式和固定运费区域仍使用此模块。
9
-
10
- ## 典型场景
11
-
12
- | 用户说 | 命令 |
13
- |--------|------|
14
- | "查看运费设置" / "运费模式" | `commerce shipping get-mode` |
15
- | "修改运费模式" | `commerce shipping update-mode` |
16
- | "计算运费" / "寄到XX多少钱" | `commerce shipping calculate` |
17
- | "查看运费区域" / "固定运费" | `commerce shipping-zone list` |
18
- | "添加运费区域" | `commerce shipping-zone create` |
19
- | "设置默认运费" / "兜底运费" / "其他地区运费" | `commerce shipping-zone create --is-default` |
20
- | "全球免运费" / "免邮" / "包邮" | `commerce shipping update-mode --mode free` |
21
- | "Easyship快递" / "可用快递" | `commerce easyship couriers` |
22
- | "查看发货地址" | `commerce easyship get-origin` |
23
- | "更新发货地址" | `commerce merchant update --origin-*`(见 merchant skill) |
24
-
25
- ## 不在此模块
26
-
27
- | 用户说 | 正确命令 |
28
- |--------|----------|
29
- | "订单发货" | `commerce order ship`(见 order skill) |
30
- | "查询订单物流" | `commerce order tracking`(见 order skill) |
31
-
32
- ---
33
-
34
- ## 运费模式
35
-
36
- 店铺的运费计算方式,影响买家结账时看到的运费选项。
37
-
38
- ### 查看当前模式
39
- ```bash
40
- commerce shipping get-mode
41
- ```
42
-
43
- ### 修改模式
44
- ```bash
45
- commerce shipping update-mode --mode <模式>
46
-
47
- # 设置免运费模式(可配置配送天数)
48
- commerce shipping update-mode --mode free --free-days-min 5 --free-days-max 10
49
- ```
50
-
51
- | 模式 | 说明 |
52
- |------|------|
53
- | `free` | **全球免运费**(新商户默认),可配置配送天数 |
54
- | `fixed` | 仅使用固定运费区域 |
55
- | `dynamic` | 动态实时报价(通过 logistics 服务获取承运商报价) |
56
-
57
- **免运费模式参数**:
58
- - `--free-days-min` - 最小配送天数(默认 7)
59
- - `--free-days-max` - 最大配送天数(默认 14)
60
-
61
- ---
62
-
63
- ## 运费计算
64
-
65
- 根据目的地和重量计算运费(发货前使用)。
66
-
67
- ```bash
68
- commerce shipping calculate \
69
- --country <国家代码> \
70
- --postal-code <邮编> \
71
- --weight <重量kg>
72
- ```
73
-
74
- 示例:
75
- ```bash
76
- # 计算寄到美国的运费
77
- commerce shipping calculate --country US --postal-code 10001 --weight 0.5
78
-
79
- # 计算寄到日本的运费
80
- commerce shipping calculate --country JP --postal-code 100-0001 --weight 1.2
81
- ```
82
-
83
- ### 查看支持的国家
84
- ```bash
85
- commerce shipping countries
86
- ```
87
-
88
- ---
89
-
90
- ## 固定运费区域
91
-
92
- 为不同地区设置固定运费,适合不使用 Easyship 的场景。
93
-
94
- ### 查看所有区域
95
- ```bash
96
- commerce shipping-zone list
97
- ```
98
-
99
- ### 创建区域
100
- ```bash
101
- commerce shipping-zone create \
102
- --name "北美" \
103
- --countries "US,CA" \
104
- --price 15.00
105
-
106
- # 创建默认区域(兜底,当客户地址不匹配其他区域时使用)
107
- commerce shipping-zone create \
108
- --name "其他地区" \
109
- --price 25.00 \
110
- --is-default
111
- ```
112
-
113
- **`--is-default` 使用时机**:用户提到"默认运费"、"兜底运费"、"其他地区"、"全球运费"时使用。
114
-
115
- ### 添加费率
116
- ```bash
117
- commerce shipping-zone add-rate \
118
- --zone-id <区域ID> \
119
- --min-weight 0 \
120
- --max-weight 1 \
121
- --rate 10.00
122
- ```
123
-
124
- ### 更新/删除
125
- ```bash
126
- commerce shipping-zone update --id <区域ID> --name "新名称"
127
- commerce shipping-zone delete --id <区域ID> --yes
128
- ```
129
-
130
- ---
131
-
132
- ## Easyship 集成
133
-
134
- Easyship 提供实时国际运费报价。
135
-
136
- ### 查看可用快递
137
- ```bash
138
- commerce easyship couriers
139
- ```
140
-
141
- ### 发货地址
142
-
143
- ```bash
144
- # 查看发货地址
145
- commerce easyship get-origin
146
-
147
- # 更新发货地址 → 使用 merchant 命令
148
- commerce merchant update --origin-country-alpha2 CN --origin-city 深圳 ...
149
-
150
- # 验证发货地址
151
- commerce easyship validate-origin
152
- ```
153
-
154
- **注意**:更新发货地址用 `commerce merchant update --origin-*`,详见 merchant skill。
155
-
156
- ### 地址验证
157
- ```bash
158
- # 验证买家地址
159
- commerce easyship validate-address \
160
- --country-alpha2 US \
161
- --city "New York" \
162
- --postal-code 10001 \
163
- --line-1 "123 Main St"
164
- ```
165
-
166
- ### 物流追踪
167
-
168
- 物流追踪功能已统一到 `commerce order tracking` 命令(见 order skill)。
169
-
170
- ---
171
-
172
- ## 命令参考
173
-
174
- ### 运费配置
175
- - `commerce shipping get-mode` - 查看运费模式
176
- - `commerce shipping update-mode` - 修改运费模式
177
- - `commerce shipping calculate` - 计算运费
178
- - `commerce shipping countries` - 支持的国家列表
179
-
180
- ### 固定运费区域
181
- - `commerce shipping-zone list` - 查看所有区域
182
- - `commerce shipping-zone get` - 查看区域详情
183
- - `commerce shipping-zone create` - 创建区域
184
- - `commerce shipping-zone update` - 更新区域
185
- - `commerce shipping-zone delete` - 删除区域
186
- - `commerce shipping-zone add-rate` - 添加费率
187
- - `commerce shipping-zone update-rate` - 更新费率
188
- - `commerce shipping-zone delete-rate` - 删除费率
189
-
190
- ### Easyship
191
- - `commerce easyship couriers` - 可用快递公司
192
- - `commerce easyship get-origin` - 查看发货地址
193
- - `commerce easyship validate-origin` - 验证发货地址
194
- - `commerce easyship validate-address` - 验证买家地址
195
-
196
- **更新发货地址**用 `commerce merchant update --origin-*`(见 merchant skill)
197
-
198
- ## 不确定用什么命令?
199
-
200
- 运行 `commerce shipping --help` 或 `commerce easyship --help` 查看所有子命令。
1
+ ---
2
+ name: shipping
3
+ description: "运费配置和物流管理。使用场景:查看/设置运费模式、固定运费区域、计算运费、Easyship集成。当用户问运费设置、运费模式、运费区域、Easyship相关问题时使用。"
4
+ ---
5
+
6
+ # 运费管理
7
+
8
+ > **注意**:`commerce easyship *` 命令已逐步迁移到 `logistics *`(见 **logistics** skill)。运费模式和固定运费区域仍使用此模块。
9
+
10
+ ## 典型场景
11
+
12
+ | 用户说 | 命令 |
13
+ |--------|------|
14
+ | "查看运费设置" / "运费模式" | `commerce shipping get-mode` |
15
+ | "修改运费模式" | `commerce shipping update-mode` |
16
+ | "计算运费" / "寄到XX多少钱" | `commerce shipping calculate` |
17
+ | "查看运费区域" / "固定运费" | `commerce shipping-zone list` |
18
+ | "添加运费区域" | `commerce shipping-zone create` |
19
+ | "设置默认运费" / "兜底运费" / "其他地区运费" | `commerce shipping-zone create --is-default` |
20
+ | "全球免运费" / "免邮" / "包邮" | `commerce shipping update-mode --mode free` |
21
+ | "Easyship快递" / "可用快递" | `commerce easyship couriers` |
22
+ | "查看发货地址" | `commerce easyship get-origin` |
23
+ | "更新发货地址" | `commerce merchant update --origin-*`(见 merchant skill) |
24
+
25
+ ## 不在此模块
26
+
27
+ | 用户说 | 正确命令 |
28
+ |--------|----------|
29
+ | "订单发货" | `commerce order ship`(见 order skill) |
30
+ | "查询订单物流" | `commerce order tracking`(见 order skill) |
31
+
32
+ ---
33
+
34
+ ## 运费模式
35
+
36
+ 店铺的运费计算方式,影响买家结账时看到的运费选项。
37
+
38
+ ### 查看当前模式
39
+ ```bash
40
+ commerce shipping get-mode
41
+ ```
42
+
43
+ ### 修改模式
44
+ ```bash
45
+ commerce shipping update-mode --mode <模式>
46
+
47
+ # 设置免运费模式(可配置配送天数)
48
+ commerce shipping update-mode --mode free --free-days-min 5 --free-days-max 10
49
+ ```
50
+
51
+ | 模式 | 说明 |
52
+ |------|------|
53
+ | `free` | **全球免运费**(新商户默认),可配置配送天数 |
54
+ | `fixed` | 仅使用固定运费区域 |
55
+ | `dynamic` | 动态实时报价(通过 logistics 服务获取承运商报价) |
56
+
57
+ **免运费模式参数**:
58
+ - `--free-days-min` - 最小配送天数(默认 7)
59
+ - `--free-days-max` - 最大配送天数(默认 14)
60
+
61
+ ---
62
+
63
+ ## 运费计算
64
+
65
+ 根据目的地和重量计算运费(发货前使用)。
66
+
67
+ ```bash
68
+ commerce shipping calculate \
69
+ --country <国家代码> \
70
+ --postal-code <邮编> \
71
+ --weight <重量kg>
72
+ ```
73
+
74
+ 示例:
75
+ ```bash
76
+ # 计算寄到美国的运费
77
+ commerce shipping calculate --country US --postal-code 10001 --weight 0.5
78
+
79
+ # 计算寄到日本的运费
80
+ commerce shipping calculate --country JP --postal-code 100-0001 --weight 1.2
81
+ ```
82
+
83
+ ### 查看支持的国家
84
+ ```bash
85
+ commerce shipping countries
86
+ ```
87
+
88
+ ---
89
+
90
+ ## 固定运费区域
91
+
92
+ 为不同地区设置固定运费,适合不使用 Easyship 的场景。
93
+
94
+ ### 查看所有区域
95
+ ```bash
96
+ commerce shipping-zone list
97
+ ```
98
+
99
+ ### 创建区域
100
+ ```bash
101
+ commerce shipping-zone create \
102
+ --name "北美" \
103
+ --countries "US,CA" \
104
+ --price 15.00
105
+
106
+ # 创建默认区域(兜底,当客户地址不匹配其他区域时使用)
107
+ commerce shipping-zone create \
108
+ --name "其他地区" \
109
+ --price 25.00 \
110
+ --is-default
111
+ ```
112
+
113
+ **`--is-default` 使用时机**:用户提到"默认运费"、"兜底运费"、"其他地区"、"全球运费"时使用。
114
+
115
+ ### 添加费率
116
+ ```bash
117
+ commerce shipping-zone add-rate \
118
+ --zone-id <区域ID> \
119
+ --min-weight 0 \
120
+ --max-weight 1 \
121
+ --rate 10.00
122
+ ```
123
+
124
+ ### 更新/删除
125
+ ```bash
126
+ commerce shipping-zone update --id <区域ID> --name "新名称"
127
+ commerce shipping-zone delete --id <区域ID> --yes
128
+ ```
129
+
130
+ ---
131
+
132
+ ## Easyship 集成
133
+
134
+ Easyship 提供实时国际运费报价。
135
+
136
+ ### 查看可用快递
137
+ ```bash
138
+ commerce easyship couriers
139
+ ```
140
+
141
+ ### 发货地址
142
+
143
+ ```bash
144
+ # 查看发货地址
145
+ commerce easyship get-origin
146
+
147
+ # 更新发货地址 → 使用 merchant 命令
148
+ commerce merchant update --origin-country-alpha2 CN --origin-city 深圳 ...
149
+
150
+ # 验证发货地址
151
+ commerce easyship validate-origin
152
+ ```
153
+
154
+ **注意**:更新发货地址用 `commerce merchant update --origin-*`,详见 merchant skill。
155
+
156
+ ### 地址验证
157
+ ```bash
158
+ # 验证买家地址
159
+ commerce easyship validate-address \
160
+ --country-alpha2 US \
161
+ --city "New York" \
162
+ --postal-code 10001 \
163
+ --line-1 "123 Main St"
164
+ ```
165
+
166
+ ### 物流追踪
167
+
168
+ 物流追踪功能已统一到 `commerce order tracking` 命令(见 order skill)。
169
+
170
+ ---
171
+
172
+ ## 命令参考
173
+
174
+ ### 运费配置
175
+ - `commerce shipping get-mode` - 查看运费模式
176
+ - `commerce shipping update-mode` - 修改运费模式
177
+ - `commerce shipping calculate` - 计算运费
178
+ - `commerce shipping countries` - 支持的国家列表
179
+
180
+ ### 固定运费区域
181
+ - `commerce shipping-zone list` - 查看所有区域
182
+ - `commerce shipping-zone get` - 查看区域详情
183
+ - `commerce shipping-zone create` - 创建区域
184
+ - `commerce shipping-zone update` - 更新区域
185
+ - `commerce shipping-zone delete` - 删除区域
186
+ - `commerce shipping-zone add-rate` - 添加费率
187
+ - `commerce shipping-zone update-rate` - 更新费率
188
+ - `commerce shipping-zone delete-rate` - 删除费率
189
+
190
+ ### Easyship
191
+ - `commerce easyship couriers` - 可用快递公司
192
+ - `commerce easyship get-origin` - 查看发货地址
193
+ - `commerce easyship validate-origin` - 验证发货地址
194
+ - `commerce easyship validate-address` - 验证买家地址
195
+
196
+ **更新发货地址**用 `commerce merchant update --origin-*`(见 merchant skill)
197
+
198
+ ## 不确定用什么命令?
199
+
200
+ 运行 `commerce shipping --help` 或 `commerce easyship --help` 查看所有子命令。
@@ -1,101 +1,101 @@
1
- ---
2
- name: shop-content
3
- description: "店铺内容管理。使用场景:更新关于我们、设置联系信息、管理退货/隐私/条款/配送政策、设置社交链接。注意:翻译用 i18n skill。"
4
- ---
5
-
6
- # 店铺内容管理
7
-
8
- ## 典型场景
9
-
10
- | 用户说 | 命令 |
11
- |--------|------|
12
- | "更新关于我们" / "写关于页面" | `commerce shop-about update --about-content "# Our Story..."` |
13
- | "设置联系方式" | `commerce shop-about update --contact-email "..." --contact-phone "..."` |
14
- | "添加联系页面内容" | `commerce shop-about update --contact-content "# Contact..."` |
15
- | "查看关于信息" | `commerce shop-about get` |
16
- | "设置 Instagram" / "添加社交链接" | `commerce shop-about update --social-instagram "https://..."` |
17
- | "设置退货政策" / "更新退货政策" | `commerce shop-policy set --type returns --title "退货政策" --content "# ..."` |
18
- | "设置隐私政策" | `commerce shop-policy set --type privacy --title "隐私政策" --content "# ..."` |
19
- | "设置服务条款" | `commerce shop-policy set --type terms --title "服务条款" --content "# ..."` |
20
- | "设置配送政策" | `commerce shop-policy set --type shipping --title "配送政策" --content "# ..."` |
21
- | "查看所有政策" | `commerce shop-policy list` |
22
- | "查看退货政策" | `commerce shop-policy get --type returns` |
23
-
24
- ## 不在此模块(重要)
25
-
26
- | 用户说 | 正确位置 |
27
- |--------|----------|
28
- | "翻译退货政策" / "政策日语版" | **i18n skill**:`commerce i18n shop-policy set` |
29
- | "翻译关于我们" | **i18n skill**:`commerce i18n shop-about set` |
30
- | "首页设置" / "首页区块" | **homepage skill** |
31
- | "修改品牌色" / "主题色" | **merchant skill**:`commerce merchant update --primary-color` |
32
-
33
- ---
34
-
35
- ## 关于页面内容
36
-
37
- ```bash
38
- # 查看当前内容
39
- commerce shop-about get
40
-
41
- # 更新关于页面(Markdown 格式)
42
- commerce shop-about update --about-content "# Our Story\n\nWe started in 2020..."
43
-
44
- # 更新联系页面补充内容
45
- commerce shop-about update --contact-content "## 批发合作\n\n请联系..."
46
- ```
47
-
48
- ## 联系信息
49
-
50
- ```bash
51
- commerce shop-about update \
52
- --contact-email "hello@store.com" \
53
- --contact-phone "+86 138xxxx" \
54
- --business-address "深圳市南山区..." \
55
- --business-hours "Mon-Fri 9:00-18:00"
56
- ```
57
-
58
- ## 社交链接
59
-
60
- ```bash
61
- # 设置单个
62
- commerce shop-about update --social-instagram "https://instagram.com/mystore"
63
-
64
- # 设置多个
65
- commerce shop-about update \
66
- --social-instagram "https://instagram.com/mystore" \
67
- --social-tiktok "https://tiktok.com/@mystore" \
68
- --social-youtube "https://youtube.com/@mystore"
69
- ```
70
-
71
- 支持:`--social-instagram`, `--social-facebook`, `--social-twitter`, `--social-tiktok`, `--social-youtube`
72
-
73
- ## 店铺政策
74
-
75
- ```bash
76
- # 查看所有政策
77
- commerce shop-policy list
78
-
79
- # 查看特定政策
80
- commerce shop-policy get --type returns
81
-
82
- # 设置/更新政策(Markdown 格式)
83
- commerce shop-policy set --type returns --title "退货政策" --content "# 退货政策\n\n..."
84
- commerce shop-policy set --type privacy --title "隐私政策" --content "# 隐私政策\n\n..."
85
- commerce shop-policy set --type terms --title "服务条款" --content "# 服务条款\n\n..."
86
- commerce shop-policy set --type shipping --title "配送政策" --content "# 配送政策\n\n..."
87
- ```
88
-
89
- **注意**:政策类型只能是 `terms`、`privacy`、`returns`、`shipping`。
90
-
91
- ## 内容格式
92
-
93
- 所有内容字段(about_content、contact_content、policy content)使用 **Markdown 格式**,支持标题、列表、粗体、链接等。
94
-
95
- ## 命令参考
96
-
97
- - `commerce shop-about get` - 查看关于/联系信息
98
- - `commerce shop-about update` - 更新关于/联系/社交链接
99
- - `commerce shop-policy list` - 查看所有政策
100
- - `commerce shop-policy get --type <type>` - 查看特定政策
101
- - `commerce shop-policy set --type <type> --title <title> --content <content>` - 设置政策
1
+ ---
2
+ name: shop-content
3
+ description: "店铺内容管理。使用场景:更新关于我们、设置联系信息、管理退货/隐私/条款/配送政策、设置社交链接。注意:翻译用 i18n skill。"
4
+ ---
5
+
6
+ # 店铺内容管理
7
+
8
+ ## 典型场景
9
+
10
+ | 用户说 | 命令 |
11
+ |--------|------|
12
+ | "更新关于我们" / "写关于页面" | `commerce shop-about update --about-content "# Our Story..."` |
13
+ | "设置联系方式" | `commerce shop-about update --contact-email "..." --contact-phone "..."` |
14
+ | "添加联系页面内容" | `commerce shop-about update --contact-content "# Contact..."` |
15
+ | "查看关于信息" | `commerce shop-about get` |
16
+ | "设置 Instagram" / "添加社交链接" | `commerce shop-about update --social-instagram "https://..."` |
17
+ | "设置退货政策" / "更新退货政策" | `commerce shop-policy set --type returns --title "退货政策" --content "# ..."` |
18
+ | "设置隐私政策" | `commerce shop-policy set --type privacy --title "隐私政策" --content "# ..."` |
19
+ | "设置服务条款" | `commerce shop-policy set --type terms --title "服务条款" --content "# ..."` |
20
+ | "设置配送政策" | `commerce shop-policy set --type shipping --title "配送政策" --content "# ..."` |
21
+ | "查看所有政策" | `commerce shop-policy list` |
22
+ | "查看退货政策" | `commerce shop-policy get --type returns` |
23
+
24
+ ## 不在此模块(重要)
25
+
26
+ | 用户说 | 正确位置 |
27
+ |--------|----------|
28
+ | "翻译退货政策" / "政策日语版" | **i18n skill**:`commerce i18n shop-policy set` |
29
+ | "翻译关于我们" | **i18n skill**:`commerce i18n shop-about set` |
30
+ | "首页设置" / "首页区块" | **homepage skill** |
31
+ | "修改品牌色" / "主题色" | **merchant skill**:`commerce merchant update --primary-color` |
32
+
33
+ ---
34
+
35
+ ## 关于页面内容
36
+
37
+ ```bash
38
+ # 查看当前内容
39
+ commerce shop-about get
40
+
41
+ # 更新关于页面(Markdown 格式)
42
+ commerce shop-about update --about-content "# Our Story\n\nWe started in 2020..."
43
+
44
+ # 更新联系页面补充内容
45
+ commerce shop-about update --contact-content "## 批发合作\n\n请联系..."
46
+ ```
47
+
48
+ ## 联系信息
49
+
50
+ ```bash
51
+ commerce shop-about update \
52
+ --contact-email "hello@store.com" \
53
+ --contact-phone "+86 138xxxx" \
54
+ --business-address "深圳市南山区..." \
55
+ --business-hours "Mon-Fri 9:00-18:00"
56
+ ```
57
+
58
+ ## 社交链接
59
+
60
+ ```bash
61
+ # 设置单个
62
+ commerce shop-about update --social-instagram "https://instagram.com/mystore"
63
+
64
+ # 设置多个
65
+ commerce shop-about update \
66
+ --social-instagram "https://instagram.com/mystore" \
67
+ --social-tiktok "https://tiktok.com/@mystore" \
68
+ --social-youtube "https://youtube.com/@mystore"
69
+ ```
70
+
71
+ 支持:`--social-instagram`, `--social-facebook`, `--social-twitter`, `--social-tiktok`, `--social-youtube`
72
+
73
+ ## 店铺政策
74
+
75
+ ```bash
76
+ # 查看所有政策
77
+ commerce shop-policy list
78
+
79
+ # 查看特定政策
80
+ commerce shop-policy get --type returns
81
+
82
+ # 设置/更新政策(Markdown 格式)
83
+ commerce shop-policy set --type returns --title "退货政策" --content "# 退货政策\n\n..."
84
+ commerce shop-policy set --type privacy --title "隐私政策" --content "# 隐私政策\n\n..."
85
+ commerce shop-policy set --type terms --title "服务条款" --content "# 服务条款\n\n..."
86
+ commerce shop-policy set --type shipping --title "配送政策" --content "# 配送政策\n\n..."
87
+ ```
88
+
89
+ **注意**:政策类型只能是 `terms`、`privacy`、`returns`、`shipping`。
90
+
91
+ ## 内容格式
92
+
93
+ 所有内容字段(about_content、contact_content、policy content)使用 **Markdown 格式**,支持标题、列表、粗体、链接等。
94
+
95
+ ## 命令参考
96
+
97
+ - `commerce shop-about get` - 查看关于/联系信息
98
+ - `commerce shop-about update` - 更新关于/联系/社交链接
99
+ - `commerce shop-policy list` - 查看所有政策
100
+ - `commerce shop-policy get --type <type>` - 查看特定政策
101
+ - `commerce shop-policy set --type <type> --title <title> --content <content>` - 设置政策