image-genlisted
Install: claude install-skill behzadsp/claude-code-image-gen
# Image Generation
One CLI over every configured image provider. Picks the first provider whose
credentials exist, saves a PNG, prints JSON.
## Quick start
If `imagegen` is on PATH, use it from anywhere. Otherwise run `scripts/generate.py`
from this skill's base directory, which Claude Code prints when the skill loads.
```bash
imagegen \
--prompt "Minimalist 3D illustration of floating geometric shapes, deep purple to electric blue gradient, soft glow, website header" \
--aspect 16:9 \
--out ./generated-images/hero.png
```
Output:
```json
{"success": true, "filePath": "/abs/path/hero.png", "provider": "openai", "model": "gpt-image-2.5-sunburst", "bytes": 1217131}
```
Errors go to stderr as `{"success": false, "error": "..."}` with exit code 1.
## Instructions
1. **Craft the prompt before calling.** Use `[Style] [Subject] [Composition] [Atmosphere]`.
Name the palette when the image has to match an existing design. Vague prompts
("make it look good") waste a paid call.
2. **Pick the aspect ratio from where the image will be used**, not by default:
| Ratio | Use for |
|-------|---------|
| `16:9` | Hero images, headers, slides, OG images |
| `1:1` | Avatars, thumbnails, social tiles |
| `9:16` | Mobile stories, vertical banners |
| `4:3` / `3:2` | Blog body images, photo-style content |
3. **Let the provider default unless there is a reason.** Omit `--provider` and the
script uses the first one with credentials, preferring `openai`. Pa