imagegen
Was er macht
Dieser Skill erstellt oder verändert Rasterbilder wie Illustrationen, Fotos, Texturen und Mockups. Er ist für Menschen gedacht, die Bilddateien brauchen und keinen Code oder keine Vektorgrafiken.
Wann du ihn nutzt
- ✓Wenn du eine neue Illustration, ein fotoähnliches Bild oder eine Textur für ein Projekt willst.
- ✓Wenn du ein bestehendes Bild ändern oder anhand einer Vorlage in Varianten umwandeln willst.
- ✓Wenn du ein Bild mit transparentem Hintergrund als Freisteller brauchst.
Link zum Skill
https://github.com/openai/skills/blob/main/skills/.system/imagegen/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Erstelle eine flache Illustration einer Kaffeetasse für meinen Website-Header, mit transparentem Hintergrund.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent nutzt standardmäßig den integrierten Bildgenerator, um das Bild zu erstellen oder zu bearbeiten. Das Ergebnis wird im Codex-Basisordner gespeichert, außer du wählst einen anderen Ort.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Brauche ich einen API-Schlüssel?
Das integrierte Werkzeug nicht. Der separate Befehlszeilen-Ersatz braucht einen OPENAI_API_KEY und läuft nur, wenn du ihn ausdrücklich wünschst.
Wo werden Bilder gespeichert?
Standardmäßig im Codex-Basisordner.
Kann er stattdessen Vektorgrafiken oder Code erstellen?
Nein. Der Skill ist für Pixelbilder gedacht. Code und Vektorarbeiten gehören zu anderen Werkzeugen.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 28k
- Platz im Ranking
- #9863
- Lizenz
- —
- Aktualisiert
- 28.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
aspnet-core
28kHilft deinem Agenten, ASP.NET-Core-Webapps zu bauen, zu prüfen oder zu aktualisieren, mit dem passenden App-Typ und aktuellen Microsoft-Richtlinien für .NET.
chatgpt-apps
28kHilft deinem Agenten, eine ChatGPT-App mit MCP-Server und Widget-Oberfläche zu bauen, inklusive Werkzeugen und lokaler Einrichtung.
cli-creator
28kHilft deinem Agenten, API-Doku oder Skripte in ein wiederverwendbares Kommandozeilenwerkzeug mit stabiler JSON-Ausgabe zu verwandeln.
define-goal
28kHilft deinem Agenten, eine vage Absicht vor Arbeitsbeginn in ein klares, messbares Ziel mit Erfolgskriterien, Umfang und Stopp-Bedingung zu verwandeln.
Ähnliche Skills
gifgrep
394kLässt deinen Agenten GIF-Bibliotheken durchsuchen, Ergebnisse vorab ansehen, ein GIF herunterladen und ein Einzelbild oder ein Kontaktblatt mit Bildern herausziehen.
meme-maker
394kLässt deinen Agenten eine Vorlage für ein Meme auswählen, eigene Beschriftungen hinzufügen und das Meme als SVG- oder PNG-Bild erstellen.
ios-icon-gen
280kHilft deinem Agenten, Icons für iOS-Apps zu erstellen. Er nutzt Apple-Symbole oder Icons aus anderen Quellen und erzeugt die richtigen Dateien.