Codex/Claude skill for generating images through Codex's built-in image_gen tool by spawning a fresh codex exec session.
The main workflow is documented in SKILL.md. The short version:
- Uses ChatGPT OAuth via Codex, not an
OPENAI_API_KEYfallback. - Spawns an ephemeral Codex session to keep image prompts isolated from the caller's long-running context.
- Verifies generated PNGs from
~/.codex/generated_images/<session_id>/ig_*.pnginstead of trusting model-reported paths. - Uses a stable transparent PNG contract: generate on solid
#FF00FFor#00FF00, then runscripts/chroma_key_transparent.py. - Includes experimental batch and continuation scripts under
scripts/.
From Codex skill installer workflows, install this repository as a root skill:
python3 ~/.codex/skills/.system/skill-installer/scripts/install-skill-from-github.py \
--repo aldegad/image-gen \
--path .For local umbrella installs, keep this repository as the public upstream and symlink/copy it through your own agent-skill installer.
which codex
codex login status
codex features list | grep image_generationTransparent PNG post-processing requires Python Pillow (PIL). ImageMagick (magick) remains useful for optional inspection.
MIT