← 返回 Skills 市场
383
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install xiaohongshu-article-generator
功能描述
小红书图文生成技能 - 基于热点话题自动生成小红书风格的图文内容(文案 +HTML+ 图片)
安全使用建议
This skill appears to do what its description says (generate Xiaohongshu-style HTML and images), but take precautions before installing or running it:
- Inspect and remove or modify temp-convert.js before running. It contains hardcoded absolute Windows paths to a user's .openclaw workspace; running it as-is will read/write those locations and launch Puppeteer.
- Expect npm install (or equivalent) to fetch Puppeteer and a Chromium binary (large download). If you do not want Chromium downloaded or executed, avoid installing or run in an isolated environment.
- The skill requests filesystem, shell, and browser tool usage — necessary for rendering HTML to images but capable of broad actions. Only enable these tool permissions if you trust the code and run it with least privilege (non-admin account, sandboxed environment).
- Verify the referenced peer skill html-pages-to-images (file:../html-pages-to-images). If that dependency is not present or is replaced, behavior may change.
- If you plan to use the skill to fetch hot-trend data, prefer providing the hotData from trusted sources or from separate vetted skills; the SKILL.md suggests scraping public platforms but the package does not include scrapers for those platforms.
- Consider running the skill in a disposable VM/container or reviewing the code and removing any hardcoded paths, then running tests on non-sensitive directories first.
If you want, I can point out exact lines in temp-convert.js to change, suggest safer defaults for paths, or produce a sanitized version of the script that accepts paths via parameters instead of hardcoding them.
功能分析
Type: OpenClaw Skill
Name: xiaohongshu-article-generator
Version: 1.0.0
The skill bundle is classified as suspicious due to a lack of input sanitization on the 'topic' parameter in index.js, which is used directly in filesystem operations (mkdirSync, join), creating a path traversal vulnerability. Furthermore, temp-convert.js and EXAMPLES.md contain hardcoded absolute file paths specific to a Windows administrator environment (C:/Users/Administrator/...), which is atypical for portable skills and poses a risk if executed in environments with similar structures. While the core logic aligns with the stated purpose of generating social media content, these vulnerabilities and the request for broad 'shell' and 'filesystem' permissions without robust safety checks warrant caution.
能力评估
Purpose & Capability
Name, description, SKILL.md, and the code (index.js + temp-convert.js) consistently implement HTML + image generation for Xiaohongshu-style posts. Declared dependency on an html-pages-to-images skill and inclusion of puppeteer in package.json are coherent with the stated goal of converting HTML pages to images.
Instruction Scope
SKILL.md instructs the agent to fetch hot topics from external platforms (微博/知乎/脉脉) and to call other skills (maimai-fetch, html-pages-to-images). The included code itself does not perform web scraping of those platforms (it expects hotData passed in), but temp-convert.js contains a hardcoded absolute Windows path to a workspace HTML file and images directory. That test script will read and write specific user-workspace locations and launch Puppeteer. The SKILL.md also grants browser/shell/filesystem tools — appropriate for the job but broad: these enable network access and arbitrary filesystem reads/writes if the agent follows them.
Install Mechanism
There is no install spec provided. package.json lists puppeteer (which downloads Chromium on install) and a peerDependency pointing to a local ../html-pages-to-images skill. No remote or obfuscated downloads are present in the repo. Lack of an install step means the platform or user will need to run npm install to satisfy puppeteer, which pulls a large Chromium binary.
Credentials
The skill does not request environment variables or external credentials (requires.env empty). However it requests use of filesystem, shell, and browser tools — reasonable for generating and rendering HTML, but these are high-privilege capabilities. The hardcoded absolute paths in temp-convert.js target the user's OpenClaw workspace (C:\Users\Administrator\.openclaw...), which is disproportionate and risky (may read or overwrite files in that location).
Persistence & Privilege
Skill is not always-enabled and is user-invocable; it does not request persistent platform privileges in skill.json. The code does not appear to modify other skills or global agent configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install xiaohongshu-article-generator - 安装完成后,直接呼叫该 Skill 的名称或使用
/xiaohongshu-article-generator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release — 自动生成小红书风格图文内容
- 支持输入热点话题,自动生成小红书笔记(文案+HTML+配图)
- 多种内容模板,适用于吃瓜爆料、干货科普、种草推荐等场景
- 严格遵循排版/色彩/移动端适配规范,输出标准小红书页面结构
- 自动将HTML转为多页PNG图片,适配375x667px手机比例
- 支持批量生成与内容输出分目录(含纯文本文案及图片)
- 提供详细使用流程、模板示例及效果评估标准
元数据
常见问题
小红书图文生成器 是什么?
小红书图文生成技能 - 基于热点话题自动生成小红书风格的图文内容(文案 +HTML+ 图片). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 383 次。
如何安装 小红书图文生成器?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install xiaohongshu-article-generator」即可一键安装,无需额外配置。
小红书图文生成器 是免费的吗?
是的,小红书图文生成器 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
小红书图文生成器 支持哪些平台?
小红书图文生成器 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 小红书图文生成器?
由 shiker(@shiker1996)开发并维护,当前版本 v1.0.0。
推荐 Skills