baoyu-cover-image by jimliu/baoyu-skills
npx skills add https://github.com/jimliu/baoyu-skills --skill baoyu-cover-image通过 5 维定制,为文章生成优雅的封面图片。
# 基于内容自动选择维度
/baoyu-cover-image path/to/article.md
# 快速模式:跳过确认
/baoyu-cover-image article.md --quick
# 指定维度
/baoyu-cover-image article.md --type conceptual --palette warm --rendering flat-vector
# 样式预设(调色板和渲染的简写)
/baoyu-cover-image article.md --style blueprint
# 使用参考图片
/baoyu-cover-image article.md --ref style-ref.png
# 直接输入内容
/baoyu-cover-image --palette mono --aspect 1:1 --quick
[粘贴内容]
| 选项 | 描述 |
|---|---|
--type <名称> | hero, conceptual, typography, metaphor, scene, minimal |
--palette <名称> | warm, elegant, cool, dark, earth, vivid, pastel, mono, retro, duotone |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
--rendering <名称>| flat-vector, hand-drawn, painterly, digital, pixel, chalk, screen-print |
--style <名称> | 预设简写(参见 样式预设) |
--text <级别> | none, title-only, title-subtitle, text-rich |
--mood <级别> | subtle, balanced, bold |
--font <名称> | clean, handwritten, serif, display |
--aspect <比例> | 16:9(默认), 2.35:1, 4:3, 3:2, 1:1, 3:4 |
--lang <代码> | 标题语言(en, zh, ja 等) |
--no-title | --text none 的别名 |
--quick | 跳过确认,使用自动选择 |
--ref <文件...> | 用于指导样式/构图的参考图片 |
| 维度 | 值 | 默认值 |
|---|---|---|
| 类型 | hero, conceptual, typography, metaphor, scene, minimal | auto |
| 调色板 | warm, elegant, cool, dark, earth, vivid, pastel, mono, retro, duotone | auto |
| 渲染风格 | flat-vector, hand-drawn, painterly, digital, pixel, chalk, screen-print | auto |
| 文本 | none, title-only, title-subtitle, text-rich | title-only |
| 氛围 | subtle, balanced, bold | balanced |
| 字体 | clean, handwritten, serif, display | clean |
自动选择规则:references/auto-selection.md
类型 : hero, conceptual, typography, metaphor, scene, minimal → 详情:references/types.md
调色板 : warm, elegant, cool, dark, earth, vivid, pastel, mono, retro, duotone → 详情:references/palettes/
渲染风格 : flat-vector, hand-drawn, painterly, digital, pixel, chalk, screen-print → 详情:references/renderings/
文本级别 : none(纯视觉) | title-only(默认) | title-subtitle | text-rich(带标签) → 详情:references/dimensions/text.md
氛围级别 : subtle(低对比度) | balanced(默认) | bold(高对比度) → 详情:references/dimensions/mood.md
字体 : clean(无衬线体) | handwritten | serif | display(粗体装饰性字体) → 详情:references/dimensions/font.md
根据 default_output_dir 偏好设置输出目录:
same-dir: {文章目录}/imgs-subdir: {文章目录}/imgs/independent(默认): cover-image/{主题-slug}/<输出目录>/
├── source-{slug}.{ext} # 源文件
├── refs/ # 参考图片(如果提供)
│ ├── ref-01-{slug}.{ext}
│ └── ref-01-{slug}.md # 描述文件
├── prompts/cover.md # 生成提示词
└── cover.png # 输出图片
Slug : 2-4 个单词,kebab-case。冲突时:追加 -YYYYMMDD-HHMMSS
封面图片进度:
- [ ] 步骤 0:检查偏好设置(EXTEND.md) ⛔ 阻塞
- [ ] 步骤 1:分析内容 + 保存参考 + 确定输出目录
- [ ] 步骤 2:确认选项(6 个维度) ⚠️ 除非使用 --quick
- [ ] 步骤 3:创建提示词
- [ ] 步骤 4:生成图片
- [ ] 步骤 5:完成报告
输入 → [步骤 0:偏好设置] ─┬─ 找到 → 继续
└─ 未找到 → 首次设置 ⛔ 阻塞 → 保存 EXTEND.md → 继续
↓
分析 + 保存参考 → [输出目录] → [确认:6 个维度] → 提示词 → 生成 → 完成
↓
(如果使用 --quick 或全部指定则跳过)
检查 EXTEND.md 是否存在(优先级:项目 → 用户):
# macOS, Linux, WSL, Git Bash
test -f .baoyu-skills/baoyu-cover-image/EXTEND.md && echo "project"
test -f "${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-cover-image/EXTEND.md" && echo "xdg"
test -f "$HOME/.baoyu-skills/baoyu-cover-image/EXTEND.md" && echo "user"
# PowerShell (Windows)
if (Test-Path .baoyu-skills/baoyu-cover-image/EXTEND.md) { "project" }
$xdg = if ($env:XDG_CONFIG_HOME) { $env:XDG_CONFIG_HOME } else { "$HOME/.config" }
if (Test-Path "$xdg/baoyu-skills/baoyu-cover-image/EXTEND.md") { "xdg" }
if (Test-Path "$HOME/.baoyu-skills/baoyu-cover-image/EXTEND.md") { "user" }
| 结果 | 操作 |
|---|---|
| 找到 | 加载,显示摘要 → 继续 |
| 未找到 | ⛔ 运行首次设置(references/config/first-time-setup.md) → 保存 → 继续 |
关键:如果未找到,必须在任何其他步骤或提问之前完成设置。
source.md)⚠️ 参考图片中的人物:
如果参考图片包含应该出现在封面中的人物:
--ref(默认):将图片复制到 refs/,在生成时通过 --ref 传递。不需要描述文件——模型直接看到人脸。--ref(Jimeng, Seedream 3.0):创建 refs/ref-NN-{slug}.md,包含每个角色的描述(头发、眼镜、肤色、服装)。作为 MUST/REQUIRED 指令嵌入到提示词文本中。完整决策表请参见 reference-images.md。
必须使用 AskUserQuestion 工具以交互式选择的形式呈现选项——不要使用纯文本表格。在单个 AskUserQuestion 调用中最多呈现 4 个问题(类型、调色板、渲染风格、字体 + 设置)。每个问题首先显示推荐选项及其理由,然后是备选项。
完整的确认流程和问题格式:references/workflow/confirm-options.md
| 条件 | 跳过 | 仍需询问 |
|---|---|---|
--quick 或 quick_mode: true | 6 个维度 | 宽高比(除非指定了 --aspect) |
指定了全部 6 个维度 + --aspect | 全部 | 无 |
保存到 prompts/cover.md。模板:references/workflow/prompt-template.md
关键 - Frontmatter 中的参考:
refs/ 的文件 → 添加到 frontmatter 的 references 列表中references,在正文中描述test -f refs/ref-NN-{slug}.{ext}正文中的参考元素 必须详细,前缀为 "MUST"/"REQUIRED",并说明整合方式。
cover.png(如果重新生成)direct 用法 → 通过 --ref 传递(使用支持 ref 的后端)style/palette → 提取特征,附加到提示词封面已生成!
主题:[主题]
类型:[类型] | 调色板:[调色板] | 渲染风格:[渲染风格]
文本:[文本] | 氛围:[氛围] | 字体:[字体] | 宽高比:[比例]
标题:[标题 或 "纯视觉"]
语言:[语言] | 水印:[启用/禁用]
参考:[N 张图片 或 "提取的样式" 或 "无"]
位置:[目录路径]
文件:
✓ source-{slug}.{ext}
✓ prompts/cover.md
✓ cover.png
| 操作 | 步骤 |
|---|---|
| 重新生成 | 备份 → 首先更新提示词文件 → 重新生成 |
| 更改维度 | 备份 → 确认新值 → 更新提示词 → 重新生成 |
通过 EXTEND.md 进行自定义配置。路径参见步骤 0。
支持:水印 | 首选维度 | 默认宽高比/输出 | 快速模式 | 自定义调色板 | 语言
维度 : text.md | mood.md | font.md 调色板 : references/palettes/ 渲染风格 : references/renderings/ 类型 : references/types.md 自动选择 : references/auto-selection.md 样式预设 : references/style-presets.md 兼容性 : references/compatibility.md 视觉元素 : references/visual-elements.md 工作流程 : confirm-options.md | prompt-template.md | reference-images.md 配置 : preferences-schema.md | first-time-setup.md | watermark-guide.md
每周安装量
12.9K
仓库
GitHub Stars
11.3K
首次出现
Jan 19, 2026
安全审计
安装于
opencode11.7K
gemini-cli11.3K
codex11.1K
cursor10.7K
github-copilot10.3K
amp9.9K
Generate elegant cover images for articles with 5-dimensional customization.
# Auto-select dimensions based on content
/baoyu-cover-image path/to/article.md
# Quick mode: skip confirmation
/baoyu-cover-image article.md --quick
# Specify dimensions
/baoyu-cover-image article.md --type conceptual --palette warm --rendering flat-vector
# Style presets (shorthand for palette + rendering)
/baoyu-cover-image article.md --style blueprint
# With reference images
/baoyu-cover-image article.md --ref style-ref.png
# Direct content input
/baoyu-cover-image --palette mono --aspect 1:1 --quick
[paste content]
| Option | Description |
|---|---|
--type <name> | hero, conceptual, typography, metaphor, scene, minimal |
--palette <name> | warm, elegant, cool, dark, earth, vivid, pastel, mono, retro, duotone |
--rendering <name> | flat-vector, hand-drawn, painterly, digital, pixel, chalk, screen-print |
--style <name> | Preset shorthand (see Style Presets) |
--text <level> | none, title-only, title-subtitle, text-rich |
--mood <level> | subtle, balanced, bold |
--font <name> | clean, handwritten, serif, display |
--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 |
--ref <files...> | Reference images for style/composition guidance |
| Dimension | Values | Default |
|---|---|---|
| Type | hero, conceptual, typography, metaphor, scene, minimal | auto |
| Palette | warm, elegant, cool, dark, earth, vivid, pastel, mono, retro, duotone | auto |
| Rendering | flat-vector, hand-drawn, painterly, digital, pixel, chalk, screen-print | auto |
| Text | none, title-only, title-subtitle, text-rich | title-only |
| Mood | subtle, balanced, bold | balanced |
| Font | clean, handwritten, serif, display | clean |
Auto-selection rules: references/auto-selection.md
Types : hero, conceptual, typography, metaphor, scene, minimal → Details: references/types.md
Palettes : warm, elegant, cool, dark, earth, vivid, pastel, mono, retro, duotone → Details: references/palettes/
Renderings : flat-vector, hand-drawn, painterly, digital, pixel, chalk, screen-print → Details: references/renderings/
Text Levels : none (pure visual) | title-only (default) | title-subtitle | text-rich (with tags) → Details: references/dimensions/text.md
Mood Levels : subtle (low contrast) | balanced (default) | bold (high contrast) → Details: references/dimensions/mood.md
Fonts : clean (sans-serif) | handwritten | serif | display (bold decorative) → Details: references/dimensions/font.md
Output directory per default_output_dir preference:
same-dir: {article-dir}/
imgs-subdir: {article-dir}/imgs/
independent (default): cover-image/{topic-slug}/
<output-dir>/ ├── source-{slug}.{ext} # Source files ├── refs/ # Reference images (if provided) │ ├── ref-01-{slug}.{ext} │ └── ref-01-{slug}.md # Description file ├── prompts/cover.md # Generation prompt └── cover.png # Output image
Slug : 2-4 words, kebab-case. Conflict: append -YYYYMMDD-HHMMSS
Cover Image Progress:
- [ ] Step 0: Check preferences (EXTEND.md) ⛔ BLOCKING
- [ ] Step 1: Analyze content + save refs + determine output dir
- [ ] Step 2: Confirm options (6 dimensions) ⚠️ unless --quick
- [ ] Step 3: Create prompt
- [ ] Step 4: Generate image
- [ ] Step 5: Completion report
Input → [Step 0: Preferences] ─┬─ Found → Continue
└─ Not found → First-Time Setup ⛔ BLOCKING → Save EXTEND.md → Continue
↓
Analyze + Save Refs → [Output Dir] → [Confirm: 6 Dimensions] → Prompt → Generate → Complete
↓
(skip if --quick or all specified)
Check EXTEND.md existence (priority: project → user):
# macOS, Linux, WSL, Git Bash
test -f .baoyu-skills/baoyu-cover-image/EXTEND.md && echo "project"
test -f "${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-cover-image/EXTEND.md" && echo "xdg"
test -f "$HOME/.baoyu-skills/baoyu-cover-image/EXTEND.md" && echo "user"
# PowerShell (Windows)
if (Test-Path .baoyu-skills/baoyu-cover-image/EXTEND.md) { "project" }
$xdg = if ($env:XDG_CONFIG_HOME) { $env:XDG_CONFIG_HOME } else { "$HOME/.config" }
if (Test-Path "$xdg/baoyu-skills/baoyu-cover-image/EXTEND.md") { "xdg" }
if (Test-Path "$HOME/.baoyu-skills/baoyu-cover-image/EXTEND.md") { "user" }
| Result | Action |
|---|---|
| Found | Load, display summary → Continue |
| Not found | ⛔ Run first-time setup (references/config/first-time-setup.md) → Save → Continue |
CRITICAL : If not found, complete setup BEFORE any other steps or questions.
source.md)⚠️ People in Reference Images:
If reference images contain people who should appear in the cover:
--ref (default): Copy image to refs/, pass via --ref at generation. No description file needed — the model sees the face directly.--ref (Jimeng, Seedream 3.0): Create refs/ref-NN-{slug}.md with per-character description (hair, glasses, skin tone, clothing). Embed as MUST/REQUIRED instructions in prompt text.See reference-images.md for full decision table.
MUST useAskUserQuestion tool to present options as interactive selection — NOT plain text tables. Present up to 4 questions in a single AskUserQuestion call (Type, Palette, Rendering, Font + Settings). Each question shows the recommended option first with reason, followed by alternatives.
Full confirmation flow and question format: references/workflow/confirm-options.md
| Condition | Skipped | Still Asked |
|---|---|---|
--quick or quick_mode: true | 6 dimensions | Aspect ratio (unless --aspect) |
All 6 + --aspect specified | All | None |
Save to prompts/cover.md. Template: references/workflow/prompt-template.md
CRITICAL - References in Frontmatter :
refs/ → Add to frontmatter references listreferences, describe in bodytest -f refs/ref-NN-{slug}.{ext}Reference elements in body MUST be detailed, prefixed with "MUST"/"REQUIRED", with integration approach.
cover.png if regeneratingdirect usage → pass via --ref (use ref-capable backend)style/palette → extract traits, append to promptCover Generated!
Topic: [topic]
Type: [type] | Palette: [palette] | Rendering: [rendering]
Text: [text] | Mood: [mood] | Font: [font] | Aspect: [ratio]
Title: [title or "visual only"]
Language: [lang] | Watermark: [enabled/disabled]
References: [N images or "extracted style" or "none"]
Location: [directory path]
Files:
✓ source-{slug}.{ext}
✓ prompts/cover.md
✓ cover.png
| Action | Steps |
|---|---|
| Regenerate | Backup → Update prompt file FIRST → Regenerate |
| Change dimension | Backup → Confirm new value → Update prompt → Regenerate |
Custom configurations via EXTEND.md. See Step 0 for paths.
Supports: Watermark | Preferred dimensions | Default aspect/output | Quick mode | Custom palettes | Language
Schema: references/config/preferences-schema.md
Dimensions : text.md | mood.md | font.md Palettes : references/palettes/ Renderings : references/renderings/ Types : references/types.md Auto-Selection : references/auto-selection.md Style Presets : references/style-presets.md Compatibility : references/compatibility.md Visual Elements : references/visual-elements.md Workflow : confirm-options.md | prompt-template.md | : | |
Weekly Installs
12.9K
Repository
GitHub Stars
11.3K
First Seen
Jan 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode11.7K
gemini-cli11.3K
codex11.1K
cursor10.7K
github-copilot10.3K
amp9.9K
头脑风暴技能:AI协作设计流程,将创意转化为完整规范与实施计划
75,000 周安装