baoyu-xhs-images
Generates infographic image card series with 12 visual styles, 8 layouts, and 3 color palettes. Breaks content into 1-10 cartoon-style image cards optimized for social media engagement. Use when user mentions "小红书图片", "小红书种草", "小绿书", "微信图文", "微信贴图", "image cards", "图片卡片", baoyu-xhs-images, or wants social media infographic series.
1How It Works & Mechanism
Breaks content into 1–10 image cards: analyzes audience/hook/selling points first, then determines each card's visual appearance using a 3D matrix of 'Style × Layout × Palette', and finally generates cards one by one.
| **Style** | Visual aesthetics (lines, decorations, rendering) | 12 styles (see Styles below) |
Image generation backends are not implemented within this repository: resolved via 'Current Request > EXTEND.md > Runtime Native Tools > Only Non-Native Backend > Ask User', explicitly naming Codex imagegen, codex-imagegen, Cursor GenerateImage, etc.
If a skill named `imagegen` is listed, you are running inside Codex and MUST use it
The core technique for visual consistency is the 'Image 1 Anchor Chain': Card 1 (cover) is generated without a reference image, and every subsequent card passes Card 1 via --ref so characters, mascots, and palettes do not drift across images.
**Visual consistency — image-1 anchor chain**: character / mascot / color rendering drifts between calls unless you anchor them.
Confirmation is divided into three paths: A (trust recommendation and generate immediately), B (customize step-by-step), and C (detailed mode: asks about selling points/audience first, then provides 3 distinct outline variants for user selection).
**Path C — Detailed mode**: two sub-confirmations.
Prompt files strictly precede generation: before invoking any backend, the complete prompt for each image must first be written to prompts/NN-{type}-{slug}.md.
**Prompt file requirement (hard)**: write each image's full, final prompt to a standalone file under `prompts/`
First-time use triggers a blocking preference setup: when EXTEND.md is missing in interactive mode, the initial setup must run before analyzing content.
**⛔ BLOCKING OPERATION**: This setup MUST complete before ANY other workflow steps.
Includes a style × layout compatibility matrix to display warnings when users select discouraged combinations; auto-selection matches content signal keywords against the first matching row, falling back to cute-share.
Compatibility scores (✓✓ highly recommended, ✓ works well, ✗ avoid).
Content breakdown follows a fixed skeleton: Cover (Hook) + Content Cards (each carrying a single value point) + Ending (CTA/Summary), reporting progress card-by-card and retrying only failed cards.
| Cover (image 1) | Hook + visual impact | `sparse` |
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| api | 运行时图像生成后端(Codex imagegen / Cursor GenerateImage / Hermes image_generate)——用户内容与提示词由此出网 |
| cli | baoyu-image-gen 技能脚本(--provider codex-cli 首选路径) |
| cli | codex CLI(codex exec 后端,需 codex login) |
| cli | bun / npx -y bun(跑 baoyu-image-gen 或包装器) |
| network | homepage 元数据 URL(静态 frontmatter,任何步骤都不抓取) |
4Recommended Governance & Evidence
- scripts/: Execution of local scripts or commands: This skill contains no executable scripts of its own; image generation is delegated by the agent to runtime backends (Codex imagegen Skill / Cursor GenerateImage, etc.).
- 网络端点: Declared external network access: The skill itself contains zero network code (no scripts or HTTP client imports in the directory).
- 本地工作目录: File I/O and artifact output: Writes image-cards/{topic-slug}/source-*.{ext} and analysis.md.
5Second-Pass Verification
- [ok] 目录内无脚本、无网络代码 — 文件清单仅 SKILL.md + 15 份 references(presets/palettes/elements/workflows/config/codex-imagegen/style-presets/confirmation);无 .ts/.sh/.py,无 http 客户端引用。
- [ok] 后端解析阶梯与点名原文 — 四级阶梯(当前请求 > EXTEND.md > 运行时原生 > 唯一非原生 > 问用户)在 SKILL.md 顶部逐条列出,与 slide-deck 的对应段落逐字相同(同仓统一设计)。
- [ok] 锚定链设计与后端限制自洽 — codex-imagegen.md 明写包装器不支持 --sessionId('The wrapper does NOT accept a `--sessionId` flag.'),与 SKILL.md『链一致性必须来自 --ref』的说明一致。
- [ok] 确认门禁与 --yes 出口 — Step 2 标为 REQUIRED 硬门禁,--yes 与『直接生成』类措辞可显式跳过,且跳过时要求先声明假定方案;非交互模式不写 EXTEND.md。
- [ok] 首次设置为阻塞(与 slide-deck 相反) — first-time-setup.md 标 BLOCKING OPERATION,与 translate 同型,而与 slide-deck 的『不阻塞』形成对比;两处均在报告中如实记录。
- [ok] 水印与写盘清单 — 水印提示词片段与 EXTEND.md watermark.* 字段对应;输出树 image-cards/{topic-slug}/ 与备份改名规则在 SKILL.md 明确写出。
- [ok] 档位复核(批4 终裁) — 按 Main『点名生成后端 + 素材出网 → orange』落档;目录内无脚本无凭证,故不升红也不满足 green/blue 条件。
- [ok] 元数据与 pin — 本地 HEAD = 1567581c26ec29f4216c6e6835415bf30343b0e3(2026-09-10 10:13:43 -0500);GitHub API MIT / 25926 stars / pushed_at 2026-09-10T15:13:43Z;仓库根 LICENSE 为 MIT。
6Verdict & Scenarios
4a9d014c6c3a9416…