imagegen
Qué hace
Esta skill crea o modifica imágenes de mapa de bits, como ilustraciones, fotos, texturas y maquetas. Está pensada para personas que necesitan archivos de imagen, y no código ni gráficos vectoriales.
Cuándo usarla
- ✓Cuando quieres una ilustración nueva, una imagen de estilo fotográfico o una textura para un proyecto.
- ✓Cuando quieres modificar una imagen existente o crear variaciones a partir de una referencia.
- ✓Cuando necesitas una imagen con fondo transparente para un recorte.
Link de la skill
https://github.com/openai/skills/blob/main/skills/.system/imagegen/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Crea una ilustración plana de una taza de café para el encabezado de mi web, con fondo transparente.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente usa por defecto el generador de imágenes integrado para crear o editar la imagen, y el resultado se guarda en tu carpeta de Codex salvo que elijas otro lugar.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
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_gentool for normal image generation and editing. Does not requireOPENAI_API_KEY. - Fallback CLI mode (explicit-only):
scripts/image_gen.pyCLI. Use only when the user explicitly asks for the CLI path. RequiresOPENAI_API_KEY.
Within the explicit CLI fallback only, the CLI exposes three subcommands:
generateeditgenerate-batch
Rules:
- Use the built-in
image_gentool 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.pyworkflow. 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:
- In built-in tool mode, Codex saves generated images under
$CODEX_HOME/*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
image_gentool. If a specific location is needed, generate first and then move or copy the selected output from$CODEX_HOME/generated_images/.... - Save-path precedence in built-in mode:
- If the user names a destination, move or copy the selected output there.
- If the image is meant for the current project, move or copy the final selected image into the workspace before finishing.
- If the image is only for preview or brainstorming, render it inline; the underlying file can remain at the default
$CODEX_HOME/*path.
- Never leave a project-referenced asset only at the default
$CODEX_HOME/*path. - Do not overwrite an existing asset unless the user explicitly asked for replacement; otherwise create a sibling versioned filename such as
hero-v2.pngoritem-icon-edited.png.
Shared prompt guidance for both modes lives in references/prompting.md and references/sample-prompts.md.
Fallback-only docs/resources for CLI mode:
references/cli.mdreferences/image-api.mdreferences/codex-network.mdscripts/image_gen.py
When to use
- Generate a new image (concept art, product shot, cover, website hero)
- Generate a new image using one or more reference images for style, composition, or mood
- Edit an existing image (inpainting, lighting or weather transformations, background replacement, object removal, compositing, transparent background)
- Produce many assets or variants for one task
When not to use
- Extending or matching an existing SVG/vector icon set, logo system, or illustration library inside the repo
- Creating simple shapes, diagrams, wireframes, or icons that are better produced directly in SVG, HTML/CSS, or canvas
- Making a small project-local asset edit when the source file already exists in an editable native format
- Any task where the user clearly wants deterministic code-native output instead of a generated bitmap
Decision tree
Think about two separate questions:
- Intent: is this a new image or an edit of an existing image?
- Execution strategy: is this one asset or many assets/variants?
Intent:
- If the user wants to modify an existing image while preserving parts of it, treat the request as edit.
- If the user provides images only as references for style, composition, mood, or subject guidance, treat the request as generate.
- If the user provides no images, treat the request as generate.
Built-in edit semantics:
- Built-in edit mode is for images already visible in the conversation context, such as attached images or images generated earlier in the thread.
- If the user wants to edit a local image file with the built-in tool, first load it with built-in
view_imagetool so the image is visible in the conversation context, then proceed with the built-in edit flow. - Do not promise arbitrary filesystem-path editing through the built-in tool.
- If a local file still needs direct file-path control, masks, or oth
Preguntas frecuentes
¿Necesita una clave de API?
La herramienta integrada no la necesita. La alternativa por línea de comandos necesita una OPENAI_API_KEY y solo se ejecuta si la pides.
¿Dónde se guardan las imágenes?
Por defecto, se guardan en tu carpeta de inicio de Codex.
¿Puede crear gráficos vectoriales o código?
No. La skill es para imágenes de mapa de bits; el código y los gráficos vectoriales corresponden a otras herramientas.
Detalles
Descripción original del autor
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.
repo: openai/skills
Popularidad
- Estrellas en GitHub
- 28 mil
- Posición en el ranking
- #9863
- Licencia
- —
- Actualizada
- 28/10/2026
Comentarios
- …
Más skills de este repositorio
aspnet-core
28 milAyuda a tu agente a construir, revisar o actualizar apps web de ASP.NET Core, eligiendo el tipo de app adecuado y siguiendo la guía vigente de Microsoft para .NET.
chatgpt-apps
28 milAyuda a tu agente a construir una app de ChatGPT con un servidor MCP y una interfaz de widget, incluyendo herramientas, recursos de UI y configuración local.
cli-creator
28 milAyuda a tu agente a convertir una API, una especificación o scripts existentes en una herramienta de línea de comandos reutilizable que devuelve JSON estable.
define-goal
28 milAyuda a tu agente a convertir una intención vaga en un objetivo claro y medible, con criterios de éxito, alcance y condición de parada antes de empezar.
Skills parecidas
gifgrep
394 milPermite que tu agente busque GIF en bibliotecas, vea una vista previa de los resultados, descargue un GIF y extraiga un fotograma fijo o una hoja de contacto de fotogramas.
meme-maker
394 milPermite que tu agente elija una plantilla de meme, añada tus propios textos y cree el meme como imagen SVG o PNG.
ios-icon-gen
280 milPermite a tu agente generar iconos para apps de iOS. Usa símbolos de Apple u otras fuentes para crear los archivos correctos.