From utility-skills
Generates hand-drawn style cover images for articles from Markdown files or direct text input. Auto-selects optimal style (tech, warm, bold, etc.) based on content analysis; supports custom styles, aspect ratios, languages, and no-title option.
npx claudepluginhub xuanxuan1983/baoyu-xuanyi-skills --plugin ai-generation-skillsThis skill uses the workspace's default tool permissions.
Generate hand-drawn style cover images for articles with multiple style options.
Generates customizable article cover images from Markdown files using 5 dimensions: type, palette, rendering, text, mood. Supports cinematic, widescreen, square aspects with auto-selection.
Generates customizable article cover images across 5 dimensions (type, palette with 11 options, rendering with 7 styles, text, mood). Supports cinematic, widescreen, square aspects. Activates on cover image requests.
Analyzes markdown article content, identifies positions needing visual aids, and generates illustrations in styles like tech, warm, minimal, playful, elegant.
Share bugs, ideas, or general feedback.
Generate hand-drawn style cover images for articles with multiple style options.
# From markdown file (auto-select style based on content)
/baoyu-cover-image path/to/article.md
# Specify a style
/baoyu-cover-image path/to/article.md --style tech
/baoyu-cover-image path/to/article.md --style warm
/baoyu-cover-image path/to/article.md --style bold
# Without title text
/baoyu-cover-image path/to/article.md --no-title
# Combine options
/baoyu-cover-image path/to/article.md --style minimal --no-title
# From direct text input
/baoyu-cover-image
[paste content or describe the topic]
# Direct input with style
/baoyu-cover-image --style playful
[paste content]
| Option | Description |
|---|---|
--style <name> | Specify cover style (see Style Gallery below) |
--aspect <ratio> | Aspect ratio: 2.35:1 (cinematic, default), 16:9 (widescreen), 1:1 (social) |
--lang <code> | Output language for title text (en, zh, ja, etc.) |
--no-title | Generate cover without title text (visual only) |
| Style | Description |
|---|---|
elegant (Default) | Refined, sophisticated, understated |
tech | Modern, clean, futuristic |
warm | Friendly, approachable, human-centered |
bold | High contrast, attention-grabbing, energetic |
minimal | Ultra-clean, zen-like, focused |
playful | Fun, creative, whimsical |
nature | Organic, calm, earthy |
retro | Vintage, nostalgic, classic |
Detailed style definitions: references/styles/<style>.md
When no --style is specified, the system analyzes content to select the best style:
| Content Signals | Selected Style |
|---|---|
| AI, coding, tech, digital, algorithm | tech |
| Personal story, emotion, growth, life | warm |
| Controversial, urgent, must-read, warning | bold |
| Simple, zen, focus, essential | minimal |
| Fun, easy, beginner, casual, tutorial | playful |
| Nature, eco, wellness, health, organic | nature |
| History, classic, vintage, old, traditional | retro |
| Business, professional, strategy, analysis | elegant |
Each session creates an independent directory named by content slug:
cover-image/{topic-slug}/
├── source-{slug}.{ext} # Source files (text, images, etc.)
├── prompts/
│ └── cover.md
└── cover.png
Slug Generation:
future-of-aiIf cover-image/{topic-slug}/ already exists:
{topic-slug}-YYYYMMDD-HHMMSSai-future exists → ai-future-20260118-143052Copy all sources with naming source-{slug}.{ext}:
source-article.md (main text content)source-logo.png (image from conversation)Multiple sources supported: text, images, files from conversation.
Save source content (if not already a file):
source.md in target directoryExtract key information:
Language detection:
Style selection:
--style specified, use that styleelegant if no clear signalsAspect ratio:
--aspect specified, use that ratioPurpose: Let user confirm all options in a single step before generation.
IMPORTANT: Present ALL options in a single confirmation step using AskUserQuestion. Do NOT interrupt workflow with multiple separate confirmations.
Determine which questions to ask:
| Question | When to Ask |
|---|---|
| Style | Always (required) |
| Aspect ratio | Always (offer common options) |
| Language | Only if source_language ≠ user_language |
Present options (use AskUserQuestion with all applicable questions):
Question 1 (Style) - always:
Question 2 (Aspect) - always:
Question 3 (Language) - only if source ≠ user language:
Language handling:
Create a cover image concept based on selected style:
Title (if included, max 8 characters):
--no-title flag is usedVisual Elements:
Save prompt to prompts/cover.md with confirmed options.
All prompts are written in the user's confirmed language preference.
Prompt Format:
Cover theme: [topic in 2-3 words]
Style: [selected style name]
Aspect ratio: [confirmed aspect ratio]
[If title included:]
Title text: [8 characters or less, in confirmed language]
Subtitle: [optional, in confirmed language]
Visual composition:
- Main visual: [description matching style]
- Layout: [positioning based on title inclusion and aspect ratio]
- Decorative elements: [style-appropriate elements]
Color scheme:
- Primary: [style primary color]
- Background: [style background color]
- Accent: [style accent color]
Style notes: [specific style characteristics to emphasize]
[If no title:]
Note: No title text, pure visual illustration only.
Image Generation Skill Selection:
Generation: Call selected image generation skill with prompt file, output path, and confirmed aspect ratio.
Cover Image Generated!
Topic: [topic]
Style: [style name]
Aspect: [aspect ratio]
Title: [cover title] (or "No title - visual only")
Language: [confirmed language]
Location: [output path]
Preview the image to verify it matches your expectations.
Custom styles and configurations via EXTEND.md.
Check paths (priority order):
.baoyu-skills/baoyu-cover-image/EXTEND.md (project)~/.baoyu-skills/baoyu-cover-image/EXTEND.md (user)If found, load before Step 1. Extension content overrides defaults.