@vocmarket/voc-skill 0.3.25 → 0.3.26
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-plugin/plugin.json +1 -1
- package/bin/claude-voc.js +5 -14
- package/package.json +1 -1
- package/skill-package-manifest.json +1 -1
- package/skills/douyin-trend-intelligence/SKILL.md +5 -14
- package/skills/douyin-trend-intelligence/references/live-mode.md +1 -2
- package/skills/voc-api-catalog/references/error-codes.md +7 -1
- package/skills/xiaohongshu-trend-intelligence/SKILL.md +5 -14
- package/skills/xiaohongshu-trend-intelligence/references/live-mode.md +6 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "voc-intelligence",
|
|
3
3
|
"description": "VOC intelligence skills for Claude Code: end-to-end VOC business workflows, Xiaohongshu and Douyin trend reports, live social VOC collection, Fmode Doubao image analysis, token/recharge checks, evidence-card outputs, prioritized issue pools, single-problem deep dives, competitor maps, 7-day content plans, VOC-backed speaking script co-creation, boss/operator action plans, and multi-turn memory.",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.26",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "nkkj-BrainHack"
|
|
7
7
|
}
|
package/bin/claude-voc.js
CHANGED
|
@@ -308,7 +308,7 @@ function workspaceTrendSkillText(options) {
|
|
|
308
308
|
'- If the user asks for live collection, real collection, or entering live mode, run the local VOC tool in live mode.',
|
|
309
309
|
'- Do not answer that you cannot fetch external data. The local VOC tool is the approved collection entry.',
|
|
310
310
|
'- If the tool returns `needs_token`, `needs_recharge`, or `needs_valid_token`, paste its `assistantMessage` to the user verbatim.',
|
|
311
|
-
'- `needs_token` is recoverable: an `sk-` fmode key (Claude Code `ANTHROPIC_AUTH_TOKEN`) lets collection run — guide self-rescue first, do not push recharge. Only
|
|
311
|
+
'- `needs_token` is recoverable: an `sk-` fmode key (Claude Code `ANTHROPIC_AUTH_TOKEN`) lets collection run — guide self-rescue first, do not push recharge. Only a real `402` needs recharge. 完整口径见下方「充值 / 计费口径」。',
|
|
312
312
|
'',
|
|
313
313
|
'## sample 命令',
|
|
314
314
|
'',
|
|
@@ -330,20 +330,11 @@ function workspaceTrendSkillText(options) {
|
|
|
330
330
|
`node ${quotedPath(preferenceUpdater)} --message "<用户反馈原文>" --memory ${quotedPath(defaultMemoryPath)} --result-prefix ${options.resultPrefix}`,
|
|
331
331
|
'```',
|
|
332
332
|
'',
|
|
333
|
-
'## 充值 /
|
|
333
|
+
'## 充值 / 计费口径(简版;完整对照见 voc-api-catalog 技能的「错误码速查」references/error-codes.md)',
|
|
334
334
|
'',
|
|
335
|
-
'-
|
|
336
|
-
'-
|
|
337
|
-
'',
|
|
338
|
-
'```text',
|
|
339
|
-
'https://app.fmode.cn/dev/studio/?balance=fmodeapi',
|
|
340
|
-
'```',
|
|
341
|
-
'',
|
|
342
|
-
'- `apig-pay` 仅用于「VOC 数据服务会话 token(`r:` 开头)余额」这一特定场景的补充,不是缺 token / 默认充值入口:',
|
|
343
|
-
'',
|
|
344
|
-
'```text',
|
|
345
|
-
'https://app.fmode.cn/dev/apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF',
|
|
346
|
-
'```',
|
|
335
|
+
'- 缺 token(`needs_token`)= 可恢复、不是没钱:先自救读 `~/.claude/settings.json` 的 `sk-` fmode key(或 `~/.fmode/config.json` / `~/.claude/voc-credentials.json`),用 `FMODE_API_KEY=sk-…` 重试,不要劝充值。',
|
|
336
|
+
'- 只有真 `402 余额不足` 才充值,入口 `https://app.fmode.cn/dev/studio/?balance=fmodeapi`(NewAPI/fmode-api 计费);`401`=token、`403`=权限,都不充值。`apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF` 仅限 `r:` 会话 token 余额补充。',
|
|
337
|
+
'- 实际充值/自救链接以工具返回的 `assistantMessage` / `nextActions` 为准,不要写死。',
|
|
347
338
|
''
|
|
348
339
|
].join('\n');
|
|
349
340
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vocmarket/voc-skill",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"description": "Claude Code VOC intelligence skills for Xiaohongshu and Douyin trend reports, live social VOC collection, Fmode image analysis, single-issue deep dives, boss/operator action plans, and multi-turn memory.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"bin": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-voc-intelligence",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"description": "Claude Code native VOC intelligence package for cross-industry social VOC workflows. Includes Xiaohongshu and Douyin trend intelligence, live token checks, evidence-card reports, single-issue VOC deep dives, boss/operator action plans, and scoped multi-turn memory.",
|
|
5
5
|
"plugin": "voc-intelligence",
|
|
6
6
|
"skills": [
|
|
@@ -22,7 +22,7 @@ allowed-tools: Read Write Bash(node *)
|
|
|
22
22
|
- If the user asks for live collection, real collection, or entering live mode, run the local VOC tool in live mode.
|
|
23
23
|
- Do not answer that you cannot fetch external data. The local VOC tool is the approved collection entry.
|
|
24
24
|
- If the tool returns `needs_token`, `needs_recharge`, or `needs_valid_token`, paste its `assistantMessage` to the user verbatim, including whatever self-rescue/recharge link the tool returns.
|
|
25
|
-
- `needs_token` is recoverable: an `sk-` fmode newapi key (Claude Code's `ANTHROPIC_AUTH_TOKEN` in `~/.claude/settings.json`, or `~/.fmode/config.json` / `~/.claude/voc-credentials.json`) lets collection run — guide self-rescue first, do not push
|
|
25
|
+
- `needs_token` is recoverable: an `sk-` fmode newapi key (Claude Code's `ANTHROPIC_AUTH_TOKEN` in `~/.claude/settings.json`, or `~/.fmode/config.json` / `~/.claude/voc-credentials.json`) lets collection run — guide self-rescue first, do not push recharge. Only a real `402` needs recharge. 完整口径见下方「充值 / 计费口径」。
|
|
26
26
|
|
|
27
27
|
## 禁止事项(Hard Guardrails)
|
|
28
28
|
|
|
@@ -71,20 +71,11 @@ node "<插件目录>/mcp/src/tools/douyin-trend-run.js" --collection-mode live -
|
|
|
71
71
|
|
|
72
72
|
运行后把命令输出正文直接发给用户。不要展示 JSON、summary、data、files 或调试日志。
|
|
73
73
|
|
|
74
|
-
## 充值 /
|
|
74
|
+
## 充值 / 计费口径(简版;完整对照见 voc-api-catalog 技能的「错误码速查」references/error-codes.md)
|
|
75
75
|
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
```text
|
|
80
|
-
https://app.fmode.cn/dev/studio/?balance=fmodeapi
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
- `apig-pay` 仅用于「VOC 数据服务会话 token(`r:` 开头)余额」这一特定场景的补充,不是缺 token / 默认充值入口:
|
|
84
|
-
|
|
85
|
-
```text
|
|
86
|
-
https://app.fmode.cn/dev/apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF
|
|
87
|
-
```
|
|
76
|
+
- 缺 token(`needs_token`)= 可恢复、不是没钱:先自救读 `~/.claude/settings.json` 的 `sk-` fmode key(或 `~/.fmode/config.json` / `~/.claude/voc-credentials.json`),用 `FMODE_API_KEY=sk-…` 重试,不要劝充值。
|
|
77
|
+
- 只有真 `402 余额不足` 才充值,入口 `https://app.fmode.cn/dev/studio/?balance=fmodeapi`(NewAPI/fmode-api 计费);`401`=token、`403`=权限,都不充值。`apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF` 仅限 `r:` 会话 token 余额补充。
|
|
78
|
+
- 实际充值/自救链接以工具返回的 `assistantMessage` / `nextActions` 为准,不要写死。
|
|
88
79
|
|
|
89
80
|
## 推荐用户启动话术
|
|
90
81
|
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
## 默认规则
|
|
4
4
|
|
|
5
5
|
- 样本量保持小
|
|
6
|
-
-
|
|
7
|
-
- 只有真正余额不足(402)才给充值链接,且用 fmode-api 入口 `https://app.fmode.cn/dev/studio/?balance=fmodeapi`,不要暴露底层错误
|
|
6
|
+
- 计费/充值口径走简版:缺 token 先自救(读 `~/.claude/settings.json` 的 `sk-` fmode key 重试),不要直接甩充值链接、不要暴露 401/403;只有真 `402` 才给充值链接 `https://app.fmode.cn/dev/studio/?balance=fmodeapi`。**完整口径(401/402/403 对照、回退、apig-pay `r:` 补充链)见 voc-api-catalog 技能的「错误码速查」references/error-codes.md**
|
|
8
7
|
- 用户只需要看到“怎么继续”
|
|
9
8
|
|
|
10
9
|
## 推荐默认参数
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
> **401 = token 问题**(缺失/失效/类型不对),**403 = 账号禁用/无权限**,都**不是没钱**,不要引导充值。
|
|
5
5
|
> **缺 token / 401 是可恢复的**:NewAPI 计费用的 `sk-` 就是 Claude Code 的 `ANTHROPIC_AUTH_TOKEN`(在 `~/.claude/settings.json` 的 `env` 里),取出来用 `FMODE_API_KEY=sk-…` 传入重试即可,**别当成「这个技能不能用」而放弃或去点充值**。
|
|
6
6
|
|
|
7
|
-
适用范围:`voc_api_call` / `voc_api_doc
|
|
7
|
+
适用范围:`voc_api_call` / `voc_api_doc`,**两条通道同源**——社媒网关 `https://server.fmode.cn/api/voc-social/<proxyPath>`(`channel=social`,默认)与创作者数据网关 `https://server.fmode.cn/api/voc-e-commerce/<proxyPath>`(`channel=ecommerce`)的鉴权、计费、错误码语义完全一致,下表对两者通用。本速查也是各 trend / 采集技能充值计费口径的**单一权威来源**,技能里只放简版摘要并指回这里。
|
|
8
8
|
|
|
9
9
|
## 一、总览表(HTTP 状态 → 含义 → 工具返回 → 给客户的话术 → Agent 动作)
|
|
10
10
|
|
|
@@ -55,6 +55,12 @@ HTTP 403 {"code":403,"mess":"用户禁用或无权限"}
|
|
|
55
55
|
- 若工具报 `needs_token`/`needs_valid_token`:先去 `~/.claude/settings.json` 取 `env.ANTHROPIC_AUTH_TOKEN`,用 `FMODE_API_KEY=sk-…` 传入重试——**这是缺 token 的标准自救,不是去点充值**。
|
|
56
56
|
2. 若 `sk-` token **鉴权失败(kind=auth / 401,含「未入仓」类报错)** 且存在平台 `r:` sessionToken,**自动回退** sessionToken 重试一次。这正是规避「用户拿 token 请求时遇到入仓错误」的方式——不再因为 token 是 `sk-` 就直接拒绝。
|
|
57
57
|
3. **402(余额不足)/ 403(无权限)不回退**——它们是终态,按上表处理。
|
|
58
|
+
|
|
59
|
+
> **充值入口分两条链(按实际走哪条计费而定)**:
|
|
60
|
+
> - `sk-` NewAPI / fmode-api 计费链(默认,绝大多数缺额场景)→ `https://app.fmode.cn/dev/studio/?balance=fmodeapi`
|
|
61
|
+
> - `r:` 会话 token 链(仅当走 `r:` sessionToken 回退路径、该 token 余额不足时)→ `https://app.fmode.cn/dev/apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF`
|
|
62
|
+
>
|
|
63
|
+
> 运行时以工具返回的 `assistantMessage` / `nextActions` 链接为准转述,不要在话术里写死某一条。
|
|
58
64
|
4. 底层「未入仓」/鉴权原始报错**不甩给用户**,对外只给上表的友好提示。
|
|
59
65
|
|
|
60
66
|
## 四、判定规则摘要(`classifyApiError`)
|
|
@@ -22,7 +22,7 @@ allowed-tools: Read Write Bash(node *)
|
|
|
22
22
|
- If the user asks for live collection, real collection, or entering live mode, run the local VOC tool in live mode.
|
|
23
23
|
- Do not answer that you cannot fetch external data. The local VOC tool is the approved collection entry.
|
|
24
24
|
- If the tool returns `needs_token`, `needs_recharge`, or `needs_valid_token`, paste its `assistantMessage` to the user verbatim, including whatever self-rescue/recharge link the tool returns.
|
|
25
|
-
- `needs_token` is recoverable: an `sk-` fmode newapi key (Claude Code's `ANTHROPIC_AUTH_TOKEN` in `~/.claude/settings.json`, or `~/.fmode/config.json` / `~/.claude/voc-credentials.json`) lets collection run — guide self-rescue first, do not push
|
|
25
|
+
- `needs_token` is recoverable: an `sk-` fmode newapi key (Claude Code's `ANTHROPIC_AUTH_TOKEN` in `~/.claude/settings.json`, or `~/.fmode/config.json` / `~/.claude/voc-credentials.json`) lets collection run — guide self-rescue first, do not push recharge. Only a real `402` needs recharge. 完整口径见下方「充值 / 计费口径」。
|
|
26
26
|
|
|
27
27
|
## 禁止事项(Hard Guardrails)
|
|
28
28
|
|
|
@@ -54,20 +54,11 @@ node "<插件目录>/mcp/src/tools/xiaohongshu-trend-run.js" --collection-mode l
|
|
|
54
54
|
|
|
55
55
|
运行后把命令输出正文直接发给用户。不要展示 JSON、summary、data、files 或调试日志。
|
|
56
56
|
|
|
57
|
-
## 充值 /
|
|
57
|
+
## 充值 / 计费口径(简版;完整对照见 voc-api-catalog 技能的「错误码速查」references/error-codes.md)
|
|
58
58
|
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
```text
|
|
63
|
-
https://app.fmode.cn/dev/studio/?balance=fmodeapi
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
- `apig-pay` 仅用于「VOC 数据服务会话 token(`r:` 开头)余额」这一特定场景的补充,不是缺 token / 默认充值入口:
|
|
67
|
-
|
|
68
|
-
```text
|
|
69
|
-
https://app.fmode.cn/dev/apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF
|
|
70
|
-
```
|
|
59
|
+
- 缺 token(`needs_token`)= 可恢复、不是没钱:先自救读 `~/.claude/settings.json` 的 `sk-` fmode key(或 `~/.fmode/config.json` / `~/.claude/voc-credentials.json`),用 `FMODE_API_KEY=sk-…` 重试,不要劝充值。
|
|
60
|
+
- 只有真 `402 余额不足` 才充值,入口 `https://app.fmode.cn/dev/studio/?balance=fmodeapi`(NewAPI/fmode-api 计费);`401`=token、`403`=权限,都不充值。`apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF` 仅限 `r:` 会话 token 余额补充。
|
|
61
|
+
- 实际充值/自救链接以工具返回的 `assistantMessage` / `nextActions` 为准,不要写死。
|
|
71
62
|
|
|
72
63
|
## 推荐用户启动话术
|
|
73
64
|
|
|
@@ -27,8 +27,8 @@ live 模式默认保持小规模:
|
|
|
27
27
|
|
|
28
28
|
不要直接把底层报错甩给用户:
|
|
29
29
|
|
|
30
|
-
- 缺 token:先自救——读 `~/.claude/settings.json` 的 `
|
|
31
|
-
-
|
|
30
|
+
- 缺 token:先自救——读 `~/.claude/settings.json` 的 `sk-` fmode key(或 `~/.fmode/config.json` / `~/.claude/voc-credentials.json`)用 `FMODE_API_KEY=sk-…` 重试,不要直接给充值链接。
|
|
31
|
+
- 只有真正余额不足(`402`)才给充值链接 + 下一步操作。完整口径见下方「充值入口」与 voc-api-catalog 的「错误码速查」。
|
|
32
32
|
|
|
33
33
|
不要把 `403`、授权失败文案、原始响应体直接暴露给用户。
|
|
34
34
|
|
|
@@ -41,19 +41,11 @@ live 模式默认保持小规模:
|
|
|
41
41
|
|
|
42
42
|
保留 `xsec_token`,否则网页端可能打不开。
|
|
43
43
|
|
|
44
|
-
## 充值入口(仅 402
|
|
44
|
+
## 充值入口(仅 402 余额不足时,简版)
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
https://app.fmode.cn/dev/studio/?balance=fmodeapi
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
`apig-pay` 仅用于「VOC 数据服务会话 token(`r:` 开头)余额」这一特定场景的补充:
|
|
53
|
-
|
|
54
|
-
```text
|
|
55
|
-
https://app.fmode.cn/dev/apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF
|
|
56
|
-
```
|
|
46
|
+
- `sk-` NewAPI/fmode-api 计费链(默认):`https://app.fmode.cn/dev/studio/?balance=fmodeapi`
|
|
47
|
+
- `apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF` 仅限 `r:` 会话 token 余额补充。
|
|
48
|
+
- 完整 401/402/403 对照与回退逻辑见 **voc-api-catalog 技能的「错误码速查」references/error-codes.md**(单一权威来源)。
|
|
57
49
|
|
|
58
50
|
## 结论
|
|
59
51
|
|