/codex-bridge:edit-imagefrom codex-bridge
Edits, restyles, or varies existing images using OpenAI gpt-image-2 via Codex CLI. Supports targeted changes, background swaps, brand recoloring, text fixes, and style-matched variants.
Ships in codex-bridge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Same wrapper as generation, plus --ref to attach the source image:
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.
# 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.
Be surgical. The model preserves what you don't mention, so name the change and then name what must survive it:
For a series of edits, chain them one at a time (each output becomes the next
--ref) rather than stacking five changes into one prompt.
out-v2.png. Use the printed path, not the one you asked for.#00FF00
background (#FF00FF if the subject is green) and strip the key with the
helper Codex ships:
python "${CODEX_HOME:-$HOME/.codex}/skills/.system/imagegen/scripts/remove_chroma_key.py" \
--input ./keyed.png --out ./final.png --auto-key border --soft-matte \
--transparent-threshold 12 --opaque-threshold 220 --despill
Verify transparent corners and no colour fringe afterwards. True native
transparency needs Codex's CLI fallback plus an OPENAI_API_KEY — only raise
that option for hard subjects (hair, fur, glass, smoke) and let the user decide.sips — use those
directly instead of regenerating.For multi-image jobs, hand the whole brief to the codex-artist subagent instead.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sateezg/codex-bridge --plugin codex-bridge6 skills in this plugin
/ask-codexAsk Codex a questionAsk OpenAI Codex (GPT-5) a one-off question about the current repo and get its answer back, without spinning up a subagent. Use when the user says "ask codex", "what does GPT think", "get a second opinion on this", or when you want an independent read on a design call, a tricky bug, or an unfamiliar area of the codebase./asset-setGenerate a consistent asset setGenerate a complete, style-consistent set of image assets for a web or app project in one pass — favicons, app icons, OG/social cards, hero images, empty-state illustrations, or a matching icon family. Use when the user asks for "icons for", "assets for", "favicon", "og image", "app icon", "a set of illustrations", or is setting up branding for a new project./codex-delegateDelegate to Codex when it saves the user tokensOffer to hand heavy work to Codex (GPT-5) as a subagent so it runs on the ChatGPT plan quota instead of burning Claude context and tokens. Use at the START of any task that is large, repetitive, or asset-producing — bulk refactors across many files, generating boilerplate or fixtures, exhaustive repo-wide audits, writing many similar tests, and anything needing mockups or images. Also use whenever the user says "save tokens", "use codex", "delegate this", or "who should do this"./codex-reviewCode review by CodexGet an independent code review from OpenAI Codex (GPT-5) on uncommitted changes, a branch diff, a PR, or a specific module — returns findings grouped by severity with file:line references. Use when the user says "review this", "review my changes", "check this PR", "what did I miss", or before they commit or merge something substantial./generate-imageGenerate an image via Codex CLI (gpt-image-2)Generate images (icons, logos, banners, illustrations, mockups, photos, textures, diagrams-as-art) with OpenAI gpt-image-2 through the locally installed Codex CLI, using the user's existing ChatGPT login — no API key. Use whenever the user asks to generate, create, draw, or mock up an image, or when a task needs a new image asset that doesn't exist yet.Other plugins' skills for the same job