From codex-image-gen
Generate images from natural-language prompts using Codex CLI. Trigger when the user asks to: generate image, create image, make image, draw, illustration, render image, picture of, design a logo, create art, generate artwork, make a graphic, create a visual.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codex-image-gen:generateThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate images using Codex CLI's built-in imagegen skill.
Generate images using Codex CLI's built-in imagegen skill.
Always run the generation script as a background job so it doesn't block the conversation:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/image_gen.py" generate "<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 schema below. Never pass the user's raw prompt directly.
Structure the enhanced prompt as: scene/backdrop -> subject -> details -> constraints. Use this schema, including only the lines that help:
Use case: <taxonomy slug>
Asset type: <where the asset will be used>
Primary request: <user's main prompt, clarified>
Scene/backdrop: <environment>
Subject: <main subject>
Style/medium: <photo/illustration/3D/etc>
Composition/framing: <wide/close/top-down; placement>
Lighting/mood: <lighting + mood>
Color palette: <palette notes>
Materials/textures: <surface details>
Text (verbatim): "<exact text>"
Constraints: <must keep/must avoid>
Avoid: <negative constraints>
Classify each request into one of these:
User says: "create image of quantum computer with plain white background"
Enhanced prompt:
Use case: scientific-educational
Primary request: a quantum computer on a plain white background
Scene/backdrop: clean plain white studio background
Subject: a modern quantum computer with visible dilution refrigerator, gold wiring, and cylindrical cryostat housing
Style/medium: photorealistic product-style rendering
Composition/framing: centered, slight three-quarter angle, generous padding
Lighting/mood: clean studio lighting with soft highlights
Materials/textures: polished metal, gold connectors, frosted glass panels, visible qubit chip
Constraints: no text; no logos; no watermark; plain white background only
run_in_background: true)SAVED: <path> linesCodex image generation 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 requests, simply 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