Agent skill · DevOps & Cloud

baoyu-image-gen

AI image generation with OpenAI GPT Image 2, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax, Jimeng, Seedream, Replicate and Agnes APIs. Supports text-to-image, reference images, aspect ratios, and batch generation from saved prompt files. Sequential by default; use batch parallel generation when the user already has multiple prompts or wants stable multi-image throughput. Use when user asks to generate, create, or draw images.

JimLiugithub.com/JimLiuGitHub ↗
claude-codecodexships scriptsMIT
Install
npx skills add JimLiu/baoyu-skills --skill baoyu-image-gen --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 49
SKILL.md size: 20 KB
Bundled scripts: yes
Version: 2.1.0
Path: skills/baoyu-image-gen/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 24,562
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Image Generation (AI SDK) Official API-based image generation. Supports OpenAI GPT Image 2, Azure OpenAI, Google, OpenRouter, DashScope (阿里通义万象), Z.AI GLM-Image, MiniMax, Jimeng (即梦), Seedream (豆包), Replicate and Agnes. ## User Input Tools When this skill prompts the user, follow this tool-selection rule (priority order): 1. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent. 2. **Fallback**: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question. 3. **Batching**: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order. Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes. ## Script Directory `{baseDir}` = this SKILL.md's directory. All `scripts/...` paths below are relative to `{baseDir}`. Main script: `{baseDir}/scripts/main.ts`. Batch payload helper: `{baseDir}/scripts/build-batch.ts`. Resolve `${BUN_X}`: prefer `bun`; else

What's inside
Steps it walks through
  1. User Input Tools
  2. Script Directory
  3. Step 0: Load Preferences ⛔ BLOCKING
  4. Usage
  5. Identity-preserving reference prompts
  6. Reference-Image Identity Preservation
  7. Options
  8. Environment Variables
  9. Codex/ChatGPT OAuth is not an OpenAI API key
  10. Model Resolution
  11. OpenAI-Compatible Gateway Dialects
  12. Provider-Specific Guides
  13. Provider Selection
  14. Quality Presets
Ships with 24 files
  • references/codex-image2-fallback.md
  • references/codex-oauth-vs-openai-api-key.md
  • references/config/first-time-setup.md
  • references/config/preferences-schema.md
  • references/providers/agnes.md
  • references/providers/codex-cli.md
  • references/providers/dashscope.md
  • references/providers/minimax.md
  • references/providers/openrouter.md
  • references/providers/replicate.md
  • references/providers/zai.md
  • references/usage-examples.md
  • scripts/build-batch.test.ts
  • scripts/build-batch.ts
  • scripts/codex-imagegen/cache.ts
  • scripts/codex-imagegen/logger.ts
  • scripts/codex-imagegen/main.ts
  • scripts/codex-imagegen/parser.ts
  • scripts/codex-imagegen/spawn.ts
  • scripts/codex-imagegen/types.ts
  • scripts/codex-imagegen/validator.ts
  • scripts/main.test.ts
  • scripts/main.ts
  • scripts/providers/agnes.test.ts
first 24 of 49
Commands it runs
Basic
With aspect ratio and high quality
Prompt from files
With reference image
Specific provider
OpenAI GPT Image 2
Codex CLI (uses logged-in Codex subscription — no OPENAI_API_KEY required; requires `codex` on PATH)
Batch mode
Build a batch file from outline.md + prompts/ (e.g. baoyu-article-illustrator output)
More from baoyu-skills
All skills →
About this skill
What does the baoyu-image-gen skill do?

AI image generation with OpenAI GPT Image 2, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax, Jimeng, Seedream, Replicate and Agnes APIs. Supports text-to-image, reference images, aspect ratios, and batch generation from saved prompt files. Sequential by default; use batch parallel generation when the user already has multiple prompts or wants stable multi-image throughput. Use when user asks to generate, create, or draw images.

How do I install it?

Run `npx skills add JimLiu/baoyu-skills --skill baoyu-image-gen --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From JimLiu/baoyu-skills, a repository with 24,562 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going