Token导航 LogoToken导航

Agent Skill · 图像处理

image-generation(图像生成)

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

image-generation 是图像处理类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描已通过,按安装量在图像处理类的 1,562 个 Skill 里排第 1,062。

总安装 1,714周安装 70GitHub Stars 21下载 554核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/sanky369/vibe-building-skills --skill image-generation

这个 Skill 是做什么的

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

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。适合根据文本生成图片、处理背景或整理视觉提示词。通过 npx skills add 命令从指定 GitHub 仓库安装,需确认输入图片和输出格式。涉及人物、品牌或公开展示素材时,应额外核对授权和真实性。

image-generation 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

image-generation 怎么安装?

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

image-generation 支持哪些 AI 工具?

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

image-generation 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

image-generation 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

image-generation 用的人多吗?

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

image-generation 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理图像处理类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 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通过
image-generation

图像生成 · 本页

1,71421接触敏感数据MIT通过

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

SKILL.md 原文

Image Generation Skill

Overview

Image Generation uses FAL.ai nanobanana pro to create professional-quality images from text descriptions. This skill teaches you how to craft effective prompts and use the automation system to generate assets directly in Claude Code.

Keywords: image generation, nanobanana pro, prompt engineering, AI art, visual content creation, asset generation, automation

Core Models

nanobanana pro — Recommended

  • Quality: Highest, most detailed
  • Speed: 30-60 seconds
  • Best For: Product photography, hero images, final assets
  • Use Case: When quality matters most

nanobanana pro

  • Quality: High, good detail
  • Speed: 5-15 seconds
  • Best For: Testing, iterations, social media
  • Use Case: When speed matters

nanobanana pro

  • Quality: Latest, improved
  • Speed: 20-40 seconds
  • Best For: Production work
  • Use Case: When you want the latest model

Prompt Engineering Framework

The 5-Part Prompt Formula

Every effective prompt has 5 components:

1. Subject — What is the main thing?

"A luxury leather watch"
"A modern logo"
"An Instagram post graphic"

2. Description — What does it look like?

"with gold accents and brown leather strap"
"geometric style, minimalist design"
"vibrant colors, eye-catching composition"

3. Style — What's the artistic style?

"professional product photography"
"modern illustration"
"digital design"
"photorealistic"

4. Technical Details — Quality and format specs

"studio lighting, sharp focus, 4K, centered composition"
"high contrast, trending design, professional quality"
"detailed, well-lit, professional photography"

5. Mood/Aesthetic — What's the feeling?

"luxury and professional"
"energetic and modern"
"clean and minimalist"
"warm and inviting"

Complete Prompt Example

A luxury leather watch with gold accents and brown strap,
professional product photography, studio lighting with rim light,
centered composition, sharp focus, 4K, luxury and professional mood

Prompt Engineering Techniques

Technique 1: Be Specific

❌ Bad: "A watch"
✅ Good: "A luxury leather watch with gold accents on white background"

Technique 2: Use Descriptive Adjectives

❌ Bad: "A logo"
✅ Good: "A modern, geometric, minimalist logo in blue and white"

Technique 3: Reference Styles

❌ Bad: "A nice graphic"
✅ Good: "A graphic in the style of modern Instagram design trends"

Technique 4: Specify Quality

❌ Bad: "A photo"
✅ Good: "A professional 4K product photograph with studio lighting"

Technique 5: Include Composition

❌ Bad: "A person"
✅ Good: "A person in rule of thirds composition, natural lighting, centered"

Claude Code Integration

How to Use in Claude Code

Claude Code can directly generate images using the automation system:

from claude_integration import generate_asset

# Generate a single image
result = generate_asset(
    category="product-photos",
    name="luxury-watch",
    prompt="A luxury leather watch with gold accents on white background, professional product photography, studio lighting, 4K, sharp focus",
    size="1024x1024",
    num_variations=1
)

print(f"Generated: {result['images']}")

Setup for Claude Code

Ensure these files are in your project:

your-project/
├── vibe-creative-automation/
│   ├── fal_api.py
│   ├── creative_cli.py
│   ├── claude_integration.py
│   └── requirements.txt
└── assets/  (will be created automatically)

Set environment variable:

export FAL_API_KEY="your_key_here"

Install dependencies:

pip install requests

Claude Code Workflow

When you ask Claude: "Generate 3 variations of a product photo for my watch"

Claude will:

  1. Read Image Generation skill to understand prompting
  2. Read Creative Strategist to get your style
  3. Craft the prompt combining both
  4. Call automation system with the prompt
  5. Generate 3 images using FLUX model
  6. Save to folder like assets/product-photos/luxury-watch/
  7. Show you results with file paths

Example: Claude Code Generates Product Photos

from claude_integration import generate_asset

# Your Creative Strategist style (from your style guide)
YOUR_STYLE = {
    "primary_style": "photorealistic",
    "mood": "professional and luxurious",
    "lighting": "studio lighting with rim light",
    "composition": "centered"
}

# Generate product photo using your style
prompt = f"""
A luxury leather watch with gold accents,
{YOUR_STYLE['primary_style']},
{YOUR_STYLE['mood']},
{YOUR_STYLE['lighting']},
{YOUR_STYLE['composition']},
white background,
4K,
sharp focus,
professional product photography
"""

result = generate_asset(
    category="product-photography",
    name="luxury-watch",
    prompt=prompt,
    size="1024x1024",
    num_variations=3
)

for img_path in result['images']:
    print(f"✅ Generated: {img_path}")

Batch Generation Example

from claude_integration import batch_generate_assets

# Generate multiple assets at once
assets = [
    {
        "type": "custom",
        "category": "product-photos",
        "name": "watch",
        "prompt": "Luxury watch, professional photography, studio lighting, 4K"
    },
    {
        "type": "custom",
        "category": "product-photos",
        "name": "wallet",
        "prompt": "Premium leather wallet, professional photography, studio lighting, 4K"
    },
    {
        "type": "custom",
        "category": "product-photos",
        "name": "sunglasses",
        "prompt": "Designer sunglasses, professional photography, studio lighting, 4K"
    }
]

results = batch_generate_assets(assets)

for result in results:
    print(f"{result['asset_name']}: {result['images']}")

Image Sizes

Choose the right size for your use case:

SizeUse CaseSpeedDetail
512x512Testing, thumbnailsFastGood
768x768Social media, webMediumGood
1024x1024Product photos, hero imagesMediumExcellent
1536x1536Large prints, high-resSlowExcellent
2048x20484K, maximum detailVery SlowMaximum

Generation Parameters

Guidance Scale (3.5 - 7.5)

Controls how strictly the model follows your prompt:

3.5 — More creative freedom, less literal
5.0 — Balanced (recommended)
7.5 — Strict adherence to prompt, more literal

Example:

# More creative
result = generate_asset(..., guidance_scale=3.5)

# Balanced (default)
result = generate_asset(..., guidance_scale=5.0)

# Strict
result = generate_asset(..., guidance_scale=7.5)

Inference Steps (20 - 50)

More steps = higher quality but slower:

20 — Fast, acceptable quality
28 — Balanced (default)
40 — High quality
50 — Maximum quality

Example:

# Fast generation
result = generate_asset(..., inference_steps=20)

# Balanced (default)
result = generate_asset(..., inference_steps=28)

# High quality
result = generate_asset(..., inference_steps=40)

Practical Prompt Examples

Product Photography

A luxury leather watch with gold accents on white background,
professional product photography, studio lighting with rim light,
centered composition, sharp focus, 4K, highly detailed

Social Media Graphic

Instagram post graphic for product launch, vibrant colors,
eye-catching composition, modern design, 1080x1080 format,
trending aesthetic, professional quality

Logo Design

Modern tech company logo, geometric style, blue and white colors,
minimalist design, scalable, professional, clean lines,
suitable for all media

Illustration

Colorful illustration of a person working at a computer,
modern illustration style, bright colors, friendly mood,
professional quality, trending design

Hero Image

A futuristic tech workspace with multiple monitors,
professional photography, modern aesthetic, blue and purple lighting,
cinematic composition, 4K, highly detailed

Integration with Other Skills

Image Generation + Creative Strategist:

  • Use your style guide to craft better prompts
  • Maintain consistency across all generated images

Image Generation + Product Photography:

  • Generate product shots for e-commerce
  • Create lifestyle product photos

Image Generation + Social Graphics:

  • Generate graphics for social media
  • Create platform-specific content

Image Generation + Brand Asset:

  • Generate logos and icons
  • Create brand illustrations

Command Line Usage

You can also use the CLI directly:

# Generate custom asset
python creative_cli.py custom \
  --category "product-photos" \
  --name "luxury-watch" \
  --prompt "A luxury leather watch with gold accents on white background, professional product photography, studio lighting, 4K, sharp focus" \
  --size 1024x1024 \
  --num-images 3 \
  --model fal-ai/nano-banana-pro

Troubleshooting

Problem: Images don't match my style

Solution:

  • Add more specific style descriptors to prompt
  • Reference your Creative Strategist guide
  • Test with different guidance scales
  • Generate multiple variations

Problem: Generation is too slow

Solution:

  • Use fal-ai/nano-banana-pro model
  • Reduce image size to 768x768
  • Reduce inference steps to 20

Problem: Images are too creative/not literal enough

Solution:

  • Increase guidance scale to 7.5
  • Be more specific in prompt
  • Add more technical details

Problem: API errors

Solution:

  • Verify FAL_API_KEY is set correctly
  • Check internet connection
  • Verify API key is valid
  • Try again after a moment

Best Practices

  1. Start with Creative Strategist — Define your style first
  2. Be Specific — More details = better results
  3. Test Variations — Generate multiple versions
  4. Iterate — Refine based on results
  5. Use Consistent Prompts — Similar prompts = consistent style
  6. Reference Your Style — Include style descriptors in every prompt
  7. Batch Generate — Generate multiple assets at once
  8. Organize Assets — Keep generated images organized

Next Steps

  1. Define Your Style — Complete Creative Strategist first
  2. Craft Your Prompt — Use the 5-part formula
  3. Test Generation — Generate a test image
  4. Iterate — Refine based on results
  5. Batch Generate — Create multiple assets
  6. Use in Projects — Integrate with other skills

You now have the power to generate professional images with AI. Start creating! 🎨

平台分布

Claude Code

28.18%
按下载量换算156

Codex

20.88%
按下载量换算116

Gemini CLI

16.71%
按下载量换算93

OpenCode

12.41%
按下载量换算69

Antigravity

8.02%
按下载量换算44

Cursor

3.58%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills