← Back to Skills Marketplace
halleyyang

xhs-publisher-pro

by Halley · GitHub ↗ · v1.4.0 · MIT-0
cross-platform ⚠ suspicious
146
Downloads
1
Stars
0
Active Installs
8
Versions
Install in OpenClaw
/install xhs-publisher-pro
Description
小红书通用自动发帖技能。全流程自动化:AI生成帖子内容 → 生成封面图(6套风格模板)→ Puppeteer自动发布到小红书创作者中心。内置 stealth 反风控、人类化打字模拟。适合运营任意垂直领域小红书账号(科技、生活、美食、旅行、节日、知识分享等)。当用户需要自动发小红书帖子、生成封面图、或定时发帖时使用。
Usage Guidance
This skill is broadly consistent with its stated purpose (it uses Puppeteer + stealth to automate posting and generates cover images), but there are a few things to consider before installing or running it: - Postinstall behavior: npm install will run postinstall.js which probes for Chrome and attempts to auto-install Chromium via apt-get/dnf/yum/brew or trigger a Puppeteer internal download. That can invoke system package managers or long-running downloads. If you don't want automatic system installs, review and run postinstall.js manually or run npm with scripts disabled (e.g., npm ci --ignore-scripts) and then perform required steps yourself. - Sensitive inputs: You will need to provide a phone number and SMS verification code for first-time login. Sessions are saved locally to ~/.openclaw-sessions/xiaohongshu by default. Inspect the code to confirm there is no network upload of session files before trusting it; the provided files claim local-only storage, but you should verify no outbound network code exists in any code not shown to you. - Prompt-injection marker: A unicode-control-chars pattern was detected in the SKILL.md. This is not necessary for the skill's functionality and could be an attempt to manipulate LLM behavior. Inspect the SKILL.md raw text for hidden control characters and remove them. - Safety precautions: run the code in an isolated environment (VM or disposable container) first, review postinstall.js and xhs_publisher.js for any network/upload calls you don't expect, and consider creating a throwaway test account instead of your real account until you are confident. If you allow postinstall to run system package managers, be prepared for it to try installing packages that require root privileges.
Capability Analysis
Type: OpenClaw Skill Name: xhs-publisher-pro Version: 1.4.0 The skill bundle is a legitimate automation tool for Xiaohongshu (XHS) content publishing. It uses Puppeteer with stealth plugins to simulate human behavior and includes a built-in content safety filter (checkContentSafety) in xhs_publisher.js to prevent account bans. The scripts handle environment setup and session persistence locally within the user's home directory (~/.openclaw-sessions/), with no evidence of data exfiltration, malicious remote execution, or unauthorized access to sensitive system files.
Capability Assessment
Purpose & Capability
Name/description (auto-generate content, create cover image, use Puppeteer to publish) align with the included code and npm dependencies (puppeteer, puppeteer-extra, stealth plugin). The human-typing, stealth, session storage, and cover-generation logic are coherent with the stated goal.
Instruction Scope
SKILL.md and scripts instruct the agent to: request the user's phone number and SMS code for first-time login and save a session locally (PROFILE_DIR). That is necessary for the task but sensitive. Additionally, SKILL.md contains a pre-scan prompt-injection signal (unicode-control-chars) — this could be an attempt to manipulate evaluation or LLM behavior and should be treated as suspicious. The instructions also rely on running npm install which triggers postinstall actions that attempt system-level fixes/installations (see install_mechanism).
Install Mechanism
There is no formal install spec, but package.json defines a postinstall script (postinstall.js) which runs automatically after npm install. postinstall.js probes for system Chrome and tries to auto-install Chromium via platform package managers (apt-get/dnf/yum/brew) or trigger a Puppeteer internal download using a Chinese mirror. Automatic attempts to run package manager installs from a postinstall script are more invasive than typical npm postinstall behavior and may be surprising to users.
Credentials
The skill does not request unrelated credentials or environment variables. It uses optional env vars commonly associated with Puppeteer (PUPPETEER_EXECUTABLE_PATH) and a PROFILE_DIR for session storage (XHS_PROFILE_DIR). No external API keys or unrelated secrets are requested.
Persistence & Privilege
The skill stores login sessions under ~/.openclaw-sessions/xiaohongshu by default and the postinstall script may install system packages or download browsers. always is false and the skill does not request elevated platform privileges itself, but postinstall may invoke system package managers (which may require root/sudo). The persistence is limited to its own session directory and installed local browser binaries.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install xhs-publisher-pro
  3. After installation, invoke the skill by name or use /xhs-publisher-pro
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.4.0
新增跨平台Chrome路径探测(detectChromePath + buildLaunchOptions),支持macOS/Windows/Linux自动探测Chrome;新增npm run install:cn国内镜像安装、npm run install:skip跳过下载、npm run check环境检测;优化Puppeteer launch参数统一管理
v1.3.2
postinstall 升级:检测 Chrome 是否真正可启动;发现缺系统依赖库时自动打印 apt/yum 修复命令,彻底解决 libnss3 等缺失问题
v1.3.1
新增 postinstall.js:npm install 后自动检测 Chrome,Linux 下尝试用包管理器自动安装 Chromium,失败时走国内镜像下载,最终仍失败则打印清晰的手动指引,用户无需手动修复
v1.3.0
跨平台适配:自动探测 macOS/Windows/Linux 系统 Chrome 路径;国内镜像安装命令;Windows 移除不兼容 sandbox 参数;环境变量 PUPPETEER_EXECUTABLE_PATH 支持手动指定路径
v1.2.2
重写 SKILL.md:面向小白和开发者双版本说明,突出反风控优势,补充 API 文档和版本历史
v1.2.1
修复话题选择器:改用小红书真实 DOM 结构 .recommend-topic-wrapper .tag;修复 postUrl 变量作用域 bug
v1.2.0
修复:删除重复 setViewport;中文输入改用剪贴板粘贴防乱码;话题上限从 3 提升到 5 个,输入节奏更自然;段落补空行逻辑不再破坏已有排版;字体路径动态查找支持非 root 用户;发布成功后返回帖子 URL
v1.1.0
修复风控:引入 stealth 反指纹插件 + 人类化打字速度
Metadata
Slug xhs-publisher-pro
Version 1.4.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 8
Frequently Asked Questions

What is xhs-publisher-pro?

小红书通用自动发帖技能。全流程自动化:AI生成帖子内容 → 生成封面图(6套风格模板)→ Puppeteer自动发布到小红书创作者中心。内置 stealth 反风控、人类化打字模拟。适合运营任意垂直领域小红书账号(科技、生活、美食、旅行、节日、知识分享等)。当用户需要自动发小红书帖子、生成封面图、或定时发帖时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 146 downloads so far.

How do I install xhs-publisher-pro?

Run "/install xhs-publisher-pro" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is xhs-publisher-pro free?

Yes, xhs-publisher-pro is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does xhs-publisher-pro support?

xhs-publisher-pro is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created xhs-publisher-pro?

It is built and maintained by Halley (@halleyyang); the current version is v1.4.0.

💬 Comments