canghe-xhs-images
Generates Xiaohongshu (Little Red Book) infographic series with 10 visual styles and 8 layouts. Breaks content into 1-10 cartoon-style images optimized for XHS engagement. Use when user mentions "小红书图片", "XHS images", "RedNote infographics", "小红书种草", or wants social media infographics for Chinese platforms.
1How It Works & Mechanism
The core is the 2D flexible combination of "Style × Layout": style determines color/lines/decorations, while layout determines information density and arrangement. Both can be arbitrarily paired to generate Xiaohongshu infographics.
Style × Layout can be freely combined. Example: `--style notion --layout dense` creates an intellectual-looking knowledge card with high information density.
10 visual styles and 8 information layouts are externalized into presets/reference files; SKILL.md only provides an index and one-sentence definitions, reading details on demand.
Detailed style definitions: `references/presets/<style>.md`
Features a built-in auto-selection table: recommends styles and layouts based on content signal words (beauty, knowledge, education, study notes, etc.) to reduce user decision-making cost.
| Knowledge, concept, productivity, SaaS | `notion` | dense/list |
Provides three differentiated outline strategies (story-driven / information-dense / visual-first), producing three structures from the same material for the user to select or merge.
Three differentiated outline strategies for different content goals:
The workflow is strictly constrained to "Preference Check (blocking) → Analysis → Confirmation 1 → 3 Outline Drafts → Confirmation 2 → Step-by-step Generation → Report". The initial setup must be completed first if preferences are missing.
**CRITICAL**: If EXTEND.md not found, MUST complete first-time setup before ANY other questions or steps. Do NOT proceed to content analysis, do NOT ask about style, do NOT ask about layout — ONLY complete the preferences setup first.
Two human confirmation checkpoints (content understanding, structure and style/element selection) are marked as REQUIRED to prevent the agent from jumping directly into image generation.
**Two confirmation points required** (Steps 2 & 4) - do not skip
Series consistency relies on a "reference image chain": generate the first cover image without --ref, and use the first image as --ref for every subsequent image to anchor characters and art style.
**Use image 1 as `--ref` for ALL remaining images** (2, 3, ..., N)
Prompts for each image are persisted to disk as prompts/NN-{type}-[slug].md before generation, with a same-name backup rule to ensure changes are reproducible.
**Backup rule**: If prompt file exists, rename to `prompts/NN-{type}-[slug]-backup-YYYYMMDD-HHMMSS.md`
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| cli | npx / bun(prompt 组装脚本) |
| package | 宿主提供的图像生成 skill(出图依赖,非本目录资产) |
4Recommended Governance & Evidence
- scripts/: Executes local script or command: references/workflows/prompt-assembly.md instructs to run `npx -y bun ${SKILL_DIR}/script
- 本地工作目录: File read/write and artifact output: Writes analysis, outlines, prompts, and images to the session directory: `xhs-images/{topic-slug}/` (analysis.md, outline-stra
5Second-Pass Verification
- [ok] 外部程序:npx -y bun scripts/main.ts 确实存在 — 扫到 prompt-assembly.md:170 一行;但本 skill 目录清单(§1)无 scripts/ 目录,判定属仓库级资产、非本目录执行。
- [ok] 网络请求/恶意外发 — §3 网络请求 0 命中;SKILL.md 与 references 无域名级调用代码。
- [ok] 凭证/环境变量读取 — 仅 $HOME 用于定位 EXTEND.md 路径,非凭据泄露。
- [ok] 写盘范围 — 写盘 0 命中(正则为线索);正文明确写入会话目录 xhs-images/{topic-slug}/,属产物。
- [ok] 风格/版式枚举与 SKILL.md 声明一致 — §1 列 10 个 presets 文件、4 个 elements 文件、3 个 workflows、3 个 config,与正文引用一致。
- [ok] 是否夸大能力 — description 声称 10 风格 8 版式 1-10 图,正文 Style/Layout Gallery 与样式矩阵可对应,未夸大。
6Verdict & Scenarios
d19d5f23ade997a5…