← 返回 Skills 市场
小红书笔记创作技能
作者
LinkRogers
· GitHub ↗
· v2.0.0
2875
总下载
6
收藏
25
当前安装
1
版本数
在 OpenClaw 中安装
/install xhs-note-creator
功能描述
小红书笔记素材创作技能。当用户需要创建小红书笔记素材时使用这个技能。技能包含:根据用户的需求和提供的资料,撰写小红书笔记内容(标题+正文),生成图片卡片(封面+正文卡片),以及发布小红书笔记。
安全使用建议
This skill appears to implement the advertised rendering and (optional) publish flows, but there are several things to check before installing or running it:
- Metadata mismatch: the registry lists no env vars or install steps, yet the repository requires Python/Node dependencies and (for publishing) an XHS cookie. Treat that as a sign to inspect/install dependencies manually rather than trusting automatic plumbing.
- Sensitive credential handling: publishing requires your Xiaohongshu session cookie. Never paste that into public places. Prefer keeping it in a local, encrypted secret store (not shared agent memory) and audit publish_xhs.py to confirm it only talks to Xiaohongshu and does not leak the cookie elsewhere.
- Memory use: SKILL.md suggests saving the cookie into agent memory and retrieving it (memory_search). Only permit that if you understand how your agent stores and protects memory — agent memory can persist across sessions and may be accessible to other skills or logs.
- Audit the publish script: before using publish functionality, open scripts/publish_xhs.py and confirm it uses a legitimate xhs client or official endpoints, and that it does not POST your cookie to any third-party servers. Also search code for unexpected network endpoints, logging of secrets, or obfuscated logic.
- Install dependencies deliberately: follow the README to install requirements (pip install -r requirements.txt, npm install) and playwright browsers in a controlled environment (preferably an isolated VM or container) if you will render or publish.
- Least privilege: if you must provide a cookie, consider creating a throwaway account or only use publish in dry-run mode until you trust the code.
If you want, I can:
- Highlight the exact lines in scripts/publish_xhs.py that access network endpoints and where the cookie is used, or
- Summarize requirements.txt and package.json to list the packages you will need to install and any potential risky dependencies.
功能分析
Type: OpenClaw Skill
Name: xhs-note-creator
Version: 2.0.0
The skill is classified as suspicious due to two main indicators. First, `scripts/publish_xhs.py` includes an `--api-mode` that can send the sensitive `XHS_COOKIE` (retrieved from `.env`) to an arbitrary API endpoint specified by `--api-url`. While it defaults to `http://localhost:5005`, this capability presents a critical vulnerability for credential exfiltration if an attacker can manipulate the agent to provide a malicious URL. Second, `scripts/comment_manager.py` contains a `while True` loop in its `auto_reply` function, which could lead to resource exhaustion if not properly managed by the agent runtime, and directly passes user-controlled comment content to the XHS API, posing a potential content injection risk (e.g., XSS if the platform is vulnerable). These are risky capabilities that could be exploited, but the code does not show clear evidence of intentional malicious behavior.
能力评估
Purpose & Capability
The repository contains rendering scripts (Python/Node), HTML/CSS templates, and a publish script — all expected for a Xiaohongshu note creator. However the registry metadata claims 'required env vars: none' and 'no install spec' despite the code requiring dependencies (playwright, xhs library, js-yaml/marked) and an XHS cookie for publishing. That mismatch between declared requirements and actual code is unexpected and should be resolved.
Instruction Scope
SKILL.md explicitly instructs the agent/user to obtain the user's Xiaohongshu login cookie (via browser dev tools), save it to memory or XHS_COOKIE env var, and to retrieve it later via a memory_search (memory/xhs-cookie.md). Directing the agent to read from agent memory and to store a full site cookie is sensitive: it increases the risk of accidental credential exposure or misuse. Otherwise the runtime instructions for rendering and publishing themselves are within the declared purpose.
Install Mechanism
There is no install spec in the registry metadata, but the package.json and requirements.txt and README instruct installing Python/Node dependencies (playwright, marked, js-yaml, the xhs client) and browser engines. Having runnable code without a declared install step is an incoherence: automated install won't occur, and manual install is required — which increases the chance of missing or incorrectly installed dependencies. The dependency set (playwright + browser binaries) is heavyweight but plausible for HTML->image rendering.
Credentials
Publishing requires the user's Xiaohongshu login cookie (XHS_COOKIE) or a cookie saved in agent memory, but the skill metadata lists no required env vars or primary credential. Requesting a full site cookie is proportional to 'publish' functionality, but because the skill did not declare this credential up front, it's a surprising and sensitive requirement. The instructions also recommend storing the cookie in the agent's memory store, which broadens access to the secret.
Persistence & Privilege
Skill flags show always:false and normal model invocation settings. The skill does not request permanent platform privileges. The SKILL.md suggests saving cookie to memory for reuse, which is normal for convenience but increases long‑term exposure risk — it's a usability choice, not an elevated platform privilege.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install xhs-note-creator - 安装完成后,直接呼叫该 Skill 的名称或使用
/xhs-note-creator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
xhs-note-creator 2.0.0
- 全面重写技能文档,明确分步流程、使用场景与详细操作指引
- 新增 Markdown 模板与图片卡片渲染规范,支持 YAML 头部元数据
- 增加多种渲染主题与分页模式选择,优化卡片生成灵活性
- 丰富脚本参数说明,明确图片尺寸与官方推荐比例
- 添加笔记发布自动化步骤及 Cookie 配置说明
- 详细说明资源结构、注意事项及配套脚本列表
元数据
常见问题
小红书笔记创作技能 是什么?
小红书笔记素材创作技能。当用户需要创建小红书笔记素材时使用这个技能。技能包含:根据用户的需求和提供的资料,撰写小红书笔记内容(标题+正文),生成图片卡片(封面+正文卡片),以及发布小红书笔记。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2875 次。
如何安装 小红书笔记创作技能?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install xhs-note-creator」即可一键安装,无需额外配置。
小红书笔记创作技能 是免费的吗?
是的,小红书笔记创作技能 完全免费(开源免费),可自由下载、安装和使用。
小红书笔记创作技能 支持哪些平台?
小红书笔记创作技能 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 小红书笔记创作技能?
由 LinkRogers(@linkrogers)开发并维护,当前版本 v2.0.0。
推荐 Skills