# imagegen

> Claude/Codex skill by [@openai](https://omgskills.com/library/openai/index.md) · 128k stars · Updated 2026-10-09

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.

## Install

```sh
git clone https://github.com/openai/codex /tmp/codex && ln -s /tmp/codex/codex-rs/skills/src/assets/samples/imagegen ~/.claude/skills/imagegen
```

## From README

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 image generation, editing, and transparent-image requests. Does not require OPENAIAPIKEY. Fallback CLI mode: scripts/imagegen.py CLI. Use when the user explicitly asks for or confirms the CLI/API/model path. Requires OPENAIAPIKEY. Within CLI fallback, the CLI exposes three subcommands: generate edit generate-batch Rules: Use the built-in imagegen tool by default for normal image generation and editing requests. Do not switch to CLI fallback for ordinary quality, size, or file-path control. For transparent images, ask built-in imagegen for a transparent background and preserve the generated alpha.

## Links

- HTML page: https://omgskills.com/skills/openai/codex/imagegen/
- GitHub: https://github.com/openai/codex
- Author: [@openai](https://omgskills.com/library/openai/index.md)

## More from this repo

- [skill-creator](https://omgskills.com/skills/openai/codex/skill-creator/index.md) — Used to create or update a Codex skill with appropriately scoped instructions and any needed supporting resources.
   - [@openai](https://omgskills.com/library/openai/index.md) · 128k stars
- [babysit-pr](https://omgskills.com/skills/openai/codex/babysit-pr/index.md) — Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and...
   - [@openai](https://omgskills.com/library/openai/index.md) · 127k stars
- [code-review](https://omgskills.com/skills/openai/codex/code-review/index.md) — Used to run a final code review on a pull request
   - [@openai](https://omgskills.com/library/openai/index.md) · 127k stars
