Best use case
小红书技能 (Xiaohongshu Skill) is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
小红书内容创作、发布与运营一体化技能。
Teams using 小红书技能 (Xiaohongshu Skill) should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/xiaohongshu/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How 小红书技能 (Xiaohongshu Skill) Compares
| Feature / Agent | 小红书技能 (Xiaohongshu Skill) | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
小红书内容创作、发布与运营一体化技能。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 小红书技能 (Xiaohongshu Skill)
小红书内容创作、发布与运营一体化技能。
## 环境
- Python venv: `/root/clawd/skills/xiaohongshu/venv`
- 激活: `source /root/clawd/skills/xiaohongshu/venv/bin/activate`
- social-auto-upload: `/root/clawd/skills/xiaohongshu/social-auto-upload`
## 功能模块
### 1. 内容创作 ✅
AI 根据主题撰写小红书风格内容。
### 2. 渲染卡片 ✅
将 Markdown 内容渲染成小红书风格的图片卡片(1080×1440px)。
```bash
cd /root/clawd/skills/xiaohongshu
./render <markdown文件> --style <样式> -o output/
```
可用样式: `purple`(默认), `xiaohongshu`, `mint`, `sunset`, `ocean`, `elegant`, `dark`
### 3. 发布笔记 ✅ (RPA方式)
使用 Playwright 自动化发布,模拟真实用户操作。
**首次使用需要登录获取 Cookie:**
```bash
cd /root/clawd/skills/xiaohongshu/social-auto-upload
../venv/bin/python -c "
import asyncio
from uploader.xiaohongshu_uploader.main import xiaohongshu_cookie_gen
asyncio.run(xiaohongshu_cookie_gen('cookies/xhs_account.json'))
"
```
会打开浏览器,扫码登录后 Cookie 自动保存。
**发布图文笔记:**
```python
from uploader.xiaohongshu_uploader.main import XiaoHongShuVideo
# 详见 examples/upload_video_to_xiaohongshu.py
```
### 4. 查看数据(开发中)
通过 RPA 方式获取笔记数据。
### 5. 学习他人笔记(开发中)
通过 RPA 方式浏览和分析热门笔记。
## 完整工作流
```
1. 主题构思 → 告诉我你想写什么
2. AI 撰写 → 生成小红书风格文案
3. 保存内容 → output/note.md
4. 渲染卡片 → 生成封面 + 内容图片
5. RPA 发布 → 自动上传到小红书
6. 数据跟踪 → 查看互动数据
7. 优化迭代 → 根据数据调整内容
```
## 目录结构
```
xiaohongshu/
├── SKILL.md # 本文档
├── .env # Cookie 配置(API方式,备用)
├── venv/ # Python 虚拟环境
├── assets/ # HTML 模板
├── scripts/ # 工具脚本
│ ├── render_xhs_v2.py # 渲染脚本
│ └── xhs_tool.py # API 工具(备用)
├── output/ # 输出目录
└── social-auto-upload/ # RPA 发布工具
├── cookies/ # 登录凭证
├── videos/ # 待发布内容
└── uploader/ # 各平台上传模块
```
## 注意事项
- RPA 方式需要首次扫码登录
- 发布间隔建议 > 30 秒,避免风控
- 图片尺寸 1080×1440px(小红书推荐比例)
- 支持定时发布Related Skills
xiaohongshu-extract
Extract metadata from Xiaohongshu (XHS) share or discovery URLs by parsing window.__INITIAL_STATE__ and returning.
xiaohongshu-title
Maximize CTR (Click-Through Rate) by leveraging emotional hooks and platform algorithms.
xiaohongshu-automation
A complete automation suite for Xiaohongshu (Little Red Book)
xiaohongshu
XiaoHongShu (Little Red Book) data collection and interaction toolkit. Use when working with XiaoHongShu (小红书) platform for: (1) Searching and scraping notes/posts, (2) Getting user profiles and details, (3) Extracting comments and likes, (4) Following users and liking posts, (5) Fetching home feed and trending content. Automatically handles all encryption parameters (cookies, headers) including a1, webId, x-s, x-s-common, x-t, sec_poison_id, websectiga, gid, x-b3-traceid, x-xray-traceid. Supports guest mode and authenticated sessions via web_session cookie.
xiaohongshu-mcp
Automate Xiaohongshu (RedNote) content operations using a Python client for the xiaohongshu-mcp server. Use for: (1) Publishing image, text, and video content, (2) Searching for notes and trends, (3) Analyzing post details and comments, (4) Managing user profiles and content feeds. Triggers: xiaohongshu automation, rednote content, publish to xiaohongshu, xiaohongshu search, social media management.
paylock
Non-custodial SOL escrow for AI agent deals.
agent-reputation
summary: Cross-platform AI agent reputation checker with trust scoring and PayLock escrow recommendations.
Telecom Agent Skill
Turn your AI Agent into a Telecom Operator. Bulk calling, ChatOps, and Field Monitoring.
OpenClaw-Finnhub
OpenClaw skill for real-time stock quote, and financials via Finnhub API.
```markdown
# OpenClaw-Last.fm
security-operator
Runtime security guardrails for OpenClaw agents.
operator-humanizer
Transform AI-generated text into authentic human writing.