xhs-hot-topic-selectionlisted
Install: claude install-skill DevinChen2014/socialdatax-skills
<!-- AUTO-GENERATED from socialdatax-skill-source. Do not edit directly; run `node scripts/generate_socialdatax_skills.mjs`. -->
# 小红书热榜选题分析
## 适用场景
用于小红书热榜选题、小红书热点选题、小红书热榜分析、小红书热点分析和趋势选题参考。先看当前小红书热榜,再结合相关热门笔记样本,把热榜信号整理成可执行选题。
## 快速开始
- 先给出当前 skill 支持的输入:关键词或选题方向、要观察的平台热榜。
- 推荐流程:先看当前热榜,再选 1-3 个热点词做关键词搜索;如果用户已经给了关键词,可直接搜索相关热门样本。
- 你通常会得到:热榜信号、相关热门笔记样本、选题候选、标题钩子、内容角度和下一步建议。
## API Key 获取
获取或管理 API Key:访问 <https://socialdatax.com/ai?from=modelscope>,按官网的 API Key 申请/管理入口操作。环境变量名固定使用 `SOCIALDATAX_API_KEY`;不要引导用户使用其他域名。
## 直接调用命令
优先使用 direct CLI;能运行 shell 命令的 Agent 不需要额外配置 MCP server:
```bash
npx -y socialdatax-skills@latest xhs hot-search \
--pretty --source-client socialdatax-skills --source-platform modelscope \
--source-skill xhs-hot-topic-selection
npx -y socialdatax-skills@latest xhs search \
--keyword "<hot_topic_or_keyword>" --sort-type like_count_descending --pages 2 \
--max-items 20 --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill xhs-hot-topic-selection
```
## 参数说明
热榜:
- 说明:用户要看当前小红书热榜、热搜、热点或热词时,先用 `xhs hot-search`;这个命令不需要 `--keyword`。
搜索:
- 必填:`--keyword <text>`:当用户给出话题词、赛道、产品方向,或选择一个方向要继续看样本时必填;使用用户真实意图,去掉多余空格,并保持关键词聚焦。
- 可选:`--sort-type <general|time_descending|like_count_descending|comment_count_descending|collect_count_descending>`:可选排序参数;本 skill 的样本流程默认偏向 `like_count_descending`,除非用户指定其它排序。
- 可选:`--note-type <all|image|video>`:可选笔记类型筛选;默认是 `all`。
- 可选:`--publish-time-range <all|day|week|half_year>`:可