Baoyu Image Gen
One CLI-backed skill that generates images through 10+ providers — OpenAI, Google, DashScope, MiniMax, Replicate and more.
Image & VideoIntermediate★ 24,749⑂ 2,764AI score 8/10Last updated: Jul 4, 2026
What it does
Ask Claude to "generate/create/draw an image" and this skill takes over. It wraps a dozen official image APIs — OpenAI GPT Image 2, Azure OpenAI, Google, OpenRouter, DashScope (Qwen-Image), Z.AI GLM-Image, MiniMax, Jimeng, Seedream, Replicate, Agnes — behind a single TypeScript CLI (scripts/main.ts).
Highlights:
- Text-to-image plus reference-image edits (
--ref) - Aspect ratios (
--ar 16:9), explicit sizes,normal/2kquality presets - Parallel batch generation from saved prompt files (
--batchfile,--jobs) - Persistent preferences in EXTEND.md (default provider, model, quality, save path)
- Up to 3 automatic retries per image with per-image failure reporting
- A dedicated
codex-cliprovider that uses your Codex login instead of an OpenAI API key
The identity-preservation guidance for reference images is unusually detailed and helps avoid the classic failure where the model invents a look-alike stranger.
Who it's for
- Power users who switch between multiple image APIs depending on the task
- Content creators who need batches of article/newsletter illustrations
- Anyone wanting to compare Chinese models (Qwen-Image, Jimeng, Seedream, GLM-Image) alongside Western ones
- Teams with an existing prompt list who want throughput instead of one-off calls
Examples
- Single image: "Draw a snowy mountain landscape, 16:9, 2K quality" →
main.ts --prompt ... --ar 16:9 --quality 2k - Reference edit: pass 2–3 portrait photos and say "same person, just change the scene to a Tokyo street at night" — the skill applies its identity-preservation prompt rules
- Article illustration batch: turn
outline.md+ aprompts/folder into batch.json viabuild-batch.ts, then run--jobs 4to render 10 illustrations in parallel
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/baoyu-image-gen folder from the GitHub repo JimLiu/baoyu-skills into my ~/.claude/skills/baoyu-image-gen/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/JimLiu/baoyu-skills.git /tmp/baoyu-skills && mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-image-gen ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Get a runtime: run
bun --version. If missing, install withbrew install oven-sh/bun/bun(macOS) or follow https://bun.sh.npx -y bunalso works. - Clone the repo:
git clone https://github.com/JimLiu/baoyu-skills.git /tmp/baoyu-skills - Install the skill:
mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-image-gen ~/.claude/skills/ - Set API keys for whichever provider you plan to use, e.g.
export OPENAI_API_KEY=sk-...orexport GOOGLE_API_KEY=.... You can also store them in~/.baoyu-skills/.env. - Restart Claude Code, then try: "generate an image of a cat".
- Complete first-time setup: the skill asks for default provider, model, quality and output folder, then writes
~/.baoyu-skills/baoyu-image-gen/EXTEND.md. Generation is blocked until this file exists. - (Optional) For batches, save your prompts as files, build
batch.jsonwithscripts/build-batch.ts, and run the CLI with--batchfile batch.json --jobs 4.
View source on GitHub ↗License: MIT