设计与多媒体

image-generation

zc277584121/mar…g-skills

Generate illustration images for articles and documentation with a Codex-first workflow, OpenAI API fallback, and Gemini fallback.

  • 3964 次安装
  • 收录于

安装命令

npx skills add https://github.com/zc277584121/marketing-skills --skill image-generation

SKILL.md

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