← ClaudeAtlas

codex-image-genlisted

Generate raster images (icons, illustrations, textures, app icons) from a text prompt by driving the Codex CLI's image tool, then extracting the finished PNG from the Codex session rollout. Use when an agent needs a real generated image and has no native image-generation tool. Requires the `codex` CLI, logged in.
shipshitdev/skills · ★ 36 · AI & Automation · score 73
Install: claude install-skill shipshitdev/skills
# 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 Creates/Modifies: - Prompt, diagnostic log, and image files at the selected local destination External Side Effects: - Calls the authenticated Codex CLI image service and reads the resulting session rollout Confirmation Required: - Before using an external provider or writing outside the requested output scope; preserve existing images unless replacement was authorized - Loading the skill grants no additional authority. Existing explicit approval applies only to the same target and actions; preserve report-only restrictions. Delegates To: - None ## When this is the right tool - The agent needs a generated raster image (icon, illustration, texture, app icon, placeholder art) and has no built-in image-generation tool. - A `codex` CLI is installed and logg