xiaohongshu-write

xiaohongshu-write is a skill for Claude Code, Codex from redfox-data/redfox-community-dsh. It costs 154 tokens per session (3,287 once invoked), scanned A, original, MIT.

A Xiaohongshu writing assistant that studies popular posts matching a keyword and generates a complete post draft. Xiaohongshu is a Chinese social media platform focused on user-created posts, recommendations, and lifestyle content.

In plain words
What is it for?
Use it to research popular posts, extract reusable content patterns, generate titles and post text, recommend hashtags, and create drafts for a chosen topic.
Why use it?
It reduces the time spent researching popular examples and planning titles, structure, engagement prompts, and hashtags from scratch. It can also adapt the draft to writing samples supplied by the user.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to research popular posts, extract reusable content patterns, generate titles and post text, recommend hashtags, and create drafts for a chosen topic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/redfox-data/redfox-community-dsh/xiaohongshu-write
Install

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.

Any agent
npx skills add redfox-data/redfox-community-dsh --skill xiaohongshu-write
Clone the repo
git clone --depth 1 https://github.com/redfox-data/redfox-community-dsh

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for xiaohongshu-write

README.md
[![agentmods](https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/xiaohongshu-write/github.svg)](https://agentmods.dev/skills/redfox-data/redfox-community-dsh/xiaohongshu-write)
Your own site
<a href="https://agentmods.dev/skills/redfox-data/redfox-community-dsh/xiaohongshu-write"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/xiaohongshu-write/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.

agentmods 80×15 button for xiaohongshu-write

Your own site · 80×15
<a href="https://agentmods.dev/skills/redfox-data/redfox-community-dsh/xiaohongshu-write"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/xiaohongshu-write.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,287 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00154 $0.03287
Opus 5 $0.00077 $0.01643
Sonnet 5 $0.00031 $0.00657
Haiku 4.5 $0.00015 $0.00329

Measured 9d ago against content hash b8f00b0468c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

xiaohongshu-write 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/fetch_xhs_hot_articles.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/xiaohongshu-write/SKILL.md · 288 lines

How it starts

The opening of the file, as written. The whole thing — 288 lines — stays where its author put it; the contents beside it link to each section on GitHub.

小红书笔记创作

1. 简介

专为小红书内容创作打造的一站式笔记生成工具 -- 基于全网每日持续收录的 2000+ 条爆款笔记数据,根据用户输入关键词精准检索热门爆款笔记,通过 AI 深度复盘爆款内容的结构、开头逻辑、干货密度与互动话术,提炼核心流量密码与创作要点,生成通顺、合规、可直接发布的完整笔记文案。

适用对象:小红书创作者、内容运营、品牌方内容团队、需要高效产出流量内容的个人或团队。


2. 功能特性

核心功能

  • 爆款笔记查询 -- 基于关键词搜索小红书热门笔记,最多获取 50 条数据
  • 爆款规律分析 -- 从标题、内容结构、互动引导、标签策略等维度提炼流量密码
  • 智能内容生成 -- 生成完整的推荐标题(3-6 个)、正文内容、推荐标签(5-10 个)
  • 个人风格融合 -- 支持用户上传个人写作样本,融合其风格到生成的文案中
  • 爆款公式溯源 -- 输出参考的爆款规律和核心参考笔记

特色亮点

  • 泛化词拓展策略:对大类词推荐 10 个细分方向
  • 数据不足自动扩展时间范围(禁止换词)
  • 严格输出格式:推荐标题 + 正文内容 + 推荐标签 + 爆款公式来源
  • 输出前自检查机制:确保所有字段完整
  • 搜索最新热点补充创作素材

3. 一键安装

鉴权

获取 API Key

请前往 红狐hub 获取API KEY

配置 API Key

方案1: 以OpenClaw为例,将REDFOX_API_KEY添加到~/.openclaw/openclaw.json中

{ "env": { "REDFOX_API_KEY": "ak_xxxx..." } }

方案2: 终端配置:export REDFOX_API_KEY="ak_xxxx..."

export REDFOX_API_KEY="ak_xxxx..."

依赖安装

无需额外安装,使用 Python 标准库即可运行。


4. 使用指南

基础使用

触发条件:当用户说 "帮我写一篇关于 XX 的小红书笔记"、"生成 XX 相关的文案内容" 等文案生成类需求时使用。

核心规则:仅在主 Agent 中执行,不派发给子 Agent。

完整操作流程

Step 1:查询爆款笔记

1.1 关键词处理

  • 无赛道关键词(如 "最近热门笔记有哪些")-> 关键词传空字符串 "",查询全站热门
  • 有赛道关键词 -> 提取精确搜索关键词:
    • 细分词 / 垂直赛道 -> 直接搜索
    • 泛化词 / 大类(如 "穿搭"、"美食")-> 先推荐 10 个细分方向,等待用户选择后再查询

1.2 时间范围

  • 默认最近 7 天(startDate = 今天 - 7 天
  • 数据不足时自动扩展时间范围(优先扩展时间,禁止换词):近 1 天 -> 近 3 天 -> 近 7 天 -> 近 30 天

1.3 调用脚本

python scripts/fetch_xhs_hot_articles.py \
  --keyword "<用户关键词>" \
  --max-items 50 \
  --page-size 50 \
  --start-date "<yyyy-MM-dd>"

参数说明

  • --keyword:搜索关键词,无关键词时传空字符串 ""
  • --max-items:固定传 50,获取 50 条数据用于深度分析
  • --page-size:固定传 50
  • --start-date:开始日期,格式 yyyy-MM-dd

脚本输出(JSON 格式输出到控制台)

  • items:搜索结果列表(noteId、title、desc、createTime、互动数据、评分等)
  • latestHotArticles:推荐热门笔记
  • relatedSearches:拓展词推荐

详细字段说明见 references/xhs_hot_article_format.md

执行要求

  • 执行脚本后,直接基于输出数据进行分析
  • 禁止将原始爆款数据展示给用户
  • 禁止仅发送文件路径或 "已保存" 等简短提示

Step 2:分析爆款规律

基于脚本返回的 50 条数据 进行深度分析:

标题规律

  • 高互动标题的共同特征(数字使用、情绪词、人群标签)
  • 标题长度与结构模式

Read the full file on GitHub · 288 lines

Files

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.

Changes

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.

  1. 9d ago First seen · 288 lines · 154 tokens per session scan A b8f00b0468c3

Subscribe to this mod's changes

xiaohongshu-write is a skill published in the GitHub repository redfox-data/redfox-community-dsh (6 stars, last pushed yesterday), licensed MIT. It adds 154 tokens to every session and 3,287 once invoked, about $0.0008 per session on Opus 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.

Related

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.

KYinCode/dsh-hooks-plugin · 112 tokens

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.

xulelenlp/dsh-web-artifact-designer · 115 tokens

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…

zhu1090093659/dsh-web · 162 tokens

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.

PerryLink/dsh-industry-research · 83 tokens

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…

PerryLink/dsh-plugin-guide · 76 tokens

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.

PerryLink/dsh-doublecheck · 50 tokens