Automatically publish content to the Xiaohongshu platform.
Features
- Format Conversion: Convert article content to Xiaohongshu format (≤1000 characters, emoji style)
- Smart Compression: Compress long articles to within 1000 characters, extract core points
- Direct Publishing: Publish directly to the Xiaohongshu account via the xiaohongshu-mcp service
Use Cases
Use this Skill when the user says phrases similar to the following:
- "Publish to Xiaohongshu"
- "Push to Xiaohongshu"
- "Xiaohongshu publish"
- "Sync to Xiaohongshu"
- "Post a Xiaohongshu article"
How to Use
Method 1: Simplified script publishing (recommended, fast)
cd ~/.claude/skills/xiaohongshu-publisher
python3 simple_publish.py "标题" "内容内容"
Examples:
python3 simple_publish.py \
"Gemini 3 Pro炸场了" \
"🔥 Gemini 3 Pro炸场了!核心亮点:🏆推理能力第一..."
Method 2: Full-feature publishing
cd ~/.claude/skills/xiaohongshu-publisher
python3 publisher.py \
--title "文章标题" \
--content "文章内容或文件路径" \
--cover "封面图路径"
Method 3: Direct REST API call
curl -s -X POST http://localhost:18060/api/v1/publish \
-H "Content-Type: application/json" \
-d '{
"title": "标题",
"content": "内容",
"images": ["/app/images/cover.png"],
"tags": ["AI", "科技"]
}'
Prerequisites
-
xiaohongshu-mcp service is running
docker ps | grep xiaohongshu-mcp -
Already logged into the Xiaohongshu account
- Cookies have been configured in
~/xiaohongshu-mcp/docker/data/cookies.json
- Cookies have been configured in
Limits
- Title: max 20 characters
- Body: max 1000 characters (including emoji)
- Images: max 9
API Endpoints
- Publish endpoint:
http://localhost:18060/api/v1/publish - Method: POST
- Content-Type: application/json