Agent skill · design visual · openai

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.

Why this skill is useful

Adds specific commands and workflows for generating and editing bitmap images that the AI wouldn't reliably generate on its own.

What it needs

Requires openai account access. About 9k tokens when loaded. Last updated 2026-07-14. 24,594 stars on the source repository.

What this skill does

Image Generation Skill Generates or edits images for the current project (for example website assets, game assets, UI mockups, product mockups, wireframes, logo design, photorealistic images, or infographics). Top-level modes and rules This skill has exactly two top-level modes: Default built-in tool mode (preferred): built-in imagegen tool for normal image generation and editing. Does not require OPENAIAPIKEY. Fallback CLI mode (explicit-only): scripts/imagegen.py CLI. Use only when the user explicitly asks for the CLI path. Requires OPENAIAPIKEY. Within the explicit CLI fallback only, the CLI exposes three subcommands: generate edit generate-batch Rules: Use the built-in imagegen tool by default for all normal image generation and editing requests. Never switch to CLI fallback automatically. If the built-in tool fails or is unavailable, tell the user the CLI fallback exists and that it requires OPENAIAPIKEY. Proceed only if the user explicitly asks for that fallback. If the user explicitly asks for CLI mode, use the bundled scripts/imagegen.py workflow. Do not create one-off SDK runners. Never modify scripts/imagegen.py. If something is missing, ask the user before doing anything else. Built-in save-path policy: In built-in tool mode, Codex saves generated images under $CODEXHOME/ by default. Do not describe or rely on OS temp as the default built-in destination. Do not describe or rely on a destination-path argument (if any) on the built-in imagegen tool. If a specific location is needed, generate first and then move or copy the selected output from $CODEXHOME/generatedimages/.... Save-path precedence in built-in mode: 1. If the user names a destination, move or copy the selected output there. 2. If the image is meant for the current project, move or copy the final selected image into the workspace before finishing. 3. If the image is only for preview or brainstorming, render it inline; the underlying file can remain at the default $CODEXHOME/ path. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills openai/imagegen--0e84e9

View the source on GitHub

Browse the @skills marketplace