codex-image-gen
Installation
SKILL.md
Codex Image Gen
Make images with codex exec and its built-in image tool. A small helper script runs the session, then copies the PNG out of $CODEX_HOME/generated_images/<thread_id>/ to the path you ask for.
Requirements
codexCLI onPATH, logged in (codex login statusprints "Logged in using ChatGPT" or an API key login).bunfor the helper script.- The
image_generationfeature is on:codex features list | grep image_generationshowstrue. It is stable and on by default.
If a requirement is missing, tell the user. Do not install or log in for them.
Generate
bun scripts/codex-image.ts --out assets/hero.png --prompt "Wide 16:9 photo of a lighthouse at dawn, soft fog, no text"
Options: