codex-image-genlisted
Install: claude install-skill sardonyx0827/dotfiles
# Codex Image Generation Skill
**Purpose**: Produce bitmap image assets (photos, illustrations, hero images, OG images,
mockups, textures, sprites) by delegating to OpenAI Codex's **built-in `image_gen` tool**,
run through the `mcp__codex__codex` tool, and land the finished files in a caller-specified directory.
**Division of labor**:
- **Claude = art director** — decides which assets are needed and writes a precise spec
(filename, purpose, dimensions, style, destination). Claude does NOT generate pixels.
- **Codex = generator** — runs `image_gen` (no API key), saves outputs, moves them to the
destination, and reports the final paths.
Codex's `image_gen` lives in its system skill `~/.codex/skills/.system/imagegen/SKILL.md`.
The **built-in tool mode is preferred and requires no `OPENAI_API_KEY`** (proven working under
`sandbox: workspace-write`). A CLI fallback (`scripts/image_gen.py`) exists but needs
`OPENAI_API_KEY` and is only for true native transparency — see Transparency below.
## When to use
- A site/app build needs generated images placed on disk (e.g. `public/hero.png`, `og-image.png`)
- The user asks to "generate / create an image", "画像���生成/作成して", a photo, illustration,
banner, mockup, texture, or sprite as a real bitmap file
- Multiple visual variants or a batch of distinct assets are needed
## When NOT to use
- Icons, logos, simple shapes, diagrams, or wireframes better produced as **SVG / HTML / CSS /
canvas** in code — do that directly (frontend