From 69355b4ee1671ead16501ee16c31b1bf953ab1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Liu=20=E5=AE=9D=E7=8E=89?= Date: Wed, 25 Mar 2026 16:28:06 -0500 Subject: [PATCH] feat(baoyu-imagine): rename baoyu-image-gen to baoyu-imagine --- .claude-plugin/marketplace.json | 2 +- CLAUDE.md | 4 +- README.md | 38 +++++++++---------- README.zh.md | 38 +++++++++---------- docs/image-generation.md | 6 +-- skills/baoyu-article-illustrator/SKILL.md | 2 +- .../references/workflow.md | 4 +- .../scripts/build-batch.ts | 4 +- skills/baoyu-comic/SKILL.md | 2 +- skills/baoyu-comic/references/workflow.md | 2 +- .../SKILL.md | 26 ++++++------- .../references/config/first-time-setup.md | 10 ++--- .../references/config/preferences-schema.md | 2 +- .../scripts/main.test.ts | 4 +- .../scripts/main.ts | 4 +- .../scripts/providers/azure.test.ts | 2 +- .../scripts/providers/azure.ts | 0 .../scripts/providers/dashscope.test.ts | 0 .../scripts/providers/dashscope.ts | 2 +- .../scripts/providers/google.test.ts | 0 .../scripts/providers/google.ts | 0 .../scripts/providers/jimeng.test.ts | 0 .../scripts/providers/jimeng.ts | 0 .../scripts/providers/minimax.test.ts | 0 .../scripts/providers/minimax.ts | 0 .../scripts/providers/openai.test.ts | 0 .../scripts/providers/openai.ts | 0 .../scripts/providers/openrouter.test.ts | 0 .../scripts/providers/openrouter.ts | 0 .../scripts/providers/replicate.test.ts | 0 .../scripts/providers/replicate.ts | 0 .../scripts/providers/seedream.test.ts | 0 .../scripts/providers/seedream.ts | 0 .../scripts/types.ts | 0 34 files changed, 76 insertions(+), 76 deletions(-) rename skills/{baoyu-image-gen => baoyu-imagine}/SKILL.md (95%) rename skills/{baoyu-image-gen => baoyu-imagine}/references/config/first-time-setup.md (96%) rename skills/{baoyu-image-gen => baoyu-imagine}/references/config/preferences-schema.md (98%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/main.test.ts (98%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/main.ts (99%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/azure.test.ts (98%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/azure.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/dashscope.test.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/dashscope.ts (99%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/google.test.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/google.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/jimeng.test.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/jimeng.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/minimax.test.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/minimax.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/openai.test.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/openai.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/openrouter.test.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/openrouter.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/replicate.test.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/replicate.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/seedream.test.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/providers/seedream.ts (100%) rename skills/{baoyu-image-gen => baoyu-imagine}/scripts/types.ts (100%) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index c40053b..08d7e8b 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -22,7 +22,7 @@ "./skills/baoyu-danger-gemini-web", "./skills/baoyu-danger-x-to-markdown", "./skills/baoyu-format-markdown", - "./skills/baoyu-image-gen", + "./skills/baoyu-imagine", "./skills/baoyu-infographic", "./skills/baoyu-markdown-to-html", "./skills/baoyu-post-to-weibo", diff --git a/CLAUDE.md b/CLAUDE.md index f1f8d42..c12d0b4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -31,7 +31,7 @@ Execute: `${BUN_X} skills//scripts/main.ts [options]` - **Bun**: TypeScript runtime (`bun` preferred, fallback `npx -y bun`) - **Chrome**: Required for CDP-based skills (gemini-web, post-to-x/wechat/weibo, url-to-markdown). All CDP skills share a single profile, override via `BAOYU_CHROME_PROFILE_DIR` env var. Platform paths: [docs/chrome-profile.md](docs/chrome-profile.md) -- **Image generation APIs**: `baoyu-image-gen` requires API key (OpenAI, Azure OpenAI, Google, OpenRouter, DashScope, or Replicate) configured in EXTEND.md +- **Image generation APIs**: `baoyu-imagine` requires API key (OpenAI, Azure OpenAI, Google, OpenRouter, DashScope, or Replicate) configured in EXTEND.md - **Gemini Web auth**: Browser cookies (first run opens Chrome for login, `--login` to refresh) ## Security @@ -46,7 +46,7 @@ Execute: `${BUN_X} skills//scripts/main.ts [options]` | Rule | Description | |------|-------------| | **Load project skills first** | Project skills override system/user-level skills with same name | -| **Default image generation** | Use `skills/baoyu-image-gen/SKILL.md` unless user specifies otherwise | +| **Default image generation** | Use `skills/baoyu-imagine/SKILL.md` unless user specifies otherwise | Priority: project `skills/` → `$HOME/.baoyu-skills/` → system-level. diff --git a/README.md b/README.md index fda24d7..8fc255f 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ This repository now supports publishing each `skills/baoyu-*` directory as an in ClawHub installs skills individually, not as one marketplace bundle. After publishing, users can install specific skills such as: ```bash -clawhub install baoyu-image-gen +clawhub install baoyu-imagine clawhub install baoyu-markdown-to-html ``` @@ -661,58 +661,58 @@ Post content to Weibo (微博). Supports regular posts with text, images, and vi AI-powered generation backends. -#### baoyu-image-gen +#### baoyu-imagine AI SDK-based image generation using OpenAI, Azure OpenAI, Google, OpenRouter, DashScope (Aliyun Tongyi Wanxiang), MiniMax, Jimeng (即梦), Seedream (豆包), and Replicate APIs. Supports text-to-image, reference images, aspect ratios, custom sizes, batch generation, and quality presets. ```bash # Basic generation (auto-detect provider) -/baoyu-image-gen --prompt "A cute cat" --image cat.png +/baoyu-imagine --prompt "A cute cat" --image cat.png # With aspect ratio -/baoyu-image-gen --prompt "A landscape" --image landscape.png --ar 16:9 +/baoyu-imagine --prompt "A landscape" --image landscape.png --ar 16:9 # High quality (2k) -/baoyu-image-gen --prompt "A banner" --image banner.png --quality 2k +/baoyu-imagine --prompt "A banner" --image banner.png --quality 2k # Specific provider -/baoyu-image-gen --prompt "A cat" --image cat.png --provider openai +/baoyu-imagine --prompt "A cat" --image cat.png --provider openai # Azure OpenAI (model = deployment name) -/baoyu-image-gen --prompt "A cat" --image cat.png --provider azure --model gpt-image-1.5 +/baoyu-imagine --prompt "A cat" --image cat.png --provider azure --model gpt-image-1.5 # OpenRouter -/baoyu-image-gen --prompt "A cat" --image cat.png --provider openrouter +/baoyu-imagine --prompt "A cat" --image cat.png --provider openrouter # OpenRouter with reference images -/baoyu-image-gen --prompt "Make it blue" --image out.png --provider openrouter --model google/gemini-3.1-flash-image-preview --ref source.png +/baoyu-imagine --prompt "Make it blue" --image out.png --provider openrouter --model google/gemini-3.1-flash-image-preview --ref source.png # DashScope (Aliyun Tongyi Wanxiang) -/baoyu-image-gen --prompt "一只可爱的猫" --image cat.png --provider dashscope +/baoyu-imagine --prompt "一只可爱的猫" --image cat.png --provider dashscope # DashScope with custom size -/baoyu-image-gen --prompt "为咖啡品牌设计一张 21:9 横幅海报,包含清晰中文标题" --image banner.png --provider dashscope --model qwen-image-2.0-pro --size 2048x872 +/baoyu-imagine --prompt "为咖啡品牌设计一张 21:9 横幅海报,包含清晰中文标题" --image banner.png --provider dashscope --model qwen-image-2.0-pro --size 2048x872 # MiniMax -/baoyu-image-gen --prompt "A fashion editorial portrait by a bright studio window" --image out.jpg --provider minimax +/baoyu-imagine --prompt "A fashion editorial portrait by a bright studio window" --image out.jpg --provider minimax # MiniMax with subject reference -/baoyu-image-gen --prompt "A girl stands by the library window, cinematic lighting" --image out.jpg --provider minimax --model image-01 --ref portrait.png --ar 16:9 +/baoyu-imagine --prompt "A girl stands by the library window, cinematic lighting" --image out.jpg --provider minimax --model image-01 --ref portrait.png --ar 16:9 # Replicate -/baoyu-image-gen --prompt "A cat" --image cat.png --provider replicate +/baoyu-imagine --prompt "A cat" --image cat.png --provider replicate # Jimeng (即梦) -/baoyu-image-gen --prompt "一只可爱的猫" --image cat.png --provider jimeng +/baoyu-imagine --prompt "一只可爱的猫" --image cat.png --provider jimeng # Seedream (豆包) -/baoyu-image-gen --prompt "一只可爱的猫" --image cat.png --provider seedream +/baoyu-imagine --prompt "一只可爱的猫" --image cat.png --provider seedream # With reference images (Google, OpenAI, Azure OpenAI, OpenRouter, Replicate, MiniMax, or Seedream 5.0/4.5/4.0) -/baoyu-image-gen --prompt "Make it blue" --image out.png --ref source.png +/baoyu-imagine --prompt "Make it blue" --image out.png --ref source.png # Batch mode -/baoyu-image-gen --batchfile batch.json --jobs 4 --json +/baoyu-imagine --batchfile batch.json --jobs 4 --json ``` **Options**: @@ -1045,7 +1045,7 @@ Custom style descriptions are also accepted, e.g., `--style "poetic and lyrical" Some skills require API keys or custom configuration. Environment variables can be set in `.env` files: **Load Priority** (higher priority overrides lower): -1. CLI environment variables (e.g., `OPENAI_API_KEY=xxx /baoyu-image-gen ...`) +1. CLI environment variables (e.g., `OPENAI_API_KEY=xxx /baoyu-imagine ...`) 2. `process.env` (system environment) 3. `/.baoyu-skills/.env` (project-level) 4. `~/.baoyu-skills/.env` (user-level) diff --git a/README.zh.md b/README.zh.md index 65168af..f88fac7 100644 --- a/README.zh.md +++ b/README.zh.md @@ -32,7 +32,7 @@ npx skills add jimliu/baoyu-skills ClawHub 按“单个 skill”安装,不是把整个 marketplace 一次性装进去。发布后,用户可以按需安装: ```bash -clawhub install baoyu-image-gen +clawhub install baoyu-imagine clawhub install baoyu-markdown-to-html ``` @@ -661,58 +661,58 @@ accounts: AI 驱动的生成后端。 -#### baoyu-image-gen +#### baoyu-imagine 基于 AI SDK 的图像生成,支持 OpenAI、Azure OpenAI、Google、OpenRouter、DashScope(阿里通义万相)、MiniMax、即梦(Jimeng)、豆包(Seedream)和 Replicate API。支持文生图、参考图、宽高比、自定义尺寸、批量生成和质量预设。 ```bash # 基础生成(自动检测服务商) -/baoyu-image-gen --prompt "一只可爱的猫" --image cat.png +/baoyu-imagine --prompt "一只可爱的猫" --image cat.png # 指定宽高比 -/baoyu-image-gen --prompt "风景图" --image landscape.png --ar 16:9 +/baoyu-imagine --prompt "风景图" --image landscape.png --ar 16:9 # 高质量(2k 分辨率) -/baoyu-image-gen --prompt "横幅图" --image banner.png --quality 2k +/baoyu-imagine --prompt "横幅图" --image banner.png --quality 2k # 指定服务商 -/baoyu-image-gen --prompt "一只猫" --image cat.png --provider openai +/baoyu-imagine --prompt "一只猫" --image cat.png --provider openai # Azure OpenAI(model 为部署名称) -/baoyu-image-gen --prompt "一只猫" --image cat.png --provider azure --model gpt-image-1.5 +/baoyu-imagine --prompt "一只猫" --image cat.png --provider azure --model gpt-image-1.5 # OpenRouter -/baoyu-image-gen --prompt "一只猫" --image cat.png --provider openrouter +/baoyu-imagine --prompt "一只猫" --image cat.png --provider openrouter # OpenRouter + 参考图 -/baoyu-image-gen --prompt "把它变成蓝色" --image out.png --provider openrouter --model google/gemini-3.1-flash-image-preview --ref source.png +/baoyu-imagine --prompt "把它变成蓝色" --image out.png --provider openrouter --model google/gemini-3.1-flash-image-preview --ref source.png # DashScope(阿里通义万相) -/baoyu-image-gen --prompt "一只可爱的猫" --image cat.png --provider dashscope +/baoyu-imagine --prompt "一只可爱的猫" --image cat.png --provider dashscope # DashScope 自定义尺寸 -/baoyu-image-gen --prompt "为咖啡品牌设计一张 21:9 横幅海报,包含清晰中文标题" --image banner.png --provider dashscope --model qwen-image-2.0-pro --size 2048x872 +/baoyu-imagine --prompt "为咖啡品牌设计一张 21:9 横幅海报,包含清晰中文标题" --image banner.png --provider dashscope --model qwen-image-2.0-pro --size 2048x872 # MiniMax -/baoyu-image-gen --prompt "A fashion editorial portrait by a bright studio window" --image out.jpg --provider minimax +/baoyu-imagine --prompt "A fashion editorial portrait by a bright studio window" --image out.jpg --provider minimax # MiniMax + 角色参考图 -/baoyu-image-gen --prompt "A girl stands by the library window, cinematic lighting" --image out.jpg --provider minimax --model image-01 --ref portrait.png --ar 16:9 +/baoyu-imagine --prompt "A girl stands by the library window, cinematic lighting" --image out.jpg --provider minimax --model image-01 --ref portrait.png --ar 16:9 # Replicate -/baoyu-image-gen --prompt "一只猫" --image cat.png --provider replicate +/baoyu-imagine --prompt "一只猫" --image cat.png --provider replicate # 即梦(Jimeng) -/baoyu-image-gen --prompt "一只可爱的猫" --image cat.png --provider jimeng +/baoyu-imagine --prompt "一只可爱的猫" --image cat.png --provider jimeng # 豆包(Seedream) -/baoyu-image-gen --prompt "一只可爱的猫" --image cat.png --provider seedream +/baoyu-imagine --prompt "一只可爱的猫" --image cat.png --provider seedream # 带参考图(Google、OpenAI、Azure OpenAI、OpenRouter、Replicate、MiniMax 或 Seedream 5.0/4.5/4.0) -/baoyu-image-gen --prompt "把它变成蓝色" --image out.png --ref source.png +/baoyu-imagine --prompt "把它变成蓝色" --image out.png --ref source.png # 批量模式 -/baoyu-image-gen --batchfile batch.json --jobs 4 --json +/baoyu-imagine --batchfile batch.json --jobs 4 --json ``` **选项**: @@ -1045,7 +1045,7 @@ AI 驱动的生成后端。 部分技能需要 API 密钥或自定义配置。环境变量可以在 `.env` 文件中设置: **加载优先级**(高优先级覆盖低优先级): -1. 命令行环境变量(如 `OPENAI_API_KEY=xxx /baoyu-image-gen ...`) +1. 命令行环境变量(如 `OPENAI_API_KEY=xxx /baoyu-imagine ...`) 2. `process.env`(系统环境变量) 3. `/.baoyu-skills/.env`(项目级) 4. `~/.baoyu-skills/.env`(用户级) diff --git a/docs/image-generation.md b/docs/image-generation.md index 44fb87d..6ebd58e 100644 --- a/docs/image-generation.md +++ b/docs/image-generation.md @@ -4,7 +4,7 @@ Skills that require image generation MUST delegate to available image generation ## Skill Selection -**Default**: `skills/baoyu-image-gen/SKILL.md` (unless user specifies otherwise). +**Default**: `skills/baoyu-imagine/SKILL.md` (unless user specifies otherwise). 1. Read skill's SKILL.md for parameters and capabilities 2. If user requests different skill, check `skills/` for alternatives @@ -16,7 +16,7 @@ Skills that require image generation MUST delegate to available image generation ### Step N: Generate Images **Skill Selection**: -1. Check available skills (`baoyu-image-gen` default, or `baoyu-danger-gemini-web`) +1. Check available skills (`baoyu-imagine` default, or `baoyu-danger-gemini-web`) 2. Read selected skill's SKILL.md for parameters 3. If multiple skills available, ask user to choose @@ -27,7 +27,7 @@ Skills that require image generation MUST delegate to available image generation 4. On failure, auto-retry once before reporting error ``` -**Batch Parallel** (`baoyu-image-gen` only): concurrent workers with per-provider throttling via `batch.max_workers` in EXTEND.md. +**Batch Parallel** (`baoyu-imagine` only): concurrent workers with per-provider throttling via `batch.max_workers` in EXTEND.md. ## Output Path Convention diff --git a/skills/baoyu-article-illustrator/SKILL.md b/skills/baoyu-article-illustrator/SKILL.md index 2ad52b9..92b4a6d 100644 --- a/skills/baoyu-article-illustrator/SKILL.md +++ b/skills/baoyu-article-illustrator/SKILL.md @@ -118,7 +118,7 @@ Full template: [references/workflow.md](references/workflow.md#step-4-generate-o ⛔ **BLOCKING: Prompt files MUST be saved before ANY image generation.** -**Execution strategy**: When multiple illustrations have saved prompt files and the task is now plain generation, prefer `baoyu-image-gen` batch mode (`build-batch.ts` → `--batchfile`) over spawning subagents. Use subagents only when each image still needs separate prompt iteration or creative exploration. +**Execution strategy**: When multiple illustrations have saved prompt files and the task is now plain generation, prefer `baoyu-imagine` batch mode (`build-batch.ts` → `--batchfile`) over spawning subagents. Use subagents only when each image still needs separate prompt iteration or creative exploration. 1. For each illustration, create a prompt file per [references/prompt-construction.md](references/prompt-construction.md) 2. Save to `prompts/NN-{type}-{slug}.md` with YAML frontmatter diff --git a/skills/baoyu-article-illustrator/references/workflow.md b/skills/baoyu-article-illustrator/references/workflow.md index deaa498..6ccfdd4 100644 --- a/skills/baoyu-article-illustrator/references/workflow.md +++ b/skills/baoyu-article-illustrator/references/workflow.md @@ -316,7 +316,7 @@ Prompt Files: **DO NOT** pass ad-hoc inline text to `--prompt` without first saving prompt files. The generation command should either use `--promptfiles prompts/NN-{type}-{slug}.md` or read the saved file content for `--prompt`. **Execution choice**: -- If multiple illustrations already have saved prompt files and the task is now plain generation, prefer `baoyu-image-gen` batch mode (`build-batch.ts` -> `main.ts --batchfile`) +- If multiple illustrations already have saved prompt files and the task is now plain generation, prefer `baoyu-imagine` batch mode (`build-batch.ts` -> `main.ts --batchfile`) - Use subagents only when each illustration still needs separate prompt rewriting, style exploration, or other per-image reasoning before generation **CRITICAL - References in Frontmatter**: @@ -352,7 +352,7 @@ Check available skills. If multiple, ask user. | Skill Supports `--ref` | Action | |------------------------|--------| -| Yes (e.g., baoyu-image-gen with Google) | Pass reference images via `--ref` | +| Yes (e.g., baoyu-imagine with Google) | Pass reference images via `--ref` | | No | Convert to text description, append to prompt | **Verification**: Before generating, confirm reference processing: diff --git a/skills/baoyu-article-illustrator/scripts/build-batch.ts b/skills/baoyu-article-illustrator/scripts/build-batch.ts index 5105e98..5f53c12 100644 --- a/skills/baoyu-article-illustrator/scripts/build-batch.ts +++ b/skills/baoyu-article-illustrator/scripts/build-batch.ts @@ -29,8 +29,8 @@ Options: --prompts Path to prompts directory --output Path to output batch.json --images-dir Directory for generated images - --provider Provider for baoyu-image-gen batch tasks (default: replicate) - --model Model for baoyu-image-gen batch tasks (default: google/nano-banana-pro) + --provider Provider for baoyu-imagine batch tasks (default: replicate) + --model Model for baoyu-imagine batch tasks (default: google/nano-banana-pro) --ar Aspect ratio for all tasks (default: 16:9) --quality Quality for all tasks (default: 2k) --jobs Recommended worker count metadata (optional) diff --git a/skills/baoyu-comic/SKILL.md b/skills/baoyu-comic/SKILL.md index aceef5f..b12e938 100644 --- a/skills/baoyu-comic/SKILL.md +++ b/skills/baoyu-comic/SKILL.md @@ -216,7 +216,7 @@ Analyze → [Check Existing?] → [Confirm: Style + Reviews] → Storyboard → **7.1 Generate character sheet first**: - **Backup rule**: If `characters/characters.png` exists, rename to `characters/characters-backup-YYYYMMDD-HHMMSS.png` -- Invoke an installed image generation skill such as `baoyu-image-gen` +- Invoke an installed image generation skill such as `baoyu-imagine` - Read that skill's `SKILL.md` and follow its documented interface rather than calling its scripts directly - Use `characters/characters.md` as the prompt-file input - Save output to `characters/characters.png` diff --git a/skills/baoyu-comic/references/workflow.md b/skills/baoyu-comic/references/workflow.md index cb8695c..9e679b7 100644 --- a/skills/baoyu-comic/references/workflow.md +++ b/skills/baoyu-comic/references/workflow.md @@ -433,7 +433,7 @@ With confirmed prompts from Step 5/6: | Supports `--ref` | **Strategy A** | Pass `characters/characters.png` with EVERY page | | Does NOT support `--ref` | **Strategy B** | Prepend character descriptions to EVERY prompt | -**Strategy A: Using `--ref` parameter** (e.g., baoyu-image-gen) +**Strategy A: Using `--ref` parameter** (e.g., baoyu-imagine) - Read the chosen image generation skill's `SKILL.md` - Invoke that installed skill via its documented interface, not by calling its scripts directly diff --git a/skills/baoyu-image-gen/SKILL.md b/skills/baoyu-imagine/SKILL.md similarity index 95% rename from skills/baoyu-image-gen/SKILL.md rename to skills/baoyu-imagine/SKILL.md index d281d96..b5b42f8 100644 --- a/skills/baoyu-image-gen/SKILL.md +++ b/skills/baoyu-imagine/SKILL.md @@ -1,10 +1,10 @@ --- -name: baoyu-image-gen +name: baoyu-imagine description: AI image generation with OpenAI, Azure OpenAI, Google, OpenRouter, DashScope, MiniMax, Jimeng, Seedream and Replicate APIs. Supports text-to-image, reference images, aspect ratios, and batch generation from saved prompt files. Sequential by default; use batch parallel generation when the user already has multiple prompts or wants stable multi-image throughput. Use when user asks to generate, create, or draw images. version: 1.56.4 metadata: openclaw: - homepage: https://github.com/JimLiu/baoyu-skills#baoyu-image-gen + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-imagine requires: anyBins: - bun @@ -30,17 +30,17 @@ Check EXTEND.md existence (priority: project → user): ```bash # macOS, Linux, WSL, Git Bash -test -f .baoyu-skills/baoyu-image-gen/EXTEND.md && echo "project" -test -f "${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-image-gen/EXTEND.md" && echo "xdg" -test -f "$HOME/.baoyu-skills/baoyu-image-gen/EXTEND.md" && echo "user" +test -f .baoyu-skills/baoyu-imagine/EXTEND.md && echo "project" +test -f "${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-imagine/EXTEND.md" && echo "xdg" +test -f "$HOME/.baoyu-skills/baoyu-imagine/EXTEND.md" && echo "user" ``` ```powershell # PowerShell (Windows) -if (Test-Path .baoyu-skills/baoyu-image-gen/EXTEND.md) { "project" } +if (Test-Path .baoyu-skills/baoyu-imagine/EXTEND.md) { "project" } $xdg = if ($env:XDG_CONFIG_HOME) { $env:XDG_CONFIG_HOME } else { "$HOME/.config" } -if (Test-Path "$xdg/baoyu-skills/baoyu-image-gen/EXTEND.md") { "xdg" } -if (Test-Path "$HOME/.baoyu-skills/baoyu-image-gen/EXTEND.md") { "user" } +if (Test-Path "$xdg/baoyu-skills/baoyu-imagine/EXTEND.md") { "xdg" } +if (Test-Path "$HOME/.baoyu-skills/baoyu-imagine/EXTEND.md") { "user" } ``` | Result | Action | @@ -52,8 +52,8 @@ if (Test-Path "$HOME/.baoyu-skills/baoyu-image-gen/EXTEND.md") { "user" } | Path | Location | |------|----------| -| `.baoyu-skills/baoyu-image-gen/EXTEND.md` | Project directory | -| `$HOME/.baoyu-skills/baoyu-image-gen/EXTEND.md` | User home | +| `.baoyu-skills/baoyu-imagine/EXTEND.md` | Project directory | +| `$HOME/.baoyu-skills/baoyu-imagine/EXTEND.md` | User home | **EXTEND.md Supports**: Default provider | Default quality | Default aspect ratio | Default image size | Default models | Batch worker cap | Provider-specific batch limits @@ -252,7 +252,7 @@ When translating CLI args into DashScope behavior: - `--size` wins over `--ar` - For `qwen-image-2.0*`, prefer explicit `--size`; otherwise infer from `--ar` and use the official recommended resolutions below - For `qwen-image-max/plus/image`, only use the five official fixed sizes; if the requested ratio is not covered, switch to `qwen-image-2.0-pro` -- `--quality` is a baoyu-image-gen compatibility preset, not a native DashScope API field. Mapping `normal` / `2k` onto the `qwen-image-2.0*` table below is an implementation inference, not an official API guarantee +- `--quality` is a baoyu-imagine compatibility preset, not a native DashScope API field. Mapping `normal` / `2k` onto the `qwen-image-2.0*` table below is an implementation inference, not an official API guarantee Recommended `qwen-image-2.0*` sizes for common aspect ratios: @@ -267,7 +267,7 @@ Recommended `qwen-image-2.0*` sizes for common aspect ratios: | `16:9` | `1280*720` | `1920*1080` | | `21:9` | `1344*576` | `2048*872` | -DashScope official APIs also expose `negative_prompt`, `prompt_extend`, and `watermark`, but `baoyu-image-gen` does not expose them as dedicated CLI flags today. +DashScope official APIs also expose `negative_prompt`, `prompt_extend`, and `watermark`, but `baoyu-imagine` does not expose them as dedicated CLI flags today. Official references: @@ -294,7 +294,7 @@ MiniMax subject reference notes: - `--ref` files are sent as MiniMax `subject_reference` - MiniMax docs currently describe `subject_reference[].type` as `character` -- Official docs say `image_file` supports public URLs or Base64 Data URLs; `baoyu-image-gen` sends local refs as Data URLs +- Official docs say `image_file` supports public URLs or Base64 Data URLs; `baoyu-imagine` sends local refs as Data URLs - Official docs recommend front-facing portrait references in JPG/JPEG/PNG under 10MB Official references: diff --git a/skills/baoyu-image-gen/references/config/first-time-setup.md b/skills/baoyu-imagine/references/config/first-time-setup.md similarity index 96% rename from skills/baoyu-image-gen/references/config/first-time-setup.md rename to skills/baoyu-imagine/references/config/first-time-setup.md index ed32317..44c17d7 100644 --- a/skills/baoyu-image-gen/references/config/first-time-setup.md +++ b/skills/baoyu-imagine/references/config/first-time-setup.md @@ -1,6 +1,6 @@ --- name: first-time-setup -description: First-time setup and default model selection flow for baoyu-image-gen +description: First-time setup and default model selection flow for baoyu-imagine --- # First-Time Setup @@ -147,8 +147,8 @@ options: | Choice | Path | Scope | |--------|------|-------| -| Project | `.baoyu-skills/baoyu-image-gen/EXTEND.md` | Current project | -| User | `$HOME/.baoyu-skills/baoyu-image-gen/EXTEND.md` | All projects | +| Project | `.baoyu-skills/baoyu-imagine/EXTEND.md` | Current project | +| User | `$HOME/.baoyu-skills/baoyu-imagine/EXTEND.md` | All projects | ### EXTEND.md Template @@ -214,7 +214,7 @@ options: Notes for Azure setup: -- In `baoyu-image-gen`, Azure `--model` / `default_model.azure` should be the Azure deployment name, not just the underlying model family. +- In `baoyu-imagine`, Azure `--model` / `default_model.azure` should be the Azure deployment name, not just the underlying model family. - If the deployment name is custom, save that exact deployment name in `default_model.azure`. ### OpenRouter Model Selection @@ -255,7 +255,7 @@ Notes for DashScope setup: - Prefer `qwen-image-2.0-pro` when the user needs custom `--size`, uncommon ratios like `21:9`, or strong Chinese/English text rendering. - `qwen-image-max` / `qwen-image-plus` / `qwen-image` only support five fixed sizes: `1664*928`, `1472*1104`, `1328*1328`, `1104*1472`, `928*1664`. -- In `baoyu-image-gen`, `quality` is a compatibility preset. It is not a native DashScope parameter. +- In `baoyu-imagine`, `quality` is a compatibility preset. It is not a native DashScope parameter. ### Replicate Model Selection diff --git a/skills/baoyu-image-gen/references/config/preferences-schema.md b/skills/baoyu-imagine/references/config/preferences-schema.md similarity index 98% rename from skills/baoyu-image-gen/references/config/preferences-schema.md rename to skills/baoyu-imagine/references/config/preferences-schema.md index 9ff0a32..4d1a6f4 100644 --- a/skills/baoyu-image-gen/references/config/preferences-schema.md +++ b/skills/baoyu-imagine/references/config/preferences-schema.md @@ -1,6 +1,6 @@ --- name: preferences-schema -description: EXTEND.md YAML schema for baoyu-image-gen user preferences +description: EXTEND.md YAML schema for baoyu-imagine user preferences --- # Preferences Schema diff --git a/skills/baoyu-image-gen/scripts/main.test.ts b/skills/baoyu-imagine/scripts/main.test.ts similarity index 98% rename from skills/baoyu-image-gen/scripts/main.test.ts rename to skills/baoyu-imagine/scripts/main.test.ts index 48baa35..fdd4262 100644 --- a/skills/baoyu-image-gen/scripts/main.test.ts +++ b/skills/baoyu-imagine/scripts/main.test.ts @@ -69,7 +69,7 @@ async function makeTempDir(prefix: string): Promise { return fs.mkdtemp(path.join(os.tmpdir(), prefix)); } -test("parseArgs parses the main image-gen CLI flags", () => { +test("parseArgs parses the main baoyu-imagine CLI flags", () => { const args = parseArgs([ "--promptfiles", "prompts/system.md", @@ -349,7 +349,7 @@ test("batch worker and provider-rate-limit configuration prefer env over EXTEND }); test("loadBatchTasks and createTaskArgs resolve batch-relative paths", async (t) => { - const root = await makeTempDir("baoyu-image-gen-batch-"); + const root = await makeTempDir("baoyu-imagine-batch-"); t.after(() => fs.rm(root, { recursive: true, force: true })); const batchFile = path.join(root, "jobs", "batch.json"); diff --git a/skills/baoyu-image-gen/scripts/main.ts b/skills/baoyu-imagine/scripts/main.ts similarity index 99% rename from skills/baoyu-image-gen/scripts/main.ts rename to skills/baoyu-imagine/scripts/main.ts index d76341a..2a9cbc3 100644 --- a/skills/baoyu-image-gen/scripts/main.ts +++ b/skills/baoyu-imagine/scripts/main.ts @@ -476,8 +476,8 @@ async function loadExtendConfig(): Promise> { const cwd = process.cwd(); const paths = [ - path.join(cwd, ".baoyu-skills", "baoyu-image-gen", "EXTEND.md"), - path.join(home, ".baoyu-skills", "baoyu-image-gen", "EXTEND.md"), + path.join(cwd, ".baoyu-skills", "baoyu-imagine", "EXTEND.md"), + path.join(home, ".baoyu-skills", "baoyu-imagine", "EXTEND.md"), ]; for (const p of paths) { diff --git a/skills/baoyu-image-gen/scripts/providers/azure.test.ts b/skills/baoyu-imagine/scripts/providers/azure.test.ts similarity index 98% rename from skills/baoyu-image-gen/scripts/providers/azure.test.ts rename to skills/baoyu-imagine/scripts/providers/azure.test.ts index 298ac64..26cb0a5 100644 --- a/skills/baoyu-image-gen/scripts/providers/azure.test.ts +++ b/skills/baoyu-imagine/scripts/providers/azure.test.ts @@ -136,7 +136,7 @@ test("Azure image generation routes model to deployment and sends mapped quality }); test("Azure image edits include quality in multipart requests", async (t) => { - const root = await makeTempDir("baoyu-image-gen-azure-"); + const root = await makeTempDir("baoyu-imagine-azure-"); t.after(() => fs.rm(root, { recursive: true, force: true })); const pngPath = path.join(root, "ref.png"); diff --git a/skills/baoyu-image-gen/scripts/providers/azure.ts b/skills/baoyu-imagine/scripts/providers/azure.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/azure.ts rename to skills/baoyu-imagine/scripts/providers/azure.ts diff --git a/skills/baoyu-image-gen/scripts/providers/dashscope.test.ts b/skills/baoyu-imagine/scripts/providers/dashscope.test.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/dashscope.test.ts rename to skills/baoyu-imagine/scripts/providers/dashscope.test.ts diff --git a/skills/baoyu-image-gen/scripts/providers/dashscope.ts b/skills/baoyu-imagine/scripts/providers/dashscope.ts similarity index 99% rename from skills/baoyu-image-gen/scripts/providers/dashscope.ts rename to skills/baoyu-imagine/scripts/providers/dashscope.ts index 60228c1..6008ba6 100644 --- a/skills/baoyu-image-gen/scripts/providers/dashscope.ts +++ b/skills/baoyu-imagine/scripts/providers/dashscope.ts @@ -421,7 +421,7 @@ export async function generateImage( if (args.referenceImages.length > 0) { throw new Error( - "Reference images are not supported with DashScope provider in baoyu-image-gen. Use --provider google with a Gemini multimodal model." + "Reference images are not supported with DashScope provider in baoyu-imagine. Use --provider google with a Gemini multimodal model." ); } diff --git a/skills/baoyu-image-gen/scripts/providers/google.test.ts b/skills/baoyu-imagine/scripts/providers/google.test.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/google.test.ts rename to skills/baoyu-imagine/scripts/providers/google.test.ts diff --git a/skills/baoyu-image-gen/scripts/providers/google.ts b/skills/baoyu-imagine/scripts/providers/google.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/google.ts rename to skills/baoyu-imagine/scripts/providers/google.ts diff --git a/skills/baoyu-image-gen/scripts/providers/jimeng.test.ts b/skills/baoyu-imagine/scripts/providers/jimeng.test.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/jimeng.test.ts rename to skills/baoyu-imagine/scripts/providers/jimeng.test.ts diff --git a/skills/baoyu-image-gen/scripts/providers/jimeng.ts b/skills/baoyu-imagine/scripts/providers/jimeng.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/jimeng.ts rename to skills/baoyu-imagine/scripts/providers/jimeng.ts diff --git a/skills/baoyu-image-gen/scripts/providers/minimax.test.ts b/skills/baoyu-imagine/scripts/providers/minimax.test.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/minimax.test.ts rename to skills/baoyu-imagine/scripts/providers/minimax.test.ts diff --git a/skills/baoyu-image-gen/scripts/providers/minimax.ts b/skills/baoyu-imagine/scripts/providers/minimax.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/minimax.ts rename to skills/baoyu-imagine/scripts/providers/minimax.ts diff --git a/skills/baoyu-image-gen/scripts/providers/openai.test.ts b/skills/baoyu-imagine/scripts/providers/openai.test.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/openai.test.ts rename to skills/baoyu-imagine/scripts/providers/openai.test.ts diff --git a/skills/baoyu-image-gen/scripts/providers/openai.ts b/skills/baoyu-imagine/scripts/providers/openai.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/openai.ts rename to skills/baoyu-imagine/scripts/providers/openai.ts diff --git a/skills/baoyu-image-gen/scripts/providers/openrouter.test.ts b/skills/baoyu-imagine/scripts/providers/openrouter.test.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/openrouter.test.ts rename to skills/baoyu-imagine/scripts/providers/openrouter.test.ts diff --git a/skills/baoyu-image-gen/scripts/providers/openrouter.ts b/skills/baoyu-imagine/scripts/providers/openrouter.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/openrouter.ts rename to skills/baoyu-imagine/scripts/providers/openrouter.ts diff --git a/skills/baoyu-image-gen/scripts/providers/replicate.test.ts b/skills/baoyu-imagine/scripts/providers/replicate.test.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/replicate.test.ts rename to skills/baoyu-imagine/scripts/providers/replicate.test.ts diff --git a/skills/baoyu-image-gen/scripts/providers/replicate.ts b/skills/baoyu-imagine/scripts/providers/replicate.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/replicate.ts rename to skills/baoyu-imagine/scripts/providers/replicate.ts diff --git a/skills/baoyu-image-gen/scripts/providers/seedream.test.ts b/skills/baoyu-imagine/scripts/providers/seedream.test.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/seedream.test.ts rename to skills/baoyu-imagine/scripts/providers/seedream.test.ts diff --git a/skills/baoyu-image-gen/scripts/providers/seedream.ts b/skills/baoyu-imagine/scripts/providers/seedream.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/providers/seedream.ts rename to skills/baoyu-imagine/scripts/providers/seedream.ts diff --git a/skills/baoyu-image-gen/scripts/types.ts b/skills/baoyu-imagine/scripts/types.ts similarity index 100% rename from skills/baoyu-image-gen/scripts/types.ts rename to skills/baoyu-imagine/scripts/types.ts