← 返回 Skills 市场
Xhs Publish
作者
qianduoduo8021
· GitHub ↗
· v1.4.5
· MIT-0
471
总下载
8
收藏
2
当前安装
7
版本数
在 OpenClaw 中安装
/install xhs-publish
功能描述
小红书一键发布 — AI 全流程搞定:自动生成标题 → 撰写正文 → 封面/知识卡片/视频(三种形式) → 一键发布。3 分钟从创意到上线,支持多模型自由切换。触发词:发小红书、发布笔记、小红书发布、发笔记、小红书笔记、写小红书、写笔记。
安全使用建议
What to check before installing:
- Source trust: the package has no homepage and an unknown owner; prefer skills from known repositories. If you don't trust the author, don't install.
- Credentials: the metadata says 'no env vars' but scripts require many API keys and secret keys (Gemini/OpenAI/Tencent/MD2Card/XHS AI). Only set credentials you control and understand; never paste high‑privilege keys without auditing code.
- Audit the code: review scripts (cover.sh, generate.sh, check_env.sh) for any unexpected network endpoints or file reads. Pay attention to places where user input could be used to read arbitrary local files (the __USER_IMAGE__ path mode uses a provided path).
- Sandbox/least privilege: run the skill in an isolated VM/container and avoid running as root. If you must run on a host, restrict network access and API keys to minimal scopes.
- MCP binary: README suggests downloading a third‑party MCP binary from GitHub; verify the release URL, checksum, and author before running executables.
- System actions: scripts attempt to start system services (Xvfb, xhs-mcp) and write to ~/xiaohongshu-mcp and /root/.openclaw/media — decide whether you want a skill that manipulates services and these paths.
- If unsure: treat as suspicious. Request the author's identity, full provenance (homepage, source repo), or run a manual code review and test in a safe environment before trusting with real API keys or persistent deployment.
功能分析
Type: OpenClaw Skill
Name: xhs-publish
Version: 1.4.5
The skill bundle provides extensive automation for Xiaohongshu posting but contains several high-risk security indicators. Most critically, SKILL.md contains a hardcoded, functional 'DOUBAO_API_KEY' (919ec537-6d4d-43c4-a5ce-a90a17673bbb), which is a major credential leak. The instructions in SKILL.md also include 'Content Taboos' that explicitly direct the AI agent to use prompt injection techniques to hide its automated nature and the tool's identity to evade platform detection. Additionally, the installation scripts (check_env.sh) and documentation encourage downloading and executing external binaries from GitHub (xpzouying/xiaohongshu-mcp) and managing sensitive session cookies locally. While these features support the stated purpose, the combination of hardcoded secrets, platform-evasion instructions, and external binary execution makes the bundle highly risky.
能力评估
Purpose & Capability
Name/description (小红书一键发布) align with the included scripts (cover.sh, generate.sh, check_env.sh) that generate assets and call an MCP to publish. However the skill metadata declares no required environment variables while the scripts clearly expect many API keys and secrets (GEMINI_API_KEY, IMG_API_KEY, HUNYUAN_SECRET_ID/KEY, MD2CARD_API_KEY, XHS_AI_API_KEY, etc.). That mismatch is unexplained and disproportionate.
Instruction Scope
SKILL.md and scripts instruct the agent to: generate titles/content/images, call external image/AI APIs, start or check system services (Xvfb, xhs-mcp via systemctl or manual spawn), copy files into /root/.openclaw/media/inbound and use a local MCP service. Instructions reference system paths, systemctl and spawning background services — actions beyond mere text generation and that affect host state. The SKILL.md also prescribes strict Feishu media handling rules and automatic keyword replacement, which is platform-specific but plausible.
Install Mechanism
No formal install spec is provided (instruction-only), which reduces explicit installer risk, but README suggests downloading a third‑party MCP binary from a GitHub releases URL. The code will write to ~/xiaohongshu-mcp, /tmp and /root/.openclaw/media; scripts create and execute helper Python snippets. No use of obscure shorteners was found; content embedding (e.g., base64 font in flow.svg) is present but typical for documentation assets.
Credentials
Declared 'Required env vars: none' is inconsistent with multiple environment variables referenced across scripts and check_env.sh (GEMINI_API_KEY, IMG_API_KEY, HUNYUAN_SECRET_ID/KEY, DOUBAO_API_KEY, MD2CARD_API_KEY, XHS_AI_API_KEY, XHS_AI_API_URL, etc.). Those are sensitive credentials (API keys/secret keys). The skill's primary function (generate/publish content) does justify some API keys, but the omission from metadata and the breadth of keys requested (multiple providers and cloud secrets) is disproportionate without clearer justification.
Persistence & Privilege
The skill does not request always:true and is user-invocable. However its scripts attempt to start/check system services (systemctl start xvfb, start/launch xiaohongshu-mcp), create ~/xiaohongshu-mcp, and instruct use of /root/.openclaw/media/inbound. Those behaviors require the runtime to allow process spawning and filesystem writes in user/home (and references /root). This is more than ephemeral processing but not automatically permanent; still review required.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install xhs-publish - 安装完成后,直接呼叫该 Skill 的名称或使用
/xhs-publish触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.4.5
优化知识卡片流程
v1.4.4
支持小红书二次扫码登录;优化登录流程文档
v1.4.3
新增 Cookie 登录方式(备选方案),优化登录流程:优先尝试扫码,失败后提示 Cookie 登录
v1.4.2
补充触发词描述:发小红书、发布笔记、小红书发布、发笔记、小红书笔记
v1.4.1
优化文档结构:标题加粗、章节隔行、列表有序号、表格简化、常见错误改为列表形式
v1.4.0
新增视频笔记发布支持、优化发布流程、改进封面/视频生成逻辑
v1.3.0
重构:移除队列/监控功能,专注发布;支持视频笔记;增加检测博主回复功能
元数据
常见问题
Xhs Publish 是什么?
小红书一键发布 — AI 全流程搞定:自动生成标题 → 撰写正文 → 封面/知识卡片/视频(三种形式) → 一键发布。3 分钟从创意到上线,支持多模型自由切换。触发词:发小红书、发布笔记、小红书发布、发笔记、小红书笔记、写小红书、写笔记。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 471 次。
如何安装 Xhs Publish?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install xhs-publish」即可一键安装,无需额外配置。
Xhs Publish 是免费的吗?
是的,Xhs Publish 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Xhs Publish 支持哪些平台?
Xhs Publish 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Xhs Publish?
由 qianduoduo8021(@qianduoduo1422608857)开发并维护,当前版本 v1.4.5。
推荐 Skills