xy121718 avatar

Baoyu Image Gen

This is a comprehensive image generation skill that wraps OpenAI, Google Gemini, Alibaba's DashScope, Replicate, and xheai APIs into a single interface. It handles text-to-image and reference-based edits, supports aspect ratios and quality presets, and includes a first-run config flow that saves your preferred provider and models to EXTEND.md. The setup is thorough, maybe overly so, with blocking preference checks and explicit model resolution chains across CLI flags, config files, and environment variables. Useful if you're juggling multiple image APIs and want one command to rule them all, though the ergonomics lean toward power users who don't mind reading tables. Ships with debug mode and cross-platform dotenv handling.

skills.sh installs
181
GitHub stars
102
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/xy121718/baoyu-skills
Categories
AI & Agent Building, Automation & Workflows, Generative Media
First seen
Jun 3, 2026

More from xy121718/baoyu-skills

All 8
1yonatangross avatarfeedbackyonatangross/orchestkitManages OrchestKit learning system including feedback status, usage pattern tracking, and privacy/analytics consent. Supports pause/resume learning, data export180skills.sh installs
2yonatangross avatartesting-patternsyonatangross/orchestkitRedirect — testing-patterns was split into 5 focused sub-skills. Use when looking for testing-patterns, writing tests, or test automation. Redirects to testing-179skills.sh installs
3jxxghp avatarmoviepilot-clijxxghp/moviepilotUse this skill when the user asks to operate MoviePilot through the local `moviepilot tool` MCP CLI for normal product workflows: media search, torrent search, 178skills.sh installs
4observerw avatarskill-creatorobserverw/skill-creator-skillGuide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends agent' capabilit177skills.sh installs
5aibtcdev avataraibtc-news-deal-flowaibtcdev/skillsDeal Flow editorial skill — signal composition, source validation, and editorial voice guide for aibtc.news correspondents covering ordinals trades, bounty comp175skills.sh installs
6composiohq avatargmail-automationcomposiohq/awesome-claude-skillsAutomate Gmail tasks via Rube MCP (Composio): send/reply, search, labels, drafts, attachments. Always search tools first for current schemas.173skills.sh installs