image-generation
Installation
SKILL.md
Image Generation Skill
Generate illustration images for blog posts, documentation, and technical articles. The workflow is provider-aware:
- Codex built-in path first — when the current agent is Codex and the built-in
image_gentool is available, use it directly. This path does not requireOPENAI_API_KEY. - OpenAI API fallback — outside Codex, or when the built-in tool is unavailable, use the local script with
OPENAI_API_KEYif present. - Gemini fallback — if OpenAI API generation is unavailable or fails, use the same script with
GEMINI_API_KEYand the existing Gemini image model.
Load provider-specific references only when needed:
- Codex built-in path:
references/codex-built-in.md - OpenAI API fallback:
references/openai-api.md - Gemini fallback:
references/gemini-api.md
When to Use
- User asks to generate an illustration, diagram, concept image, article visual, or documentation visual
- User is writing an article and needs visual explanations for concepts or workflows
- User explicitly asks for a generated raster image