Loading...
Loading...
Compare original and translation side by side
SKILL_DIR${SKILL_DIR}/scripts/main.tsSKILL_DIR${SKILL_DIR}/scripts/main.tsundefinedundefined
┌──────────────────────────────────────────────────┬───────────────────┐
│ Path │ Location │
├──────────────────────────────────────────────────┼───────────────────┤
│ .baoyu-skills/baoyu-image-gen/EXTEND.md │ Project directory │
├──────────────────────────────────────────────────┼───────────────────┤
│ $HOME/.baoyu-skills/baoyu-image-gen/EXTEND.md │ User home │
└──────────────────────────────────────────────────┴───────────────────┘
┌───────────┬───────────────────────────────────────────────────────────────────────────┐
│ Result │ Action │
├───────────┼───────────────────────────────────────────────────────────────────────────┤
│ Found │ Read, parse, apply settings │
├───────────┼───────────────────────────────────────────────────────────────────────────┤
│ Not found │ Use defaults │
└───────────┴───────────────────────────────────────────────────────────────────────────┘
**EXTEND.md Supports**: Default provider | Default quality | Default aspect ratio
┌──────────────────────────────────────────────────┬───────────────────┐
│ 路径 │ 位置 │
├──────────────────────────────────────────────────┼───────────────────┤
│ .baoyu-skills/baoyu-image-gen/EXTEND.md │ 项目目录 │
├──────────────────────────────────────────────────┼───────────────────┤
│ $HOME/.baoyu-skills/baoyu-image-gen/EXTEND.md │ 用户主目录 │
└──────────────────────────────────────────────────┴───────────────────┘
┌───────────┬───────────────────────────────────────────────────────────────────────────┐
│ 结果 │ 操作 │
├───────────┼───────────────────────────────────────────────────────────────────────────┤
│ 找到 │ 读取、解析并应用设置 │
├───────────┼───────────────────────────────────────────────────────────────────────────┤
│ 未找到 │ 使用默认设置 │
└───────────┴───────────────────────────────────────────────────────────────────────────┘
**EXTEND.md支持配置**:默认提供商 | 默认质量 | 默认宽高比undefinedundefinedundefinedundefined| Option | Description |
|---|---|
| Prompt text |
| Read prompt from files (concatenated) |
| Output image path (required) |
| Force provider (default: google) |
| Model ID |
| Aspect ratio (e.g., |
| Size (e.g., |
| Quality preset (default: 2k) |
| Image size for Google (default: from quality) |
| Reference images (Google multimodal only) |
| Number of images |
| JSON output |
| 选项参数 | 说明 |
|---|---|
| 提示文本 |
| 从文件读取提示词(多文件内容会拼接) |
| 输出图片路径(必填) |
| 强制指定提供商(默认:google) |
| 模型ID |
| 宽高比(例如: |
| 尺寸(例如: |
| 质量预设(默认:2k) |
| Google模型的图片尺寸(默认:跟随质量预设) |
| 参考图片(仅Google多模态模型支持) |
| 生成图片数量 |
| 输出JSON格式结果 |
| Variable | Description |
|---|---|
| OpenAI API key |
| Google API key |
| OpenAI model override |
| Google model override |
| Custom OpenAI endpoint |
| Custom Google endpoint |
<cwd>/.baoyu-skills/.env~/.baoyu-skills/.env| 变量名 | 说明 |
|---|---|
| OpenAI API密钥 |
| Google API密钥 |
| 覆盖OpenAI默认模型 |
| 覆盖Google默认模型 |
| 自定义OpenAI端点地址 |
| 自定义Google端点地址 |
<cwd>/.baoyu-skills/.env~/.baoyu-skills/.env--provider--provider| Preset | Google imageSize | OpenAI Size | Use Case |
|---|---|---|---|
| 1K | 1024px | Quick previews |
| 2K | 2048px | Covers, illustrations, infographics |
--imageSize 1K|2K|4K| 预设值 | Google imageSize | OpenAI 尺寸 | 使用场景 |
|---|---|---|---|
| 1K | 1024px | 快速预览 |
| 2K | 2048px | 封面图、插画、信息图 |
--imageSize 1K|2K|4K1:116:99:164:33:42.35:1imageConfig.aspectRatioaspectRatio1:116:99:164:33:42.35:1imageConfig.aspectRatioaspectRatio