Agent skill

Baoyu Image Gen

by XY121718 in XY121718/baoyu-skills

AI image generation with OpenAI, Google, DashScope and Replicate APIs.

No licenceAuto-check: notesMedia & Creative

Install Baoyu Image Gen

skills CLI
$ npx skills add XY121718/baoyu-skills --skill baoyu-image-gen -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install XY121718/baoyu-skills baoyu-image-gen --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/XY121718/baoyu-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/baoyu-image-gen .claude/skills/baoyu-image-gen && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
baoyu-image-gen
GitHub stars
103
Used in
1 other repo
Token cost
~2.3k tokens
SKILL.md length
666 words
Files
10 (incl. scripts, references)
Skills in repo
2
Repo updated
First seen
Licence
None found

At a glance

AI image generation with OpenAI, Google, DashScope and Replicate APIs.

  • Works in 2 steps: SKILL_DIR = this SKILL.md file's directory → Script path = ${SKILL_DIR}/scripts/main.ts
  • User asks to generate
  • SKILL.md covers Script Directory, Step 0: Load Preferences ⛔…, Usage and Options, plus 8 more sections
  • Runs TypeScript scripts from its folder; calls npx; needs OPENAI_API_KEY and GOOGLE_API_KEY

What it does

Baoyu Image Gen is an agent skill from XY121718/baoyu-skills. AI image generation with OpenAI, Google, DashScope and Replicate APIs. Supports text-to-image, reference images, aspect ratios. Sequential by default; parallel generation available on request. Use when user asks to generate, create, or draw images.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including scripts and reference files (for example `references/config/first-time-setup.md`, `references/config/preferences-schema.md` and `scripts/main.ts`).

It sits in Media & Creative, covering Image generation. It works with OpenAI.

When your agent uses it

  • User asks to generate
  • Tasks that involve Image generation

Example prompts

  • “/baoyu-image-gen”

Requirements

  • Node.js
  • A credential in OPENAI_API_KEY
  • A credential in GOOGLE_API_KEY

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

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

What it can do on your machine

Read from SKILL.md and the folder at commit e6ccd5c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 7 files in scripts/ (TypeScript), which the agent can run.

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • api.xheai.cc

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENAI_API_KEY
    • GOOGLE_API_KEY
    • DASHSCOPE_API_KEY
    • REPLICATE_API_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Baoyu Image Gen loads about 2.3k tokens when it runs, and up to ~4.6k if it reads all its reference files. Until then it costs about 66 tokens; SKILL.md has 666 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:122
    END.md > env vars > `<cwd>/.baoyu-skills/.env` > `~/.baoyu-skills/.env`
  • NoteMentions a .env fileSKILL.md:124
    Cross-Platform Paths**: `~/.baoyu-skills/.env` automatically resolves to:
  • NoteMentions a .env fileSKILL.md:126
    macOS: `/Users/<username>/.baoyu-skills/.env`
  • NoteMentions a .env fileSKILL.md:127
    - Linux: `/home/<username>/.baoyu-skills/.env`
  • NoteMentions a .env fileSKILL.md:129
    g Mode**: Set `DEBUG_ENV=1` to see which .env files are loaded and which API keys are detected:

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 666 words (~2,346 tokens).

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

— opening of SKILL.md by XY121718
name
baoyu-image-gen

Read the full SKILL.md on GitHub

Files

SKILL.md and 9 other files (scripts, references) in skills/baoyu-image-gen of XY121718/baoyu-skills.

  • SKILL.md
  • references/config/first-time-setup.md
  • references/config/preferences-schema.md
  • scripts/main.ts
  • scripts/providers/dashscope.ts
  • scripts/providers/google.ts
  • scripts/providers/openai.ts
  • scripts/providers/replicate.ts
  • scripts/providers/xheai.ts
  • scripts/types.ts

Open the folder on GitHubat commit e6ccd5c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in XY121718/baoyu-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Baoyu Image Gen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Baoyu Image Gen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Baoyu Image Gen this skillXY121718/baoyu-skills1031 repos~2.3kAutomated safety check: NotesNone
AI Image Generation and Editingzhayujie/CowAgent47k—~1.3kAutomated safety check: PassMIT
GPT Image Generation CLIwuyoscar/GPT-Image2-Skill5.7k—~2.5kAutomated safety check: NotesMIT
Imagegentheowenyoung/home1154 repos~4.8kAutomated safety check: PassApache-2.0
Openai Image Gentrpc-group/trpc-agent-go1.9k12 repos~843Automated safety check: PassApache-2.0
Image Generationonyx-dot-app/onyx32k1 repos~1.7kAutomated safety check: PassCustom licence

Similar skills

  • Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.

    47k GitHub stars~1.3k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • GPT Image Generation CLI

    wuyoscar/GPT-Image2-Skill

    Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.

    5.7k GitHub stars~2.5k tokensUpdated 11 days ago
    Media & CreativeAuto-check: notes
  • Imagegen

    theowenyoung/home

    Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts.

    115 GitHub starsUsed in 4 repos~4.8k tokens
    Media & CreativeAuto-check passed
  • Openai Image Gen

    trpc-group/trpc-agent-go

    Batch-generate images via OpenAI Images API. An agent skill from trpc-group/trpc-agent-go.

    1.9k GitHub starsUsed in 12 repos~843 tokens
    Media & CreativeAuto-check passed
  • Image Generation

    onyx-dot-app/onyx

    Generate or edit raster images (photos, illustrations, textures, sprites, mockups, logos, infographics) using the workspace's configured image-generation provider via onyx-cli image.

    32k GitHub starsUsed in 1 repo~1.7k tokens
    Media & CreativeAuto-check passed
  • BlockRun Image Generation

    BlockRunAI/ClawRouter

    Generates or edits images through ClawRouter's local image API, with a choice of models and sizes and payment handled automatically through x402.

    6.6k GitHub stars~2.1k tokensUpdated 6 days ago
    Media & CreativeAuto-check passed

More from XY121718/baoyu-skills

  • Baoyu Infographic

    XY121718/baoyu-skills

    Generates professional infographics with 21 layout types and 20 visual styles.

    103 GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed

Works with

Questions about Baoyu Image Gen

What does Baoyu Image Gen do?

AI image generation with OpenAI, Google, DashScope and Replicate APIs. Baoyu Image Gen is an agent skill from XY121718/baoyu-skills. AI image generation with OpenAI, Google, DashScope and Replicate APIs.

When should I use Baoyu Image Gen?

Baoyu Image Gen fits situations like: user asks to generate; tasks that involve Image generation.

How do I install Baoyu Image Gen in Claude Code?

Run `npx skills add XY121718/baoyu-skills --skill baoyu-image-gen -a claude-code`. Or copy the skill folder (skills/baoyu-image-gen in XY121718/baoyu-skills) into .claude/skills/baoyu-image-gen in your project. Claude Code loads it when a task matches its description.

How do I install Baoyu Image Gen in Codex?

Run `npx skills add XY121718/baoyu-skills --skill baoyu-image-gen -a codex`. Or copy the skill folder (skills/baoyu-image-gen in XY121718/baoyu-skills) into .agents/skills/baoyu-image-gen in your project. Codex loads it when a task matches its description.

Can I use Baoyu Image Gen in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add XY121718/baoyu-skills --skill baoyu-image-gen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/baoyu-image-gen, .gemini/skills/baoyu-image-gen, .github/skills/baoyu-image-gen and .opencode/skills/baoyu-image-gen in your project.

What does Baoyu Image Gen need to run?

Going by SKILL.md and its folder, Baoyu Image Gen needs TypeScript for the scripts in its folder, the command-line tools its instructions call (npx) and credentials named OPENAI_API_KEY, GOOGLE_API_KEY, DASHSCOPE_API_KEY and REPLICATE_API_TOKEN. Our summary lists: Node.js; A credential in OPENAI_API_KEY; A credential in GOOGLE_API_KEY.

Does Baoyu Image Gen access the network?

SKILL.md names 1 domain. As links in the text: api.xheai.cc. This is read from the text; nothing was executed.

Is Baoyu Image Gen safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Baoyu Image Gen use?

No licence was found for Baoyu Image Gen or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Baoyu Image Gen use?

About 2.3k tokens (SKILL.md is roughly 9.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.3k tokens, read only when the agent opens those files.

What are the alternatives to Baoyu Image Gen?

Skills that share tags, products or a category with Baoyu Image Gen: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), GPT Image Generation CLI (wuyoscar/GPT-Image2-Skill, 5.7k stars), Imagegen (theowenyoung/home, 115 stars) and Openai Image Gen (trpc-group/trpc-agent-go, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Baoyu Image Gen?

XY121718 (a GitHub user) maintains it in XY121718/baoyu-skills, which has 103 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on March 2, 2026.

Source: XY121718/baoyu-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.