xiaohongshu-publisher
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese小红书自动发布 Skill
Xiaohongshu Auto-Publish Skill
自动将内容发布到小红书平台。
Automatically publish content to the Xiaohongshu platform.
功能
Features
- 格式转换: 将文章内容转换为小红书格式(≤1000字,emoji风格)
- 智能压缩: 将长文章压缩到1000字以内,提取核心要点
- 直接发布: 通过xiaohongshu-mcp服务直接发布到小红书账号
- Format Conversion: Convert article content to Xiaohongshu format (≤1000 words, emoji-style)
- Intelligent Compression: Compress long articles to within 1000 words and extract core points
- Direct Publishing: Publish directly to Xiaohongshu accounts via the xiaohongshu-mcp service
使用场景
Usage Scenarios
当用户说以下类似话术时使用此Skill:
- "发布到小红书"
- "推送到小红书"
- "小红书发布"
- "同步到小红书"
- "发一篇小红书"
This Skill is triggered when users say similar phrases such as:
- "Publish to Xiaohongshu"
- "Push to Xiaohongshu"
- "Xiaohongshu publish"
- "Sync to Xiaohongshu"
- "Post a Xiaohongshu"
使用方法
Usage Methods
方法1:简化脚本发布(推荐,快速)
Method 1: Simplified Script Publishing (Recommended, Fast)
bash
cd ~/.claude/skills/xiaohongshu-publisher
python3 simple_publish.py "标题" "内容内容"示例:
bash
python3 simple_publish.py \
"Gemini 3 Pro炸场了" \
"🔥 Gemini 3 Pro炸场了!核心亮点:🏆推理能力第一..."bash
cd ~/.claude/skills/xiaohongshu-publisher
python3 simple_publish.py "Title" "Content content"Example:
bash
python3 simple_publish.py \
"Gemini 3 Pro is a hit" \
"🔥 Gemini 3 Pro is a hit! Key highlights: 🏆 No.1 in reasoning ability..."方法2:完整功能发布
Method 2: Full-Featured Publishing
bash
cd ~/.claude/skills/xiaohongshu-publisher
python3 publisher.py \
--title "文章标题" \
--content "文章内容或文件路径" \
--cover "封面图路径"bash
cd ~/.claude/skills/xiaohongshu-publisher
python3 publisher.py \
--title "Article Title" \
--content "Article content or file path" \
--cover "Cover image path"方法3:直接REST API调用
Method 3: Direct REST API Call
bash
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", "科技"]
}'bash
curl -s -X POST http://localhost:18060/api/v1/publish \
-H "Content-Type: application/json" \
-d '{
"title": "Title",
"content": "Content",
"images": ["/app/images/cover.png"],
"tags": ["AI", "Technology"]
}'前置要求
Prerequisites
-
xiaohongshu-mcp 服务运行中bash
docker ps | grep xiaohongshu-mcp -
已登录小红书账号
- Cookies 已配置到
~/xiaohongshu-mcp/docker/data/cookies.json
- Cookies 已配置到
-
xiaohongshu-mcp service is runningbash
docker ps | grep xiaohongshu-mcp -
Xiaohongshu account logged in
- Cookies are configured in
~/xiaohongshu-mcp/docker/data/cookies.json
- Cookies are configured in
限制
Limitations
- 标题: 最多20字
- 正文: 最多1000字(含emoji)
- 图片: 最多9张
- Title: Maximum 20 characters
- Body: Maximum 1000 words (including emojis)
- Images: Maximum 9 images
API端点
API Endpoints
- 发布接口:
http://localhost:18060/api/v1/publish - 方法: POST
- Content-Type: application/json
- Publish Endpoint:
http://localhost:18060/api/v1/publish - Method: POST
- Content-Type: application/json