← 返回 Skills 市场
yuanyi-github

cn-last30days 中国社媒话题研究

作者 to the moon · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
19
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install cn-last30days-redfox
功能描述
中国社媒平台话题研究工具。从小红书、抖音、公众号三大平台搜索近30天真实讨论,跨平台对比分析舆情趋势。当用户需要研究中国社交媒体热点话题、分析舆情趋势、对比品牌口碑时使用。触发词:小红书热点、抖音趋势、公众号舆情、跨平台分析、社媒研究、话题分析、舆情监测。
使用说明 (SKILL.md)

cn-last30days 中国社媒话题研究

📝 简介

cn-last30days 是中国社交媒体话题研究工具,从小红书、抖音、公众号三大平台搜索近30天真实讨论数据,通过跨平台对比分析舆情趋势。支持通用话题研究和实体对比两种模式,输出结构化研究报告和可视化 HTML。

✨ 功能特性

功能模块 能力描述 核心价值
三平台数据源 小红书、抖音、公众号实时数据 多维度舆情视角
关键词研究 支持多词组合查询(英文逗号分隔) 灵活话题覆盖
跨平台对比 自动综合三平台数据生成洞察 发现差异化趋势
实体对比 A vs B 结构化对比分析 辅助决策判断
HTML 报告 交互式可视化报告生成 便于分享传播
历史回溯 支持近30天任意日期数据 追踪趋势演变

🔑 鉴权

API Key 从 红狐数据 获取,配置方式:

export REDFOX_API_KEY=ak_你的密钥

优先级:命令行 --api-key > REDFOX_API_KEY > X_API_KEY > ~/.qoder/apis/redfox.json > 内置公共 Key(有免费额度)。


核心参数

参数 说明 默认值
keyword 搜索关键词(必填,多词用英文逗号分隔) -
--platforms 平台列表(不建议缩减) xhs,dy,gzh
--count 每平台条数,深度研究可增到100 50
--days 时间范围,看近期趋势可设7 30
--output-format json / html / both json
--output-dir 输出目录 ~/Documents/CnLast30Days

平台信号解读:

平台 内容特征 关键指标
小红书 (xhs) 种草体验、教程攻略、用户反馈 收藏/点赞比高=种草信号
抖音 (dy) 热点追评、知识碎片、情绪传播 分享数=传播力
公众号 (gzh) 行业深度分析、观点输出、数据报告 阅读量=关注度,分享=认同

工作流程

1. 环境检查

如无 REDFOX_API_KEY / X_API_KEY 环境变量且 ~/.qoder/apis/redfox.json 不存在,提示用户配置。内置公共 Key 有免费额度,可用则跳过。

2. 关键词质量检查

运行引擎前检查话题是否过于模糊(如"工具"、"方法"),若是则请用户具体化。

3. 预研究

调用引擎前,并行运行 2-3 个 WebSearch 提取热词和背景:

  • 小红书 {TOPIC} 热门讨论 → 提取小红书热词
  • 抖音 {TOPIC} 热门话题 → 提取抖音标签
  • {TOPIC} 最新动态 → 补充时效背景

4. 查询计划

根据预研究决定查询策略:

  • 优先将相关关键词合并为一次调用(如 "产品经理,AI产品经理"
  • 每平台最多5个词,只在话题维度差异极大时才分开调用
  • 默认只调用 1 次引擎

5. 运行引擎

python3 scripts/cn_last30days.py "{TOPIC},{SUBTOPIC}" \
  --platforms xhs,dy,gzh \
  --count 50 \
  --days 30 \
  --output-format json \
  --output-dir="${CN_LAST30DAYS_MEMORY_DIR:-$HOME/Documents/CnLast30Days}"

前台运行,5分钟超时,不要后台。 读取完整输出,包含三平台的标题、作者、互动数据和链接。

6. WebSearch 补充

引擎完成后补充 1-2 个 WebSearch,覆盖知乎、B站、36氪等引擎未覆盖的来源。排除 xiaohongshu.com / douyin.com / mp.weixin.qq.com(已被引擎覆盖)。

7. 综合输出

输出规则 生成研究报告。核心原则:

  • 按话题/故事综合,非按平台罗列
  • 多平台交叉验证的结论置信度最高
  • 高互动内容权重最高(含真实用户信号)
  • 每个叙事段落以粗体标题开头,后跟 - 和正文
  • 引用必须为可点击的 Markdown 链接

综合报告完成后,询问用户是否需要 HTML。如需要:

# 1. 写入 Markdown 报告
cat > "${CN_LAST30DAYS_MEMORY_DIR:-$HOME/Documents/CnLast30Days}/cn30days_{TOPIC}_report.md" \x3C\x3C 'REPORT_EOF'
{综合报告全文}
REPORT_EOF

# 2. 从 JSON + 报告生成 HTML(不调 API)
python3 scripts/cn_last30days.py --from-json "JSON文件路径" --report-file "报告Markdown路径" \
  --output-dir="${CN_LAST30DAYS_MEMORY_DIR:-$HOME/Documents/CnLast30Days}"

其他资源

安全使用建议
Install only if you are comfortable sending researched keywords and a RedFox API key or configured RedFox credential to redfox.hk. Use explicit prompts for sensitive topics, review generated files in the output directory, and avoid putting confidential internal terms into queries unless that provider is acceptable.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Artifacts consistently describe cross-platform topic research over Xiaohongshu, Douyin, and WeChat; the script calls redfox.hk API endpoints, normalizes returned content, and generates JSON/HTML reports.
Instruction Scope
The skill allows implicit invocation and broad natural-language prompts; this is disclosed, but users should expect external lookups when a matching topic-research request is made.
Install Mechanism
No package install, startup hook, or persistence setup is present; it ships a local Python script and requires python3.
Credentials
It uses REDFOX_API_KEY, X_API_KEY, or ~/.qoder/apis/redfox.json, falls back to a disclosed public key, and sends query keywords to redfox.hk, which is proportionate to the API-backed purpose but privacy-sensitive.
Persistence & Privilege
It creates local report files under a user output directory and has no autorun, background worker, privilege escalation, or deletion behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cn-last30days-redfox
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cn-last30days-redfox 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Major version update: enhanced Chinese social media topic analysis and reporting. - Now supports cross-platform research on Xiaohongshu, Douyin, and WeChat Official Accounts for the past 30 days. - Allows keyword-based trend analysis, structured entity comparison, and generates visual HTML/Markdown reports. - Adds pre-research web search for hot topics and keyword quality checks before main analysis. - Improved API key detection and flexible output options. - Enhanced rules for compiling, formatting, and supplementing research findings across platforms.
元数据
Slug cn-last30days-redfox
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

cn-last30days 中国社媒话题研究 是什么?

中国社媒平台话题研究工具。从小红书、抖音、公众号三大平台搜索近30天真实讨论,跨平台对比分析舆情趋势。当用户需要研究中国社交媒体热点话题、分析舆情趋势、对比品牌口碑时使用。触发词:小红书热点、抖音趋势、公众号舆情、跨平台分析、社媒研究、话题分析、舆情监测。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 19 次。

如何安装 cn-last30days 中国社媒话题研究?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cn-last30days-redfox」即可一键安装,无需额外配置。

cn-last30days 中国社媒话题研究 是免费的吗?

是的,cn-last30days 中国社媒话题研究 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

cn-last30days 中国社媒话题研究 支持哪些平台?

cn-last30days 中国社媒话题研究 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 cn-last30days 中国社媒话题研究?

由 to the moon(@yuanyi-github)开发并维护,当前版本 v1.0.0。

💬 留言讨论