Image
生成和处理图像内容的基础功能模块
Core functionality module for generating and processing image content
clawhub install image保鱼封面图设计:使用保鱼工具设计和生成专业的封面图像。
# 安装 Skill npx skills add jimliu/baoyu-skills@baoyu-cover-image # 安装后 Claude Code 会自动识别并使用
# 同样的安装命令,兼容所有支持 SKILL.md 的 AI 编程工具 npx skills add jimliu/baoyu-skills@baoyu-cover-image
仅需注册skills.sh账户,支持离线使用
# 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]
--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](references/style-presets.md)) |
| --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 |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
-YYYYMMDD-HHMMSSCover 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)
# 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" }
source.md)usage: direct — MUST set in refs description file. NEVER use style or palette when people need to appearrefs/ref-NN-{slug}.md. Vague descriptions like "a man" will fail--ref flag — MUST pass reference image via --ref in Step 4 so the model sees actual facesAskUserQuestion 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.--quick or quick_mode: true | 6 dimensions | Aspect ratio (unless --aspect) |
| All 6 + --aspect specified | All | None |prompts/cover.md. Template: [references/workflow/prompt-template.md](references/workflow/prompt-template.md)refs/ → Add to frontmatter references listreferences, describe in bodytest -f refs/ref-NN-{slug}.{ext}cover.png if regeneratingdirect usage → pass via --ref (use ref-capable backend)
- style/palette → extract traits, append to prompt
Cover 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
```bash
# 安装技能
npx skills add jimliu/baoyu-skills@baoyu-cover-image
# 基础封面生成
baoyu-cover generate --title "AI视频编辑完全指南" --author "李明" --output cover.png
# 自定义配置生成
baoyu-cover create --title "技术分享" --subtitle "2024年趋势" --style elegant --theme dark --output custom_cover.png
```图像托管:将图像上传到 img402.dev 获取公开链接,用于消息分享、文档嵌入或社交媒体发布。
Upload images to img402.dev and get a public URL. Free tier: 1MB max, 7-day retention, no auth. Use when the agent needs a hosted image URL — for sharing in messages, embedding in documents, posting to social platforms, or any context that requires a public link to an image file.
clawhub install image-hosting