xhs-comment-insightslisted
Install: claude install-skill DevinChen2014/socialdatax-skills
<!-- AUTO-GENERATED from socialdatax-skill-source. Do not edit directly; run `node scripts/generate_socialdatax_skills.mjs`. -->
# 小红书评论分析与需求挖掘
## 适用场景
当用户需要做小红书评论分析、小红书评论洞察、小红书用户反馈分析、小红书需求挖掘、痛点总结、购买顾虑整理、FAQ 提炼、口碑分析、评论回复观察或内容讨论复盘时使用。基于用户提供的小红书笔记链接或 note_id 下的评论结果,面向内容运营、产品调研、品牌调研和创作者。
## 快速开始
- 先给出当前 skill 支持的输入:内容链接或内容 ID。
- 如果结果有分页,先取第一页;要继续扩大,再按返回的下一页标记继续。
- 你通常会得到:评论文本、回复线索和用户反馈主题。
## 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 comments \
--note-id "<note_id>" --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill xhs-comment-insights
npx -y socialdatax-skills@latest xhs comments \
--url "<note_url_or_share_text>" --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill xhs-comment-insights
npx -y socialdatax-skills@latest xhs sub-comments \
--note-id "<note_id>" --comment-id "<comment_id>" --pretty \
--source-client socialdatax-skills --source-platform modelscope \
--source-skill xhs-comment-insights
```
## 参数说明
评论 / 回复:
- 说明:XHS `--note-id <note_id>`:使用搜索、详情、评论或创作者笔记列表返回的完整 `note_id`;不要只传前缀。
- 说明:XHS 评论 `--sort-type <default|time_descending|like_count_descending>`:可选一级评论排序;不传就使用平台默认排序。
- 说明:使用 CLI 示例里的 URL 入口传内容页链接、短链或分享文本来获取一级评论。
- 可选:`--page-token <next_page_token>`:这是