---
name: "imagegen"
description: "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."
---

# 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 two top-level modes:
- **Default built-in tool mode (preferred):** built-in image_gen tool for image generation, editing, and transparent-image requests.
- **Fallback CLI mode:** scripts/image_gen.py CLI. Use when the user explicitly asks for or confirms the CLI/API/model path. Requires OPENAI_API_KEY.

## Rules
1. Use the built-in image_gen tool by default for normal image generation and editing requests.
2. For transparent images, ask built-in image_gen for a transparent background and preserve the generated alpha.
3. Never overwrite user images without confirmation. Save new assets directly into public/ or assets/.