Skills for Real Engineers. Straight from my .agents directory.
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
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)
1# Image Generation (AI SDK)23## User Input Tools45When this skill prompts the user, follow this tool-selection rule (priority order):671. **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.1011Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.1213## Script Directory1415`{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`.1617## Step 0: Load Preferences (blocking)1819No image generation until EXTEND.md exists. Check in order; first hit wins:2021| 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 |2627- **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
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
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
