← Back to Skills Marketplace
358
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install xiaohongshu-card-creator
Description
将小红书文案转换为HTML图文卡片网页,支持智能内容识别和通用模板两种模式,生成标准3:4竖版卡片,支持一键下载所有卡片图为PNG
Usage Guidance
这个技能按说明能把 Markdown 变成小红书卡片并导出 PNG,但注意两点:1) 可选的智能模式会把你的文章发送到外部 LLM(OpenAI/Anthropic 或自定义 base URL)——只有在信任目标提供商并愿意将内容传输到云端时才使用 --llm。2) 脚本会自动读取技能目录下的 .env 并将其中变量导入环境,任何放在 .env 的密钥可能被用于 API 调用。建议在安装/运行前:打开并检查仓内的 .env(若存在),不要把敏感凭据放在该目录下;如果不需要智能生成功能,避免使用 --llm;如果担心隐私,可在离线模式下仅使用静态模板生成卡片或在沙箱中运行;最后,若会使用 LLM,优先使用自己的受限 API key,并核实 LLM_BASE_URL/LLM_PROVIDER 是否指向你信任的端点。
Capability Analysis
Type: OpenClaw Skill
Name: xiaohongshu-card-creator
Version: 1.4.0
The skill bundle is a functional tool designed to convert Markdown text into Xiaohongshu-style image cards using HTML templates and optional LLM integration. The scripts (generate.sh, generate_llm.py, and llm_helper.py) handle local file processing and API calls to OpenAI/Anthropic in a standard manner, using a .env file for credential management. No evidence of data exfiltration, malicious command execution, or harmful prompt injection was found; the code logic is consistent with the stated purpose of content creation.
Capability Assessment
Purpose & Capability
技能名和说明与代码功能一致(将 Markdown 转成卡片 HTML 并导出图片),但包内脚本支持一个可选的 LLM 模式(--llm / llm_helper.py / generate_llm.py),会使用 LLM_API_KEY、LLM_PROVIDER、LLM_BASE_URL 等环境变量。注册元数据声明“Required env vars: none”,这与代码实际期望(可选但明确存在的 API key 支持)不一致,说明元数据不完整或不准确。
Instruction Scope
SKILL.md 与脚本说明基本一致:运行 scripts/generate.sh 将生成 HTML,前端通过 html2canvas 导出 PNG。可选的智能模式会把文章章节发送到外部 LLM(OpenAI/Anthropic 或自定义 base URL)。脚本会自动加载技能目录下的 .env 文件并将其内容导入环境,这会导致放在 .env 中的任何秘钥或变量被读取并用于网络请求。总体上指令在功能边界内,但包含把用户内容发送到第三方 LLM 的行为——这是功能所需但影响隐私/泄露风险,用户需留意。
Install Mechanism
技能没有安装脚本或远程下载步骤,仓内包含 Bash/Python 脚本和模板(即本地执行的文件)。这比从不明 URL 下载代码要安全。唯一的远程依赖是 HTML 中嵌入的 html2canvas 来自 cdnjs(第三方 CDN),以及可选地需要在运行环境中安装 openai/anthropic Python 包。没有发现恶意下载或可执行的远程 install 指令。
Credentials
代码会读取技能目录下的 .env 并使用 LLM_API_KEY、LLM_PROVIDER、LLM_MODEL、LLM_BASE_URL 等变量来调用外部 LLM。这些变量与技能的“智能生成卡片”功能直接相关(合理且必要),但元数据未声明任何必需 env,这不一致。此外,自动加载 .env 意味着若不谨慎放置敏感凭据,秘密可能被发送给第三方 LLM 提供商(内容及 .env 中的密钥都会被使用),用户应只将非敏感或明确受信任的凭据放入 .env,并在运行前检查其内容。
Persistence & Privilege
技能没有请求 always:true,也不请求修改其它技能或系统范围配置。脚本只在技能目录内读写(生成 output/ 下的 HTML/PNG),并加载同目录的 .env,这是典型的本地工具行为,没有持久化平台级特权。
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install xiaohongshu-card-creator - After installation, invoke the skill by name or use
/xiaohongshu-card-creator - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.4.0
Add LLM mode for intelligent card generation, unify prompt system, fix card spacing to 10px, improve .env loading
v1.2.1
Remove hardcoded paths: SKILL_DIR now auto-detected, OUTPUT_DIR defaults to ./output
v1.2.0
Support custom card count (1-20), add CLI args -n and -o, dynamic content generation
Metadata
Frequently Asked Questions
What is Xiaohongshu Card Creator?
将小红书文案转换为HTML图文卡片网页,支持智能内容识别和通用模板两种模式,生成标准3:4竖版卡片,支持一键下载所有卡片图为PNG. It is an AI Agent Skill for Claude Code / OpenClaw, with 358 downloads so far.
How do I install Xiaohongshu Card Creator?
Run "/install xiaohongshu-card-creator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Xiaohongshu Card Creator free?
Yes, Xiaohongshu Card Creator is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Xiaohongshu Card Creator support?
Xiaohongshu Card Creator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Xiaohongshu Card Creator?
It is built and maintained by River Yan (@riverfor); the current version is v1.4.0.
More Skills