This automates posting to Xiaohongshu (Little Red Book), China's Instagram-meets-Pinterest platform. It converts your content into the platform's signature style,under 1000 characters with emoji formatting,and publishes directly via API. You get three ways to use it: a quick Python script, a full-featured publisher with image support, or raw REST calls to localhost:18060. The real value is handling Xiaohongshu's specific constraints automatically (20-character titles, 1000-character posts, up to 9 images) so you don't have to manually reformat everything. Requires the xiaohongshu-mcp Docker service running with valid cookies, which is the actual heavy lifting here.

skills.sh installs
151
GitHub stars
72
last updated
Aug 21, 2026

Install

$ npx -y skills add solar-luna/fully-automatic-article-generation-skill --skill xiaohongshu-publisher --agent claude-code

Installs into .claude/skills of the current project.

Files

小红书自动发布 Skill

自动将内容发布到小红书平台。

功能

  • 格式转换: 将文章内容转换为小红书格式(≤1000字,emoji风格)
  • 智能压缩: 将长文章压缩到1000字以内,提取核心要点
  • 直接发布: 通过xiaohongshu-mcp服务直接发布到小红书账号

使用场景

当用户说以下类似话术时使用此Skill:

  • "发布到小红书"
  • "推送到小红书"
  • "小红书发布"
  • "同步到小红书"
  • "发一篇小红书"

使用方法

方法1:简化脚本发布(推荐,快速)

cd ~/.claude/skills/xiaohongshu-publisher
python3 simple_publish.py "标题" "内容内容"

示例:

python3 simple_publish.py \
  "Gemini 3 Pro炸场了" \
  "🔥 Gemini 3 Pro炸场了!核心亮点:🏆推理能力第一..."

方法2:完整功能发布

cd ~/.claude/skills/xiaohongshu-publisher
python3 publisher.py \
  --title "文章标题" \
  --content "文章内容或文件路径" \
  --cover "封面图路径"

方法3:直接REST API调用

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", "科技"]
  }'

前置要求

  1. xiaohongshu-mcp 服务运行中

    docker ps | grep xiaohongshu-mcp
    
  2. 已登录小红书账号

    • Cookies 已配置到 ~/xiaohongshu-mcp/docker/data/cookies.json

限制

  • 标题: 最多20字
  • 正文: 最多1000字(含emoji)
  • 图片: 最多9张

API端点

Sponsors

Details

Repository
github.com/solar-luna/fully-automatic-article-generation-skill
Category
Backend & APIs
First seen
Jun 3, 2026

More from solar-luna/fully-automatic-article-generation-skill

All 2
1feiskyer avatargpt-image-skillfeiskyer/claude-code-settingsGenerate or edit images using OpenAI GPT Image API (gpt-image-2, gpt-image-1, etc). Triggers: "gpt image", "openai image", "generate image with openai", "draw i150skills.sh installs
2hoodini avataraws-agentcorehoodini/ai-agents-skillsBuild AI agents with AWS Bedrock AgentCore. Use when developing agents on AWS infrastructure, creating tool-use patterns, implementing agent orchestration, or i148skills.sh installs
3vm0-ai avatarscrapeninjavm0-ai/vm0-skillsScrapeNinja API for web scraping. Use when user mentions "ScrapeNinja", "scrape", "web scraping", or data extraction.147skills.sh installs
4rysweet avatarmcp-managerrysweet/amplihackConversational interface for managing MCP (Model Context Protocol) server configurations in Claude Code146skills.sh installs
5salesforcecommercecloud avatarb2c-docssalesforcecommercecloud/b2c-developer-toolingSearch and read B2C Commerce documentation using the b2c CLI. Covers Script API reference (dw.* classes/modules), Developer Center guides (Commerce API, PWA Kit145skills.sh installs
6hoodini avatarcloudflarehoodini/ai-agents-skillsBuild and deploy on Cloudflare's edge platform. Use when creating Workers, Pages, D1 databases, R2 storage, AI inference, or KV storage. Triggers on Cloudflare,144skills.sh installs