Tooluck logoTooluck
SKILL.md

baoyu-image-gen

Agent skill fromJimLiu/baoyu-skills

AI image generation with OpenAI GPT Image 2.5, 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 to install baoyu-image-gen

install baoyu-image-gen
# install the baoyu-skills pack with the skills CLI
npx skills add JimLiu/baoyu-skills

# or add only this skill to Claude Code: copy the folder

skills/baoyu-image-gen/

# into

~/.claude/skills/baoyu-image-gen/ (all projects)

.claude/skills/baoyu-image-gen/ (one project)

skills/baoyu-image-gen/SKILL.md

MITFull file
1# Image Generation (AI SDK)
2
3## User Input Tools
4
5When this skill prompts the user, follow this tool-selection rule (priority order):
6
71. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.
82. **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.
93. **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.
10
11Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.
12
13## Script Directory
14
15`{baseDir}` = this SKILL.md's directory; `scripts/...` paths are relative to it. Main script: `{baseDir}/scripts/main.ts`. Batch payload helper: `{baseDir}/scripts/build-batch.ts`. Resolve `${BUN_X}`: prefer `bun`; else `npx -y bun`; else suggest `brew install oven-sh/bun/bun`.
16
17## Step 0: Load Preferences (blocking)
18
19No image generation until EXTEND.md exists. Check in order; first hit wins:
20
21| Path | Scope |
22|------|-------|
23| `.baoyu-skills/baoyu-image-gen/EXTEND.md` | Project |
24| `${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-image-gen/EXTEND.md` | XDG |
25| `$HOME/.baoyu-skills/baoyu-image-gen/EXTEND.md` | User home |
26
27- **Found** → load and apply. If `default_model.[provider]` is null → ask model only.
28…

Excerpt shown under the repository's MIT license.

More skills in baoyu-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates