← 返回 Skills 市场
white0dew

xiaohongshuskills

作者 青玉白露 · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
843
总下载
1
收藏
21
当前安装
1
版本数
在 OpenClaw 中安装
/install xiaohongshuskills
功能描述
将图文/视频内容自动发布到小红书(XHS)。 支持三类任务:发布图文、发布视频、仅启动测试浏览器(不发布)。
安全使用建议
Plain-language checklist before installing or running this skill: - Review and run the code in an isolated environment first (VM or throwaway account) — these scripts will execute on your machine. - Chrome is required but not declared: ensure you install Chrome and run the tool with a dedicated Chrome profile (do NOT point it at your primary browser profile). The tool creates/manages user-data-dirs and can delete them when asked (remove-account --delete-profile). - The skill reads/writes local files (config/, tmp/) and stores login/cache info; expect persistent session data on disk. - The tool can download arbitrary media URLs and will save them in a temp directory — only provide trusted URLs. - Be careful with remote CDP (--host not localhost): connecting to an untrusted remote Chrome instance or allowing remote CDP access may expose sensitive data (cookies, pages). Avoid remote mode unless you control the remote machine. - The SKILL.md says human confirmation is required before publishing, but the code supports --auto-publish which bypasses confirmation. If you allow autonomous agent invocation, ensure the agent is not permitted to call publish commands with --auto-publish. - If you need to use this: create a dedicated OS user or Chrome profile for testing, back up any important Chrome profiles, and run the scripts manually once to observe behavior before granting agent-level invocation. - If you are not comfortable auditing Python code, do not install it with elevated trust; prefer manual use only (run CLI yourself) rather than giving the skill autonomous privileges.
功能分析
Type: OpenClaw Skill Name: xiaohongshuskills Version: 0.1.0 The skill bundle is classified as suspicious due to its extensive use of Chrome DevTools Protocol (CDP) for browser automation, including the powerful `Runtime.evaluate` command for arbitrary JavaScript execution and `DOM.setFileInputFiles` for local file uploads. While user input for these commands is consistently JSON-escaped (`json.dumps`) to mitigate direct prompt/JS injection, the inherent power and complexity of CDP interactions present a significant attack surface. Additionally, `account_manager.py` uses `shutil.rmtree` to delete Chrome profile directories, a powerful capability that, if exploited through path manipulation (though currently mitigated by safe path construction), could lead to data loss. There is no evidence of intentional malicious behavior such as data exfiltration or unauthorized remote control, and the `SKILL.md` explicitly mandates user confirmation before publishing, which is a strong mitigating control against prompt injection leading to unauthorized actions.
能力评估
Purpose & Capability
The name/description (auto-post to Xiaohongshu) aligns with the included modules: Chrome launcher, CDP publisher, account manager, feed explorer, image downloader, and publish pipeline. The only mild mismatch: the registry metadata lists no required binaries, but the SKILL.md and README explicitly require Google Chrome and Python 3.10+. Overall the requested files and operations are consistent with the stated purpose.
Instruction Scope
Runtime instructions and code perform browser automation via Chrome DevTools Protocol, manipulate Chrome user-data-dirs (profiles), read/write local config and cache (accounts.json, login_status_cache.json), download arbitrary media URLs, and scrape page state (window.__INITIAL_STATE__). These are all within 'publishing/search' functionality, but they also provide the ability to inspect notifications, retrieve mentions, and post comments. Notably: (1) the skill can access and modify browser profiles (cookies/session state) and can delete profile directories; (2) it supports remote CDP host/port connections (connect to arbitrary remote Chrome instances); (3) image/video downloader will fetch arbitrary URLs with custom Referer headers. All of these increase the attack surface and sensitivity of what the skill can read/modify.
Install Mechanism
This is instruction + included Python code (no install spec). A minimal requirements.txt (requests, websockets) is provided. No external download URL or archive-extract steps are present in the manifest. Risk from install mechanism is low, but executing the shipped scripts will run arbitrary Python code on the host, so users should review the source before running.
Credentials
The skill declares no required environment variables or primary credential, which matches the manifest. However, it relies on environment/state implicitly: LOCALAPPDATA or home directory for Chrome profile paths, filesystem access to create/delete profile dirs and temp files, network access to download media and to reach Xiaohongshu and optional remote CDP hosts, and ability to open/listen to TCP ports. These are plausible needs for the task, but they are sensitive (access to browser cookies/session via profiles and CDP).
Persistence & Privilege
always:false (good). The skill persists data locally (config/accounts.json, profile directories, tmp/login_status_cache.json, temporary downloaded media). This is expected for multi-account publishing, but there is an operational risk: the tool supports a --auto-publish flag (bypass confirmation) and the agent platform allows autonomous invocation by default — combined, that can let the agent publish posts without an explicit human confirmation if invoked with that flag. The skill can also connect to remote CDP endpoints (which could be an untrusted remote Chrome) — a privilege to be used with caution.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install xiaohongshuskills
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /xiaohongshuskills 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
RedBookSkills v0.1.0 — Initial Release - Automates publishing of text-image and video content to Xiaohongshu (XHS), plus testing browser control. - Supports three tasks: publish text-image, publish video, or start/test browser without publishing. - Includes interactive input validation, requiring user confirmation before posting. - Handles content search, detail retrieval, commenting, notification mentions, and content metrics. - Provides command examples and strict publishing constraints (e.g., title length, image/video exclusivity, headless mode default). - Adds multi-account switching and robust error handling with user-friendly prompts.
元数据
Slug xiaohongshuskills
版本 0.1.0
许可证
累计安装 22
当前安装数 21
历史版本数 1
常见问题

xiaohongshuskills 是什么?

将图文/视频内容自动发布到小红书(XHS)。 支持三类任务:发布图文、发布视频、仅启动测试浏览器(不发布)。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 843 次。

如何安装 xiaohongshuskills?

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

xiaohongshuskills 是免费的吗?

是的,xiaohongshuskills 完全免费(开源免费),可自由下载、安装和使用。

xiaohongshuskills 支持哪些平台?

xiaohongshuskills 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 xiaohongshuskills?

由 青玉白露(@white0dew)开发并维护,当前版本 v0.1.0。

💬 留言讨论