baoyu-cover-image

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Cover Image Generator

封面图生成器

Generate elegant cover images for articles with 5-dimensional customization.
可通过5维度自定义生成精美的文章封面图。

Usage

使用方法

bash
undefined
bash
undefined

Auto-select all dimensions based on content

根据内容自动选择所有维度

/baoyu-cover-image path/to/article.md
/baoyu-cover-image path/to/article.md

Quick mode: skip confirmation, use auto-selection

快速模式:跳过确认,使用自动选择

/baoyu-cover-image article.md --quick
/baoyu-cover-image article.md --quick

Specify dimensions (new 5D system)

指定维度(全新5D系统)

/baoyu-cover-image article.md --type conceptual --palette warm --rendering flat-vector /baoyu-cover-image article.md --text title-subtitle --mood bold
/baoyu-cover-image article.md --type conceptual --palette warm --rendering flat-vector /baoyu-cover-image article.md --text title-subtitle --mood bold

Style presets (backward-compatible shorthand for palette + rendering)

风格预设(palette + rendering的向后兼容简写)

/baoyu-cover-image article.md --style blueprint /baoyu-cover-image article.md --style blueprint --rendering hand-drawn # override rendering
/baoyu-cover-image article.md --style blueprint /baoyu-cover-image article.md --style blueprint --rendering hand-drawn # 覆盖渲染风格

Visual only (no title text)

仅展示视觉效果(无标题文本)

/baoyu-cover-image article.md --no-title
/baoyu-cover-image article.md --no-title

Direct content input

直接输入内容

/baoyu-cover-image [paste content]
/baoyu-cover-image [paste content]

Direct input with options

带选项的直接输入

/baoyu-cover-image --palette mono --rendering digital --aspect 1:1 --quick [paste content]
/baoyu-cover-image --palette mono --rendering digital --aspect 1:1 --quick [paste content]

With reference images

结合参考图片

/baoyu-cover-image article.md --ref style-ref.png /baoyu-cover-image article.md --ref ref1.png ref2.png --quick
undefined
/baoyu-cover-image article.md --ref style-ref.png /baoyu-cover-image article.md --ref ref1.png ref2.png --quick
undefined

Options

选项

OptionDescription
--type <name>
Cover type: hero, conceptual, typography, metaphor, scene, minimal
--palette <name>
Color palette: warm, elegant, cool, dark, earth, vivid, pastel, mono, retro
--rendering <name>
Rendering style: flat-vector, hand-drawn, painterly, digital, pixel, chalk
--style <name>
Preset shorthand (expands to palette + rendering, see Style Presets)
--text <level>
Text density: none, title-only, title-subtitle, text-rich
--mood <level>
Emotional intensity: subtle, balanced, bold
--aspect <ratio>
16:9 (default), 2.35:1, 4:3, 3:2, 1:1, 3:4
--lang <code>
Title language (en, zh, ja, etc.)
--no-title
Alias for
--text none
--quick
Skip confirmation, use auto-selection for missing dimensions
--ref <files...>
Reference images for style/composition guidance
选项描述
--type <name>
封面类型:hero、conceptual、typography、metaphor、scene、minimal
--palette <name>
调色板:warm、elegant、cool、dark、earth、vivid、pastel、mono、retro
--rendering <name>
渲染风格:flat-vector、hand-drawn、painterly、digital、pixel、chalk
--style <name>
预设简写(展开为palette + rendering,详见Style Presets
--text <level>
文本密度:none、title-only、title-subtitle、text-rich
--mood <level>
情感强度:subtle、balanced、bold
--aspect <ratio>
16:9(默认)、2.35:1、4:3、3:2、1:1、3:4
--lang <code>
标题语言(en、zh、ja等)
--no-title
--text none
的别名
--quick
跳过确认,对未指定的维度使用自动选择
--ref <files...>
用于风格/构图参考的图片

Five Dimensions

五个维度

DimensionControlsValuesDefault
TypeVisual composition, information structurehero, conceptual, typography, metaphor, scene, minimalauto
PaletteColors, color scheme, decorative hintswarm, elegant, cool, dark, earth, vivid, pastel, mono, retroauto
RenderingLine quality, texture, depth, element styleflat-vector, hand-drawn, painterly, digital, pixel, chalkauto
TextText density, information hierarchynone, title-only, title-subtitle, text-richtitle-only
MoodEmotional intensity, visual weightsubtle, balanced, boldbalanced
Dimensions can be freely combined. Auto-selection rules: references/auto-selection.md
维度控制项取值默认值
Type视觉构图、信息结构hero、conceptual、typography、metaphor、scene、minimalauto
Palette色彩、配色方案、装饰细节warm、elegant、cool、dark、earth、vivid、pastel、mono、retroauto
Rendering线条质感、纹理、深度、元素风格flat-vector、hand-drawn、painterly、digital、pixel、chalkauto
Text文本密度、信息层级none、title-only、title-subtitle、text-richtitle-only
Mood情感强度、视觉权重subtle、balanced、boldbalanced
维度可自由组合。自动选择规则:references/auto-selection.md

Type Gallery

类型图库

TypeDescriptionBest For
hero
Large visual impact, title overlayProduct launch, brand promotion, major announcements
conceptual
Concept visualization, abstract core ideasTechnical articles, methodology, architecture design
typography
Text-focused layout, prominent titleOpinion pieces, quotes, insights
metaphor
Visual metaphor, concrete expressing abstractPhilosophy, growth, personal development
scene
Atmospheric scene, narrative feelStories, travel, lifestyle
minimal
Minimalist composition, generous whitespaceZen, focus, core concepts
Type composition details: references/types.md
类型描述适用场景
hero
视觉冲击力强,标题叠加产品发布、品牌推广、重大公告
conceptual
概念可视化,抽象核心思想技术文章、方法论、架构设计
typography
文本聚焦布局,标题突出观点文章、名言警句、洞察分享
metaphor
视觉隐喻,具象化抽象内容哲学、成长、个人发展
scene
氛围感场景,叙事感强故事、旅行、生活方式
minimal
极简构图,留白充足禅意、专注、核心概念
类型构图细节:references/types.md

Palette Gallery

调色板图库

PaletteVibePrimary Colors
warm
Friendly, approachableOrange, golden yellow, terracotta
elegant
Sophisticated, refinedSoft coral, muted teal, dusty rose
cool
Technical, professionalEngineering blue, navy, cyan
dark
Cinematic, premiumElectric purple, cyan, magenta
earth
Natural, organicForest green, sage, earth brown
vivid
Energetic, boldBright red, neon green, electric blue
pastel
Gentle, whimsicalSoft pink, mint, lavender
mono
Clean, focusedBlack, near-black, white
retro
Nostalgic, vintageMuted orange, dusty pink, maroon
Palette definitions: references/palettes/
调色板氛围主色调
warm
友好、亲切橙色、金黄色、赤陶色
elegant
精致、高雅柔和珊瑚色、暗蓝绿色、灰粉色
cool
科技感、专业工程蓝、藏青、青色
dark
电影感、高端电光紫、青色、品红
earth
自然、有机森林绿、鼠尾草绿、土棕色
vivid
活力、大胆亮红、霓虹绿、电光蓝
pastel
柔和、奇幻浅粉、薄荷绿、薰衣草紫
mono
简洁、聚焦黑、近黑、白
retro
怀旧、复古暗橙色、灰粉色、栗色
调色板定义:references/palettes/

Rendering Gallery

渲染风格图库

RenderingDescriptionKey Characteristics
flat-vector
Clean modern vectorUniform outlines, flat fills, geometric icons
hand-drawn
Sketchy organic illustrationImperfect strokes, paper texture, doodles
painterly
Soft watercolor/paintBrush strokes, color bleeds, soft edges
digital
Polished modern digitalPrecise edges, subtle gradients, UI components
pixel
Retro 8-bit pixel artPixel grid, dithering, chunky shapes
chalk
Chalk on blackboardChalk strokes, dust effects, board texture
Rendering definitions: references/renderings/
渲染风格描述核心特征
flat-vector
简洁现代矢量风统一轮廓、平涂填充、几何图标
hand-drawn
手绘有机插画风不规则笔触、纸张纹理、涂鸦感
painterly
柔和水彩/油画风笔触痕迹、色彩晕染、柔和边缘
digital
精致现代数字风精准边缘、微妙渐变、UI组件感
pixel
复古8位像素风像素网格、抖动效果、块状造型
chalk
黑板粉笔风粉笔笔触、粉尘效果、黑板纹理
渲染风格定义:references/renderings/

Text & Mood

文本与氛围

Text LevelTitleSubtitleTagsUse Case
none
---Pure visual, no text
title-only
--Simple headline (default)
title-subtitle
-Title + supporting context
text-rich
✓ (2-4)Information-dense
MoodContrastSaturationWeightUse Case
subtle
LowMutedLightCorporate, thought leadership
balanced
MediumNormalMediumGeneral articles (default)
bold
HighVividHeavyAnnouncements, promotions
Full guides: references/dimensions/text.md | references/dimensions/mood.md
文本层级标题副标题标签适用场景
none
---纯视觉效果,无文本
title-only
--简单标题(默认)
title-subtitle
-标题+辅助说明
text-rich
✓(2-4个)信息密集型
氛围对比度饱和度视觉权重适用场景
subtle
柔和轻量企业内容、思想领导力
balanced
中等正常中等通用文章(默认)
bold
鲜艳厚重公告、推广内容
完整指南:references/dimensions/text.md | references/dimensions/mood.md

Style Presets & Compatibility

风格预设与兼容性

  • Style Presets:
    --style X
    expands to palette + rendering. See references/style-presets.md
  • Compatibility Matrices: Palette×Rendering, Type×Rendering, Type×Text, Type×Mood. See references/compatibility.md
    • ✓✓ = highly recommended | ✓ = compatible | ✗ = not recommended
  • 风格预设
    --style X
    展开为palette + rendering。详见references/style-presets.md
  • 兼容性矩阵:Palette×Rendering、Type×Rendering、Type×Text、Type×Mood。详见references/compatibility.md
    • ✓✓ = 高度推荐 | ✓ = 兼容 | ✗ = 不推荐

File Structure

文件结构

Output directory depends on
default_output_dir
preference:
PreferenceOutput Path
same-dir
{article-dir}/
imgs-subdir
{article-dir}/imgs/
independent
(default)
cover-image/{topic-slug}/
Pasted content
cover-image/{topic-slug}/
(always)
<output-dir>/
├── source-{slug}.{ext}    # Source files (text, images, etc.)
├── refs/                  # Reference images (if provided)
│   ├── ref-01-{slug}.{ext}
│   ├── ref-01-{slug}.md   # Description file (optional)
│   ├── ref-02-{slug}.{ext}
│   ├── ref-02-{slug}.md   # Description file (optional)
│   └── extracted-style.md # Verbally extracted style (if no file path)
├── prompts/cover.md       # Generation prompt
└── cover.png              # Output image
Slug: Extract main topic (2-4 words, kebab-case). Example: "The Future of AI" →
future-of-ai
Conflict: If directory exists, append timestamp:
{topic-slug}-YYYYMMDD-HHMMSS
Source Files: Copy all sources with naming
source-{slug}.{ext}
(multiple supported)
输出目录取决于
default_output_dir
偏好设置:
偏好设置输出路径
same-dir
{article-dir}/
imgs-subdir
{article-dir}/imgs/
independent
(默认)
cover-image/{topic-slug}/
粘贴的内容
cover-image/{topic-slug}/
(始终)
<output-dir>/
├── source-{slug}.{ext}    # 源文件(文本、图片等)
├── refs/                  # 参考图片(若提供)
│   ├── ref-01-{slug}.{ext}
│   ├── ref-01-{slug}.md   # 描述文件(可选)
│   ├── ref-02-{slug}.{ext}
│   ├── ref-02-{slug}.md   # 描述文件(可选)
│   └── extracted-style.md # 提取的风格描述(若无文件路径)
├── prompts/cover.md       # 生成提示词
└── cover.png              # 输出图片
Slug:提取主题核心(2-4个单词,短横线分隔)。示例:"The Future of AI" →
future-of-ai
冲突处理:若目录已存在,追加时间戳:
{topic-slug}-YYYYMMDD-HHMMSS
源文件:复制所有源文件并命名为
source-{slug}.{ext}
(支持多个)

Workflow

工作流

Progress Checklist

进度检查清单

Cover Image Progress:
- [ ] Step 0: Check preferences (EXTEND.md) ⛔ BLOCKING
  - [ ] Found → load preferences → continue
  - [ ] Not found → run first-time setup → MUST complete before Step 1
- [ ] Step 1: Analyze content + determine output directory
  - [ ] 1.1 Reference images ⚠️ (if provided)
    - [ ] File path given → saved to refs/ ✓
    - [ ] No path → asked user OR extracted verbally
  - [ ] 1.2 Output directory determined
- [ ] Step 2: Confirm options (5 dimensions) ⚠️ REQUIRED unless --quick or all specified
- [ ] Step 3: Create prompt
  - [ ] References in prompt ONLY if files exist in refs/
  - [ ] Extracted style/palette appended to prompt body (if no file)
- [ ] Step 4: Generate image
  - [ ] 4.1 References verified before generation
  - [ ] 4.2 Pass refs via --ref if skill supports AND files exist
- [ ] Step 5: Completion report
封面图生成进度:
- [ ] 步骤0:检查偏好设置(EXTEND.md) ⛔ 阻塞项
  - [ ] 找到 → 加载偏好设置 → 继续
  - [ ] 未找到 → 运行首次设置 → 必须完成后才能进入步骤1
- [ ] 步骤1:分析内容 + 确定输出目录
  - [ ] 1.1 参考图片 ⚠️(若提供)
    - [ ] 提供文件路径 → 保存至refs/ ✓
    - [ ] 无路径 → 询问用户或提取描述
  - [ ] 1.2 确定输出目录
- [ ] 步骤2:确认选项(5个维度) ⚠️ 必需,除非使用--quick或所有参数已指定
- [ ] 步骤3:创建提示词
  - [ ] 仅当refs/目录存在文件时,才在提示词中加入参考
  - [ ] 若无文件,将提取的风格/调色板追加至提示词主体
- [ ] 步骤4:生成图片
  - [ ] 4.1 生成前验证参考内容
  - [ ] 4.2 若技能支持且文件存在,通过--ref传递参考图片
- [ ] 步骤5:完成报告

Flow

流程

Input → [Step 0: Preferences] ─┬─ Found → Continue
                               └─ Not found → First-Time Setup ⛔ BLOCKING
                                              └─ Complete setup → Save EXTEND.md → Continue
        ┌───────────────────────────────────────────────────────────────────────────┘
Analyze + Save Refs → [Output Dir ⚠️] → [Confirm: 5 Dimensions] → Prompt → Generate → Complete
                                        (skip if --quick or all specified)
输入 → [步骤0:偏好设置] ─┬─ 找到 → 继续
                               └─ 未找到 → 首次设置 ⛔ 阻塞项
                                              └─ 完成设置 → 保存EXTEND.md → 继续
        ┌───────────────────────────────────────────────────────────────────────────┘
分析 + 保存参考图片 → [输出目录 ⚠️] → [确认:5个维度] → 提示词 → 生成 → 完成
                                        (若使用--quick或所有参数已指定则跳过)

Step 0: Load Preferences (EXTEND.md) ⛔ BLOCKING

步骤0:加载偏好设置(EXTEND.md) ⛔ 阻塞项

Purpose: Load user preferences or run first-time setup.
CRITICAL: If EXTEND.md not found, MUST complete first-time setup before ANY other questions or steps. Do NOT proceed to content analysis, do NOT ask about reference images, do NOT ask about dimensions — ONLY complete the preferences setup first.
Use Bash to check EXTEND.md existence (priority order):
bash
undefined
目的:加载用户偏好设置或运行首次设置。
关键:若未找到EXTEND.md,必须先完成首次设置,才能进行任何其他步骤。不得继续内容分析、询问参考图片或维度设置,仅能完成偏好设置。
使用Bash检查EXTEND.md是否存在(优先级顺序):
bash
undefined

Check project-level first

先检查项目级

test -f .baoyu-skills/baoyu-cover-image/EXTEND.md && echo "project"
test -f .baoyu-skills/baoyu-cover-image/EXTEND.md && echo "project"

Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)

再检查用户级(跨平台:$HOME适用于macOS/Linux/WSL)

test -f "$HOME/.baoyu-skills/baoyu-cover-image/EXTEND.md" && echo "user"

| Result | Action |
|--------|--------|
| Found | Read, parse, display preferences summary → Continue to Step 1 |
| Not found | ⛔ **BLOCKING**: Run first-time setup ONLY ([references/config/first-time-setup.md](references/config/first-time-setup.md)) → Complete and save EXTEND.md → Then continue to Step 1 |

**Preferences Summary** (when found):
Preferences loaded from [project/user]: • Watermark: [enabled/disabled] [content if enabled] • Type/Palette/Rendering: [value or "auto"] • Text: [value or "title-only"] | Mood: [value or "balanced"] • Aspect: [default_aspect] | Output: [dir or "not set — will ask in Step 1.5"] • Quick mode: [enabled/disabled] | Language: [value or "auto"]

**EXTEND.md Supports**: Watermark | Preferred type | Preferred palette | Preferred rendering | Preferred text | Preferred mood | Default aspect ratio | Default output directory | Quick mode | Custom palette definitions | Language preference

Schema: [references/config/preferences-schema.md](references/config/preferences-schema.md)
test -f "$HOME/.baoyu-skills/baoyu-cover-image/EXTEND.md" && echo "user"

| 结果 | 操作 |
|--------|--------|
| 找到 | 读取、解析、展示偏好设置摘要 → 进入步骤1 |
| 未找到 | ⛔ **阻塞项**:仅运行首次设置([references/config/first-time-setup.md](references/config/first-time-setup.md)) → 完成设置并保存EXTEND.md → 进入步骤1 |

**偏好设置摘要**(找到时):
从[项目/用户]加载偏好设置: • 水印:[启用/禁用] [启用时的内容] • Type/Palette/Rendering:[取值或“auto”] • Text:[取值或“title-only”] | Mood:[取值或“balanced”] • 比例:[default_aspect] | 输出:[目录或“未设置 — 将在步骤1.5询问”] • 快速模式:[启用/禁用] | 语言:[取值或“auto”]

**EXTEND.md支持**:水印 | 首选type | 首选palette | 首选rendering | 首选text | 首选mood | 默认比例 | 默认输出目录 | 快速模式 | 自定义调色板定义 | 语言偏好

Schema:[references/config/preferences-schema.md](references/config/preferences-schema.md)

Step 1: Analyze Content

步骤1:分析内容

1.0 Detect & Save Reference Images ⚠️ REQUIRED if images provided
Check if user provided reference images. Handle based on input type:
Input TypeAction
Image file path providedCopy to
refs/
subdirectory → can use
--ref
Image in conversation (no path)ASK user for file path with AskUserQuestion
User can't provide pathExtract style/palette verbally → append to prompt (NO frontmatter references)
CRITICAL: Only add
references
to prompt frontmatter if files are ACTUALLY SAVED to
refs/
directory.
If user provides file path:
  1. Copy to
    refs/ref-NN-{slug}.{ext}
    (NN = 01, 02, ...)
  2. Create description:
    refs/ref-NN-{slug}.md
  3. Verify files exist before proceeding
If user can't provide path (extracted verbally):
  1. Analyze image visually, extract: colors, style, composition
  2. Create
    refs/extracted-style.md
    with extracted info
  3. DO NOT add
    references
    to prompt frontmatter
  4. Instead, append extracted style/colors directly to prompt text
Description File Format (only when file saved):
yaml
---
ref_id: NN
filename: ref-NN-{slug}.{ext}
usage: direct | style | palette
---
[User's description or auto-generated description]
UsageWhen to Use
direct
Reference matches desired output closely
style
Extract visual style characteristics only
palette
Extract color scheme only
Verification (only for saved files):
Reference Images Saved:
- ref-01-{slug}.png ✓ (can use --ref)
- ref-02-{slug}.png ✓ (can use --ref)
Or for extracted style:
Reference Style Extracted (no file):
- Colors: #E8756D coral, #7ECFC0 mint...
- Style: minimal flat vector, clean lines...
→ Will append to prompt text (not --ref)

1.1 Save Source Content
  • If pasted, save to
    source.md
    in target directory; if file path, use as-is
  • Backup rule: If
    source.md
    exists, rename to
    source-backup-YYYYMMDD-HHMMSS.md
1.2 Content Analysis
  • Extract topic, core message, tone, keywords
  • Identify visual metaphors
  • Detect content type
1.3 Reference Image Analysis (if provided in Step 1.0)
For each reference image:
AnalysisDescription
Visual characteristicsStyle, colors, composition
Content/subjectWhat the reference depicts
Style matchWhich type/palette/rendering align
Usage recommendation
direct
/
style
/
palette
1.4 Language Detection
  • Detect source language
  • Note user's input language
  • Compare with EXTEND.md preference
1.5 Determine Output Directory
  • Per File Structure rules
  • If no
    default_output_dir
    preference + file path input, include in Step 2 Q4
1.0 检测并保存参考图片 ⚠️ 若提供图片则必需
检查用户是否提供参考图片,根据输入类型处理:
输入类型操作
提供图片文件路径复制至
refs/
子目录 → 可使用
--ref
对话中包含图片(无路径)通过AskUserQuestion询问用户文件路径
用户无法提供路径口头提取风格/调色板 → 追加至提示词(不添加前置引用)
关键:仅当文件实际保存至
refs/
目录时,才在提示词的YAML前置部分添加
references
字段。
若用户提供文件路径
  1. 复制至
    refs/ref-NN-{slug}.{ext}
    (NN = 01, 02, ...)
  2. 创建描述文件:
    refs/ref-NN-{slug}.md
  3. 继续前验证文件是否存在
若用户无法提供路径(口头提取):
  1. 视觉分析图片,提取:色彩、风格、构图
  2. 创建
    refs/extracted-style.md
    ,写入提取的信息
  3. 不在提示词前置部分添加
    references
    字段
  4. 而是将提取的风格/色彩直接追加至提示词文本
描述文件格式(仅当文件已保存时):
yaml
---
ref_id: NN
filename: ref-NN-{slug}.{ext}
usage: direct | style | palette
---
[用户描述或自动生成的描述]
Usage使用场景
direct
参考图片与期望输出高度匹配
style
仅提取视觉风格特征
palette
仅提取配色方案
验证(仅针对已保存的文件):
参考图片已保存:
- ref-01-{slug}.png ✓(可使用--ref)
- ref-02-{slug}.png ✓(可使用--ref)
针对口头提取的风格
提取参考风格(无文件):
- 色彩:#E8756D珊瑚色、#7ECFC0薄荷绿...
- 风格:极简扁平矢量、简洁线条...
→ 将追加至提示词文本(不使用--ref)

1.1 保存源内容
  • 若为粘贴内容,保存至目标目录的
    source.md
    ;若为文件路径,直接使用原文件
  • 备份规则:若
    source.md
    已存在,重命名为
    source-backup-YYYYMMDD-HHMMSS.md
1.2 内容分析
  • 提取主题、核心信息、语气、关键词
  • 识别视觉隐喻
  • 检测内容类型
1.3 参考图片分析(若步骤1.0中提供)
针对每张参考图片:
分析项描述
视觉特征风格、色彩、构图
内容/主体参考图片描绘的对象
风格匹配对应的type/palette/rendering
使用建议
direct
/
style
/
palette
1.4 语言检测
  • 检测源内容语言
  • 记录用户输入语言
  • 与EXTEND.md偏好设置对比
1.5 确定输出目录
  • 遵循文件结构规则
  • 若无
    default_output_dir
    偏好且为文件路径输入,将在步骤2的问题4中询问

Step 2: Confirm Options ⚠️

步骤2:确认选项 ⚠️

Validate all 5 dimensions + aspect ratio. Full confirmation flow: references/workflow/confirm-options.md
Skip Conditions:
ConditionSkippedStill Asked
--quick
or
quick_mode: true
5 dimensionsAspect ratio (unless
--aspect
)
All 5 +
--aspect
specified
AllNone
验证所有5个维度 + 比例。完整确认流程:references/workflow/confirm-options.md
跳过条件
条件跳过项仍需询问项
--quick
quick_mode: true
5个维度比例(除非指定
--aspect
所有5个维度 +
--aspect
已指定
全部

Step 3: Create Prompt

步骤3:创建提示词

Backup rule: If
prompts/cover.md
exists, rename to
prompts/cover-backup-YYYYMMDD-HHMMSS.md
Save to
prompts/cover.md
. Full template: references/workflow/prompt-template.md
CRITICAL - References in YAML Frontmatter:
When reference files are saved to
refs/
, MUST add
references
field in frontmatter
:
yaml
---
type: cover
palette: warm
rendering: flat-vector
references:
  - ref_id: 01
    filename: refs/ref-01-podcast-thumbnail.jpg
    usage: style
---
RuleAction
Files saved to
refs/
Add to frontmatter
references
list
Style extracted verbally (no file)Omit
references
field, describe in body
Before writingVerify:
test -f refs/ref-NN-{slug}.{ext}
Reference Embedding:
SituationFrontmatterBody
Reference file saved to
refs/
Add to
references
Brief style note
Style extracted verbally (no file)Omit
references
Full style description
File in frontmatter but doesn't existERROR - fix or remove
备份规则:若
prompts/cover.md
已存在,重命名为
prompts/cover-backup-YYYYMMDD-HHMMSS.md
保存至
prompts/cover.md
。完整模板:references/workflow/prompt-template.md
关键 - YAML前置部分的引用
当参考文件已保存至
refs/
目录时,必须在前置部分添加
references
字段
yaml
---
type: cover
palette: warm
rendering: flat-vector
references:
  - ref_id: 01
    filename: refs/ref-01-podcast-thumbnail.jpg
    usage: style
---
规则操作
文件已保存至
refs/
添加至前置部分的
references
列表
口头提取风格(无文件)省略
references
字段,在主体中描述
写入前验证:
test -f refs/ref-NN-{slug}.{ext}
引用嵌入
场景前置部分主体部分
参考文件已保存至
refs/
添加至
references
简要风格说明
口头提取风格(无文件)省略
references
完整风格描述
前置部分包含文件但实际不存在错误 - 修复提示词或移除引用

Step 4: Generate Image

步骤4:生成图片

4.1 Backup existing
cover.png
cover-backup-YYYYMMDD-HHMMSS.png
(if regenerating)
4.2 Check available image generation skills; if multiple, ask user preference
4.3 Process References ⚠️ REQUIRED if references in frontmatter
Read
references
from prompt frontmatter
and process each entry:
  1. Parse frontmatter to get references list:
    yaml
    references:
      - ref_id: 01
        filename: refs/ref-01-podcast-thumbnail.jpg
        usage: style
  2. VERIFY each file exists:
    bash
    test -f refs/ref-NN-{slug}.{ext} && echo "exists" || echo "MISSING"
    • If file MISSING → ERROR, fix prompt or remove from references
    • If file exists → proceed with processing
  3. Process based on
    usage
    type:
UsageActionExample
direct
Add reference path to
--ref
parameter
--ref refs/ref-01-brand.png
style
Analyze reference, append style traits to prompt"Style: clean lines, gradient backgrounds..."
palette
Extract colors from reference, append to prompt"Colors: #E8756D coral, #7ECFC0 mint..."
  1. Check image generation skill capability:
Skill Supports
--ref
Action
Yes (e.g., baoyu-image-gen with Google)Pass reference images via
--ref
NoConvert to text description, append to prompt
Verification: Before generating, confirm reference processing:
Reference Processing:
- ref-01-brand.png: using as direct reference ✓
- ref-02-style.png: extracted palette ✓
4.4 Generate
  1. Call selected skill with prompt file path, output path (
    cover.png
    ), aspect ratio
  2. If references with
    direct
    usage AND skill supports
    --ref
    : include
    --ref
    parameter
  3. On failure: auto-retry once before reporting error
4.1 备份现有
cover.png
cover-backup-YYYYMMDD-HHMMSS.png
(若重新生成)
4.2 检查可用的图片生成技能;若有多个,询问用户偏好
4.3 处理参考内容 ⚠️ 若前置部分包含引用则必需
**从提示词的YAML前置部分读取
references
**并处理每个条目:
  1. 解析前置部分获取引用列表:
    yaml
    references:
      - ref_id: 01
        filename: refs/ref-01-podcast-thumbnail.jpg
        usage: style
  2. 验证每个文件是否存在
    bash
    test -f refs/ref-NN-{slug}.{ext} && echo "exists" || echo "MISSING"
    • 若文件不存在 → 错误,修复提示词或移除引用
    • 若文件存在 → 继续处理
  3. 根据
    usage
    类型处理:
Usage操作示例
direct
将引用路径添加至
--ref
参数
--ref refs/ref-01-brand.png
style
分析参考图片,将风格特征追加至提示词"风格:简洁线条、渐变背景..."
palette
从参考图片提取色彩,追加至提示词"色彩:#E8756D珊瑚色、#7ECFC0薄荷绿..."
  1. 检查图片生成技能的能力:
技能是否支持
--ref
操作
是(如集成Google的baoyu-image-gen)通过
--ref
传递参考图片
转换为文本描述,追加至提示词
验证:生成前确认参考内容处理情况:
参考内容处理:
- ref-01-brand.png:用作直接参考 ✓
- ref-02-style.png:提取调色板 ✓
4.4 生成
  1. 调用选定的技能,传入提示词文件路径、输出路径(
    cover.png
    )、比例
  2. 若存在
    direct
    类型的引用且技能支持
    --ref
    :包含
    --ref
    参数
  3. 失败时:自动重试一次后再报告错误

Step 5: Completion Report

步骤5:完成报告

Cover Generated!

Topic: [topic]
Type: [type] | Palette: [palette] | Rendering: [rendering]
Text: [text] | Mood: [mood] | Aspect: [ratio]
Title: [title text or "visual only"]
Language: [lang] | Watermark: [enabled/disabled]
References: [N images (direct/style/palette) or "extracted style" or "none"]
Location: [directory path]

Files:
✓ source-{slug}.{ext}
[✓ refs/ref-01-{slug}.{ext} ... (if references saved)]
[✓ refs/ref-01-{slug}.md ... (description files)]
[✓ refs/extracted-style.md (if style extracted verbally)]
✓ prompts/cover.md
✓ cover.png
[✓ cover-backup-{timestamp}.png (if regenerated)]
封面图已生成!

主题:[topic]
Type: [type] | Palette: [palette] | Rendering: [rendering]
Text: [text] | Mood: [mood] | 比例: [ratio]
标题: [标题文本或“仅视觉效果”]
语言: [lang] | 水印: [启用/禁用]
参考内容: [N张图片(direct/style/palette)或“提取的风格”或“无”]
位置: [目录路径]

文件:
✓ source-{slug}.{ext}
[✓ refs/ref-01-{slug}.{ext} ...(若保存参考图片)]
[✓ refs/ref-01-{slug}.md ...(描述文件)]
[✓ refs/extracted-style.md(若口头提取风格)]
✓ prompts/cover.md
✓ cover.png
[✓ cover-backup-{timestamp}.png(若重新生成)]

Image Modification

图片修改

ActionSteps
RegenerateBackup existing → Update prompt file FIRST → Regenerate with same settings
Change dimensionBackup existing → Confirm new value → Update prompt file FIRST → Regenerate
IMPORTANT: When regenerating, ALWAYS update the prompt file (
prompts/cover.md
) FIRST before regenerating. This ensures changes are documented and reproducible.
All modifications automatically backup existing
cover.png
before regenerating.
操作步骤
重新生成备份现有文件 → 先更新提示词文件 → 使用相同设置重新生成
修改维度备份现有文件 → 确认新取值 → 先更新提示词文件 → 重新生成
重要:重新生成时,必须先更新提示词文件(
prompts/cover.md
),再执行生成操作。确保变更已记录且可复现。
所有修改操作都会在重新生成前自动备份现有
cover.png

Notes

注意事项

  • Cover must be readable at small preview sizes
  • Visual metaphors > literal representations
  • Title: readable, impactful
  • Two confirmation points: Step 0 (first-time setup) + Step 2 (options) - skip Step 2 with
    --quick
  • Use confirmed language for title text
  • Maintain watermark consistency if enabled
  • Check compatibility matrices when selecting combinations
  • --no-title
    is alias for
    --text none
  • --style
    presets are backward-compatible; explicit
    --palette
    /
    --rendering
    override preset values
  • 封面图在小尺寸预览时必须清晰可读
  • 视觉隐喻优于字面表达
  • 标题:清晰可读、有冲击力
  • 两个确认节点:步骤0(首次设置)+ 步骤2(选项) - 使用
    --quick
    可跳过步骤2
  • 标题文本使用已确认的语言
  • 若启用水印,保持水印一致性
  • 选择组合时参考兼容性矩阵
  • --no-title
    --text none
    的别名
  • --style
    预设向后兼容;显式指定的
    --palette
    /
    --rendering
    会覆盖预设值

Composition Principles

  • Generous whitespace: 40-60% breathing room; avoid cluttered layouts
  • Visual anchor: Main element centered or offset left (reserve right for title)
  • Character handling: Simplified silhouettes or icon-style figures; NO realistic humans
  • Icon vocabulary: Use simple, recognizable symbols (see references/visual-elements.md)

Title Handling

  • Source: Use the exact title provided by user, or extract from source content
  • Do NOT invent titles: Stay faithful to the original
  • If no title in source and user doesn't provide one, ask user to specify

References

Dimensions: text.md | mood.md Palettes: references/palettes/ Renderings: references/renderings/ Auto-Selection: references/auto-selection.md Style Presets: references/style-presets.md Compatibility: references/compatibility.md Types: references/types.md Visual Elements: references/visual-elements.md Workflow: confirm-options.md | prompt-template.md Config: preferences-schema.md | first-time-setup.md | watermark-guide.md