Generates or edits raster images with AI via Codex CLI's image_gen tool. Use for photos, illustrations, textures, sprites, mockups, logos, infographics, and transparent cutouts.
Ships in engineering. 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.
Read when SKILL.md points to them.
Generate and edit images for the current project exclusively through the Codex CLI (codex exec) and its built-in image_gen tool, counting toward the user's Codex usage limits. This skill targets ChatGPT Images 2.5; the backend served to a session depends on availability.
codex --version), on a recent version whose agent exposes the built-in image_gen tool.codex login.python3 -m pip install pillow).Use the built-in Codex tool schema. Report an exact backend version only when runtime metadata confirms it.
image_gen tool and to copy the final image to an explicit workspace path.hero-v2.png). For batches, identify selected finals without deleting other outputs unless the user authorizes cleanup.Use codex exec --sandbox workspace-write to allow saving the result in the workspace. Defaults can depend on configuration, so select the sandbox explicitly. Name an output path inside the workspace and use the actual file path returned by the tool when copying; do not assume a fixed generation directory.
Generate:
codex exec --sandbox workspace-write 'Using your built-in image_gen tool, generate this image:
Create a wide 16:9 product photograph of a ceramic coffee mug for a landing-page hero. Use soft studio light from the left and a minimal background, with no text or logos.
Then copy the final image to output/imagegen/mug-hero.png in this directory and reply with that path.'
Edit — attach the input image with -i/--image (repeat the flag for multiple inputs and reference them by index). Put -- before the prompt so the image option cannot consume it as another file:
codex exec --sandbox workspace-write -i product.png -- 'Using your built-in image_gen tool, edit the attached image (Image 1, the edit target):
Replace only the background with a warm sunset gradient. Keep the product and its edges unchanged; add no text or logos.
Then copy the final image to output/imagegen/product-sunset.png in this directory and reply with that path.'
Variants: run one codex exec call per variant with a distinct output filename (logo-v1.png, logo-v2.png, …). Serialize the calls rather than parallelizing.
Skill execution rules (not platform limits):
codex exec call; keep the instruction limited to generation + copy, no other repo changes.-i; verify support in the installed version before relying on other formats.codex is missing, unauthenticated, or reports image_gen unavailable, stop and tell the user (install: https://developers.openai.com/codex/cli, then codex login) — the only generation path is the user's Codex subscription, never an API key or one-off SDK runner.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/authoringUse when creating, revising, or reviewing a skill's SKILL.md, supporting references, or templates, or when adjusting its invocation conditions and description./gamificationGamification design for products, apps, and game meta-layers: design an engagement, habit, or retention system; choose or audit mechanics (points, badges, leaderboards, streaks, progress bars, variable rewards); diagnose mechanics that backfire (novelty decay, demotivated users, streak churn); or run an ethics / dark-pattern check./improve-codebaseUse when asked to clean up a codebase (dead code, AI slop, duplication, or tests that protect nothing), to find and apply refactors that make changes cheaper, or to replace a system that misses a measurable target such as speed or memory. Not for reviewing one change (code-review), a bug or a recent performance regression (debug), a security audit (security-review), or a standalone experiment or research question (prototype, research).Other plugins' skills for the same job
/engineering:imagegenfrom engineering
npx claudepluginhub firzus/agent-skills --plugin engineering