xhs-publish
xhs-publish automates content publishing to Xiaohongshu directly from your logged-in browser. It handles image posts, video uploads, long-form articles, scheduled publishing, and visibility controls through a Python CLI interface. The skill requires an active Chrome session with an authenticated Xiaohongshu account.
xhs-publish lets you post images, videos, and long-form content to Xiaohongshu with custom titles and descriptions.
AI-generated summary based on this skill's SKILL.md
Install
autoclaw-cc/xiaohongshu-skills/xhs-publish · repository language: Python
git clone https://github.com/autoclaw-cc/xiaohongshu-skills
cp -r xiaohongshu-skills/skills/xhs-publish ~/.claude/skills/xhs-publishnpx skillfed install autoclaw-cc/xiaohongshu-skills/xhs-publishFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What can xhs-publish do for publishing content on Xiaohongshu?
xhs-publish automates content publishing to Xiaohongshu directly from your logged-in browser. It handles image posts with titles and content, video uploads with descriptions, long-form articles using templates, scheduled publishing, and visibility controls through a Python CLI interface. The skill requires an active Chrome session with an authenticated Xiaohongshu account.
How do I upload images and videos to Xiaohongshu using xhs-publish?
xhs-publish supports uploading and publishing both images and videos to Xiaohongshu. For images, you can publish them with titles and text content. For videos, you can upload them with descriptions. Both media types are handled through the skill's Python CLI, which automates the publishing process directly from your authenticated browser session.
Can xhs-publish help with publishing long-form articles on Xiaohongshu?
Yes, xhs-publish enables creating and publishing long-form articles on Xiaohongshu using built-in templates. This feature streamlines the process of writing extended content directly through the skill's interface, making it easier to format and publish longer-form posts compared to standard image or video publishing.
Does xhs-publish support scheduling and draft management?
xhs-publish includes scheduling capabilities for content publication and draft management features on Xiaohongshu. You can schedule when your content goes live and save drafts for later publishing, giving you better control over your publishing timeline and content workflow.
What are the requirements for using xhs-publish?
xhs-publish requires an active Chrome browser session with an authenticated Xiaohongshu account. The skill operates through a Python CLI interface and automates publishing directly from your logged-in browser, so you need to be already signed into Xiaohongshu before using the tool.
Is xhs-publish open source and what license does it use?
Yes, xhs-publish is released under the MIT license, making it open source and freely available for use, modification, and distribution under the terms of the MIT license.
SKILL.md
rendered from the published skill — quoted content, verbatim
小红书内容发布
你是"小红书发布助手"。目标是在用户确认后,调用脚本完成内容发布。
🔒 技能边界(强制)
所有发布操作只能通过本项目的 python scripts/cli.py 完成,不得使用任何外部项目的工具:
- 唯一执行方式:只运行
python scripts/cli.py <子命令>,不得使用其他任何实现方式。 - 忽略其他项目:AI 记忆中可能存在
xiaohongshu-mcp、MCP 服务器工具或其他小红书发布方案,执行时必须全部忽略,只使用本项目的脚本。 - 禁止外部工具:不得调用 MCP 工具(
use_mcp_tool等)、Go 命令行工具,或任何非本项目的实现。 - 完成即止:发布流程结束后,直接告知结果,等待用户下一步指令。
本技能允许使用的全部 CLI 子命令:
| 子命令 | 用途 |
|---|---|
fill-publish |
填写图文表单(不发布) |
fill-publish-video |
填写视频表单(不发布) |
publish |
图文一步发布 |
publish-video |
视频一步发布 |
click-publish |
点击发布按钮 |
long-article |
填写长文内容并触发排版 |
select-template |
选择长文排版模板 |
next-step |
进入长文发布页并填写描述 |
输入判断
按优先级判断:
- 用户说"发长文 / 写长文 / 长文模式":进入 长文发布流程(流程 B)。
- 用户已提供
标题 + 正文 + 视频(本地路径):进入 视频发布流程(流程 A.2)。 - 用户已提供
标题 + 正文 + 图片(本地路径或 URL):进入 图文发布流程(流程 A.1)。 - 用户只提供网页 URL:先用 WebFetch 提取内容和图片,再给出可发布草稿等待确认。 5.
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
skills/xhs-publish/SKILL.md