codex-image-gen
Installation
SKILL.md
Codex Image Gen
Generate a real raster image from a text prompt when the running agent has no
native image generator. The mechanism is non-obvious: the headless codex exec
path genuinely calls the image tool, but it never writes the PNG to disk — only
the Codex desktop app has the plumbing that polls the async job and saves it.
The finished image is still recoverable, because its full base64 PNG is recorded
in the session rollout JSONL. Run the prompt, read the session id Codex prints,
open the matching rollout, and decode the largest result string to a PNG.
Contract
Inputs:
- An image-generation request, prompt, and selected local output path
Outputs:
- Generated image file and extraction evidence