Skip to content
xy121718 avatar

Baoyu Image Gen

AI image generation through OpenAI, Google, DashScope, Replicate, and xheai APIs with reference-image and aspect-ratio support.

CCM score
46 of 100
skills.sh installs
181
GitHub stars
105
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers text-to-image generation, reference-image editing, aspect ratios, and quality presets from normal to 2k
  • Includes a main.ts script with flags for provider, model, size, batch count, prompt files, and JSON output
  • Enforces a blocking first-time setup that saves provider, model, and quality defaults to EXTEND.md before any generation
  • Designed for agents that need to generate, create, or draw images from prompts across multiple API providers

Install

$ npx -y skills add xy121718/baoyu-skills --skill baoyu-image-gen -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Image Generation (AI SDK)

Official API-based image generation. Supports OpenAI, Google, DashScope (阿里通义万象), Replicate, and xheai (中转站) providers.

Script Directory

Agent Execution:

  1. SKILL_DIR = this SKILL.md file's directory
  2. Script path = ${SKILL_DIR}/scripts/main.ts

Step 0: Load Preferences ⛔ BLOCKING

CRITICAL: This step MUST complete BEFORE any image generation. Do NOT skip or defer.

Check EXTEND.md existence (priority: project → user):

test -f .baoyu-skills/baoyu-image-gen/EXTEND.md && echo "project"
test -f "$HOME/.baoyu-skills/baoyu-image-gen/EXTEND.md" && echo "user"
ResultAction
FoundLoad, parse, apply settings. If default_model.[provider] is null → ask model only (Flow 2)
Not found⛔ Run first-time setup (references/config/first-time-setup.md) → Save EXTEND.md → Then continue

CRITICAL: If not found, complete the full setup (provider + model + quality + save location) using AskUserQuestion BEFORE generating any images. Generation is BLOCKED until EXTEND.md is created.

Details

Repository
github.com/xy121718/baoyu-skills
Category
AI Image, Video & Voice
First seen
Jun 3, 2026

Questions

What does the baoyu-image-gen skill do?

baoyu-image-gen generates images from text prompts through the OpenAI, Google, DashScope and Replicate APIs. It supports reference images and aspect ratios, and it runs sequentially by default, with parallel generation available on request.

How do I install the baoyu-image-gen skill?

Run npx -y skills add xy121718/baoyu-skills --skill baoyu-image-gen -y in your project to install baoyu-image-gen. Once installed, the agent can generate, create or draw images when you ask for them.

What API keys does baoyu-image-gen need?

baoyu-image-gen reads API keys from environment variables, including OPENAI_API_KEY, GOOGLE_API_KEY, DASHSCOPE_API_KEY and REPLICATE_API_TOKEN. You only need the key for the provider you plan to use, and the skill auto-selects a provider when only one key is set.

Where does baoyu-image-gen sit among AI image generation skills?

baoyu-image-gen is in the AI Image, Video & Voice category on Claude Marketplaces. Its category peers include ai-video-generation, ai-image-generation and kling-3-0, and this skill is focused on API-based image generation with reference images.

More from xy121718/baoyu-skills

All 2

Similar to Baoyu Image Gen

More AI Image, Video & Voice