下载地址
https://www.zhengdianxue.com/wp-content/uploads/skills/user_825d9e7e--short-video-topic-research.zip将提示词发送给你的 AI 安装该 skills
请根据 https://skillhub.cn/install/skillhub.md,安装 @user_825d9e7e/short-video-topic-research。当用户需要做短视频选题素材研究、短视频脚本素材、口播角度参考、开场钩子观察、竞品内容复盘、评论反馈整理或抖音/快手/小红书选题素材时使用。
阅读全文 (展开查看完整说明)
概述
<!– AUTO-GENERATED from socialdatax-skill-source. Do not edit directly; run node scripts/generate_socialdatax_skills.mjs. –>
短视频选题素材研究
适用场景
当用户需要做短视频选题素材研究、短视频脚本素材、口播角度参考、开场钩子观察、竞品内容复盘、评论反馈整理或抖音/快手/小红书选题素材时使用。
快速开始
- 先给出当前 skill 支持的输入:关键词或选题方向、要观察的平台热榜、内容链接或内容 ID、账号关键词、达人名称或赛道方向、账号主页、账号分享文本或平台账号 ID。
- 如果你只想先看样本,先取 1 页;要继续扩大,再按参数说明使用分页或
--max-items。 - 你通常会得到:榜单排名和热度信号、相关标题、作者或账号、链接或内容 ID、单条内容正文、作者、发布时间和互动指标、评论文本、回复线索和用户反馈主题、候选账号、昵称、平台账号 ID 和粉丝信号、账号资料、认证、粉丝或互动信号、近期内容列表、发布时间和互动信号,以及可继续追问的角度。
API Key 获取
获取或管理 API Key:访问 <https://socialdatax.com/ai?from=skillhub>,按官网的 API Key 申请/管理入口操作。环境变量名固定使用 SOCIALDATAX_API_KEY;不要引导用户使用其他域名。
- 先确认调用方式和命令实际运行位置:已认证的 hosted MCP 不要求本地 CLI 变量或 Node/npm;需要 Key 的直接 CLI 则在同一执行环境用下方命令检查。已能读取就继续原任务,不覆盖已有配置。不能运行命令或缺少 Node.js 属于执行环境问题,不能当成 Key 缺失;仅在确认用户没有 Key 时,才引导从上述官网获取。
- 本地 Agent:优先用客户端官方支持的持久化 Secret / env,并确认它注入 Agent 命令进程。WorkBuddy 可在当前可信工作空间的
.codebuddy/settings.local.json中合并{"env":{"SOCIALDATAX_API_KEY":"<YOUR_API_KEY>"}},保留其他设置和 env;此路径只适用于 WorkBuddy,作用域只限该工作空间。真实 Key 由用户本地填写,文件不提交版本库。 - 远程 Agent:在实际运行命令的远程主机或服务配置客户端持久化 Secret / env,按该客户端的官方方式重新加载执行进程,并在同一远程会话检查;本机系统变量不会自动传到远程。不要因本机检查成功就认定远程也可用。
- 容器或云端沙箱 Agent:优先用平台支持的持久化 Secret / 环境变量注入功能,让它进入执行 CLI 的容器或沙箱;配置后按平台说明重建或重新加载,再在其中检查。不要改宿主机变量来代替沙箱注入;若平台无法持久保存或注入,说明限制并引导用户使用平台支持的鉴权方式,不绕过隔离。
- 检查为 false 时,先逐项排查:配置文件或 Secret 是否位于正确主机、工作空间和作用域,工作空间是否可信,字段是否正确且保留了已有设置,变量是否注入命令进程(仅 MCP server 的 env 不算),以及是否按官方说明重新加载或完全重启。修正后在原执行环境复查;只有明确不支持客户端持久化,或完成上述排查仍不可用,才用该环境官方支持的用户级/服务级环境变量兜底。不能仅因一次检查或重新加载失败就跳到系统配置。
- 系统兜底按实际执行主机处理:Windows 可用用户环境变量;macOS 可由用户在本机终端隐藏输入(如 Bash
read -s)后传给launchctl setenv,仅对当前登录会话有效,重登或重启电脑后需重新加载。输入失败、空输入或设置失败时明确报错并停止,返回非零退出码;清理临时变量不能覆盖原错误状态。配置后完全退出对应客户端及后台进程再打开;远程服务按其运行方式重载,沙箱仍通过平台注入。单独终端临时export、只写 shell 启动文件或只关窗口都不能证明 Agent 已继承。真实 Key 不出现在聊天、日志、截图、命令历史或 Skill 文件里。 - 在实际执行 CLI 的同一环境运行
node -e "console.log(JSON.stringify({apiKeyReadable:Boolean(['SOCIALDATAX_API_KEY','SOCIAL_MEDIA_MCP_API_KEY'].map(name=>process.env[name]?.trim()).find(Boolean))}))",只报告布尔结果,不打印 Key 或全部环境变量。检查遵循 CLI 的顺序:先读取去除首尾空白后的主变量,再兼容既有旧变量;新增配置仍统一用SOCIALDATAX_API_KEY。apiKeyReadable: false时停止业务调用并按上面的顺序排查;true只证明存在可读取的非空值,继续原业务请求验证鉴权,不代表 Key 有效或余额充足。不要在检查命令里临时注入变量制造成功。
直接调用命令
优先使用 direct CLI;能运行 shell 命令的 Agent 不需要额外配置 MCP server:
npx -y socialdatax-skills@latest xhs hot-search
--pretty --source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest xhs search
--keyword "<keyword>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest xhs detail
--note-id "<note_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest xhs comments
--note-id "<note_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest xhs user-info
--user-id "<user_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest xhs user-posts
--user-id "<user_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin hot-search
--pretty --source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin search
--keyword "<keyword>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin detail
--aweme-id "<aweme_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin comments
--aweme-id "<aweme_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin user-info
--sec-user-id "<sec_user_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin user-posts
--sec-user-id "<sec_user_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest kuaishou hot-search
--pretty --source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest kuaishou search
--keyword "<keyword>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest kuaishou user-search
--keyword "<creator_keyword>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest kuaishou detail
--photo-id "<photo_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest kuaishou comments
--photo-id "<photo_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest kuaishou user-info
--user-id "<user_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest kuaishou user-posts
--user-id "<user_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research更多 direct CLI 入口:
npx -y socialdatax-skills@latest xhs detail
--url "<note_url_or_share_text>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest xhs comments
--url "<note_url_or_share_text>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest xhs user-info
--profile-url "<profile_url_or_share_text>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest xhs user-posts
--profile-url "<profile_url_or_share_text>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin detail
--url "<douyin_content_url_or_share_text>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin comments
--url "<douyin_content_url_or_share_text>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin user-info
--profile-url "<profile_url_or_share_text>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin user-posts
--profile-url "<profile_url_or_share_text>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin user-series
--sec-user-id "<sec_user_id>" --pretty --source-client socialdatax-skills
--source-platform skillhub --source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin user-series
--profile-url "<profile_url_or_share_text>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest xhs sub-comments
--note-id "<note_id>" --comment-id "<comment_id>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest douyin replies
--aweme-id "<aweme_id>" --comment-id "<comment_id>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest kuaishou detail
--url "<kuaishou_content_url_or_share_text>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest kuaishou comments
--url "<kuaishou_content_url_or_share_text>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest kuaishou user-info
--profile-url "<profile_url_or_share_text>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest kuaishou user-posts
--profile-url "<profile_url_or_share_text>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research
npx -y socialdatax-skills@latest kuaishou replies
--photo-id "<photo_id>" --comment-id "<comment_id>" --pretty
--source-client socialdatax-skills --source-platform skillhub
--source-skill short-video-topic-research参数说明
热榜:
- 说明:用户要看当前小红书热榜时,使用
xhs hot-search,这个命令不需要--keyword。 - 说明:用户要看当前抖音热榜时,使用
douyin hot-search,这个命令不需要--keyword。 - 说明:用户要看当前快手热榜时,使用
kuaishou hot-search,这个命令不需要--keyword。
搜索:
- 说明:做关键词研究时,根据平台使用
xhs search --keyword <text>、douyin search --keyword <text>或kuaishou search --keyword <text>。 - 说明:做快手关键词研究时,使用
kuaishou search --keyword <text>。 - 说明:搜索翻页时,如果返回了
next_page_token,再使用--page-token <next_page_token>;第一页不要传。继续翻页时只能原样使用同一链路返回的完整 token。 - 说明:关键词研究筛选:XHS 或抖音搜索使用各自文档里的
--sort-type值;--note-type、--publish-time-range、--duration-range和--content-type只在对应平台支持时使用。快手搜索支持--keyword、可选--page-token和 CLI--since-days最近内容筛选。
详情 / 评论:
- 说明:做详情、评论、回复命令时,使用示例里的内容 ID 参数,或者用对应的 URL 入口,两种方式不要混用。
- 说明:XHS 评论
--sort-type <default|time_descending|like_count_descending>:可选一级评论排序;不传就使用平台默认排序。
创作者 / 账号:
- 说明:如果用户只有快手账号名、关键词或赛道方向,先用
kuaishou user-search --keyword <creator_keyword>找候选账号,再继续查资料。 - 说明:做创作者资料、内容列表或合集列表命令时,使用示例里的账号 ID 参数,或者用对应的 profile-url 入口,两种方式不要混用。
- 说明:快手
user-search支持用--pages <n>和--max-items <n>控制候选账号数量,但不支持--since-days,因为它返回的是账号,不是作品。
通用:
- 可选:
--page-token <next_page_token>:用于 XHS / 抖音 / 快手搜索翻页、快手账号搜索翻页,以及评论、回复、创作者内容列表、笔记列表和合集列表的 token 翻页。翻页时保持原始主题、内容对象、创作者搜索词或目标账号不变,并原样传回完整 token;不要截断、改写、脱敏、重建,或用省略号替换中间内容。 - 可选:
--pretty:只影响输出格式,不改变实际请求结果。 - 可选:
--source-client socialdatax-skills --source-platform skillhub --source-skill short-video-topic-research:这是当前 Agent Skill 的来源标记;按本 Skill 示例执行时保持这些值不变。
优先使用最贴近短视频研究问题的 direct CLI 命令。命令返回 JSON,包含 platform、tool、arguments 和 data。
输出建议
优先输出可直接复盘的结果:榜单信号、相关样本和主要角度、单条内容事实、评论主题和反馈线索、候选账号、创作者资料、创作者内容证据,并标出下一步可继续追问的问题。
综合短视频角度、开场钩子、竞品模式、评论主题和可落地选题素材前,先把小红书、抖音和快手证据分开整理。对于 XHS 搜索或详情结果里的 note_url,无论是在最终回答、展示、引用、存储、输出还是转发时,都要保留完整原始 URL,包括其中的 xsec_token 查询参数;不要改写、截断、脱敏、重建,也不要只根据 note_id 去拼链接。如果详情里的 note_url 为空,就展示 note_id,或者明确说明当前没有可直接打开的完整链接。对于 XHS note_id,要原样复制返回的完整 note_id;不要只传或只展示前缀。做创作者研究时,把账号资料和内容列表证据分开写;如果用了抖音短剧合集命令,要单独写合集事实;如果用了快手命令,要保留快手作品列表证据。如果同时用了热榜和关键词研究,请把热榜信号和关键词结果分开写。
MCP 工具
与上面 direct CLI 命令对应的 MCP 工具:
- XHS:
xhs_get_search_hot_list,xhs_search_notes,xhs_get_note_detail_by_note_id,xhs_get_note_comments_by_note_id,xhs_get_user_info_by_user_id,xhs_get_user_posted_notes_by_user_id,xhs_get_note_detail_by_note_url,xhs_get_note_comments_by_note_url,xhs_get_user_info_by_profile_url,xhs_get_user_posted_notes_by_profile_url,xhs_get_note_sub_comments_by_comment_id - DOUYIN:
douyin_get_hot_search_list,douyin_search_videos,douyin_get_video_detail_by_aweme_id,douyin_get_video_comments_by_aweme_id,douyin_get_user_info_by_sec_user_id,douyin_get_user_posted_videos_by_sec_user_id,douyin_get_video_detail_by_url,douyin_get_video_comments_by_url,douyin_get_user_info_by_profile_url,douyin_get_user_posted_videos_by_profile_url,douyin_get_user_series_by_sec_user_id,douyin_get_user_series_by_profile_url,douyin_get_video_comment_replies_by_comment_id - KUAISHOU:
kuaishou_get_hot_search_list,kuaishou_search_videos,kuaishou_search_users,kuaishou_get_video_detail_by_photo_id,kuaishou_get_video_comments_by_photo_id,kuaishou_get_user_info_by_user_id,kuaishou_get_user_posted_videos_by_user_id,kuaishou_get_video_detail_by_url,kuaishou_get_video_comments_by_url,kuaishou_get_user_info_by_profile_url,kuaishou_get_user_posted_videos_by_profile_url,kuaishou_get_video_comment_replies_by_comment_id
上面自动列出的 MCP 工具名就是事实源;根据用户的平台和任务,优先选择最贴近的那个工具。搜索翻页时,第一页不要传 page_token;继续同一条链路时,只能传完整返回的 next_page_token,后续续页都继续用 page_token。
小红书搜索参数命名提醒:direct CLI 使用 --sort-type、--publish-time-range、--note-type;MCP 工具 xhs_search_notes 使用 sort_type、publish_time_range、note_type。不要传 sortType、publishTimeRange 或 noteType。
安全边界
这是只读 skill。运行时使用用户环境变量中的 SOCIALDATAX_API_KEY;生成的 Skill 文件不包含 API Key。不会读取本地浏览器数据,也不会执行登录、发帖、点赞、评论或账号修改。
示例结果
- 示例展示格式,不代表固定字段:热榜=排名/话题/热度信号、内容样本=标题/作者/链接或 ID、详情=正文/作者/发布时间/互动指标、评论=内容/用户/时间/回复线索、候选账号=昵称/ID/粉丝信号、账号=昵称/ID/简介/粉丝信号、账号内容=标题/发布时间/互动信号;判断=相关原因和下一步。
异常处理
- 凭证来源排查:先确认本次调用使用 CLI 还是 MCP。CLI 在实际执行环境中按「API Key 获取」的检查规则排查生效配置(主变量优先,兼容既有旧变量);MCP 检查当前连接实际使用的鉴权配置,不要求另设本地 CLI 变量。配置缺失时沿用前面的客户端排查与兜底顺序;不要输出 Key、Authorization header 或秘密配置值。
- 如果出现 SDK/依赖缺失、npm 网络、Node.js/npm/npx 不可用或执行权限错误:这是本地运行环境、依赖安装、网络或 AI 平台授权问题,不是 SocialDataX API Key 或业务数据返回错误。仅在用户已授权的范围内安装或修复本任务所需依赖,优先使用项目目录或临时环境。环境执行权限不等于用户授权;超出授权范围时,先说明具体改动并征得同意,包括全局安装、运行时升级或系统配置变更。需要网络或执行授权时提醒用户同意或完成授权;处理后继续原命令;不要改用公开网页搜索替代 SocialDataX 数据。
- CLI 退出码为 1 且输出
partial: true时,保留data.items和错误,明确结果不完整。此时按以下续页规则恢复,不适用原命令重跑建议;错误解决后(包括充值后),仅用非空的data.next_page_token和原查询条件继续。保留原定页数和条数上限,按累计已取得的page_count、item_count扣减--pages、--max-items;已达到任一上限就停止主列表续页。空令牌不代表取完,不要从第一页自动重跑;因重复令牌中断时,先排查原因。 - 使用
--include-replies时,replies_partial表示该评论回复不完整,replies_pending表示尚未展开。先用该平台回复命令、对应评论标识及可用的replies_next_page_token补齐;尚未展开或首个回复请求失败时,修正错误后从该评论的首批回复开始,重复令牌错误则先排查。仅在主评论仍有剩余额度时,才用外层data.next_page_token继续;补齐已取得评论的回复不增加主评论页数;两类令牌不能混用,不把回复预览当成完整回复。 - 非余额不足的网络或 API 异常:保留错误信息,按上述实际凭证来源核对配置,并检查参数和链接格式后原样重试一次。
- 如果返回
insufficient_balance或“积分不足”:不要重复重试;展示错误中的官方充值链接(https://socialdatax.com/dashboard/billing,可带渠道参数);若没有该链接,使用 https://socialdatax.com/dashboard/billing。充值后继续刚才失败的调用;已有任务或部分结果时,按对应任务查询、分页续查规则恢复。 - 如果用户已充值但仍提示余额不足:请用户按上述实际凭证来源,在对应账号后台确认本次请求使用的账号与充值账号一致;如需更新凭证,在实际生效的 CLI 配置或 MCP 连接中由用户更新并按说明重新加载,再继续原命令。不要仅因本地新变量缺失就要求重新配置,也不要展示凭证明文。
常见问题
- 没结果:放宽关键词、减少限定,或换成更贴近用户表达的词。
- 结果太多:补场景、人群、品牌、时间范围或账号名。
- 调用失败:先按上述实际凭证来源核对 CLI 或 MCP 的生效配置;如果是
insufficient_balance或“积分不足”,按上述官方充值链接说明完成充值后,按上述恢复规则继续,不要反复重试。 - 担心账号安全:这是只读能力,不登录、不发帖、不点赞、不评论。
- 想继续分析:把最相关的 1-3 条结果发回来,继续缩小范围。