Token导航 LogoToken导航TokenDH.com
图像处理只读github未标认证来源可访问许可证需确认审计通过

openclaw-image-generatorOpenClaw 图像生成器

Agent Skill

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

总安装

539

周安装

22

GitHub Stars

2

下载量

174
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

用于辅助图像生成、图片编辑和视觉素材处理。

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

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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

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