@vocmarket/voc-skill 0.3.15

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 (82) hide show
  1. package/.claude-plugin/plugin.json +8 -0
  2. package/.mcp.json +11 -0
  3. package/README.md +334 -0
  4. package/bin/claude-voc.js +790 -0
  5. package/docs/boss-prompt-templates.md +682 -0
  6. package/docs/capability-map.md +195 -0
  7. package/docs/claude-code-troubleshooting-playbook.md +136 -0
  8. package/docs/context-budget-implementation-plan.md +491 -0
  9. package/docs/customer-quickstart.md +43 -0
  10. package/docs/deliverables/competitor-map-report.md +43 -0
  11. package/docs/deliverables/seven-day-content-plan.md +45 -0
  12. package/docs/deliverables/single-problem-action-plan.md +49 -0
  13. package/docs/deliverables/trend-insight-report.md +41 -0
  14. package/docs/deliverables/voc-issue-pool-report.md +42 -0
  15. package/docs/demo-runbook.md +31 -0
  16. package/docs/live-manual-acceptance-checklist.md +63 -0
  17. package/docs/npm-packaging-notes.md +93 -0
  18. package/docs/payment-package-links.md +86 -0
  19. package/install.js +208 -0
  20. package/mcp/src/core/credentials.js +113 -0
  21. package/mcp/src/core/evidence-quality.js +106 -0
  22. package/mcp/src/core/memory-store.js +31 -0
  23. package/mcp/src/core/payment-links.js +117 -0
  24. package/mcp/src/core/result-envelope.js +31 -0
  25. package/mcp/src/features/douyin-trend/live-collector.js +396 -0
  26. package/mcp/src/features/douyin-trend/preference-memory.js +130 -0
  27. package/mcp/src/features/douyin-trend/report.js +318 -0
  28. package/mcp/src/features/douyin-trend/sample-data.js +103 -0
  29. package/mcp/src/features/douyin-trend/signal-extractor.js +79 -0
  30. package/mcp/src/features/douyin-trend/topic-builder.js +1 -0
  31. package/mcp/src/features/voc-business-workflow/business-workflow.js +214 -0
  32. package/mcp/src/features/voc-competitor-map/competitor-map.js +198 -0
  33. package/mcp/src/features/voc-content-plan/content-plan.js +359 -0
  34. package/mcp/src/features/voc-issue-pool/issue-pool.js +488 -0
  35. package/mcp/src/features/voc-problem-deep-dive/deep-dive.js +662 -0
  36. package/mcp/src/features/voc-speaking-script/speaking-script.js +293 -0
  37. package/mcp/src/features/xiaohongshu-trend/assets.js +158 -0
  38. package/mcp/src/features/xiaohongshu-trend/industry-presets.js +335 -0
  39. package/mcp/src/features/xiaohongshu-trend/live-collector.js +337 -0
  40. package/mcp/src/features/xiaohongshu-trend/preference-memory.js +130 -0
  41. package/mcp/src/features/xiaohongshu-trend/report.js +319 -0
  42. package/mcp/src/features/xiaohongshu-trend/sample-data.js +79 -0
  43. package/mcp/src/features/xiaohongshu-trend/signal-extractor.js +77 -0
  44. package/mcp/src/features/xiaohongshu-trend/topic-builder.js +84 -0
  45. package/mcp/src/providers/douyin-api.js +170 -0
  46. package/mcp/src/providers/xiaohongshu-api.js +102 -0
  47. package/mcp/src/server.js +621 -0
  48. package/mcp/src/tools/douyin-preference-update.js +70 -0
  49. package/mcp/src/tools/douyin-trend-run.js +464 -0
  50. package/mcp/src/tools/voc-business-workflow-run.js +52 -0
  51. package/mcp/src/tools/voc-competitor-map-run.js +59 -0
  52. package/mcp/src/tools/voc-content-plan-run.js +59 -0
  53. package/mcp/src/tools/voc-issue-pool-run.js +59 -0
  54. package/mcp/src/tools/voc-problem-deep-dive-run.js +59 -0
  55. package/mcp/src/tools/voc-speaking-script-run.js +59 -0
  56. package/mcp/src/tools/xiaohongshu-preference-update.js +85 -0
  57. package/mcp/src/tools/xiaohongshu-trend-run.js +404 -0
  58. package/memory-templates/douyin-trend-profile.json +33 -0
  59. package/memory-templates/xiaohongshu-trend-profile.json +33 -0
  60. package/package.json +65 -0
  61. package/scripts/smoke-cross-industry.js +126 -0
  62. package/scripts/smoke-mcp.js +302 -0
  63. package/scripts/smoke-package.js +1005 -0
  64. package/skill-package-manifest.json +62 -0
  65. package/skills/douyin-trend-intelligence/SKILL.md +78 -0
  66. package/skills/douyin-trend-intelligence/references/live-mode.md +52 -0
  67. package/skills/douyin-trend-intelligence/references/output-format.md +32 -0
  68. package/skills/douyin-trend-intelligence/references/user-workflow.md +24 -0
  69. package/skills/voc-business-workflow/SKILL.md +61 -0
  70. package/skills/voc-competitor-map/SKILL.md +60 -0
  71. package/skills/voc-competitor-map/references/restaurant-competitor-framework.md +25 -0
  72. package/skills/voc-competitor-map/references/restaurant-differentiation-patterns.md +44 -0
  73. package/skills/voc-content-plan/SKILL.md +63 -0
  74. package/skills/voc-content-plan/references/restaurant-content-framework.md +41 -0
  75. package/skills/voc-content-plan/references/restaurant-speaking-script-patterns.md +34 -0
  76. package/skills/voc-issue-pool/SKILL.md +81 -0
  77. package/skills/voc-problem-deep-dive/SKILL.md +86 -0
  78. package/skills/voc-speaking-script/SKILL.md +99 -0
  79. package/skills/xiaohongshu-trend-intelligence/SKILL.md +61 -0
  80. package/skills/xiaohongshu-trend-intelligence/references/live-mode.md +65 -0
  81. package/skills/xiaohongshu-trend-intelligence/references/output-format.md +71 -0
  82. package/skills/xiaohongshu-trend-intelligence/references/user-workflow.md +60 -0
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "voc-intelligence",
3
+ "description": "VOC intelligence skills for Claude Code: end-to-end VOC business workflows, Xiaohongshu and Douyin trend reports, live social VOC collection, 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.15",
5
+ "author": {
6
+ "name": "nkkj-BrainHack"
7
+ }
8
+ }
package/.mcp.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "mcpServers": {
3
+ "voc": {
4
+ "command": "node",
5
+ "args": [
6
+ "E:\\workspace\\openclaw-voc-skill\\claude-code-voc-intelligence\\mcp\\src\\server.js"
7
+ ],
8
+ "cwd": "E:\\workspace\\openclaw-voc-skill\\claude-code-voc-intelligence"
9
+ }
10
+ }
11
+ }
package/README.md ADDED
@@ -0,0 +1,334 @@
1
+ # Claude Code VOC Intelligence
2
+
3
+ 面向 Claude Code 的 VOC 用户洞察技能包。它不是单纯的报告生成器,而是一套“采集真实用户声音 -> 看市场 -> 看竞品 -> 整理问题池 -> 深挖关键问题 -> 生成内容选题 -> 沉淀偏好记忆 -> 下一轮继续优化”的工作流。
4
+
5
+ 当前能力覆盖:
6
+
7
+ - VOC 经营闭环:适合用户只说“看顾客关心什么、先改哪里、下周发什么”时,一次串起趋势、问题池、单点深挖、内容计划和口播稿。
8
+ - 小红书趋势情报:适合看行业趋势、用户顾虑、内容选题和销售话术。
9
+ - 抖音趋势情报:适合看短视频平台上的用户真实反馈、评论问题、内容机会和门店转化线索。
10
+ - VOC 竞品图谱:适合在竞品不清楚时先找候选竞品,再判断别人被夸什么、被骂什么、我方怎么错位竞争。
11
+ - VOC 问题池:适合把评论、报告证据或用户反馈整理成可排序、可跟进、可继续深挖的问题列表。
12
+ - 单点 VOC 深挖:适合把一个具体问题转成老板能执行的经营动作、内容选题和 7 天验证计划。
13
+ - VOC 内容选题:适合把用户问题转成 7 天短视频选题、口播脚本、镜头建议和验证指标。
14
+ - VOC 口播脚本共创:适合把一条 VOC 选题继续打磨成 60 秒稿、30 秒稿、提词器版,并支持多轮改稿和定稿记忆。
15
+
16
+ 这套技能包不覆盖创始人故事、品牌自传或老板个人 IP 长文。口播脚本要做,但必须来自 VOC 用户问题、竞品评论差异、问题池 Top 问题或单点深挖动作。
17
+
18
+ ## 什么时候用
19
+
20
+ 用户说这些话时,Claude Code 应优先使用本技能包,而不是让用户自己设计提示词:
21
+
22
+ - “帮我看看这个行业用户最近在关心什么”
23
+ - “跑一份小红书/抖音趋势情报”
24
+ - “先用演示样例跑通流程,不要真实采集”
25
+ - “切到 live,真实采集一下”
26
+ - “帮我看看竞品都在做什么”
27
+ - “我不知道竞品是谁,帮我先做一份竞品图谱”
28
+ - “这些评论里用户到底在吐槽什么”
29
+ - “把这些评论整理成问题池”
30
+ - “哪些问题最影响生意,先改哪个”
31
+ - “这个问题老板该怎么解决”
32
+ - “继续深挖排队/价格/服务/味道这个问题”
33
+ - “下周账号发什么内容”
34
+ - “根据这些顾客吐槽生成 7 天口播脚本”
35
+ - “这个动作不适合我们,下次别推荐”
36
+ - “这个有效,后面优先按这个方向来”
37
+ - “帮我看看顾客关心什么,告诉我先改哪里、下周发什么”
38
+ - “跑一遍完整 VOC 经营闭环”
39
+
40
+ ## 能交付什么
41
+
42
+ 第一轮趋势情报会输出:
43
+
44
+ - 第一轮初步判断
45
+ - 数据口径
46
+ - 样本观察
47
+ - 机会假设
48
+ - 用户顾虑/决策阻力
49
+ - 证据样本
50
+ - 可继续验证的选题方向
51
+ - 待确认问题
52
+
53
+ VOC 问题池会输出:
54
+
55
+ - 问题优先级
56
+ - 每个问题的状态、证据数、影响环节和建议动作
57
+ - 本周建议推进
58
+ - 下一步深挖入口
59
+ - 问题池记忆文件
60
+
61
+ VOC 竞品图谱会输出:
62
+
63
+ - 竞品候选清单
64
+ - 用户可能被竞品吸引的点
65
+ - 用户可能吐槽竞品的点
66
+ - 我方错位机会
67
+ - 可转成内容的选题方向
68
+ - 下一步问题池入口
69
+
70
+ 单点 VOC 深挖会输出:
71
+
72
+ - 一句话判断
73
+ - 优先级判断
74
+ - 用户原话证据
75
+ - 表层问题 vs 深层问题
76
+ - 老板视角影响
77
+ - 今天就能做、7 天内验证、长期沉淀
78
+ - 可转化内容选题
79
+ - 7 天验证计划
80
+ - 下轮验证指标
81
+ - 已应用的使用记忆
82
+
83
+ VOC 内容选题会输出:
84
+
85
+ - 7 天内容表
86
+ - 每天对应的用户问题
87
+ - 前 3 秒钩子
88
+ - 30-60 秒口播脚本
89
+ - 镜头建议
90
+ - 评论区引导
91
+ - 验证指标
92
+
93
+ ## 安装
94
+
95
+ 推荐安装到当前工作区,适合 VSCode Claude Code:
96
+
97
+ ```powershell
98
+ npx --yes @vocmarket/voc-skill@latest workspace --smoke
99
+ ```
100
+
101
+ 安装后会生成:
102
+
103
+ ```text
104
+ .mcp.json
105
+ .claude/skills/xiaohongshu-trend-intelligence/SKILL.md
106
+ .claude/skills/douyin-trend-intelligence/SKILL.md
107
+ .claude/skills/voc-issue-pool/SKILL.md
108
+ .claude/skills/voc-problem-deep-dive/SKILL.md
109
+ .claude/skills/voc-content-plan/SKILL.md
110
+ .claude/skills/voc-speaking-script/SKILL.md
111
+ .claude/skills/voc-competitor-map/SKILL.md
112
+ .claude/skills/voc-business-workflow/SKILL.md
113
+ .claude/plugins/voc-intelligence
114
+ ```
115
+
116
+ 也可以全局安装:
117
+
118
+ ```powershell
119
+ npm install -g @vocmarket/voc-skill
120
+ claude-voc install --smoke
121
+ ```
122
+
123
+ 或免全局安装:
124
+
125
+ ```powershell
126
+ npx --yes @vocmarket/voc-skill@latest install --smoke
127
+ ```
128
+
129
+ ## 推荐用户话术
130
+
131
+ 小红书演示样例:
132
+
133
+ ```text
134
+ 帮我做一份家装全屋定制行业的小红书趋势情报。
135
+ 先用演示样例跑通流程,不要真实采集。
136
+ 在聊天里给我第一轮样本观察和待确认问题。
137
+ ```
138
+
139
+ 抖音演示样例:
140
+
141
+ ```text
142
+ 帮我做一份本地生活餐饮行业的抖音趋势情报。
143
+ 先用演示样例跑通流程,不要真实采集。
144
+ 在聊天里给我第一轮样本观察和待确认问题。
145
+ ```
146
+
147
+ 问题池:
148
+
149
+ ```text
150
+ 把这些评论整理成问题池,告诉我哪些问题最影响生意,先改哪个。
151
+ ```
152
+
153
+ 单点 VOC 深挖:
154
+
155
+ ```text
156
+ 继续深挖“排队”这个问题,站在老板视角告诉我怎么解决,给出今天能做的动作和 7 天验证计划。
157
+ ```
158
+
159
+ 竞品图谱:
160
+
161
+ ```text
162
+ 我是南昌做烧烤的,不知道竞品是谁,帮我先做一份竞品图谱和错位竞争建议。
163
+ ```
164
+
165
+ 7 天内容选题:
166
+
167
+ ```text
168
+ 根据“排队久、人均贵、第一次来怕踩雷”这些顾客问题,帮我生成 7 天短视频选题和口播脚本。
169
+ ```
170
+
171
+ 多轮记忆反馈:
172
+
173
+ ```text
174
+ 这个店不想做等位饮品,更想先改评论区回复和预点单,后面按这个方向继续优化。
175
+ ```
176
+
177
+ ## Claude Code 应如何调用
178
+
179
+ 优先使用技能入口:
180
+
181
+ - `xiaohongshu-trend-intelligence`
182
+ - `douyin-trend-intelligence`
183
+ - `voc-issue-pool`
184
+ - `voc-problem-deep-dive`
185
+ - `voc-content-plan`
186
+ - `voc-speaking-script`
187
+ - `voc-competitor-map`
188
+ - `voc-business-workflow`
189
+
190
+ MCP 工具:
191
+
192
+ - `voc_business_workflow_run`
193
+ - `voc_xiaohongshu_trend_run`
194
+ - `voc_xiaohongshu_preference_update`
195
+ - `voc_xiaohongshu_token_check`
196
+ - `voc_douyin_trend_run`
197
+ - `voc_douyin_preference_update`
198
+ - `voc_douyin_token_check`
199
+ - `voc_issue_pool_run`
200
+ - `voc_problem_deep_dive_run`
201
+ - `voc_content_plan_run`
202
+ - `voc_competitor_map_run`
203
+ - `voc_speaking_script_run`
204
+
205
+ 命令行入口:
206
+
207
+ ```powershell
208
+ npm --prefix claude-code-voc-intelligence run xhs:sample
209
+ npm --prefix claude-code-voc-intelligence run dy:sample
210
+ npm --prefix claude-code-voc-intelligence run voc:issue-pool
211
+ npm --prefix claude-code-voc-intelligence run voc:deep-dive
212
+ npm --prefix claude-code-voc-intelligence run voc:business-workflow
213
+ npm --prefix claude-code-voc-intelligence run mcp:smoke
214
+ npm --prefix claude-code-voc-intelligence run smoke:package
215
+ ```
216
+
217
+ 更完整的能力索引见:
218
+
219
+ - `docs/capability-map.md`
220
+ - `docs/boss-prompt-templates.md`
221
+ - `docs/deliverables/trend-insight-report.md`
222
+ - `docs/deliverables/competitor-map-report.md`
223
+ - `docs/deliverables/voc-issue-pool-report.md`
224
+ - `docs/deliverables/single-problem-action-plan.md`
225
+ - `docs/deliverables/seven-day-content-plan.md`
226
+ - `docs/live-manual-acceptance-checklist.md`
227
+ - `docs/payment-package-links.md`
228
+ - `docs/context-budget-implementation-plan.md`
229
+ - `skills/voc-content-plan/references/restaurant-content-framework.md`
230
+ - `skills/voc-content-plan/references/restaurant-speaking-script-patterns.md`
231
+ - `skills/voc-competitor-map/references/restaurant-competitor-framework.md`
232
+ - `skills/voc-competitor-map/references/restaurant-differentiation-patterns.md`
233
+
234
+ ## 工作坊输出口径
235
+
236
+ 面向老板或线下工作坊时,优先按这五段表达:
237
+
238
+ 1. 你这轮能拿到什么。
239
+ 2. 我会怎么做。
240
+ 3. 第一版结果。
241
+ 4. 你需要确认什么。
242
+ 5. 下一步建议。
243
+
244
+ 每个模块都要对应一个交付物:趋势清单、竞品图谱、问题清单、单点行动计划、7 天内容选题。不要在前台讲 MCP、schema、提示词工程。
245
+
246
+ ## VOC 经营闭环
247
+
248
+ 当用户想一次拿到“市场真实声音 -> 先改哪个问题 -> 老板能做什么 -> 下周发什么 -> 第一条口播稿”时,优先使用:
249
+
250
+ ```text
251
+ voc_business_workflow_run
252
+ ```
253
+
254
+ 典型话术:
255
+
256
+ ```text
257
+ 帮我看一下南昌餐饮最近顾客在关心什么,并告诉我先改哪里、下周发什么。
258
+ ```
259
+
260
+ 这条链路会自动串起趋势情报、VOC 问题池、单点深挖、7 天内容计划和口播脚本。第一轮仍然是初步判断,必须提示用户结合门店、销售、私域反馈校准。
261
+
262
+ ## token 和充值口径
263
+
264
+ sample 模式不需要 token。live 模式需要 VOC-AI 数据服务 token。
265
+
266
+ 允许读取 token 的位置:
267
+
268
+ - 本次请求参数
269
+ - 当前工作区 `.env.local`
270
+ - 系统环境变量
271
+ - `~/.claude/voc-credentials.json`
272
+
273
+ Claude Code 技能包不读取 `~/.openclaw/voc-credentials.json`。
274
+
275
+ 如果没有 token 或余额不足,应给用户充值/开通链接,不要暴露底层接口 403、权限堆栈或上游响应体:
276
+
277
+ ```text
278
+ https://app.fmode.cn/dev/apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF
279
+ ```
280
+
281
+ ## 记忆能力
282
+
283
+ 趋势情报支持偏好记忆,适合记录“保留哪些方向、屏蔽哪些方向、下一轮关注什么”。
284
+
285
+ 问题池支持分桶记忆,适合记录同一客户/门店的已发现问题、状态和历史证据。
286
+ 连续更新同一个问题池时,会输出“问题变化”,对比上轮/本轮证据数,标记新增、变多、变少、持平或本轮未再出现的问题。
287
+
288
+ 单点 VOC 深挖支持分桶记忆。默认按 `project/brand/store + industry + scenario + audience` 隔离,避免不同客户、不同行业串味。
289
+ 当用户反馈“这个有效/无效”后,工具会记录动作验证次数,后续建议会优先推有效动作、降低无效动作,并解释为什么这样排序。
290
+
291
+ 示例:
292
+
293
+ ```text
294
+ 这个动作不适合我们,下次别推荐等位饮品。
295
+ 这个有效,后面优先做评论区回复和预点单。
296
+ ```
297
+
298
+ 工具会把反馈沉淀为偏好动作、屏蔽动作、验证有效动作或验证无效动作,让后续建议逐步贴近真实业务。
299
+
300
+ ## 发布前验证
301
+
302
+ ```powershell
303
+ npm --prefix claude-code-voc-intelligence run mcp:smoke
304
+ npm --prefix claude-code-voc-intelligence run smoke:package
305
+ npm run claude-voc:build
306
+ npm run claude-voc:npm-publish
307
+ ```
308
+
309
+ 真实采集不默认放入自动 smoke。发布前或课程现场前,按 `docs/live-manual-acceptance-checklist.md` 做一次小规模 live 验收。
310
+ ## VOC 口播脚本共创
311
+
312
+ `voc-content-plan` 负责把 VOC 问题转成 7 天内容计划;`voc-speaking-script` 负责把其中一条选题继续打磨成能拍的口播稿。
313
+
314
+ 典型话术:
315
+
316
+ ```text
317
+ 选题 2,进入脚本共创。
318
+ ```
319
+
320
+ ```text
321
+ 开头更狠一点,老板视角,少讲概念,多给一个真实场景。
322
+ ```
323
+
324
+ ```text
325
+ 定稿,并把这个风格记住。以后少讲工具清单,多讲老板判断。
326
+ ```
327
+
328
+ 对应 MCP 工具:
329
+
330
+ ```text
331
+ voc_speaking_script_run
332
+ ```
333
+
334
+ 它会输出 60 秒稿、30 秒压缩版、提词器版、标题备选、镜头建议、评论区引导和质量门槛,并把“保留/不要/定稿”等反馈写入脚本记忆。完整的抖音日更、对标账号监控、逐字稿拆解仍属于 `douyin-speaking-daily` 的深度能力;本包提供的是 VOC 到口播共创的轻量出口。