Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add redfox-data/redfox-community-dsh --skill cn-last30daysgit clone --depth 1 https://github.com/redfox-data/redfox-community-dshWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/redfox-data/redfox-community-dsh/cn-last30days)<a href="https://agentmods.dev/skills/redfox-data/redfox-community-dsh/cn-last30days"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/cn-last30days/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/redfox-data/redfox-community-dsh/cn-last30days"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/cn-last30days.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00105 | $0.01824 |
| Opus 5.5 | $0.00042 | $0.00730 |
| Sonnet 5.5 | $0.00021 | $0.00365 |
| Haiku 4.5 | $0.00011 | $0.00182 |
Grade A, and why
cn-last30days scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Last 30 Days—CN版
📝 简介
Last 30 Days—CN版 是中国社交媒体话题研究工具,从小红书、抖音、公众号三大平台搜索近30天真实讨论数据,通过跨平台对比分析舆情趋势。支持通用话题研究和实体对比两种模式,输出结构化研究报告和可视化 HTML。
✨ 功能特性
| 功能模块 | 能力描述 | 核心价值 |
|---|---|---|
| 三平台数据源 | 小红书/公众号统一接口 + 抖音广域库接口数据 | 多维度舆情视角 |
| 关键词研究 | 支持多词组合查询(英文逗号分隔) | 灵活话题覆盖 |
| 跨平台对比 | 自动综合三平台数据生成洞察 | 发现差异化趋势 |
| 对比 | A vs B 结构化对比分析 | 辅助决策判断 |
| HTML 报告 | 交互式可视化报告生成 | 便于分享传播 |
| 历史回溯 | 支持近30天任意日期数据 | 追踪趋势演变 |
🔑 鉴权
脚本需配置 API Key 使用。从 红狐数据 获取个人 Key 并配置环境变量:
export REDFOX_API_KEY=ak_你的密钥
优先级:命令行 --api-key > REDFOX_API_KEY / X_API_KEY 环境变量 > 配置文件。
核心参数
| 参数 | 说明 | 默认值 |
|---|---|---|
keyword |
搜索关键词(必填,多词用英文逗号分隔) | - |
--platforms |
平台列表(不建议缩减) | xhs,dy,gzh |
--count |
每平台条数 | 50 |
--days |
时间范围,看近期趋势可设7 | 30 |
--output-format |
json / html / both |
json |
--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. 运行引擎
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分钟超时,不要后台。 读取完整输出,包含三平台的标题、作者、互动数据和链接。
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed 17c9747a225b
- 3mo ago First seen · 157 lines · 105 tokens per session scan A c96f537e4231
cn-last30days is a skill published in the GitHub repository redfox-data/redfox-community-dsh (13 stars, last pushed 6d ago), licensed MIT. It adds 105 tokens to every session and 1,824 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
cn-last30days compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cn-last30daysredfox-data/redfox-community-dsh | Skill | 13 | 6d ago | MIT | A | 105 | Claude Code, Codex |
| dsh-hooks-authoringKYinCode/dsh-hooks-plugin | Skill | 3 | 3mo ago | MIT | A | 112 | Claude Code |
| web-artifact-designerxulelenlp/dsh-web-artifact-designer | Skill | 9 | 3mo ago | MIT | A | 115 | Claude Code, Codex |
| refactoromagents/omagents | Skill | 361 | 3d ago | MIT | A | 55 | Codex |
| tech-debt-auditomagents/omagents | Skill | 361 | 3d ago | MIT | A | 57 | Codex |
| deep-researchomagents/omagents | Skill | 361 | 3d ago | MIT | B | 24 | Codex |
| company-research-methodPerryLink/dsh-industry-research | Skill | 227 | 7d ago | Apache-2.0 | A | 83 | Claude Code, Codex |