一键导入
generate-image
Generates images using Google Gemini 3 Pro API. Use when asked to create, generate, or design images for slides, presentations, or visual content.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates images using Google Gemini 3 Pro API. Use when asked to create, generate, or design images for slides, presentations, or visual content.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | generate-image |
| description | Generates images using Google Gemini 3 Pro API. Use when asked to create, generate, or design images for slides, presentations, or visual content. |
| allowed-tools | Bash(bun:*), Read, Write |
Generate images for slides and presentations using Google's Gemini 3 Pro image generation API.
Ensure .env.local exists with your Gemini API key:
GEMINI_API_KEY=your-api-key-here
Run the generation script:
bun --env-file=.env.local .claude/skills/generate-image/scripts/generate.ts --prompt "your image description" --ratio "16:9" --output "output.png"
| Parameter | Required | Default | Description |
|---|---|---|---|
--prompt | Yes | - | Image description |
--ratio | No | 16:9 | Aspect ratio: 16:9, 4:3, 1:1, 4:5 |
--output | No | Auto-generated | Output filename |
# Widescreen slide background
bun --env-file=.env.local .claude/skills/generate-image/scripts/generate.ts \
--prompt "Abstract dark terminal with glowing code, cyberpunk aesthetic" \
--ratio "16:9"
# Square icon
bun --env-file=.env.local .claude/skills/generate-image/scripts/generate.ts \
--prompt "Minimalist code icon, orange and green on dark background" \
--ratio "1:1" \
--output "code-icon.png"
Images are saved to public/ with auto-generated timestamps if no filename specified.
Prompts are automatically logged to src/prompts/ as JSON files containing:
filename: Output image filenameprompt: The prompt used to generate the imageratio: Aspect ratio usedtimestamp: Generation timestamp (ISO format)model: Gemini model usedThis allows you to reference and regenerate images later using the same prompts.
.env.local exists with GEMINI_API_KEYgemini-3-pro-image-preview model