baoyu-cover-image
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".
1How It Works & Mechanism
Deconstructs 'what the cover looks like' into six confirmable dimensions (Type/Palette/Rendering/Text/Mood/Font) plus aspect ratio, each with an enumerated set of values and defaults, ultimately assembling them into a structured prompt.
Generate elegant cover images for articles with 5-dimensional customization.
Features an automatic selection table for 'content signals → values' when dimensions are omitted: keyword matching maps content type, color palette, rendering style, text density, mood, and font one by one.
When a dimension is omitted, select based on content signals.
User confirmation acts as a hard gate: host interactive tools (AskUserQuestion or equivalent) must be used to present options as clickable/selectable questions rather than simply dumping a raw text table.
**MUST use `AskUserQuestion` tool** to present options as interactive selection — NOT plain text tables.
Persists the prompt to prompts/cover.md before generation (structured into content context / visual design / text elements / mood / font / composition sections), including a references list in the frontmatter.
Save to `prompts/cover.md`.
Treats reference images as 'high-priority visual inputs' with an explicit warning that passing --ref alone is insufficient: what to replicate must be concurrently described in the prompt text.
**Passing `--ref` alone is NOT enough.**
Backend resolution follows the repository's unified hierarchy: requested name > EXTEND.md preference > automatic selection (Codex imagegen > codex-imagegen > Cursor GenerateImage > other native > only installed backend > ask user).
**Codex (`imagegen`)** — first, inspect your available-skills / tool inventory.
Enforces strict composition and text discipline: 40-60% negative space, simplified silhouettes for characters, exact verbatim titles from the user/source without hallucination; text errors must be resolved by modifying the prompt and regenerating rather than inpainting.
**Title**: Use exact title from user/source; never invent
Standardizes the output directory and artifact structure: by default saves independently to cover-image/{topic-slug}/ containing source, refs/, prompts/cover.md, and cover.png, backing up the existing image before regenerating.
- `independent` (default): `cover-image/{topic-slug}/`
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| api | Codex 原生 imagegen skill(Skill 工具调用) |
| cli | codex CLI / baoyu-image-gen(codex-imagegen 分支) |
| api | Cursor 原生 GenerateImage / Hermes image_generate |
| network | codex-imagegen wrapper(自述认证走用户 Codex 订阅) |
4Recommended Governance & Evidence
- 本地工作目录: File I/O and artifact output: Written to disk by the agent per SKILL.md instructions: source-{slug}, refs/ (references) under cover-image/{topic-slug}/
- SKILL.md: Declares invocation of host CLI interpreters or external execution environments
5Second-Pass Verification
- [ok] 自身无脚本/无端点/无凭证 — 目录内全是 markdown;URL 扫描只命中 github.com/JimLiu/baoyu-skills。
- [ok] SKILL.md 点名生成后端(orange 依据) — Codex imagegen / codex CLI via baoyu-image-gen / Cursor GenerateImage / Hermes image_generate 均在 SKILL.md 正文,且写成“一次选定、生成前必须完成”。
- [ok] 维度数量说法核对(描述写 5 dimensions) — SKILL.md 正文 Actually 列 Type/Palette/Rendering/Text/Mood 五维于 Five Dimensions 表,Font 单列在枚举与 Options 中——描述与正文不冲突,侦查按正文六项记录。
- [ok] 文字/色值纪律 — prompt-template.md 的 Color constraint 与 SKILL.md 的 Title/Characters/Composition Principles 三处对得上;位图涂改禁令与 article-illustrator 同款。
- [ok] 参考图不支持 --ref 时的降级路径 — SKILL.md Step 1 与 reference-images.md 一致:写 refs/ref-NN-{slug}.md 逐人物描述,并以 MUST/REQUIRED 嵌入 prompt。
- [ok] meta 元数据 — GitHub API:MIT、25926 stars、pushed_at 2026-09-10T15:13:43Z;本地 HEAD 与 pin 1567581c26ec… 一致。
6Verdict & Scenarios
e68671656994141a…