
Baoyu Image Gen
baoyu-image-gen generates images from text prompts using multiple AI providers including OpenAI, Azure OpenAI, Google, OpenRouter, DashScope, MiniMax, Jimeng, Seedream, and Replicate. It serves users who need text-to-image generation with support for reference images, custom aspect ratios, and batch processing capabilities. The skill solves the problem of integrating diverse image generation APIs through a unified interface while managing provider preferences and generation parameters.
- skills.sh installs
- 34.1K
- GitHub stars
- 27.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add jimliu/baoyu-skills --skill baoyu-image-gen --agent claude-codeInstalls into .claude/skills of the current project.
Files
Image Generation (AI SDK)
User Input Tools
When this skill prompts the user, follow this tool-selection rule (priority order):
- Prefer built-in user-input tools exposed by the current agent runtime — e.g.,
AskUserQuestion,request_user_input,clarify,ask_user, or any equivalent. - 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.
- 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; 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.
Step 0: Load Preferences (blocking)
No image generation until EXTEND.md exists. Check in order; first hit wins:
Sponsors
Details
More from jimliu/baoyu-skills
All 24- Baoyu Infographic33.4K
- Baoyu Markdown To Html32.7K
- Baoyu Cover Image32.6K
- Baoyu Article Illustrator32.4K
- Baoyu Xhs Images31.8K
- Baoyu Slide Deck31.7K
- Baoyu Url To Markdown30.7K
- Baoyu Comic30.3K
- Baoyu Post To X29.2K
- Baoyu Compress Image28.6K
- Baoyu Format Markdown28.5K
- Baoyu Danger X To Markdown28.4K
- Baoyu Danger Gemini Web28.3K
- Baoyu Translate26.1K
- Release Skills25.9K
- Baoyu Youtube Transcript22.5K
- Baoyu Post To Weibo22K
- Baoyu Diagram15.9K
- Baoyu Wechat Summary10.2K
- Baoyu Imagine9.3K
- Baoyu Electron Extract8.2K
- Baoyu Image Cards6.2K
- Baoyu Post To Wechat34.8K