generating-images
Installation
SKILL.md
Generating Images (OpenAI gpt-image-2)
Use this skill any time the user asks to generate or edit an image. It wraps
OpenAI's gpt-image-2 model via a Python script, supports both text-only
prompts and one-or-more reference images, and writes the resulting PNG/JPEG/WebP
to disk.
Hard rules (do not violate)
- Always use
gpt-image-2. Never fall back togpt-image-1,dall-e-3, or any other model. The script has no--modelflag for this reason. - Fail fast on any error. Do not retry, do not swap models, do not patch around missing credentials, do not silently degrade quality. If the script exits non-zero, surface the error to the user verbatim and stop.
- Do not "fix" a missing
OPENAI_API_KEYby reading from.envfiles, 1Password, etc. unless the user explicitly tells you to. If the env var is missing, ask the user how they want to provide it (or toexportit) and then stop.