Sign in
Explore
Skills · SkillImages & VideoReviewed

imagegen

Generate or edit raster images such as photos, illustrations, sprites and transparent cutouts, when the output should be a bitmap, not code.

Kind
Skill
Works with
Codex, Claude Code
Source
openai/skills @ 49f948faa925
Path
skills/.system/imagegen/SKILL.md
License
Apache-2.0
Jobs
UI/UX work
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# 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 `image_gen` tool for normal image generation and editing. Does not require `OPENAI_API_KEY`.
- **Fallback CLI mode (explicit-only):** `scripts/image_gen.py` CLI. Use only when the user explicitly asks for the CLI path. Requires `OPENAI_API_KEY`.

Within the explicit CLI fallback only, the CLI exposes three subcommands:

- `generate`
- `edit`
- `generate-batch`

Rules:
- Use the built-in `image_gen` 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 `OPENAI_API_KEY`. Proceed only if the user explicitly asks for that fallback.
- If the user explicitly asks for CLI mode, use the bundled `scripts/image_gen.py` workflow. Do not create one-off SDK runners.
…