codex-imagegen
Installation
SKILL.md
Codex Imagegen
Generate images with Codex's built-in $imagegen skill and land them in the
project, keeping ~/.codex/generated_images/ from silently growing (it
accumulates ~10MB per generation and is never cleaned by Codex itself).
Everything is driven by one bundled script that survives plugin version bumps
and works on machines without the codex plugin (it falls back to codex exec).
Prerequisites
Either of these (the script auto-detects which is present):
- Codex plugin in Claude Code —
/plugin marketplace add openai/codex-plugin-cc, then/plugin install codex@openai-codex(Full guide: https://github.com/openai/codex-plugin-cc#install). - Codex CLI (any agent) —
npm i -g @openai/codex, thencodex login.
Auth is OpenAI/ChatGPT-account backed. Without one of these the script exits with code 3 and prints these install steps.