Design & FrontendOfficial · openai

Imagegen skill for Claude

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.

When Claude uses it

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.

Imagegen SKILL.md

A preview of the skill file from openai/skills.

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.
  • Never modify scripts/image_gen.py. If something is missing, ask the user before doing anything else.

Built-in save-path policy:

Read the full SKILL.md on GitHub →

How to install Imagegen

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit openai/skills/skills/.system/imagegen#main ~/.claude/skills/imagegen

Codex

npx degit openai/skills/skills/.system/imagegen#main ~/.codex/skills/imagegen

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Imagegen skill do?

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.

+How do I install Imagegen in Claude Code?

Copy the skill folder into ~/.claude/skills/imagegen, for example with "npx degit openai/skills/skills/.system/imagegen#main ~/.claude/skills/imagegen". Claude Code loads it automatically and uses it when a task matches.

+Does Imagegen work with ChatGPT or Codex?

Yes. Imagegen uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/imagegen. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Imagegen free?

Imagegen is published on GitHub by openai. The repository does not declare a license, so check with the author before reusing it.

Related design & frontend skills

  1. Design

    Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, MuAPI, or UberLLM…

    nextlevelbuilder/ui-ux-pro-max-skill★ 151k
  2. Frontend Design

    Official

    Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one.

    anthropics/skills★ 197k
  3. Ui Ux Pro Max

    UI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing…

    nextlevelbuilder/ui-ux-pro-max-skill★ 151k
  4. Winui App

    Official

    Bootstrap, develop, and design modern WinUI 3 desktop applications with C# and the Windows App SDK using official Microsoft guidance, WinUI…

    openai/skills★ 29k
  5. Design Md

    Official

    Analyze Stitch projects and synthesize a semantic design system into DESIGN.md files

    google-labs-code/stitch-skills★ 10k
  6. React Vite Dashboard

    Official

    Convert Stitch designs into production React + Vite dashboards with TanStack Query, accessible tokens from DESIGN.md, and Web3-ready…

    google-labs-code/stitch-skills★ 10k
  7. Site Md

    Official

    Analyze a project description or site requirements and synthesize a project constitution into SITE.md for the Stitch Build Loop

    google-labs-code/stitch-skills★ 10k
  8. Stitch::code To Design

    Official

    Convert frontend code (Vite, React, Angular, Vue, etc.) to a Stitch Design by chaining static HTML extraction, design system extraction,…

    google-labs-code/stitch-skills★ 10k
  9. Stitch::extract Design Md

    Official

    Extract a comprehensive design system (DESIGN.md) directly from frontend source code — React, Vue, Svelte, Angular, plain HTML/CSS, or any…

    google-labs-code/stitch-skills★ 10k

See all design & frontend skills →

More skills from openai

  1. Linear

    Official

    Manage issues, projects & team workflows in Linear. Use when the user wants to read, create or updates tickets in Linear.

    openai/skills★ 29k
  2. Migrate To Codex

    Official

    Migrate supported instruction files, skills, agents, and MCP config into Codex project and global files.

    openai/skills★ 29k
  3. Netlify Deploy

    Official

    Deploy web projects to Netlify using the Netlify CLI (`npx netlify`).

    openai/skills★ 29k

All skills by openai →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.