← Back to Skills Marketplace
siaslfs

小红书自动发布工具包 (Xiaohongshu Publish Kit)

by siaslfs · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ⚠ suspicious
235
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install xiaohongshu-publish-kit
Description
Complete toolkit for publishing content to Xiaohongshu (小红书). Includes automated browser control, image generation, content formatting, and full publishing p...
Usage Guidance
What to consider before installing or enabling this skill: - Verify OpenClaw/browser availability: The code expects a browser CLI (openclaw / browser) though the registry only lists python3. Do not install or run until you confirm you have a trusted OpenClaw/browser binary and understand what it controls. - Session data is accessed and backed up: login_keeper.py and publish.py copy your browser user-data (~/.openclaw/browser/openclaw/user-data) to /tmp/xiaohongshu_session_backup and can restore it. That directory contains cookies and authentication data; treat it as sensitive. If you enable backups, secure or delete backups when not needed. - Persistent operation is optional but powerful: setup_keepalive.sh can add a crontab or run a daemon that periodically drives your browser and backups. Only enable this if you trust the code and accept long-lived automation operating on your account. - Command injection / shell usage: The scripts run subprocesses with shell=True and interpolate strings into shell commands (e.g., cover generation and example runner). If you ever pass untrusted input into titles, content, file paths, or other arguments, it could be abused. Consider hardening code (avoid shell=True, use list args) or sanitize inputs before use. - Review and test locally / sandboxed: Inspect scripts (especially login_keeper.py, publish.py, cover_generator.py, setup_keepalive.sh). Run them in an isolated environment or VM with a throwaway browser profile to confirm behavior before using them with your real account. - Least privilege and file permissions: Do not run as root. Restrict access to /tmp backups (chmod) if you enable backups. Manually inspect and remove any backup files after testing. - Notifications and extensions: The code has placeholder hooks for sending notifications to external services; do not wire any remote endpoints (Telegram, email, webhooks) until you audit any code you add. If you want, I can point out the exact lines/functions that perform session copying, subprocess shell execution, and crontab modification so you can review them more quickly.
Capability Analysis
Type: OpenClaw Skill Name: xiaohongshu-publish-kit Version: 1.2.0 The toolkit provides automated Xiaohongshu publishing but contains significant security vulnerabilities. Multiple scripts, including publish.py, cover_generator.py, and daily_news.py, use subprocess.run(shell=True) with string interpolation for user-provided inputs like titles and file paths, creating a high risk of shell injection. Furthermore, login_keeper.py backs up sensitive browser session data (including authentication cookies) to the world-readable /tmp/xiaohongshu_session_backup directory, posing a credential theft risk. While these behaviors align with the stated automation goals, the lack of input sanitization and insecure storage of session data are critical flaws.
Capability Assessment
Purpose & Capability
The declared purpose (Xiaohongshu publishing) matches the scripts provided: browser automation, cover generation, content formatting and publishing. However the package relies heavily on an OpenClaw/browser CLI (scripts call 'browser' or 'openclaw browser' extensively), yet the registry metadata only lists python3 as a required binary and declares no required config paths. That mismatch (implicit requirement for openclaw/browser and access to browser profiles) is unexpected and should have been declared.
Instruction Scope
Runtime instructions and scripts perform browser automation as described, but they also read and write browser user-data (Path.home()/'.openclaw/browser/openclaw/user-data'), create backups in /tmp, and offer automated restore. Those operations access sensitive session data (cookies, tokens) which is coherent with keeping login persistent but is sensitive and not declared. Several subprocess.run calls use shell=True with commands constructed from string interpolation (e.g., cover generation and example runner), which introduces command-injection risk if untrusted inputs are passed. The SKILL.md and scripts also advise adding crontab or running a daemon for periodic keepalive — that gives the code long-lived execution on the host if the user enables it.
Install Mechanism
This is instruction- and script-based (no install spec). That is the lowest install risk category. No remote download URLs or package installers are supplied by the skill itself.
Credentials
The skill declares no required env vars or config paths, but the scripts implicitly access and modify user configuration and data paths (e.g., ~/.openclaw/browser/openclaw/user-data, /tmp/xiaohongshu_session_backup). Copying and restoring that directory gives access to browser session cookies and other sensitive data. The lack of explicit declaration of those config path requirements is an inconsistency. No external API keys are requested.
Persistence & Privilege
The skill itself is not forced always: true and does not autonomously enable persistence. However the included setup script offers to add a crontab entry or run a daemon (login_keeper) which, if the user consents, will give persistent, periodic execution and repeated access to the user's browser profile. This persistent behavior is user-driven (not automatic) but is powerful and should be enabled only after review.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install xiaohongshu-publish-kit
  3. After installation, invoke the skill by name or use /xiaohongshu-publish-kit
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.2.0
修复重要问题:1) 移除MCP服务依赖,简化安装;2) 修复browser命令调用(改为openclaw browser);3) 新增quick_start.sh一键启动脚本;4) 优化依赖配置,提高兼容性
v1.1.0
新增自动登录保活功能:定时检查登录状态、会话备份恢复、失败通知、发布前自动检查等,大幅减少手动扫码频率
v1.0.0
完整的小红书自动发布工具包:支持图文发布、封面生成、内容格式化、浏览器自动化等全流程功能。包含Python脚本、使用示例和详细文档。
Metadata
Slug xiaohongshu-publish-kit
Version 1.2.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is 小红书自动发布工具包 (Xiaohongshu Publish Kit)?

Complete toolkit for publishing content to Xiaohongshu (小红书). Includes automated browser control, image generation, content formatting, and full publishing p... It is an AI Agent Skill for Claude Code / OpenClaw, with 235 downloads so far.

How do I install 小红书自动发布工具包 (Xiaohongshu Publish Kit)?

Run "/install xiaohongshu-publish-kit" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 小红书自动发布工具包 (Xiaohongshu Publish Kit) free?

Yes, 小红书自动发布工具包 (Xiaohongshu Publish Kit) is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 小红书自动发布工具包 (Xiaohongshu Publish Kit) support?

小红书自动发布工具包 (Xiaohongshu Publish Kit) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 小红书自动发布工具包 (Xiaohongshu Publish Kit)?

It is built and maintained by siaslfs (@siaslfs); the current version is v1.2.0.

💬 Comments