Token导航 LogoToken导航

Agent Skill · 图像处理

openclaw-image-generator(OpenClaw 图像生成器)

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

openclaw-image-generator 是图像处理类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在图像处理类的 1,562 个 Skill 里排第 1,288。

总安装 539周安装 22GitHub Stars 2下载 174核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-image-generator(OpenClaw 图像生成器)
来源仓库:https://github.com/pengjiyuan/openclaw-image-generator
仓库路径:skills/openclaw-image-generator
安装命令:
npx skills add https://github.com/pengjiyuan/openclaw-image-generator --skill openclaw-image-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/pengjiyuan/openclaw-image-generator --skill openclaw-image-generator

这个 Skill 是做什么的

图像处理类 Skill 处理生成、裁剪、压缩和批量转换图片的任务。

用于辅助图像生成、图片编辑和视觉素材处理。适合让 Agent 根据文本生成图片或调用图像模型工具。支持背景处理、提示词整理和相关工作流集成。使用时需确认输入图片版权、输出格式及内容合规边界。openclaw-image-generator 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/openclaw-image-generator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/pengjiyuan/openclaw-image-generator --skill op…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

openclaw-image-generator 怎么安装?

在终端执行 npx skills add https://github.com/pengjiyuan/openclaw-image-generator --skill openclaw-ima…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

openclaw-image-generator 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

openclaw-image-generator 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

openclaw-image-generator 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

openclaw-image-generator 用的人多吗?

公开数据是累计安装 539 次,近一周安装 22 次,下载 174 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

openclaw-image-generator 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理图像处理类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

图像处理类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
ai-image-generation

AI 图像生成 · Codex、Claude

4,365,552382调用外部服务未明确有提醒
openai-image-gen

OpenAI 图像生成 · OpenClaw

1,906,88432需要联网MIT-0有提醒
image

图像 · OpenClaw

525,99926需要联网MIT-0通过
baoyu-cover-image

宝玉封面图 · Codex、Claude

474,24016,779只读MIT有提醒
baoyu-image-gen

宝玉图像生成器 · Codex、Claude

468,00716,778接触敏感数据MIT通过
openclaw-image-generator

OpenClaw 图像生成器 · 本页

5392只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

OpenClaw Image Generator

Generate production-ready images using this pipeline:

  1. Tiny Stable Diffusion generates background image
  2. Pillow renders optional title/subtitle text with customizable styling
  3. Output images can be used in any system (blogs, social media, presentations, documentation, etc.)

Trigger Conditions

Use this skill when user intent includes:

Image Generation:

  • "Generate/create covers, posters, illustrations"
  • "Create cover images for articles, blogs, videos, or social media"
  • "Generate background images for presentations or slides"
  • "Generate pure background images (without text)"
  • "Create branded or product promotional images"

Text & Design Customization:

  • "Add title or text to images"
  • "Adjust text color, size, and positioning"
  • "Create multiple text style variations"
  • "Improve text and background integration"

Batch & Optimization:

  • "Batch regenerate visual assets"
  • "Generate multiple images with different styles at once"
  • "Improve AI image generation prompt quality"
  • "Generate cover images for multiple topics"

Technical:

  • "Tiny SD / Stable Diffusion + Pillow"
  • "Generate high-quality images with AI"
  • "Need fast image generation"

Repository Assumptions

  • Script path: scripts/generate_image.py
  • Batch helper: scripts/batch_generate.py
  • Jobs config: scripts/jobs.showcase.json (for batch mode)
  • Output directory: customizable via --output parameter

If these paths differ, adapt commands to actual repository paths.

Dependency Setup

Install dependencies from bundled requirements:

pip install -r scripts/requirements.txt

Platform Support:

  • macOS with Apple Silicon: uses MPS (Metal Performance Shaders)
  • NVIDIA GPUs: uses CUDA
  • CPU fallback: supported but slower

Backend selection is automatic at runtime.

Standard Workflow

1) Understand the visual requirements

For each image request, gather:

  • Target subject or theme
  • Desired mood, style, or atmosphere
  • Key visual elements
  • Text content (title, subtitle) if any

Then create a one-line summary:

  • What: Main subject (e.g., "wildlife photography", "urban street", "modern architecture")
  • Action: What's happening (e.g., "capturing a moment", "conveying motion", "showing details")
  • Visual style: How to depict it (e.g., "cinematic", "photorealistic", "minimalist")
  • Mood: Tone and atmosphere (e.g., "dramatic lighting", "warm and cozy", "dynamic energy")

2) Create an English language prompt

Always write prompts in English (Stable Diffusion models only understand English).

Recommended structure:

[subject], [setting/environment], [lighting/mood], [style/quality], [composition details], no text, 4k

Example: majestic deer in misty forest, golden morning light, photorealistic wildlife photography, bokeh background, 4k

Prompt best practices for Tiny SD:

✅ DO:

  • Use concrete, specific nouns ("red sports car", "turquoise ocean waves", "luxury modern house")
  • Include lighting descriptions ("golden hour", "dramatic sunset", "cinematic lighting")
  • Specify mood/atmosphere ("cozy", "dynamic", "serene", "energetic")
  • Keep 5-8 key descriptive elements
  • Always include no text, 4k

❌ AVOID:

  • Chinese or non-English text in prompts
  • Too many unrelated objects
  • Conflicting visual styles
  • Asking the model to render readable text
  • Overly complex or abstract descriptions

Negative prompt is handled by the script; do not duplicate unless asked.

3) Generate the image

Text overlay is optional:

  • Provide --title (and optional --subtitle) for text-overlaid images
  • Omit both to generate background image only

Required parameter: --prompt (no built-in style templates)

Single image with text overlaid:

python3 scripts/generate_image.py \
  --prompt "<English prompt>" \
  --title "<Title text>" \
  --subtitle "<Optional subtitle>" \
  --output "outputs/image.png" \
  --steps 28 \
  --seed 42 \
  --position bottom

Background image only:

python3 scripts/generate_image.py \
  --prompt "tropical beach with turquoise water, white sand, palm trees, 4k" \
  --output "outputs/beach.png"

With custom text styling:

python3 scripts/generate_image.py \
  --prompt "modern luxury house, sunset lighting, contemporary architecture, 4k" \
  --title "Dream Home" \
  --title-color "255,200,50,255" \
  --title-size 60 \
  --outline-width 3 \
  --outline-color "0,0,0,200" \
  --output "outputs/house.png"

Parameter tuning guide:

ParameterDefaultRecommended RangePurpose
--steps2825-30Inference steps (higher = better quality but slower)
--seed42any integerRandom seed for reproducibility
--positionbottomtop / center / bottomText placement on image
--title-sizeauto40-80Font size for title
--title-color255,255,255,255RGBA valuesTitle text color
--outline-width30-6Text outline stroke (0 = no outline)
--outline-color0,0,0,200RGBA valuesOutline color for readability

4) Verify output quality

Inspect each generated image for:

  • ✓ Text readability (good contrast with background)
  • ✓ Text positioning (no overflow, proper alignment)
  • ✓ Visual coherence (style consistency across batch)
  • ✓ No artifacts or degradation
  • ✓ Output file size and format

Batch Generation Mode

For generating multiple images at once:

Step 1: Create a JSON configuration file (e.g., jobs.json):

{
  "jobs": [
    {
      "name": "wildlife-photo",
      "prompt": "majestic deer in misty forest, golden morning light, photorealistic, 4k",
      "title": "Wild Beauty",
      "subtitle": "Nature's Elegance",
      "output": "outputs/01-wildlife.png",
      "seed": 101,
      "steps": 28,
      "position": "bottom"
    },
    {
      "name": "car-photo",
      "prompt": "red sports car on mountain road, sunset lighting, motion blur, 4k",
      "title": "Speed & Power",
      "output": "outputs/02-car.png",
      "seed": 202,
      "steps": 28,
      "position": "top"
    }
  ]
}

Step 2: Run batch generation:

python3 scripts/batch_generate.py \
  --jobs jobs.json

Step 3: Verify all outputs were generated successfully and report paths.

Prompt Quality Rules

✅ Effective prompt elements:

  • Concrete subjects: majestic deer, luxury yacht, modern skyscraper, tropical beach
  • Specific lighting: golden hour, dramatic sunset, volumetric light, cinematic glow
  • Color palettes: deep blue and cyan, warm golden tones, emerald and teal
  • Composition: wide angle, shallow depth of field, symmetrical framing, bokeh background
  • Quality markers: photorealistic, 4k, masterpiece, professional photography

❌ Things to avoid:

  • Non-English text in prompts
  • Overly many unrelated objects
  • Contradictory visual styles (e.g., "minimalist cyberpunk")
  • Requesting readable text/numbers in images
  • Generic descriptions without specifics

Troubleshooting

Issue: Generated image doesn't match prompt

  • ✓ Shorten the prompt and move main subject to the beginning
  • ✓ Increase --steps to 30-35 for more detail
  • ✓ Try different seeds: 42, 101, 202, etc.
  • ✓ Check that all words are spelled correctly and in English

Issue: Text overlay looks misaligned or illegible

  • ✓ Keep --position bottom unless you need centered or top text
  • ✓ Reduce --title-size if text is truncated
  • ✓ Try --outline-width 0 if outline is too thick
  • ✓ Use a simpler background prompt (fewer objections)
  • ✓ Ensure sufficient contrast between text color and background

Issue: Colors or style incorrect

  • ✓ Verify --title-color and --outline-color RGBA values
  • ✓ Re-check English prompt spelling and grammar
  • ✓ Regenerate with different seed values

Issue: File path not found

  • ✓ Verify --output path exists or use auto-creation (os.makedirs)
  • ✓ Use absolute path or project-relative path consistently
  • ✓ Check file permissions in output directory

Response Style When Using This Skill

When generating images, provide clear feedback:

  1. Item summary (1 line describing the image concept)
  2. Final prompt used for generation
  3. Output path where image was saved
  4. Configuration notes (seed, steps, text styling applied)
  5. Status (success/failure with any issues)

Example output:

✅ Wildlife Photography - Majestic deer in forest
Prompt: "majestic deer standing in misty forest, golden morning light..."
Output: outputs/01-wildlife.png
Config: seed=101, steps=28, title="Wild Beauty", position=bottom

平台分布

Codex

34.96%
按下载量换算61

Claude

31.51%
按下载量换算55

Cursor

19.27%
按下载量换算34

Gemini CLI

8.46%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills