← ClaudeAtlas

image-genlisted

Generate images from text prompts through OpenAI (gpt-image-2.5), Google Gemini (gemini-3-pro-image), Higgsfield, Black Forest Labs FLUX, or any OpenAI-compatible endpoint such as xAI Grok or Recraft. Use when the user asks to generate, create, render, or make an image, hero image, illustration, logo concept, OG image, poster, thumbnail, or social card, when a project has placeholder images to replace, or when the user names an image model or asks which image providers are available.
behzadsp/claude-code-image-gen · ★ 5 · AI & Automation · score 75
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