edit-imagelisted
Install: claude install-skill Sateezg/codex-bridge
# Edit an existing image (gpt-image-2 via Codex CLI)
Same wrapper as generation, plus `--ref` to attach the source image:
```bash
codex-imagegen "<what to change>" <output.png> --ref <source.png> [--size WxH]
```
The wrapper attaches the reference with `codex exec -i`, tells Codex to preserve
everything not mentioned, and prints the absolute path of the new file. **The
source file is never modified** — always write to a new path.
## Examples
```bash
# change one thing, keep the rest
codex-imagegen "change the sky to a sunset orange, keep the building and people identical" \
./out/hero-sunset.png --ref ./assets/hero.png
# recolor to a brand palette
codex-imagegen "recolor to a monochrome palette of #2563EB on white, keep the exact shapes" \
./out/icon-blue.png --ref ./assets/icon.png
# style-matched sibling asset
codex-imagegen "a settings gear icon in exactly the style of the reference: same stroke weight, same palette, same corner radius" \
./out/settings.png --ref ./assets/home.png
```
Up to four `--ref` images can be passed — useful when one is the subject and the
others are style references. Say in the prompt which is which.
## Writing the change description
Be surgical. The model preserves what you don't mention, so name the change and
then name what must survive it:
- Good: *"replace the text on the sign with 'OPEN 24/7', keep the font style, lighting and every other element identical"*
- Bad: *"make it better"* — produces an unrelated image
For a seri