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 xiaohongshu-title-scoregit 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/xiaohongshu-title-score)<a href="https://agentmods.dev/skills/redfox-data/redfox-community-dsh/xiaohongshu-title-score"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/xiaohongshu-title-score/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/xiaohongshu-title-score"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/xiaohongshu-title-score.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.00123 | $0.02753 |
| Opus 5.5 | $0.00049 | $0.01101 |
| Sonnet 5.5 | $0.00025 | $0.00551 |
| Haiku 4.5 | $0.00012 | $0.00275 |
Grade A, and why
xiaohongshu-title-score 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 — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.
小红书标题生成与评分
功能路由
根据用户意图选择执行路径:
- 创作新标题(如"帮我写标题"、"生成爆款标题"、"关于XX的标题")→ 执行功能一
- 评估已有标题(如"评分"、"打分"、"这个标题怎么样"、"评估标题")→ 执行功能二
无论执行哪个功能,用户输入的任何信息都基于此生成爆款标题或评估标题潜力。
全局规则
鉴权
获取 API Key
配置 API Key
REDFOX_API_KEY从环境变量获取,格式ak_xxxxxxxx- 若未设置,提示用户自行配置:
export REDFOX_API_KEY=<你的apikey>;若用户不会配置,Agent应主动帮用户设置:- macOS/Linux:将
export REDFOX_API_KEY=<值>追加到~/.zshrc(zsh)或~/.bashrc(bash),然后source对应文件使其全局生效 - Windows:使用
[Environment]::SetEnvironmentVariable("REDFOX_API_KEY", "<值>", "User")设置用户级永久环境变量(需重启终端生效) - 配置完成后应验证:
echo $REDFOX_API_KEY(macOS/Linux)或echo %REDFOX_API_KEY%(Windows),确保换一个skill也能读取到
- macOS/Linux:将
用词规范
- 禁止:"爬取"、"抓取"
- 替代:使用"获取"
关键词精准匹配
- 用户输入的是什么产品,就只查询什么产品,不随意扩展到相关但不同的产品
- 理解产品具体形态边界:霜≠喷雾≠衣;膏≠液≠粉;液≠霜≠气垫;口红≠唇釉≠唇油
- 核心原则:用户输入的产品是什么形态/类型,就严格限定在该范围内
关键词类型判断
- 细分词/垂直赛道(含具体场景/属性修饰,如"职场穿搭"、"减脂餐")→ 直接查询
- 具体产品词(如"防晒霜"、"睫毛膏")→ 直接查询,不扩展到其他产品
- 泛化词/大分类(纯大类词无修饰,如"穿搭"、"美妆")→ 执行泛化词拓展策略
详细判断标准与示例见 references/guide.md
泛化词拓展策略
仅当关键词为泛化词时执行,细分词/具体产品词跳过此步直接查询。
- 查询近7天网页资讯中与泛化词相关的小红书热点,生成10个细分方向(覆盖趋势词、人群词、场景词、意图词各2-3个,词的大小适中不加组合)
- 输出推荐并停止执行,等待用户回复「拓展」或「不拓展」
- 用户回复「拓展」→搜索10个细分词;回复「不拓展」/「继续」→搜索原关键词
数据查询规则
时间计算:先获取当前系统时间,再计算 startDate(格式 yyyy-MM-dd)
- 今天:startDate = 昨天
- 近N天:startDate = 今天 - N天
数据不足时自动扩展时间(禁止换词):
- 近1天 → 近3天 → 近7天 → 近30天
- 每次扩展后提示用户:"该关键词近X天数据不足5条,已自动扩展时间范围至近Y天"
- 即使扩展到近30天仍不足5条,如实展示并提示数据不足
超出范围说明:
- 用户说"今天/今日":"非常抱歉,今天的数据暂未更新,已为您展示最近可用的数据"
- 时间超出30天:"非常抱歉,当前仅支持最近30天的数据,已为您展示最接近的数据"
执行命令:
python scripts/fetch_xhs_trends.py --keyword <关键词> --start-date <日期>- 多关键词用逗号分隔:
python scripts/fetch_xhs_trends.py --keyword "防晒霜,防晒喷雾" --start-date 2024-01-15 - 全站热门:
python scripts/fetch_xhs_trends.py --keyword "" --start-date <日期>
What ships with it
4 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 First seen · 177 lines · 123 tokens per session scan A 76aacf74fb08
xiaohongshu-title-score is a skill published in the GitHub repository redfox-data/redfox-community-dsh (13 stars, last pushed 6d ago), licensed MIT. It adds 123 tokens to every session and 2,753 once invoked, about $0.0005 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-09-03.
xiaohongshu-title-score compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| xiaohongshu-title-scoreredfox-data/redfox-community-dsh | Skill | 13 | 6d ago | MIT | A | 123 | 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 |