Agent skill · creative production · aiskillstore

baoyu-image-gen

AI image generation with OpenAI and Google APIs. Supports text-to-image, reference images, aspect ratios, and parallel generation (recommended 4 concurrent subagents). Use when user asks to generate, create, or draw images.

Why this skill is useful

Provides specific command-line options and environment variable configurations for image generation that the AI wouldn't reliably generate on its own.

What it needs

Requires bun installed locally. Requires google, openai account access. About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Image Generation (AI SDK) Official API-based image generation. Supports OpenAI and Google providers. Script Directory Agent Execution: 1. SKILLDIR = this SKILL.md file's directory 2. Script path = ${SKILLDIR}/scripts/main.ts Preferences (EXTEND.md) Use Bash to check EXTEND.md existence (priority order): ┌──────────────────────────────────────────────────┬───────────────────┐ │ Path │ Location │ ├──────────────────────────────────────────────────┼───────────────────┤ │ .baoyu-skills/baoyu-image-gen/EXTEND.md │ Project directory │ ├──────────────────────────────────────────────────┼───────────────────┤ │ $HOME/.baoyu-skills/baoyu-image-gen/EXTEND.md │ User home │ └──────────────────────────────────────────────────┴───────────────────┘ ┌───────────┬───────────────────────────────────────────────────────────────────────────┐ │ Result │ Action │ ├───────────┼───────────────────────────────────────────────────────────────────────────┤ │ Found │ Read, parse, apply settings │ ├───────────┼───────────────────────────────────────────────────────────────────────────┤ │ Not found │ Use defaults │ └───────────┴───────────────────────────────────────────────────────────────────────────┘ EXTEND.md Supports: Default provider Default quality Default aspect ratio Usage Options Option Description -------- ------------- --prompt <text>, -p Prompt text --promptfiles <files...> Read prompt from files (concatenated) --image <path> Output image path (required) --provider google\ openai Force provider (default: google) --model <id>, -m Model ID --ar <ratio> Aspect ratio (e.g., 16:9, 1:1, 4:3) --size <WxH> Size (e.g., 1024x1024) --quality normal\ 2k Quality preset (default: 2k) --imageSize 1K\ 2K\ 4K Image size for Google (default: from quality) --ref <files...> Reference images (Google multimodal only) --n <count> Number of images --json JSON output Environment Variables Variable Description ---------- ------------- OPENAIAPIKEY OpenAI API key GOOGLEAPIKEY Google API key OPENAIIMAGEMODEL Op …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/baoyu-image-gen

View the source on GitHub

Browse the @skills marketplace