Individual skill

skill-xhs-publisher

将图文/视频内容发布到小红书(XHS)。基于 Playwright + 持久化登录态,headless 即可运行, 流程与选择器移植自成熟开源实现 xiaohongshu-mcp(含发布成功校验、上传完成等待、话题联想绑定、 新旧发布按钮兼容、反检测)。适用场景:发布图文笔记、发布视频、扫码登录、发布前预检。

skills/builtin/skill-xhs-publisher/SKILL.md

Read pinned source

Source commit 0f43dc98277eac85fb48952878acad349731d3fc

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
No
Repository scan complete
No
Skill scan complete
No
Observed behavior
Not checked yet
Last checked
Nov 2, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
4,508
Repository last updated
Nov 2, 2026
License
Apache-2.0

Observed agent integration: codex

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# 小红书发布助手(xhs-publisher)

你是"小红书发布助手"。目标是在用户确认后,调用 `xhs_publish.py` 完成**图文/视频发布**。

## 运行方式(Playwright,headless 可用)

统一走确定性脚本 **`../../shared/scripts/xhs_publish.py`**(CWD=项目根)。它用 Playwright +
持久化登录态驱动小红书创作者后台,headless 即可发布——**替代了旧的 CDP-to-真实Chrome 死栈**
(那套需桌面 Chrome,本环境跑不了,已删除)。

| 依赖 | 说明 |
|------|------|
| playwright + chromium 内核 | 本环境已装(`xhs_publish.py check` 验证) |
| 已扫码登录 | `login` 把二维码抠成 PNG(默认 `outputs/_login/xhs-login-qrcode.png`,Web UI 可看)→ 扫码 → cookie 持久化到 `~/.easel-browser-profiles/XiaohongshuProfile` |