Agent skill

Cn Last30days

by redfox-data in redfox-data/redfox-community

中国社媒平台话题研究工具。从小红书、抖音、公众号三大平台搜索近30天真实讨论,跨平台对比分析舆情趋势。当用户需要研究中国社交媒体热点话题、分析舆情趋势、对比品牌口碑时使用。触发词:小红书热点、抖音趋势、公众号舆情、跨平台分析、社媒研究、话题分析、舆情监测。

MITAuto-check: notes

Install Cn Last30days

skills CLI
$ npx skills add redfox-data/redfox-community --skill cn-last30days -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install redfox-data/redfox-community cn-last30days --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/redfox-data/redfox-community.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cn-last30days .claude/skills/cn-last30days && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cn-last30days
GitHub stars
425
Token cost
~924 tokens
SKILL.md length
180 words
Files
7 (incl. scripts, references)
Skills in repo
124
Repo updated
First seen
Licence
MIT

At a glance

中国社媒平台话题研究工具。从小红书、抖音、公众号三大平台搜索近30天真实讨论,跨平台对比分析舆情趋势。当用户需要研究中国社交媒体热点话题、分析舆情趋势、对比品牌口碑时使用。触发词:小红书热点、抖音趋势、公众号舆情、跨平台分析、社媒研究、话题分析、舆情监测。

  • Works in 7 steps: 环境检查 → 关键词质量检查 → 预研究 → …
  • SKILL.md covers 📝 简介, ✨ 功能特性, 🔑 鉴权 and 核心参数, plus 2 more sections
  • Runs Python scripts from its folder; calls python3; needs REDFOX_API_KEY and X_API_KEY

What it does

Cn Last30days is an agent skill from redfox-data/redfox-community. 中国社媒平台话题研究工具。从小红书、抖音、公众号三大平台搜索近30天真实讨论,跨平台对比分析舆情趋势。当用户需要研究中国社交媒体热点话题、分析舆情趋势、对比品牌口碑时使用。触发词:小红书热点、抖音趋势、公众号舆情、跨平台分析、社媒研究、话题分析、舆情监测。

Its SKILL.md is about 920 tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `README.en.md`, `README.md` and `agents/openai.yaml`).

It works with Xiaohongshu. The repository describes itself as: 红狐数据(RedFoxHub) 技能合集:面向 Agent 的可复用 SKILL 集合,覆盖灵感、选题、文案创作、数据复盘等场景,持续更新。 The licence is MIT.

Example prompts

  • “/cn-last30days”

Requirements

  • Python 3
  • A credential in REDFOX_API_KEY
  • A credential in X_API_KEY
  • Pre-approved tools (allowed-tools): Bash, Read, Write, AskUserQuestion, WebSearch

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. 环境检查
  2. 关键词质量检查
  3. 预研究
  4. 查询计划
  5. 运行引擎
  6. WebSearch 补充
  7. 综合输出

What it can do on your machine

Read from SKILL.md and the folder at commit bffe5a8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Write
    • AskUserQuestion
    • WebSearch

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • redfox.hk

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • REDFOX_API_KEY
    • X_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cn Last30days loads about 924 tokens when it runs, and up to ~1.9k if it reads all its reference files. Until then it costs about 36 tokens; SKILL.md has 180 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~924
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Write, AskUserQuestion, WebSearch

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from redfox-data/redfox-community at commit bffe5a8, republished under its MIT licence (© redfox-data). 180 words, ~924 tokens.

Download SKILL.mdSave it as .claude/skills/cn-last30days/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
cn-last30days
description
中国社媒平台话题研究工具。从小红书、抖音、公众号三大平台搜索近30天真实讨论,跨平台对比分析舆情趋势。当用户需要研究中国社交媒体热点话题、分析舆情趋势、对比品牌口碑时使用。触发词:小红书热点、抖音趋势、公众号舆情、跨平台分析、社媒研究、话题分析、舆情监测。
allowed-tools
Bash, Read, Write, AskUserQuestion, WebSearch
version
2.1.0
argument-hint
cn-last30days AI视频工具 | cn-last30days 大模型 | cn-last30days 小红书运营
homepage
https://github.com/redfox-data/redfox-community/cn-last30days-skill
repository
https://github.com/redfox-data/redfox-community
author
redfox-community
license
MIT
user-invocable
true

Last 30 Days—CN版

📝 简介

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

✨ 功能特性

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

🔑 鉴权

脚本需配置 API Key 使用。从 红狐数据 获取个人 Key 并配置环境变量:

bash
export REDFOX_API_KEY=ak_你的密钥

优先级:命令行 --api-key > REDFOX_API_KEY / X_API_KEY 环境变量 > 配置文件。


核心参数

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

平台信号解读:

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

工作流程

1. 环境检查

运行前需确保已配置 API Key(环境变量 REDFOX_API_KEY 或 --api-key 参数)。如未配置,提示用户:

请配置 API Key:export REDFOX_API_KEY=ak_你的密钥,注册地址 https://www.redfox.hk/login

2. 关键词质量检查

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

3. 预研究

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

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

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

  • 优先将相关关键词合并为一次调用(如 "产品经理,AI产品经理")
  • 每平台最多5个词,只在话题维度差异极大时才分开调用
  • 默认只调用 1 次引擎
5. 运行引擎
bash
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. 综合输出

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

  • 徽章之后、「我的发现」之前,必须输出「数据速览」模块:按公众号→小红书→抖音顺序,每平台展示 TOP5 作品表格(标题作为可点击超链接、作者、平台专属互动指标分列展示(公众号阅读/点赞/转发,小红书点赞/收藏/评论,抖音点赞/评论/分享)),模块末尾展示数据总量和 HTML 报告提示
  • 按话题/故事综合,非按平台罗列
  • 多平台交叉验证的结论置信度最高
  • 高互动内容权重最高(含真实用户信号)
  • 每个叙事段落以粗体标题开头,后跟 - 和正文
  • 引用必须为可点击的 Markdown 链接

综合报告完成后,自动执行以下步骤生成 HTML 报告(无需询问用户):

bash
# 直接从 JSON 生成 HTML(不调 API,不写入 Markdown)
python3 scripts/cn_last30days.py --from-json "JSON文件路径" \
  --output-dir="${CN_LAST30DAYS_MEMORY_DIR:-$HOME/Documents/CnLast30Days}"

# 自动打开 HTML 报告
open "HTML文件路径"

脚本会输出 HTML 文件路径,自动打开后将路径告知用户即可。


其他资源

© redfox-data, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references) in skills/cn-last30days of redfox-data/redfox-community.

  • SKILL.md
  • README.en.md
  • README.md
  • agents/openai.yaml
  • references/output-rules.md
  • scripts/.DS_Store
  • scripts/cn_last30days.py

Open the folder on GitHubat commit bffe5a8

Compare with similar skills

Cn Last30days next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cn Last30days compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cn Last30days this skillredfox-data/redfox-community425—~924Automated safety check: NotesMIT
Agent ReachPanniantong/Agent-Reach94k—~1.4kAutomated safety check: PassMIT
Guizang Social Cardsop7418/guizang-social-card-skill7.4k1 repos~7.8kAutomated safety check: PassAGPL-3.0
Yuwen Publish Precheckyuwen-cool/yuwen-publish-precheck7751 repos~1.8kAutomated safety check: PassMIT
Video Podcast MakerAgents365-ai/video-podcast-maker1.7k—~4.9kAutomated safety check: PassMIT
Xhs Note Creatorcomeonzhj/Auto-Redbook-Skills2.3k—~580Automated safety check: NotesNone

Similar skills

  • Agent Reach

    Panniantong/Agent-Reach

    Routes web research and platform lookups across 16 sites, including Twitter, Reddit, YouTube, Bilibili, Xiaohongshu and GitHub, through one command-line tool.

    94k GitHub stars~1.4k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Guizang Social Cards

    op7418/guizang-social-card-skill

    Produces social card sets for Xiaohongshu and WeChat: carousels, Live Photo motion cards and puzzle layouts, and WeChat cover pairs, rendered from single-file HTML.

    7.4k GitHub starsUsed in 1 repo~7.8k tokens
    Media & CreativeAuto-check passed
  • Yuwen Publish Precheck

    yuwen-cool/yuwen-publish-precheck

    国内自媒体发布前风险自审与保意修复:审口播稿、文章、图文笔记、字幕、封面文字能不能发抖音/小红书/微信视频号,给出具体位置、依据和可直接替换的改稿;被限流/删除/处罚后帮你复盘归因;你的行业敏感词、误报白名单和踩坑案例会沉淀成个人规则库,越用越准。Use when…

    775 GitHub starsUsed in 1 repo~1.8k tokens
    Productivity & AutomationAuto-check passed
  • Video Podcast Maker

    Agents365-ai/video-podcast-maker

    A skill your agent uses when the user gives a topic and wants an automated topic-driven narrated explainer, podcast, or knowledge-summary video (Bilibili / YouTube / Xiaohongshu / Douyin / WeChat…

    1.7k GitHub stars~4.9k tokensUpdated 7 days ago
    Media & CreativeAuto-check passed
  • Xhs Note Creator

    comeonzhj/Auto-Redbook-Skills

    小红书笔记素材创作技能。当用户需要创建小红书笔记素材时使用这个技能。技能包含:根据用户的需求和提供的资料,撰写小红书笔记内容(标题+正文),生成图片卡片(封面+正文卡片),以及发布小红书笔记。支持 8 种精美排版主题和 4 种智能分页模式。

    2.3k GitHub stars~580 tokensUpdated 1 mo ago
    Auto-check: notes
  • Xhs Virtual Product

    chenjin-cmd/xhs-virtual-product

    This skill helps plan, select, produce, and market Xiaohongshu (RED) virtual/digital products — templates, knowledge bases, test tools, study materials.

    726 GitHub stars~862 tokensUpdated 8 days ago
    Knowledge ManagementAuto-check passed

More from redfox-data/redfox-community

All 124 skills in this repo
  • Bilibili Comment

    redfox-data/redfox-community

    B站评论分析工具。输入B站视频链接或BV号即可获取一级评论数据,支持分页浏览、评论情感分析(积极/负面/需求/竞品),生成精美 HTML 报告。当用户需要查看B站视频评论、分析评论舆情、了解用户反馈时使用。触发词:B站评论、B站视频评论、评论查询、评论分析、评论舆情、看评论、bilibili评论。

    425 GitHub stars~763 tokensUpdated today
    Auto-check passed
  • Douyin Top Account

    redfox-data/redfox-community

    抖音每日最具影响力账号榜单追踪分析工具;日榜每日17:30更新/回溯7天,周榜每周一17:30更新/回溯3周,月榜每月2号9点更新/回溯3月;当用户需要查询抖音账号排名、抖音日榜/周榜/月榜、抖音赛道TOP账号或下载榜单报告时使用

    425 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Global AI News Brief

    redfox-data/redfox-community

    全球AI新闻简报 — 一个关键词同时搜索抖音、小红书、公众号、B站、快手、视频号、今日头条、TikTok、Instagram、X(Twitter)、YouTube 共 11 大平台,跨平台聚合后由 AI 生成智能摘要、热点聚类、舆情分析和深度解读报告,输出终端表格 + 交互式 HTML 报告。包含详细信息源列表,适用于各种AI…

    425 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Investor Distiller

    redfox-data/redfox-community

    公众号投资博主蒸馏器。通过公众号文章数据,自动提取交易体系、市场判断、表达风格、内容深度、互动特征、热点图谱、 人设基因七维DNA,输出结构化风格画像 profile。

    425 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Multi Content Feed

    redfox-data/redfox-community

    全网内容出海信息源 — 每日扫描全平台(公众号/抖音/视频号/小红书/快手/B站)内容出海爆款作品,按点赞量筛选Top50,智能聚类题材方向后生成包含平台标签、封面、互动数据与创作洞察的HTML日报。支持按平台、关键词、时间范围定向查询。⚠️数据每日15:00更新前一天数据,目标日期无数据时必须先告知用户并等待确认后才能调用接口,禁止自动获取。当用户需要内容出海日报、内容出海爆款、内容出海热点、…

    425 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Playlet Wechat Feed

    redfox-data/redfox-community

    短剧-公众号信息源 — 每日扫描公众号短剧爆款文章,按阅读量筛选热门内容,智能聚类题材方向后生成包含封面图、互动数据与创作洞察的HTML日报。支持按题材(穿越/霸总/重生等)、公众号、时间范围定向查询。⚠️查询前脚本先做输入校验:关键词需命中短剧题材词库(topickeywords…

    425 GitHub stars~3.6k tokensUpdated today
    Auto-check passed

Works with

Questions about Cn Last30days

What does Cn Last30days do?

中国社媒平台话题研究工具。从小红书、抖音、公众号三大平台搜索近30天真实讨论,跨平台对比分析舆情趋势。当用户需要研究中国社交媒体热点话题、分析舆情趋势、对比品牌口碑时使用。触发词:小红书热点、抖音趋势、公众号舆情、跨平台分析、社媒研究、话题分析、舆情监测。. Cn Last30days is an agent skill from redfox-data/redfox-community.

How do I install Cn Last30days in Claude Code?

Run `npx skills add redfox-data/redfox-community --skill cn-last30days -a claude-code`. Or copy the skill folder (skills/cn-last30days in redfox-data/redfox-community) into .claude/skills/cn-last30days in your project. Claude Code loads it when a task matches its description.

How do I install Cn Last30days in Codex?

Run `npx skills add redfox-data/redfox-community --skill cn-last30days -a codex`. Or copy the skill folder (skills/cn-last30days in redfox-data/redfox-community) into .agents/skills/cn-last30days in your project. Codex loads it when a task matches its description.

Can I use Cn Last30days in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add redfox-data/redfox-community --skill cn-last30days -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cn-last30days, .gemini/skills/cn-last30days, .github/skills/cn-last30days and .opencode/skills/cn-last30days in your project.

What does Cn Last30days need to run?

Going by SKILL.md and its folder, Cn Last30days needs Python for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named REDFOX_API_KEY and X_API_KEY. Our summary lists: Python 3; A credential in REDFOX_API_KEY; A credential in X_API_KEY. Its frontmatter pre-approves these tools: Bash, Read, Write, AskUserQuestion, WebSearch.

Does Cn Last30days access the network?

SKILL.md names 1 domain. As links in the text: redfox.hk. This is read from the text; nothing was executed.

Is Cn Last30days safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Cn Last30days use?

Cn Last30days is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cn Last30days use?

About 924 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 992 tokens, read only when the agent opens those files.

What are the alternatives to Cn Last30days?

Skills that share tags, products or a category with Cn Last30days: Agent Reach (Panniantong/Agent-Reach, 94k stars), Guizang Social Cards (op7418/guizang-social-card-skill, 7.4k stars), Yuwen Publish Precheck (yuwen-cool/yuwen-publish-precheck, 775 stars) and Video Podcast Maker (Agents365-ai/video-podcast-maker, 1.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cn Last30days?

redfox-data (a GitHub user) maintains it in redfox-data/redfox-community, which has 425 GitHub stars. The repository holds 124 skills in this directory. The repository was last updated on October 9, 2026.

Source: redfox-data/redfox-community on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.