
Baoyu Image Gen
Configure default image provider and model for baoyu-image-gen before generating images in your agent workflow.
Install
npx skills add https://github.com/xy121718/baoyu-skills --skill baoyu-image-genWhat is this skill?
- Two setup paths: full provider+model when no EXTEND.md, or model-only when provider prefs already exist
- Hard gate: must use AskUserQuestion for every option—no silent defaults or skipping setup before generate
- Single-call questionnaire bundles provider choice (e.g. xheai recommended) and related preferences
- Persists choices to EXTEND.md then continues into the main image-gen flow
- Bilingual UX: follows user input language or saved language preference during setup
Adoption & trust: 1 installs on skills.sh; 94 GitHub stars; 2/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
Recommended Skills
Video Editagentspace-so/runcomfy-agent-skills
Image To Videoagentspace-so/runcomfy-agent-skills
Image Editagentspace-so/runcomfy-agent-skills
Flux Kontextagentspace-so/runcomfy-agent-skills
Nano Banana 2agentspace-so/runcomfy-agent-skills
Nano Banana Editagentspace-so/runcomfy-agent-skills
Journey fit
Primary fit
Canonical shelf is Build because the skill wires external image APIs and persists local defaults—not idea validation or ship hardening. Integrations fits provider selection, EXTEND.md config, and gateway endpoints for generation backends.
Common Questions / FAQ
Is Baoyu Image Gen safe to install?
skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Baoyu Image Gen
# First-Time Setup ## ⚠️ 重要:必须询问用户选择! - **禁止**:直接使用默认选项而不询问用户 - **禁止**:跳过设置步骤直接生成 - **必须**:用 AskUserQuestion 让用户选择每个选项 - **必须**:等用户确认后再保存 EXTEND.md ## Overview Triggered when: 1. No EXTEND.md found → full setup (provider + model + preferences) 2. EXTEND.md found but `default_model.[provider]` is null → model selection only ## Setup Flow ``` No EXTEND.md found EXTEND.md found, model null │ │ ▼ ▼ ┌─────────────────────┐ ┌──────────────────────┐ │ AskUserQuestion │ │ AskUserQuestion │ │ (full setup) │ │ (model only) │ └─────────────────────┘ └──────────────────────┘ │ │ ▼ ▼ ┌─────────────────────┐ ┌──────────────────────┐ │ Create EXTEND.md │ │ Update EXTEND.md │ └─────────────────────┘ └──────────────────────┘ │ │ ▼ ▼ Continue Continue ``` ## Flow 1: No EXTEND.md (Full Setup) **Language**: Use user's input language or saved language preference. Use AskUserQuestion with ALL questions in ONE call: ### Question 1: Default Provider ```yaml header: "Provider" question: "Default image generation provider?" options: - label: "xheai (Recommended)" description: "中转站 - 兼容 OpenAI 格式,国内访问快" - label: "Google" description: "Gemini multimodal - high quality, reference images, flexible sizes" - label: "OpenAI" description: "GPT Image - consistent quality, reliable output" - label: "DashScope" description: "Alibaba Cloud - z-image-turbo, good for Chinese content" - label: "Replicate" description: "Community models - nano-banana-pro, flexible model selection" ``` ### Question 2: Default Google Model Only show if user selected Google. ```yaml header: "Google Model" question: "Default Google image generation model?" options: - label: "gemini-3-pro-image-preview (Recommended)" description: "Highest quality, best for production use" - label: "gemini-3.1-flash-image-preview" description: "Fast generation, good quality, lower cost" - label: "gemini-3-flash-preview" description: "Fast generation, balanced quality and speed" ``` ### Question 2b: Default xheai Model Only show if user selected xheai. ```yaml header: "xheai Model" question: "Default xheai image generation model?" options: - label: "gemini-3.1-flash-image-preview (Recommended)" description: "Fast generation, good quality, lower cost" - label: "gemini-3-pro-image-preview" description: "Highest quality, best for production use" - label: "nano-banana-2" description: "Google's latest fast image model, balanced quality and speed" ``` ### Question 3: Default Quality ```yaml header: "Quality" question: "Default image quality?" options: - label: "2k (Recommended)" description: "2048px - covers, illustrations, infographics" - label: "normal" description: "1024px - quick previews, drafts" ``` ### Question 4: Save Location ```yaml header: "Save" question: "Where to save preferences?" options: - label: "Project (Recommended)" description: ".baoyu-skills/ (this project only)" - label: "User" description: "~/.baoyu-skills/ (all projects)" ``` ### Save Locations | Choice | Path | Scope | |--------|------|-------| | Project | `.baoyu-skills/baoyu-image-gen/EXTEND.md` | Current project | | User | `$HOME/.baoyu-skills/baoyu-image-gen/EXTEND.md` | All projects | ### EXTEND.md Template ```yaml --- version: 1 default_provider: [selected provider or null] default_quality: [selected quality] default_aspect_ratio: null default_image_size: null default_model: google: [selected google model or null] openai: null dashscope: null replicate: null xheai: [selected xheai model or null] --- ``` ##