Token导航 LogoToken导航

Agent Skill · 图像处理

image-generation(图像生成)

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

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

总安装 1,322周安装 54GitHub Stars 27下载 423核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/aviz85/claude-skills-library --skill image-generation

这个 Skill 是做什么的

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

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它支持 Google Gemini 默认模型与 fal.ai FLUX.2 klein 4B(经济模式)。必须使用 -d 参数指定输出路径,避免文件管理冲突。涉及人物、品牌或公开展示素材时,应额外核对授权与内容合规边界。

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

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

image-generation 怎么安装?

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

image-generation 支持哪些 AI 工具?

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

image-generation 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

image-generation 是免费的吗?

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

image-generation 用的人多吗?

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

image-generation 安全吗?

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

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

值得选的地方

  • 同时适配 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通过
image-generation

图像生成 · 本页

1,32227需要联网未明确通过

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

SKILL.md 原文

Image Generation

Generate images using Google's Gemini model (default) or fal.ai FLUX.2 klein 4B (cheap mode).

Quick Start

MANDATORY: Always use -d (destination) flag to specify output path. This avoids file management issues with poster_0.jpg in the scripts folder.

cd ~/.claude/skills/image-generation/scripts

# ALWAYS specify destination with -d flag
npx tsx generate_poster.ts -d /tmp/my-image.jpg "A futuristic city at sunset"

# Cheap mode: fal.ai FLUX.2 klein 4B (fast, lower cost)
npx tsx generate_poster.ts --cheap -d /tmp/city.jpg "A futuristic city at sunset"

# With aspect ratio
npx tsx generate_poster.ts -d /tmp/landscape.jpg --aspect 3:2 "A wide landscape poster"
npx tsx generate_poster.ts --cheap -d /tmp/story.jpg -a 9:16 "A vertical story format"

# With reference assets (image editing)
npx tsx generate_poster.ts -d /tmp/banner.jpg --assets "/path/to/avatar.jpg" "Create banner with character"
npx tsx generate_poster.ts --cheap -d /tmp/photo.jpg --assets "/path/to/image.jpg" "Turn this into a realistic photo"

Why -d is mandatory:

  • Output goes to predictable location (e.g., /tmp/ for temp images)
  • Avoids hunting for poster_0.jpg in scripts folder
  • Enables immediate use without file renaming

Providers

ProviderFlagUse CaseCost
Gemini(default)High quality, best resultsHigher
fal.ai klein 4B--cheapFast, budget-friendly~$0.003/image

Cheap Mode (--cheap)

Uses fal.ai FLUX.2 klein 4B - a distilled FLUX model optimized for speed and cost.

Why use cheap mode?

  • Cost: ~$0.003 per image (vs Gemini's higher cost)
  • Speed: Fast 4-step inference (~2-4 seconds)
  • Quality: Good enough for drafts, social media, iterations
  • Batch friendly: Generate many variations quickly

Endpoints:

  • Text-to-image: fal-ai/flux-2/klein/4b
  • Image editing (with --assets): fal-ai/flux-2/klein/4b/edit

Best for:

  • Quick iterations and previews
  • Social media content
  • Concept exploration
  • Batch generation (10+ images)

Use Gemini instead for:

  • Final production assets
  • Complex compositions
  • Text-heavy images (especially Hebrew)

Quality

Control image resolution with --quality or -q:

QualityResolutionUse Case
1K1024pxDefault - fast, good for web
2K2048pxHigh quality - print, detailed posters
npx tsx generate_poster.ts -q 2K "High quality poster"

Aspect Ratio

IMPORTANT: Always use the default 3:2 aspect ratio unless the user explicitly requests a different format (like "vertical", "story", "square", etc.). Do NOT change the aspect ratio on your own.

Control image dimensions with --aspect or -a:

RatioUse Case
3:2Horizontal (DEFAULT - use this unless user specifies otherwise)
1:1Square - Instagram, profile pics
2:3Vertical - Pinterest, posters
16:9Wide - YouTube thumbnails, headers
9:16Tall - Stories, reels, TikTok
npx tsx generate_poster.ts --aspect 3:2 "Your prompt"
npx tsx generate_poster.ts -a 16:9 "Your prompt"

Adding Assets (Reference Images)

Use --assets with full paths to include reference images:

# Single asset
npx tsx generate_poster.ts --assets "/full/path/to/image.jpg" "Your prompt"

# Multiple assets (comma-separated)
npx tsx generate_poster.ts --assets "/path/a.jpg,/path/b.png" "Use both images"

# With cheap mode - uses fal.ai edit endpoint
npx tsx generate_poster.ts --cheap --assets "/path/to/image.jpg" "Turn this into a painting"

Supported formats: .jpg, .jpeg, .png, .webp, .gif

IMPORTANT: Assets are NOT automatically included. You must explicitly pass them via --assets.

Destination (MANDATORY)

ALWAYS use --destination or -d to specify output path:

# REQUIRED: Always specify destination
npx tsx generate_poster.ts -d /tmp/poster.jpg "My poster"

# If file exists, auto-adds suffix: poster_1.jpg, poster_2.jpg, etc.

Features:

  • Auto-creates parent directories if needed
  • Collision avoidance: if file exists, adds _1, _2, etc.
  • Use /tmp/ for temporary images that will be uploaded elsewhere

API Configuration

Create scripts/.env:

GEMINI_API_KEY=your_gemini_api_key
FAL_KEY=your_fal_api_key
XAI_API_KEY=your_xai_api_key

Hebrew/RTL Content

IMPORTANT: When the image contains Hebrew text, you MUST add the following sentence to the prompt:

"CRITICAL: Layout is RTL (right-to-left). All text in Hebrew. Visual flow, reading order, and panel sequence go from RIGHT to LEFT."

Copy this exact sentence and paste it at the BEGINNING of your prompt. Without it, the image will render left-to-right which is wrong for Hebrew content.

WOW Mode

When user asks for "wow mode" or wants maximum visual impact, add these epic elements to the prompt:

"EPIC CINEMATIC WOW: Amazed expression, mind-blown reaction, intense VFX - shattered glass particles, explosive energy bursts, volumetric light rays, dramatic lens flares, particle explosions, motion blur streaks, holographic glitches, electric sparks, cinematic color grading, dramatic rim lighting, depth of field bokeh, anamorphic lens effects. Maximum visual spectacle."

Output

  • Files saved to path specified by -d flag (MANDATORY)
  • Aspect ratio: Configurable via --aspect (default: 3:2)
  • Quality: 1K (1024px on longest edge)

Video Generation

Generate videos using xAI Grok Imagine Video (default) or fal.ai LTX-2 (cheap mode).

Quick Start

cd ~/.claude/skills/image-generation/scripts

# Text-to-video (Grok Imagine - high quality, 720p)
npx tsx generate_video.ts -d /tmp/video.mp4 "A futuristic city at sunset, cinematic drone shot"

# Cheap mode: fal.ai LTX-2 (fast, low cost)
npx tsx generate_video.ts --cheap -d /tmp/video.mp4 "A futuristic city at sunset"

# Image-to-video (animate a still image)
npx tsx generate_video.ts -d /tmp/animated.mp4 --image /path/to/image.jpg "Slow zoom with particles floating"
npx tsx generate_video.ts --cheap -d /tmp/animated.mp4 --image /path/to/image.jpg "Gentle camera movement"

# Custom duration and aspect ratio
npx tsx generate_video.ts -d /tmp/long.mp4 -t 10 -a 9:16 "Vertical video for stories"

Video Providers

ProviderFlagQualityDurationResolutionCost
Grok Imagine(default)High, cinematic1-15s480p/720pPer-second billing
fal.ai LTX-2--cheapGood, fast1-10s~480pBudget-friendly

Video Options

OptionFlagDefaultDescription
Prompt(positional)requiredText description of the video
Destination-drequiredOutput file path (.mp4)
Duration-t5Duration in seconds
Aspect ratio-a16:916:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3
Resolution-r720p480p or 720p (Grok only)
Image source--imagenoneSource image for image-to-video
Cheap mode--cheapfalseUse LTX-2 instead of Grok

适合场景

01

文本生成图片

02

图片风格化

03

产品图和创意图

04

需要 FLUX 模型时

能力概览

能力 1

调用 FLUX 图像模型

能力 2

支持文本生图和图像改写

能力 3

覆盖 LoRA 或风格适配

能力 4

适合创意视觉生成

平台分布

Codex

36.92%
按下载量换算156

Claude

27.36%
按下载量换算116

Cursor

19.34%
按下载量换算82

Gemini CLI

8.69%
按下载量换算37

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills