New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Generates article and documentation illustrations through a Codex-first path, with OpenAI and Gemini API fallbacks.

skills.sh installs
4K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the full image workflow: requirement check, provider selection, prompt writing, parameter tuning, output placement, and visual verification
  • Routes generation through the Codex built-in image_gen tool first, then scripts/generate_image.py with --provider auto falling back from OpenAI to Gemini
  • Prepends a minimalist flat-style prefix by default, with --style-prefix and --no-style available to override it
  • Designed for technical writers who need diagrams and concept visuals placed beside existing images in their Markdown articles

Install

$ npx -y skills add zc277584121/marketing-skills --skill image-generation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Image Generation Skill

Generate illustration images for blog posts, documentation, and technical articles. The workflow is provider-aware:

  1. Codex built-in path first — when the current agent is Codex and the built-in image_gen tool is available, use it directly. This path does not require OPENAI_API_KEY.
  2. OpenAI API fallback — outside Codex, or when the built-in tool is unavailable, use the local script with OPENAI_API_KEY if present.
  3. Gemini fallback — if OpenAI API generation is unavailable or fails, use the same script with GEMINI_API_KEY and 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

Step 1: Determine the Image Requirements

Before generating, clarify only what is necessary:

Details

Repository
github.com/zc277584121/marketing-skills
Categories
AI Image, Video & Voice, Technical Documentation
First seen
May 16, 2026

More from zc277584121/marketing-skills

All 14

Similar to Image Generation

More AI Image, Video & Voice