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.

referencesworkflowreference-images.md

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

Reference Image Handling

Guide for processing user-provided reference images in cover generation.

Input Detection

Input Type Action
Image file path provided Copy to refs/ → can use --ref
Image in conversation (no path) ASK user for file path with AskUserQuestion
User can't provide path Extract style/palette verbally → append to prompt (NO frontmatter references)

CRITICAL: Only add references to prompt frontmatter if files are ACTUALLY SAVED to refs/ directory.

File Saving

If user provides file path:

  1. Copy to refs/ref-NN-{slug}.{ext} (NN = 01, 02, ...)
  2. Only create description file refs/ref-NN-{slug}.md when model does NOT support --ref (see below)
  3. Verify image file exists before proceeding

When to create description file:

Situation Action
Model supports --ref (Google, OpenAI, OpenRouter, Replicate, Seedream 4.0+) Copy image only. No description file needed. Pass via --ref at generation.
Model does NOT support --ref (Jimeng, Seedream 3.0) Copy image + create description file. Embed description in prompt text.

Description File Format (only when needed):

---
ref_id: NN
filename: ref-NN-{slug}.{ext}
usage: direct | style | palette
---
[Character or style description to embed in prompt]
Usage When to Use
direct Model sees reference image directly; required if people must appear in output
style Extract visual style only (not for people who must appear)
palette Extract color scheme only

Verbal Extraction (No File)

When user can't provide file path:

  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. Append extracted style/colors directly to prompt text

Deep Analysis ⚠️ CRITICAL

References are high-priority inputs. Extract specific, concrete, reproducible elements:

Analysis Description Example (good vs bad)
Brand elements Logos, wordmarks, specific typography Good: "Logo uses vertical parallel lines for 'm'" / Bad: "Has a logo"
Signature patterns Unique decorative motifs, textures Good: "Woven intersecting curves forming diamond grid" / Bad: "Has patterns"
Color palette Exact hex values for key colors Good: "#2D4A3E dark teal, #F5F0E0 cream" / Bad: "Dark and light colors"
Layout structure Specific spatial arrangement Good: "Bottom 30% dark banner with branding" / Bad: "Has a banner"
Typography Font style, weight, spacing, case Good: "Uppercase, wide letter-spacing" / Bad: "Has text"
Content/subject What the reference depicts Factual description
Usage recommendation direct / style / palette Based on analysis

Output format: List each element as bullet that can be copy-pasted into prompt as mandatory instruction.

Character Analysis ⚠️ If Reference Contains People

Use usage: direct so model sees the reference image. Additionally describe per character: appearance, pose, clothing → with transformation rules (stylize to match rendering).

Extract Good Bad
Appearance "Woman: long wavy blonde hair, friendly smile" "A woman"
Pose "Standing, facing camera, confident posture" "Standing"
Clothing "Dark T-shirt, business casual" "Formal"
Transform "Flat-vector cartoon, keep hair color & clothing" "Make cartoon"

Use usage: direct. Output each character as MUST/REQUIRED prompt instruction.

Verification Output

For saved files:

Reference Images Saved:
- ref-01-{slug}.png ✓ (can use --ref)
- ref-02-{slug}.png ✓ (can use --ref)

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)

Priority Rules

When user provides references, they are HIGH PRIORITY:

  • References override defaults: If reference conflicts with preferred palette/rendering, reference takes precedence
  • Concrete > abstract: Extract specific elements — not vague "clean style"
  • Mandatory language: Use "MUST", "REQUIRED" in prompt for reference elements
  • Visible in output: Verify elements are present after generation; strengthen prompt if not

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.