codex-imagelisted
Install: claude install-skill DananzMolt/codex-image
# Codex Image
Use the bundled runner for the local Codex CLI workflow. It accepts literal
arguments, stages reference images, runs Codex once, validates PNGs with Pillow,
and publishes files without overwriting existing output.
## Run
Resolve this skill's directory from the loaded skill path. Do not assume it is
the current directory. Requirements: macOS/Linux, Python 3.10+, Pillow, and
Codex CLI signed in with ChatGPT (`codex login`). For setup, additional options,
and recovery, read [references/usage.md](references/usage.md).
```bash
python3 /absolute/path/to/codex-image/scripts/generate.py --help
python3 /absolute/path/to/codex-image/scripts/generate.py --quality high -- 'A minimal emerald green app icon'
python3 /absolute/path/to/codex-image/scripts/generate.py --input '/path/to/photo.png' -- 'Replace only the background with pale green. Preserve the person and lighting.'
```
1. Preserve the user's prompt, reference order, explicit text, and requested
settings. Ask only when the prompt or a required reference is missing.
2. Inspect reference images before requesting edits. Add one `--input` per
reference and identify each reference's role in the prompt.
3. Pass arguments with proper shell quoting, or use `--prompt-file` for complex
text. Never use `eval`, `shell=True`, or paste raw prompt text into shell code.
4. Run `generate.py` once. For long jobs, keep the host task running in the
background and monitor that same task. The default deadline is 600 seco