npx skills add https://github.com/xy121718/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 <name> | hero, conceptual, typography, metaphor, scene, minimal |
--palette <name> | warm, elegant, cool, dark, earth, vivid, pastel, mono, retro |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
--rendering <name>| flat-vector, hand-drawn, painterly, digital, pixel, chalk |
--style <name> | 预设简写(参见样式预设) |
--text <level> | none, title-only, title-subtitle, text-rich |
--mood <level> | subtle, balanced, bold |
--font <name> | clean, handwritten, serif, display |
--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...> | 用于风格/构图指导的参考图片 |
| 维度 | 值 | 默认值 |
|---|---|---|
| 类型 | hero, conceptual, typography, metaphor, scene, minimal | auto |
| 调色板 | warm, elegant, cool, dark, earth, vivid, pastel, mono, retro | auto |
| 渲染方式 | flat-vector, hand-drawn, painterly, digital, pixel, chalk | 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 → 详情:references/palettes/
渲染方式 : flat-vector, hand-drawn, painterly, digital, pixel, chalk → 详情: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: {article-dir}/imgs-subdir: {article-dir}/imgs/independent (默认): cover-image/{topic-slug}/<output-dir>/
├── 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 是否存在(优先级:项目 → 用户):
test -f .baoyu-skills/baoyu-cover-image/EXTEND.md && echo "project"
test -f "$HOME/.baoyu-skills/baoyu-cover-image/EXTEND.md" && echo "user"
| 结果 | 操作 |
|---|---|
| 找到 | 加载,显示摘要 → 继续 |
| 未找到 | ⛔ 运行首次设置 (references/config/first-time-setup.md) → 保存 → 继续 |
关键:如果未找到,必须在任何其他步骤或问题之前完成设置。
source.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 传递(使用支持参考的后端)style/palette → 提取特征,追加到提示词封面已生成!
主题:[topic]
类型:[type] | 调色板:[palette] | 渲染方式:[rendering]
文本:[text] | 氛围:[mood] | 字体:[font] | 宽高比:[ratio]
标题:[title 或 "visual only"]
语言:[lang] | 水印:[enabled/disabled]
参考:[N 张图片 或 "extracted style" 或 "none"]
位置:[directory path]
文件:
✓ 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
每周安装数
84
仓库
GitHub Stars
61
首次出现
2026年3月2日
安全审计
安装于
cursor84
gemini-cli84
github-copilot84
codex84
amp84
cline84
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 |
--rendering <name> | flat-vector, hand-drawn, painterly, digital, pixel, chalk |
--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 | auto |
| Rendering | flat-vector, hand-drawn, painterly, digital, pixel, chalk | 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 → Details: references/palettes/
Renderings : flat-vector, hand-drawn, painterly, digital, pixel, chalk → 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):
test -f .baoyu-skills/baoyu-cover-image/EXTEND.md && echo "project"
test -f "$HOME/.baoyu-skills/baoyu-cover-image/EXTEND.md" && echo "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)Full confirmation flow: 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
84
Repository
GitHub Stars
61
First Seen
Mar 2, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
cursor84
gemini-cli84
github-copilot84
codex84
amp84
cline84
shadcn/ui 框架:React 组件库与 UI 设计系统,Tailwind CSS 最佳实践
69,400 周安装