imagegen
Installation
SKILL.md
imagegen
Generate and edit images for the current project with gpt-image-2 only, exclusively through the Codex CLI (codex exec) and its built-in image_gen tool, billed on the user's ChatGPT subscription.
Requirements
- Codex CLI installed (
codex --version), on a recent version whose agent exposes the built-inimage_gentool. - Logged in with a ChatGPT account:
codex login. - For transparent cutouts only: Python 3 with Pillow (
python3 -m pip install pillow).
When to use
- Generate a new image: concept art, product shot, hero/banner, game asset, infographic.
- Generate using one or more reference images for style, composition, or mood.
- Edit an existing image: object removal/replacement, lighting or weather changes, background replacement, compositing, text localization, sketch-to-render.
- Produce a transparent-background cutout (via the chroma-key pipeline in references/transparency.md).
- Produce several variants of one asset.