‹ 首页

generate-image

@cluesmith · 收录于 5 天前 · 上游提交 6 天前

AI image generation via Gemini. Use when the user wants to generate, create, or make an image, or when you need to create visual assets like logos, diagrams, or illustrations. Requires GEMINI_API_KEY or GOOGLE_API_KEY.

适合你,如果需要快速生成视觉内容而不依赖设计师

/ 通过 npx 安装 校验哈希
npx oh-my-skill add cluesmith/codev/generate-image
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- cluesmith/codev/generate-image
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify cluesmith/codev/generate-image
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
282GitHub stars
~309上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 12d42bb · 表述以原文为准
它做什么

装上后,当你要生成图片时,Claude 会调用 Google Gemini 根据文字描述生成图片。你可以指定分辨率(1K/2K/4K)、宽高比(如1:1、16:9等)、输出文件名,还可以提供最多14张参考图片来保持风格一致。

什么时候触发

当你要求生成、创建或制作图片,或者需要视觉素材(如 logo、图表、插图)时,Claude 会使用此技能。

装好后可以这样说
不带参数,使用默认设置生成
指定分辨率和宽高比
提供参考图片保持风格
技能原文 SKILL.md作者撰写 · Apache-2.0 · 12d42bb

generate-image - AI Image Generation

Uses Google Gemini to generate images from text prompts.

Synopsis
codev generate-image "<prompt>" [options]

Note: this is a codev subcommand, not standalone.

All flags
-o, --output <file>        Output file path (default: output.png)
-r, --resolution <res>     Resolution: 1K, 2K, 4K (default: 1K)
-a, --aspect <ratio>       Aspect ratio (default: 1:1)
--ref <image>              Reference image (repeatable, max 14)
Aspect ratios

1:1 | 16:9 | 9:16 | 3:4 | 4:3 | 3:2 | 2:3

Examples
codev generate-image "A sunset over mountains"
codev generate-image "A futuristic city" -r 4K -a 16:9 -o city.png
codev generate-image "Same style but with cats" --ref style.png --ref layout.png
codev generate-image prompt.txt -o result.png    # Prompt from .txt file
Notes
  • Prompt must be quoted if it contains spaces
  • Prompt can be a .txt file path (auto-detected by extension)
  • Reference images must exist on disk
  • Requires GEMINI_API_KEY or GOOGLE_API_KEY environment variable
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。