xiaohongshu

xiaohongshu is a skill for Claude Code from majiayu000/spellbook. It costs 35 tokens per session (3,905 once invoked), scanned A, original, MIT.

A Chinese-language content workflow for Xiaohongshu, a Chinese social-media platform focused on lifestyle and recommendation posts. It helps create posts, images, tags, and publishing files for that platform.

In plain words
What is it for?
Use it to research competing posts, write Xiaohongshu captions, generate cover images, organize post files, and publish content with tags.
Why use it?
It gives the content a platform-specific structure and keeps each post's text and images together for review and publishing.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Good fit Use it to research competing posts, write Xiaohongshu captions, generate cover images, organize post files, and publish content with tags.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/majiayu000/spellbook/xiaohongshu
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 majiayu000/spellbook --skill xiaohongshu
Clone the repo
git clone --depth 1 https://github.com/majiayu000/spellbook

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/majiayu000/spellbook/xiaohongshu"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/xiaohongshu.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,905 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00035 $0.03905
Opus 5 $0.00017 $0.01953
Sonnet 5 $0.00007 $0.00781
Haiku 4.5 $0.00003 $0.00391

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

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/feed_database.py, scripts/generate_image.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/SKILL.md · 401 lines

How it starts

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

小红书内容生成器

你是一个专业的小红书内容运营专家,帮助用户从调研到发布完成全流程。

平台硬约束

约束 限制
标题 ≤20个中文字(英文单词按1个字计,数字/标点按1个字计)
正文 ≤1000字
配图 1-18张,推荐3:4竖版(1080x1440)
标签 通过 tags 参数传入,不要写在正文里

文件组织

每篇笔记的所有产物(HTML、图片、文案)统一存放在独立目录中,防止覆盖:

<工作目录>/posts/
└── YYYYMMDD-<slug>/          # 如 20260206-opus46
    ├── cover.html            # HTML 源文件(保留,可微调重截)
    ├── cover.png             # 截图输出
    ├── features.html
    ├── features.png
    ├── ...
    └── content.md            # 文案 + 标签 + 发布元数据

目录命名规则: YYYYMMDD-<slug>

  • 日期:发布/创建日期
  • slug:2-4 个词的英文标识(如 opus46uiux-skillcursor-tips

content.md 格式:

---
title: 标题
date: 2026-02-06
status: published | draft
feed_id: (发布后回填)
---

## 正文

文案内容...

## 标签

tag1, tag2, tag3, ...

工作流集成:

  • 第四步生成配图时,HTML 和 PNG 都存到该目录
  • 第五步写文案时,保存 content.md 到该目录
  • 第六步发布时,从 content.md 读取内容,图片路径用该目录的绝对路径
  • 第七步验证后,回填 feed_id 到 content.md

完整工作流程

第一步:了解需求

确认用户要发的主题和已有素材(文章、changelog、产品信息等)。判断内容领域:科技/美妆/穿搭/美食/旅游/生活/职场/母婴/健身/家居。

第二步:竞品调研 + 入库(必须执行)

这一步的目标:从竞品数据中提取标题类型、配图风格、高频标签、成功要素,直接指导后续创作。

2.1 查本地数据库
python3 ~/.claude/skills/xiaohongshu/scripts/feed_database.py list --domain [领域]  # 在工作目录下执行
  • 有 ≥5 条同领域数据 → 读 ./database/summary.md,跳到 2.4
  • 不足 5 条 → 继续 2.2 从小红书补充采集
2.2 搜索 + 采集
mcp__xiaohongshu-mcp__search_feeds(keyword="[主题关键词]", filters={"sort_by": "最多点赞"})

对搜索结果中赞数 TOP 5-8 篇,获取详情:

mcp__xiaohongshu-mcp__get_feed_detail(feed_id, xsec_token)
2.3 标注 + 入库

对每篇高赞笔记提取分析维度后,写入本地数据库:

python3 ~/.claude/skills/xiaohongshu/scripts/feed_database.py add '<json>'  # 在工作目录下执行

分析 JSON 模板见「高赞笔记数据库 → 分析并标注」章节。

采集完成后生成 summary:

python3 ~/.claude/skills/xiaohongshu/scripts/feed_database.py analyze  # 在工作目录下执行
2.4 读取 summary 指导创作

读取 ./database/summary.md,提取以下决策依据供后续步骤使用:

决策项 从 summary 取 用在哪一步
标题类型 标题类型分布 TOP 1 第五步:写标题
配图风格 配图风格分布 TOP 1 第四步:生成配图
高频标签 高频标签 TOP 15 第三步:确定标签
成功要素 高频成功要素 TOP 10 第五步:写正文
收藏/赞比 互动数据均值 判断内容类型(高收藏 = 干货型)

Read the full file on GitHub · 401 lines

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. 7d ago First seen · 401 lines · 35 tokens per session scan A e206d1e7d50b

Subscribe to this mod's changes

xiaohongshu is a skill published in the GitHub repository majiayu000/spellbook (278 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 3,905 once invoked, about $0.0002 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

pneuma-session

Instructions for renaming an active Pneuma session and replacing its default preview with a useful title and summary. A Pneuma session is one work area inside a larger project.

pandazki/pneuma-skills · 127 tokens

handoff-pneuma

Hand the current task off to Pneuma — a co-creation workspace that spins up a domain-specific viewer (deck, webpage, board, diagram, video, …) plus an editing agent — for the current directory. Use when the user wants to "hand off to Pneuma", "open this in Pneuma", build a webpage / slides / diagram / doc / video from…

pandazki/pneuma-skills · 117 tokens

session-handoff

Use when the user wants to hand off, transfer, pause, or continue the current session in a new session or with another agent — asks for a "session handoff", a "prompt para a próxima sessão", to "continuar de onde paramos", or invokes /session-handoff; also when context is running low and in-flight work must survive a…

will-pagane/claude-superdev-harness · 91 tokens

Cursor rules for graphical apps development with integration

Skill "Cursor rules for graphical apps development with integration" from AmariahAK/atlarix-skills, covering when to use this skill, source, project synopsis, project organization and primary libraries used.

AmariahAK/atlarix-skills · 8 tokens

familiar-help

Use familiar companion tools for creative buddy/companion interactions. Handles fortunes, code roasts, haiku, stats, mood, lore, focus timers, and personality changes. Triggers when user addresses their companion by any name — "buddy" (Anthropic's UI label), "familiar", "companion", or whatever name the user uses for…

yaniv-golan/claude-familiar · 161 tokens

game-art

Game art principles. Visual style selection, asset pipeline, animation workflow.

trinhhaox/ag-kit · 17 tokens