小红书配图生成器

v1.0.0

根据小红书文章内容自动生成配图。使用PIL将文章标题、副标题、内容生成在图片上,适合小红书笔记配图。

0· 293·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for binsonhao/redbook-image-generator.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "小红书配图生成器" (binsonhao/redbook-image-generator) from ClawHub.
Skill page: https://clawhub.ai/binsonhao/redbook-image-generator
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install redbook-image-generator

ClawHub CLI

Package manager switcher

npx clawhub@latest install redbook-image-generator
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
技能名、描述和脚本功能一致:使用 PIL(Pillow)将标题/副标题/正文渲染到图片上。唯一不完全一致的是脚本将输出写到硬编码路径 /root/.openclaw/workspace/xhs_cover.jpg,而 SKILL.md 仅说明输出为 xhs_cover.jpg(未指明绝对路径)。
Instruction Scope
SKILL.md 指示以 python3 运行脚本,脚本行为与文档匹配。脚本不会访问网络、环境变量或其它系统配置,但会读取硬编码字体路径 /usr/share/fonts/...,并将文件写入 /root/.openclaw/workspace,这些文件/路径访问是超出文档透明度的实现细节,应确认是否可接受。
Install Mechanism
无安装规范(instruction-only 附带一个脚本),没有外部下载或可执行 install 步骤,风险低。注意脚本依赖 Pillow(PIL),但未在元数据中声明或自动安装,可能导致运行时错误。
Credentials
技能不请求任何环境变量或凭证,未收集或传出数据。需要注意的是硬编码的输出路径位于 /root 下(/root/.openclaw/workspace),这要求写权限或在 root 环境下运行;虽然不是凭证访问,但可能影响系统文件位置预期。
Persistence & Privilege
没有声明 always:true,也不修改其他技能或系统配置;不具备持久特权或自我启用行为。
Assessment
这项技能总体上与其描述一致:它在本地生成图片,不会联网或读取凭据。但在安装/运行前请注意: - 脚本依赖 Pillow(PIL),请在运行前确保安装(pip install pillow)。 - 字体路径是硬编码的(/usr/share/fonts/...),若目标系统没有该字体,脚本会回退为默认字体;可根据需要修改 FONT_PATH。 - 输出文件路径被硬编码为 /root/.openclaw/workspace/xhs_cover.jpg(SKILL.md 没有说明绝对路径)。如果你不希望向 /root 写入,请修改脚本为相对路径或让输出路径可配置。 - 建议先在受控或沙箱环境中执行一次,确认其行为(生成文件位置、字体渲染)满足你的要求,再在生产环境中使用。

Like a lobster shell, security has layers — review code before you run it.

latestvk979wsmqdv65ftxxvgtr7gr1zd8354ef
293downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

小红书配图生成器

根据文章内容自动生成小红书风格的配图。

使用方法

调用 scripts/generate_cover.py 脚本:

python3 scripts/generate_cover.py "标题" "副标题" "内容第一行\n内容第二行\n内容第三行"

参数说明

  • 第1个参数:标题(必填)
  • 第2个参数:副标题(可选,默认空)
  • 第3个参数:正文内容,多行用\n分隔(可选)

输出

图片保存为 xhs_cover.jpg

示例

python3 scripts/generate_cover.py "今日分享" "打卡第二天" "今天天气很好\n心情也不错\n继续加油!"

Comments

Loading comments...