GPT Image Generation
Run the bundled Node CLI from this skill directory.
Workflow
- Work from the skill root that contains this
SKILL.md. - Ensure
codex loginhas created~/.codex/auth.json. - Generate images with:
node ./scripts/cli.js \
--prompt-file ./prompt.md \
--size 1024x1024 \
--quality high \
--output ./outputs/storyboard.png
- Use
--promptfor inline text or--prompt-fileto read the prompt verbatim from disk. - Treat
--sizeas a request to the current backend, not a guaranteed capability. Do not claim 4K support; use1024x1024as the safe default unless the backend confirms another size. - Report the absolute output path after generation.
Notes
- Keep the prompt text unchanged when the user provides a finished prompt file.
- The runtime entrypoint is
scripts/cli.js; supporting validation tests live inscripts/test.js. - The CLI reads the local Codex login from
~/.codex/auth.json. - The CLI does not hardcode or derive any OAuth client identity; if the local
access_tokenis near expiry, reruncodex loginbefore generation. - The CLI writes PNG files and prints the backend-reported size when available.
- If the backend rejects a requested size, retry with
1024x1024instead of presenting the requested size as supported.