From codex-image-gen
Edit existing images using Codex CLI's imagegen skill. Trigger when the user asks to: edit image, modify image, change image, update image, alter image, transform image, replace background, remove background, recolor, resize image, crop image, add text to image.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codex-image-gen:editThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Edit existing images using Codex CLI's built-in imagegen skill.
Edit existing images using Codex CLI's built-in imagegen skill.
Always run the edit script as a background job so it doesn't block the conversation:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/image_gen.py" edit <input-path> "<enhanced prompt>"
On Windows, use python instead of python3.
Use run_in_background: true when calling the Bash tool.
Before passing the prompt to codex, you MUST enhance it using the structured approach below. Never pass the user's raw edit instructions directly.
For edits, always explicitly state what to change AND what to preserve:
Use case: <edit taxonomy slug>
Primary request: <user's edit instruction, clarified>
Constraints: change only <X>; keep <Y> unchanged
Avoid: <things to not do>
Classify each edit into one of these:
User says: "replace the background with white"
Enhanced prompt:
Use case: precise-object-edit
Primary request: replace only the background with a clean plain white backdrop
Constraints: change only the background; keep the subject, its edges, lighting, and shadows unchanged; no text; no watermark
Avoid: altering the subject in any way; adding new elements; changing the subject's color or lighting
run_in_background: true)SAVED: <path> linesCodex image editing takes time (30-120 seconds). Always spawn it in the background so the user can continue working. You will be notified when it finishes.
For transparent/background removal, include "transparent background" in the enhanced prompt. The plugin automatically:
No manual steps needed — just mention "transparent" in the prompt.
Requires Codex CLI installed and authenticated. Run status to check:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/image_gen.py" status
If codex is not found, tell the user to install it with
npm install -g @openai/codex and run codex login.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub fenish/claude-code-booster --plugin codex-image-gen