imagegen
Original:🇺🇸 English
Translated
AI image generation using Google Gemini (Gemini) and OpenAI GPT-Image. Generate, edit, iterate, and create assets.
17installs
Added on
NPX Install
npx skill4agent add thrownlemon/claude-code-plugins imagegenTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Image Generation Skill
This skill enables AI-powered image generation, editing, and asset creation using Google Gemini (Gemini) and OpenAI GPT-Image.
When to Use
Activate this skill when the user wants to:
- Generate images from text descriptions
- Edit or modify existing images
- Create project assets (icons, favicons, social images)
- Generate design inspiration (moodboards)
- Create consistent character designs
- Compare different AI image providers
Available Commands
| Command | Use For |
|---|---|
| Generate images from prompts |
| Edit existing images |
| Refine images through multiple steps |
| Compare Google vs OpenAI |
| Generate project assets |
| Create design inspiration sets |
| Create consistent character sheets |
| Configure defaults |
Delegation
For complex image generation tasks, delegate to the subagent which has access to all generation scripts and can handle multi-step workflows.
image-generatorQuick Reference
Providers
Google Gemini (Gemini)
- Models: ,
gemini-2.5-flash-imagegemini-3-pro-image-preview - Best for: Character consistency, multi-turn iteration, style variety
- API Key: or
GEMINI_API_KEYGOOGLE_API_KEY
OpenAI GPT-Image
- Models: ,
gpt-image-1.5,gpt-image-1gpt-image-1-mini - Best for: Text in images, transparent backgrounds, precise edits
- API Key:
OPENAI_API_KEY
Common Sizes/Aspect Ratios
| Format | OpenAI | |
|---|---|---|
| Square | 1:1 | 1024x1024 |
| Landscape | 16:9 | 1536x1024 |
| Portrait | 9:16 | 1024x1536 |
| Wide | 21:9 | - |
Example Interactions
User: "Generate an image of a sunset over mountains"
Action: Use
/imagegen:generate --prompt "A sunset over mountains"User: "Create app icons for my project"
Action: Use
/imagegen:assets --type icons --prompt "[ask for description]"User: "Edit this image to add rain"
Action: Use
/imagegen:edit --image [path] --prompt "Add rain falling"User: "I want to iterate on this design"
Action: Use
/imagegen:iterate --image [path] --prompt "[refinement]"User: "Which provider would be better for logos?"
Action: Explain Google is better for style variety, OpenAI for text, and suggest to test both.
/imagegen:comparePrerequisites Check
Before generating, verify:
- Required Python packages: ,
google-genai,openai(for resizing)Pillow - API keys set in environment
- Output directory accessible
bash
# Install packages
pip install google-genai openai Pillow
# Set API keys (user's responsibility)
export GEMINI_API_KEY=your_key
export OPENAI_API_KEY=your_keyPrompt Tips
Help users craft effective prompts:
- Be descriptive but concise
- Specify style (photorealistic, watercolor, minimalist)
- Include lighting (golden hour, dramatic, soft)
- Mention composition (close-up, wide shot, centered)
- For characters, include distinctive features
- For logos, specify simplicity level