All skills
jimliu avatar

/baoyu-cover-image

@b0ac523 official
by Jim Liu 宝玉jimliu/baoyu-skills26k stars
2,896

Generates article cover images with 5 dimensions (type, palette, rendering, text, mood) combining 11 color palettes and 7 rendering styles. Supports cinematic (2.35:1), widescreen (16:9), and square (1:1) aspects. Use when user asks to "generate cover image", "create article cover", or "make cover".

Use this Skill: https://skilld.dev/gh/jimliu/baoyu-skills/baoyu-cover-image

This session only. Nothing lands on disk.

referencesconfigfirst-time-setup.md

≈1.5k tokens on demand. Your agent reads this file only when SKILL.md points to it.

First-Time Setup

Overview

When no EXTEND.md is found, guide user through preference setup.

⛔ BLOCKING OPERATION: This setup MUST complete before ANY other workflow steps. Do NOT:

  • Ask about reference images
  • Ask about content/article
  • Ask about dimensions (type, palette, rendering)
  • Proceed to content analysis

ONLY ask the questions in this setup flow, save EXTEND.md, then continue.

Setup Flow

No EXTEND.md found
        │
        ▼
┌─────────────────────┐
│ AskUserQuestion     │
│ (all questions)     │
└─────────────────────┘
        │
        ▼
┌─────────────────────┐
│ Create EXTEND.md    │
└─────────────────────┘
        │
        ▼
    Continue to Step 1

Questions

Language: Use user's input language or saved language preference.

Use AskUserQuestion with ALL questions in ONE call:

Question 1: Watermark

header: "Watermark"
question: "Watermark text for generated cover images?"
options:
  - label: "No watermark (Recommended)"
    description: "Clean covers, can enable later in EXTEND.md"

Question 2: Preferred Type

header: "Type"
question: "Default cover type preference?"
options:
  - label: "Auto-select (Recommended)"
    description: "Choose based on content analysis each time"
  - label: "hero"
    description: "Large visual impact - product launch, announcements"
  - label: "conceptual"
    description: "Concept visualization - technical, architecture"

Question 3: Preferred Palette

header: "Palette"
question: "Default color palette preference?"
options:
  - label: "Auto-select (Recommended)"
    description: "Choose based on content analysis each time"
  - label: "elegant"
    description: "Sophisticated - soft coral, muted teal, dusty rose"
  - label: "warm"
    description: "Friendly - orange, golden yellow, terracotta"
  - label: "cool"
    description: "Technical - engineering blue, navy, cyan"

Question 4: Preferred Rendering

header: "Rendering"
question: "Default rendering style preference?"
options:
  - label: "Auto-select (Recommended)"
    description: "Choose based on content analysis each time"
  - label: "hand-drawn"
    description: "Sketchy organic illustration with personal touch"
  - label: "flat-vector"
    description: "Clean modern vector with geometric shapes"
  - label: "digital"
    description: "Polished precise digital illustration"

Question 5: Default Aspect Ratio

header: "Aspect"
question: "Default aspect ratio for cover images?"
options:
  - label: "16:9 (Recommended)"
    description: "Standard widescreen - YouTube, presentations, versatile"
  - label: "2.35:1"
    description: "Cinematic widescreen - article headers, blog posts"
  - label: "1:1"
    description: "Square - Instagram, WeChat, social cards"
  - label: "3:4"
    description: "Portrait - Xiaohongshu, Pinterest, mobile content"

Note: More ratios (4:3, 3:2) available during generation. This sets the default recommendation.

Question 6: Default Output Directory

header: "Output"
question: "Default output directory for cover images?"
options:
  - label: "Independent (Recommended)"
    description: "cover-image/{topic-slug}/ - separate from article"
  - label: "Same directory"
    description: "{article-dir}/ - alongside the article file"
  - label: "imgs subdirectory"
    description: "{article-dir}/imgs/ - images folder near article"

Question 7: Quick Mode

header: "Quick"
question: "Enable quick mode by default?"
options:
  - label: "No (Recommended)"
    description: "Confirm dimension choices each time"
  - label: "Yes"
    description: "Skip confirmation, use auto-selection"

Question 8: Save Location

header: "Save"
question: "Where to save preferences?"
options:
  - label: "Project (Recommended)"
    description: ".baoyu-skills/ (this project only)"
  - label: "User"
    description: "~/.baoyu-skills/ (all projects)"

Save Locations

Choice Path Scope
Project .baoyu-skills/baoyu-cover-image/EXTEND.md Current project
User ~/.baoyu-skills/baoyu-cover-image/EXTEND.md All projects

After Setup

  1. Create directory if needed
  2. Write EXTEND.md with frontmatter
  3. Confirm: "Preferences saved to [path]"
  4. Continue to Step 1

EXTEND.md Template

---
version: 3
watermark:
  enabled: [true/false]
  content: "[user input or empty]"
  position: bottom-right
  opacity: 0.7
preferred_type: [selected type or null]
preferred_palette: [selected palette or null]
preferred_rendering: [selected rendering or null]
preferred_text: title-only
preferred_mood: balanced
default_aspect: [16:9/2.35:1/1:1/3:4]
default_output_dir: [independent/same-dir/imgs-subdir]
quick_mode: [true/false]
language: null
preferred_image_backend: auto
custom_palettes: []
---

preferred_image_backend: auto is the baked-in default — first-time setup does not ask about it. The ## Image Generation Tools rule in SKILL.md then picks the runtime-native tool (Codex imagegen, Hermes image_generate, etc.) when available, and falls back to installed backends.

Modifying Preferences Later

See the ## Changing Preferences section in SKILL.md for the canonical list of common edits (pin backend, change defaults, retrigger setup). Full schema: preferences-schema.md.

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

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk MEDIUM
  • Gen Agent Trust Hub16d

    The skill generates article cover images by processing article content and user preferences. It employs dynamic execution patterns by searching for and running external scripts based on runtime discovery and environment variables. It also lacks specific sanitization for article content, making it potentially vulnerable to indirect instructions embedded in processed data.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer6mo

    33 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at b0ac523. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 4 months ago
version
1.117.5
Other metadata
metadata
{
  "openclaw": {
    "homepage": "https://github.com/JimLiu/baoyu-skills#baoyu-cover-image"
  }
}
  • Design
  • cover-image
  • image-generation
  • article
  • prompt-based

README badge

README badge for jimliu/baoyu-skills/baoyu-cover-image

Generates article cover images with 5-dimensional customization (type, palette, rendering, text, mood) supporting cinematic (2.35:1), widescreen (16:9), and square (1:1) aspects. Combines 11 color palettes and 7 rendering styles for visual variety. Resolves image backends (Codex, Cursor, baoyu-image-gen) and confirms dimensions before rendering.

Generated from the current SKILL.md.

What image backends does this skill support?
It auto-selects in order: Codex `imagegen`, Codex via CLI, Cursor `GenerateImage`, other runtime-native tools, or installed non-native backends like `baoyu-image-gen`. You can override with `--quick` to skip confirmation or pin a preference in `EXTEND.md`.
Does this skill require confirmation before generating?
Yes, by default. It confirms your chosen dimensions, aspect ratio, palette, rendering style, and backend before generation. Pass `--quick` or set `quick_mode: true` in `EXTEND.md` to skip.
What aspect ratios are supported?
16:9 (default), 2.35:1 (cinematic), 1:1 (square), 4:3, 3:2, and 3:4. Specify with `--aspect`.
Can I include reference images to guide the style?
Yes, use `--ref <files...>` to pass reference images. If they contain people who should appear in the cover, the skill will either pass them directly to the model (if supported) or embed character descriptions in the prompt.
What customization dimensions does this offer?
Five dimensions: type (hero, conceptual, typography, metaphor, scene, minimal), palette (11 options including warm, elegant, cool, dark, vivid, etc.), rendering (7 styles including flat-vector, hand-drawn, painterly, digital, pixel, chalk, screen-print), text level (none, title-only, title-subtitle, text-rich), and mood (subtle, balanced, bold).

Generated from the current SKILL.md. These answers refresh after source changes.