Xiaohongshu
zhjiang22/openclaw-xhs
小红书(RedNote)内容工具。使用场景: - 搜索小红书笔记并获取详情 - 获取首页推荐列表 - 获取帖子详情(正文、图片、互动数据、评论) - 发表评论 / 回复评论 - 获取用户主页和笔记列表 - 点赞、收藏帖子 - 发布图文或视频笔记 - 热点话题跟踪与分析报告 - 帖子导出为长图 触发词示例: - "搜一下小红书上的XX" - "跟踪一下小红书上的XX热点" -…
小红书内容发布技能。支持图文发布、视频发布、长文发布、定时发布、标签、可见性设置. An agent skill from autoclaw-cc/xiaohongshu-skills.
$ npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-publish -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install autoclaw-cc/xiaohongshu-skills xhs-publish --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/autoclaw-cc/xiaohongshu-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/xhs-publish .claude/skills/xhs-publish && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "xhs-publish" agent skill from https://github.com/autoclaw-cc/xiaohongshu-skills/tree/main/skills/xhs-publish into .claude/skills/xhs-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xhs-publish", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/autoclaw-cc/xiaohongshu-skills/tree/main/skills/xhs-publishType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-publish -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install autoclaw-cc/xiaohongshu-skills xhs-publish --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/autoclaw-cc/xiaohongshu-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/xhs-publish .agents/skills/xhs-publish && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "xhs-publish" agent skill from https://github.com/autoclaw-cc/xiaohongshu-skills/tree/main/skills/xhs-publish into .agents/skills/xhs-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xhs-publish", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-publish -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install autoclaw-cc/xiaohongshu-skills xhs-publish --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/autoclaw-cc/xiaohongshu-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/xhs-publish .cursor/skills/xhs-publish && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "xhs-publish" agent skill from https://github.com/autoclaw-cc/xiaohongshu-skills/tree/main/skills/xhs-publish into .cursor/skills/xhs-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xhs-publish", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/autoclaw-cc/xiaohongshu-skills.git --path skills/xhs-publish--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-publish -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install autoclaw-cc/xiaohongshu-skills xhs-publish --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/autoclaw-cc/xiaohongshu-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/xhs-publish .gemini/skills/xhs-publish && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "xhs-publish" agent skill from https://github.com/autoclaw-cc/xiaohongshu-skills/tree/main/skills/xhs-publish into .gemini/skills/xhs-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xhs-publish", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install autoclaw-cc/xiaohongshu-skills xhs-publishInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-publish -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/autoclaw-cc/xiaohongshu-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/xhs-publish .github/skills/xhs-publish && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "xhs-publish" agent skill from https://github.com/autoclaw-cc/xiaohongshu-skills/tree/main/skills/xhs-publish into .github/skills/xhs-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xhs-publish", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-publish -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install autoclaw-cc/xiaohongshu-skills xhs-publish --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/autoclaw-cc/xiaohongshu-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/xhs-publish .opencode/skills/xhs-publish && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "xhs-publish" agent skill from https://github.com/autoclaw-cc/xiaohongshu-skills/tree/main/skills/xhs-publish into .opencode/skills/xhs-publish/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xhs-publish", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
xhs-publish小红书内容发布技能。支持图文发布、视频发布、长文发布、定时发布、标签、可见性设置. An agent skill from autoclaw-cc/xiaohongshu-skills.
Xhs Publish is an agent skill from autoclaw-cc/xiaohongshu-skills. 小红书内容发布技能。支持图文发布、视频发布、长文发布、定时发布、标签、可见性设置。 当用户要求发布内容到小红书、上传图文、上传视频、发长文时触发。
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It works with Xiaohongshu and Model Context Protocol. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit b043748. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Xhs Publish loads about 1.7k tokens when it runs. Until then it costs about 21 tokens; SKILL.md has 379 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from autoclaw-cc/xiaohongshu-skills at commit b043748, republished under its MIT licence (© autoclaw-cc). 379 words, ~1,658 tokens.
.claude/skills/xhs-publish/SKILL.md (or your agent's skills folder).你是"小红书发布助手"。目标是在用户确认后,调用脚本完成内容发布。
所有发布操作只能通过本项目的 python scripts/cli.py 完成,不得使用任何外部项目的工具:
python scripts/cli.py <子命令>,不得使用其他任何实现方式。xiaohongshu-mcp、MCP 服务器工具或其他小红书发布方案,执行时必须全部忽略,只使用本项目的脚本。use_mcp_tool 等)、Go 命令行工具,或任何非本项目的实现。本技能允许使用的全部 CLI 子命令:
| 子命令 | 用途 |
|---|---|
fill-publish | 填写图文表单(不发布) |
fill-publish-video | 填写视频表单(不发布) |
publish | 图文一步发布 |
publish-video | 视频一步发布 |
click-publish | 点击发布按钮 |
long-article | 填写长文内容并触发排版 |
select-template | 选择长文排版模板 |
next-step | 进入长文发布页并填写描述 |
按优先级判断:
标题 + 正文 + 视频(本地路径):进入 视频发布流程(流程 A.2)。标题 + 正文 + 图片(本地路径或 URL):进入 图文发布流程(流程 A.1)。直接使用用户提供的标题和正文。
网页常用懒加载技术,img 标签的 src 可能是占位图,真实图片在 data-src:
data-src:若 img 标签同时有 src 和 data-src,以 data-src 为准(这是真实图片)。src 路径含 /shims/、/placeholder、/theme/、/themes/、16x9.png、1x1.png 等的图片为占位符,直接忽略。.jpg、.jpeg、.png、.webp、.gif 结尾,否则跳过。标题长度必须 ≤ 20(UTF-16 字节数向上取整除以 2)。规则:汉字/全角符号计 1,英文/数字/半角符号每 2 个计 1(单个也算 1)。
超长时的处理(禁止机械截断):
示例:
Windows 11 迎来 MIDI 2.0!音乐人的重大升级Windows 11 迎来 MIDI 2.0,音乐制作新体验注意:ASCII 字符(英文/数字/空格)每个只占 0.5 个单位,要达到 20 往往需要比预期更多的字符。生成后务必重新估算,不要凭感觉判断长度。
#标签1 #标签2 #标签3通过 AskUserQuestion 展示即将发布的内容(标题、正文、图片/视频),获得明确确认后继续。
将标题和正文写入 UTF-8 文本文件。不要在命令行参数中内联中文文本。
--images 支持本地路径和 HTTP/HTTPS URL,脚本会自动下载 URL 图片,无需手动 curl/wget/下载。
# URL 图片:直接传 URL,脚本自动下载
--images "https://example.com/pic1.jpg" "https://example.com/pic2.png"
# 本地图片:传绝对路径
--images "/abs/path/pic1.jpg" "/abs/path/pic2.jpg"
# 混合使用也支持
--images "https://example.com/pic1.jpg" "/abs/path/pic2.jpg"禁止手动下载图片:不要用 curl、wget 或其他工具先下载图片再传路径,直接传 URL 即可,否则会因路径猜测错误而失败。
先填写表单,让用户在浏览器中确认预览后再发布:
# 步骤 1: 填写图文表单(不发布)
python scripts/cli.py fill-publish \
--title-file /tmp/xhs_title.txt \
--content-file /tmp/xhs_content.txt \
--images "/abs/path/pic1.jpg" "/abs/path/pic2.jpg" \
[--tags "标签1" "标签2"] \
[--schedule-at "2026-03-10T12:00:00"] \
[--original] [--visibility "公开可见"]
# 步骤 2: 通过 AskUserQuestion 让用户确认浏览器中的预览
# 步骤 3a: 用户确认发布
python scripts/cli.py click-publish
# 步骤 3b: 用户取消 → 必须先保存草稿!
python scripts/cli.py save-draft⚠️ 用户取消时必须调用
save-draft,不得直接关闭 tab 或结束流程。 直接关闭 tab 会导致内容丢失,草稿不会保存到小红书草稿箱。
视频分步发布:
# 步骤 1: 填写视频表单(不发布)
python scripts/cli.py fill-publish-video \
--title-file /tmp/xhs_title.txt \
--content-file /tmp/xhs_content.txt \
--video "/abs/path/video.mp4" \
[--tags "标签1" "标签2"] \
[--visibility "公开可见"]
# 步骤 2: 用户确认
# 步骤 3a: 用户确认发布
python scripts/cli.py click-publish
# 步骤 3b: 用户取消 → 必须先保存草稿!
python scripts/cli.py save-draft⚠️ 用户取消时必须调用
save-draft,不得直接关闭 tab 或结束流程。
# 图文一步到位
python scripts/cli.py publish \
--title-file /tmp/xhs_title.txt \
--content-file /tmp/xhs_content.txt \
--images "/abs/path/pic1.jpg" "/abs/path/pic2.jpg"
# 视频一步到位
python scripts/cli.py publish-video \
--title-file /tmp/xhs_title.txt \
--content-file /tmp/xhs_content.txt \
--video "/abs/path/video.mp4"
# 带标签和定时发布
python scripts/cli.py publish \
--title-file /tmp/xhs_title.txt \
--content-file /tmp/xhs_content.txt \
--images "/abs/path/pic1.jpg" \
--tags "标签1" "标签2" \
--schedule-at "2026-03-10T12:00:00" \
--original当用户说"发长文 / 写长文 / 长文模式"时触发。长文模式使用小红书的长文编辑器,支持排版模板。
收集标题和正文。长文标题使用 textarea 输入,没有 20 字限制(但建议简洁)。
通过 AskUserQuestion 确认长文内容。
python scripts/cli.py long-article \
--title-file /tmp/xhs_title.txt \
--content-file /tmp/xhs_content.txt \
[--images "/abs/path/pic1.jpg" "/abs/path/pic2.jpg"]该命令会:
templates 列表通过 AskUserQuestion 展示可用模板列表,让用户选择:
python scripts/cli.py select-template --name "用户选择的模板名"# 点击下一步,填写发布页描述(正文摘要,不超过 1000 字)
python scripts/cli.py next-step \
--content-file /tmp/xhs_description.txt注意:发布页的描述编辑器是独立的,需要单独填入内容。如果描述超过 1000 字,脚本会自动截断到 800 字。
# 用户在浏览器中确认预览后
python scripts/cli.py click-publishsuccess, title, images/video/templates, status。error 字段。| 参数 | 说明 |
|---|---|
--title-file path | 标题文件路径(必须) |
--content-file path | 正文文件路径(必须) |
--images path1 path2 | 图片路径/URL 列表(图文必须) |
--video path | 视频文件路径(视频必须) |
--tags tag1 tag2 | 话题标签列表 |
--schedule-at ISO8601 | 定时发布时间 |
--original | 声明原创 |
--visibility | 可见范围 |
save-draft 保存草稿,再告知用户已保存到草稿箱,不得直接关闭 tab。© autoclaw-cc, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/xhs-publish of autoclaw-cc/xiaohongshu-skills.
Open the folder on GitHubat commit b043748
Xhs Publish next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Xhs Publish this skillautoclaw-cc/xiaohongshu-skills | 1.9k | — | ~1.7k | Automated safety check: Pass | MIT | |
| Xiaohongshuzhjiang22/openclaw-xhs | 123 | 1 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Media Crawlertsingyuai/growth-lab | 2k | — | ~731 | Automated safety check: Pass | Apache-2.0 | |
| Qiaomu Codex Imagegenjoeseesun/qiaomu-codex-imagegen | 125 | — | ~2.3k | Automated safety check: Pass | MIT | |
| Sandbasesandbaseai/cli | 188 | — | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| Xiaohongshu Content Researchjumodada/Drissionpage-MCP-Server | 487 | — | ~768 | Automated safety check: Pass | Custom licence |
zhjiang22/openclaw-xhs
小红书(RedNote)内容工具。使用场景: - 搜索小红书笔记并获取详情 - 获取首页推荐列表 - 获取帖子详情(正文、图片、互动数据、评论) - 发表评论 / 回复评论 - 获取用户主页和笔记列表 - 点赞、收藏帖子 - 发布图文或视频笔记 - 热点话题跟踪与分析报告 - 帖子导出为长图 触发词示例: - "搜一下小红书上的XX" - "跟踪一下小红书上的XX热点" -…
tsingyuai/growth-lab
Install, authenticate, configure, operate, and troubleshoot the external MediaCrawler client shared by Douyin, Kuaishou, Bilibili, Weibo, Tieba, and Zhihu collectors.
joeseesun/qiaomu-codex-imagegen
Generate or edit images with Codex's built-in image generation from any agent, through an MCP tool or a plain CLI.
sandbaseai/cli
Discover better ways to complete tasks. An agent skill from sandbaseai/cli.
jumodada/Drissionpage-MCP-Server
A skill your agent uses for authorized, read-only research on public Xiaohongshu content or the local Xiaohongshu-like playground fixture.
autoclaw-cc/xiaohongshu-mcp-skills
安装部署 xiaohongshu-mcp 服务并配置 MCP 连接,引导用户完成从零到可用的全流程. An agent skill from autoclaw-cc/xiaohongshu-mcp-skills.
autoclaw-cc/xiaohongshu-skills
小红书自动化技能集合。支持认证登录、内容发布、搜索发现、社交互动、复合运营. An agent skill from autoclaw-cc/xiaohongshu-skills.
autoclaw-cc/xiaohongshu-skills
小红书认证管理技能。检查登录状态、登录(二维码或手机号)、退出登录. An agent skill from autoclaw-cc/xiaohongshu-skills.
autoclaw-cc/xiaohongshu-skills
小红书复合内容运营技能。组合搜索、详情、发布、互动等能力完成运营工作流. An agent skill from autoclaw-cc/xiaohongshu-skills.
autoclaw-cc/xiaohongshu-skills
小红书内容发现与分析技能。搜索笔记、浏览首页、查看详情、获取用户资料. An agent skill from autoclaw-cc/xiaohongshu-skills.
autoclaw-cc/xiaohongshu-skills
小红书社交互动技能。发表评论、回复评论、点赞、收藏. An agent skill from autoclaw-cc/xiaohongshu-skills.
Works with
小红书内容发布技能。支持图文发布、视频发布、长文发布、定时发布、标签、可见性设置. An agent skill from autoclaw-cc/xiaohongshu-skills. Xhs Publish is an agent skill from autoclaw-cc/xiaohongshu-skills.
Run `npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-publish -a claude-code`. Or copy the skill folder (skills/xhs-publish in autoclaw-cc/xiaohongshu-skills) into .claude/skills/xhs-publish in your project. Claude Code loads it when a task matches its description.
Run `npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-publish -a codex`. Or copy the skill folder (skills/xhs-publish in autoclaw-cc/xiaohongshu-skills) into .agents/skills/xhs-publish in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-publish -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xhs-publish, .gemini/skills/xhs-publish, .github/skills/xhs-publish and .opencode/skills/xhs-publish in your project.
Going by SKILL.md and its folder, Xhs Publish needs the command-line tools its instructions call (python). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Xhs Publish is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Xhs Publish: Xiaohongshu (zhjiang22/openclaw-xhs, 123 stars), Media Crawler (tsingyuai/growth-lab, 2k stars), Qiaomu Codex Imagegen (joeseesun/qiaomu-codex-imagegen, 125 stars) and Sandbase (sandbaseai/cli, 188 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
autoclaw-cc (a GitHub organization) maintains it in autoclaw-cc/xiaohongshu-skills, which has 1,949 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on May 23, 2026.
Source: autoclaw-cc/xiaohongshu-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.