
Post To Xhs
- 6 installs
- 244 repo stars
- Updated March 5, 2026
- autoclaw-cc/xiaohongshu-mcp-skills
post-to-xhs is a Claude skill that publishes image-text or video notes to Xiaohongshu (RED) through the xiaohongshu-mcp service after a confirmation preview.
About
This skill publishes content to Xiaohongshu (Little Red Book), supporting both image-text notes and video notes through the xiaohongshu-mcp service. A creator uses it to draft, validate, preview, and publish a RED note. It auto-detects the note type from the supplied media, enforces the platform's 20-character title limit and absolute-path rules, and requires explicit user confirmation before the non-reversible publish.
- Publishes image or video notes to Xiaohongshu (RED) via the xiaohongshu-mcp service
- Auto-detects note type from supplied media and validates title length and file paths
- Shows a full preview and requires user confirmation before the irreversible publish
Post To Xhs by the numbers
- 6 all-time installs (skills.sh)
- Ranked #1,557 of 1,879 Marketing & SEO skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
post-to-xhs capabilities & compatibility
Free; needs a local xiaohongshu-mcp service and a logged-in Xiaohongshu account.
- Capabilities
- social publishing · content distribution · media upload
- Use cases
- marketing · copywriting
- Runs
- Runs locally
- Pricing
- Free
What post-to-xhs says it does
发布内容到小红书,支持图文笔记和视频笔记。
标题最多 20 个中文字或英文单词(小红书平台限制,超长会被截断)
图文笔记至少 1 张图片(小红书不允许纯文本笔记)
npx skills add https://github.com/autoclaw-cc/xiaohongshu-mcp-skills --skill post-to-xhsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 6 |
|---|---|
| repo stars | ★ 244 |
| Last updated | March 5, 2026 |
| Repository | autoclaw-cc/xiaohongshu-mcp-skills ↗ |
What it does
Publish an image or video note to Xiaohongshu (RED) with validation and a confirmation preview.
Who is it for?
Publishing validated image or video notes to Xiaohongshu after a preview and user confirmation.
Skip if: Pure text notes (RED disallows them) or mixing images and video in one note.
When should I use this skill?
The user wants to publish a note, image-text post, or video to Xiaohongshu.
What you get
A validated image-text or video note is published to Xiaohongshu and its note ID and status are reported.
- a published Xiaohongshu image-text or video note
- the note ID and publish status
By the numbers
- 20-character title limit
- 5-step execution flow
Files
输入判断
根据用户提供的素材判断发布类型:
- 提供了视频文件 → 视频笔记
- 提供了图片 → 图文笔记
- 仅提供文本 → 提示用户至少提供图片或视频
约束
- 标题最多 20 个中文字或英文单词(小红书平台限制,超长会被截断)
- 图文笔记至少 1 张图片(小红书不允许纯文本笔记)
- 视频笔记仅支持本地视频文件绝对路径(MCP 服务需要读取本地文件)
- 图片和视频不能混用,只能二选一(小红书平台限制)
- 正文中不要包含 # 标签(标签通过
tags参数单独传递,MCP 服务会自动处理格式) - 发布前展示完整内容让用户确认(发布后无法撤回)
执行流程
1. 收集发布信息
确保以下内容齐全:
title(必填)— 标题content(必填)— 正文- 图片列表或视频路径(必填其一)
tags(可选)— 话题标签schedule_at(可选)— 定时发布,ISO8601 格式is_original(可选,仅图文)— 声明原创visibility(可选)— 公开可见 | 仅自己可见 | 仅互关好友可见
信息不完整时,向用户询问缺少的部分。
2. 内容校验
- 检查标题长度(≤20 中文字)
- 检查图片/视频文件路径是否为绝对路径
- 如用户提供 URL 内容,先用 WebFetch 提取文本和图片
3. 确认发布
向用户展示完整的发布内容预览:
- 标题、正文、标签
- 图片列表或视频路径
- 定时时间、可见范围(如有)
等待用户确认后才执行发布。
4. 发布
图文笔记 — 调用 publish_content:
title(string,必填)content(string,必填)images(string[],必填)— 图片路径或 URLtags(string[],可选)schedule_at(string,可选)is_original(bool,可选)visibility(string,可选)
视频笔记 — 调用 publish_with_video:
title(string,必填)content(string,必填)video(string,必填)— 本地视频绝对路径tags(string[],可选)schedule_at(string,可选)visibility(string,可选)
5. 报告结果
发布成功后,告知用户笔记 ID 和发布状态。
失败处理
| 场景 | 处理 |
|---|---|
| 未登录 | 引导使用 xhs-login |
| 标题超长 | 提示用户缩短标题 |
| 图片路径无效 | 提示检查路径是否正确 |
| 视频使用了相对路径 | 提示改为绝对路径 |
| 发布失败 | 展示错误信息,建议检查内容或重试 |
Related skills
FAQ
Can I publish a text-only note?
No. The docs state Xiaohongshu does not allow text-only notes; at least one image or a video is required.
What is the title limit?
At most 20 Chinese characters or English words; longer titles get truncated by the platform.