← 返回 Skills 市场
siaslfs

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

作者 siaslfs · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ⚠ suspicious
235
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install xiaohongshu-publish-kit
功能描述
Complete toolkit for publishing content to Xiaohongshu (小红书). Includes automated browser control, image generation, content formatting, and full publishing p...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install xiaohongshu-publish-kit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /xiaohongshu-publish-kit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
修复重要问题:1) 移除MCP服务依赖,简化安装;2) 修复browser命令调用(改为openclaw browser);3) 新增quick_start.sh一键启动脚本;4) 优化依赖配置,提高兼容性
v1.1.0
新增自动登录保活功能:定时检查登录状态、会话备份恢复、失败通知、发布前自动检查等,大幅减少手动扫码频率
v1.0.0
完整的小红书自动发布工具包:支持图文发布、封面生成、内容格式化、浏览器自动化等全流程功能。包含Python脚本、使用示例和详细文档。
元数据
Slug xiaohongshu-publish-kit
版本 1.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

小红书自动发布工具包 (Xiaohongshu Publish Kit) 是什么?

Complete toolkit for publishing content to Xiaohongshu (小红书). Includes automated browser control, image generation, content formatting, and full publishing p... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 235 次。

如何安装 小红书自动发布工具包 (Xiaohongshu Publish Kit)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install xiaohongshu-publish-kit」即可一键安装,无需额外配置。

小红书自动发布工具包 (Xiaohongshu Publish Kit) 是免费的吗?

是的,小红书自动发布工具包 (Xiaohongshu Publish Kit) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

小红书自动发布工具包 (Xiaohongshu Publish Kit) 支持哪些平台?

小红书自动发布工具包 (Xiaohongshu Publish Kit) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 小红书自动发布工具包 (Xiaohongshu Publish Kit)?

由 siaslfs(@siaslfs)开发并维护,当前版本 v1.2.0。

💬 留言讨论