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-rewritegit 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-rewrite)<a href="https://agentmods.dev/skills/redfox-data/redfox-community-dsh/xiaohongshu-rewrite"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/xiaohongshu-rewrite/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-rewrite"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/xiaohongshu-rewrite.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.00032 | $0.02148 |
| Opus 5 | $0.00016 | $0.01074 |
| Sonnet 5 | $0.00006 | $0.00430 |
| Haiku 4.5 | $0.00003 | $0.00215 |
Grade A, and why
xiaohongshu-rewrite scanned grade A with 1 finding 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 9d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- 无额外依赖,仅使用 Python 标准库(`urllib`、`json`、`re` 等) How it starts
The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
简介
小红书文案改写是一款小红书爆款文案生成工具,帮助用户将任意文案智能转换为符合小红书平台调性的高互动率内容。
通过简单的输入,你可以:
- 自动生成吸引人的小红书风格标题
- 为文案添加至少5个不重复的 emoji 表情符号
- 自动附加以 # 开头的 Tags 标签
适用于内容创作者、品牌运营、MCN 机构、小红书博主等需要高效产出小红书风格内容的用户。
技术基础:基于 Python 标准库实现,通过 AI 模型按照小红书平台规则进行文案改写。
功能特性
核心功能
- 🎯 智能标题生成:自动生成具有吸引力和钩子的小红书风格标题
- 😊 Emoji 润色:自动为文案添加至少5个不重复的 emoji 表情符号
- 🏷️ Tags 附加:末尾自动附加以 # 开头的相关标签
- 📝 风格转换:将任意文案转换为口语化、亲切自然的小红书表达方式
特色亮点
- ⚡ 即输即用:输入原文案,直接输出改写结果,无需询问
- 📊 改写记录上报:调用红狐 API 自动记录改写次数
- 🔧 规则可定制:通过
assets/platform-rules.md自定义改写规则
🔑 鉴权
获取 API Key
请前往 红狐hub 获取 API KEY
配置 API Key
方案1: 以 Qoder 为例,将 REDFOX_API_KEY 添加到 ~/.openclaw/openclaw.json 中:
{ "env": { "REDFOX_API_KEY": "ak_xxxx..." } }
方案2: 终端配置
export REDFOX_API_KEY="ak_xxxx..."
💡 说明:本 skill 仅需要你提供 API Key 用于身份识别,使用完全免费,不会扣除任何积分。若尚未配置
REDFOX_API_KEY,运行脚本会提示你配置,按上方步骤操作即可正常使用。
一键安装
前置条件
- Python 3(路径:
/usr/bin/python3) - 无额外依赖,仅使用 Python 标准库(
urllib、json、re等)
安装方式
将项目克隆到 Qoder skills 目录即可:
git clone <repo-url> ~/.qoder/skills/xiaohongshu-rewrite
使用指南
基础使用(3步)
第1步:提供文案
向 Agent 提供需要改写为小红书风格的文案内容:
帮我改写这篇小红书文案:这款面霜保湿效果很好,用了一周皮肤明显变水润了
文案可以包含产品介绍、使用体验、攻略分享等各类内容。
第2步:自动上报记录
脚本自动向记录接口上报改写记录(上报成功后再进行改写输出,上报失败不影响主流程):
python scripts/rewrite.py "这款面霜保湿效果很好,用了一周皮肤明显变水润了"
第3步:获取改写结果
Agent 读取 assets/platform-rules.md 中的完整规则,严格按照小红书的 Profile(角色定位)、WritingSkills(写作技巧)、Rules(改写规则)、Workflow(工作流程)进行文案风格改写,并直接输出结果:
- 内容包含吸引人的标题
- 文中使用 emoji 表情符号(至少5个不重复的 emoji)
- 末尾附加 Tags(以 # 开头)
- 使用口语化表达拉近与读者的距离
输出完成后不再询问用户是否需要调整。
脚本命令速查
| 命令 | 说明 |
|---|---|
python scripts/rewrite.py prompt |
输出小红书改写规则 prompt |
python scripts/rewrite.py "<文案内容>" |
上报改写记录 |
记录接口说明
| 项目 | 详情 |
|---|---|
| 接口地址 | https://redfox.hk/story/api/skill/record/save |
| 调用时机 | 输出改写结果之前 |
| 接口参数 | source 固定值 "小红书文案改写-GitHub" |
| 网络实现 | 原生 urllib,默认 SSL 证书验证 |
| 鉴权 | 需配置 REDFOX_API_KEY(免费,不扣积分),经 X-API-Key 请求头传入 |
| 失败处理 | 仅打印警告,不影响主流程输出 |
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.
- 9d ago First seen · 201 lines · 32 tokens per session scan A 3b2647013bfe
xiaohongshu-rewrite is a skill published in the GitHub repository redfox-data/redfox-community-dsh (6 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 2,148 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
dsh-hooks-authoring
Instructions for writing and debugging dsh-hooks-plugin scripts, which run during tool or session events such as before a tool call or after it finishes. These scripts return JSON decisions such as allowing, asking about, or denying an action.
web-artifact-designer
A design workflow for producing self-contained HTML or SVG files that open directly in a browser. It covers visual work such as posters, infographics, landing pages, charts, banners, cards, and interface mockups.
dsh-web-pet-developer
Create a pet for the dsh-pet plugin and integrate it into the dsh web GUI — author a v2 pet.json manifest plus an 8-column x 9-row atlas per the Codex/hatch-pet contract (live2d pets, voice packs and status decorations included), drop it into the pet-center user directory or contribute it as a built-in asset under…
company-research-method
A documented process for researching a company using supplied files and selected public sources. It produces a company overview with business details, sourced financial figures, and stated risks.
dsh-plugin-guide
Use when developing, reviewing, packaging, debugging, or answering questions about DeepSeek Harness (DSH) plugins — the plugin-based agent harness on vendored Cordis. Applies the official plugin-development constraints (plugin contract, cordis.yml layers, services/events/effects, tool DSL, bundles/profiles) backed by…
delivery-proof
Delivery proof and the doublecheck report. Use when the work is done and the delivery must be proven — consolidate the spec, test timeline, review verdicts, and verification checks into a doublecheckreport, and only then claim completion.