canghe-infographic
Generates professional infographics with 20 layout types and 17 visual styles. Analyzes content, recommends layout×style combinations, and generates publication-ready infographics. Use when user asks to create "infographic", "信息图", "visual summary", or "可视化".
1How It Works & Mechanism
The core is the "two-dimensional free combination" model: arbitrary combinations of information structure layout (20 types) × visual style (17 types), defaulting to bento-grid + craft-handmade.
Two dimensions: **layout** (information structure) × **style** (visual aesthetics). Freely combine any layout with any style.
7-step workflow: 1 Read EXTEND.md preferences → 2 Analyze content and write analysis.md → 3 Generate structured-content.md → 4 Recommend 3-5 combinations → 5 Single confirmation → 6 Generate prompt → 7 Invoke image skill to generate images.
1. Select available image generation skill (ask user if multiple)
Content fidelity discipline: Source data must be preserved verbatim, must not be summarized or rewritten, and no new information may be added.
Preserve all source data **verbatim**—no summarization or rephrasing
EXTEND.md preferences are probed in a two-tier order (project-level → user-level) using Bash test -f; if found, they are read and parsed; if not found, AskUserQuestion is used for initial configuration guidance.
test -f .canghe-skills/canghe-infographic/EXTEND.md && echo "project"
Backup discipline: If source.md / analysis.md / prompts/infographic.md / infographic.png already exist, rename them by appending -backup-YYYYMMDD-HHMMSS before writing to avoid silent overwrites.
**Backup rule**: If `source.md` exists, rename to `source-backup-YYYYMMDD-HHMMSS.md`
The image prompt is assembled across four layers: corresponding layout definition + corresponding style definition + base-prompt template + structured content from Step 2, with all text in the confirmed language.
1. Layout definition from `references/layouts/<layout>.md`
Image generation is delegated to an external image skill: provide the prompt file and output path, automatically retry once upon failure, and output artifacts to the infographic/{topic-slug}/ directory.
3. Call with prompt file and output path
Each of the 20 layouts and 17 styles has its own reference file; the main text contains only indices and "applicable scenarios", reading single files only when needed (progressive disclosure, saving context).
Full definitions: `references/layouts/<layout>.md`
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| cli | bash(SKILL.md 用 test -f 检查 EXTEND.md 是否存在,无副作用) |
4Recommended Governance & Evidence
- SKILL.md: Pure prompt instructions and rule text, without script execution or external impact
5Second-Pass Verification
- [ok] 是否含脚本或可执行文件 — §1 清单 41 个文件全部为 .md(SKILL.md + analysis-framework + base-prompt + structured-content-template + 20 layouts + 17 styles),无 .py/.sh/.js;SKILL.md 唯一 shell 是 test -f 存在性检查,无副作用。
- [discrepancy] SKILL.md 引用的 references 是否都存在 — SKILL.md Step 1.1 与 Extension 段引用 `references/config/first-time-setup.md` 和 `references/config/preferences-schema.md`,但 §1 清单中 references/ 下只有 analysis-framework.md、base-prompt.md、structured-content-template.md、layouts/、styles/,无 config/ 目录——这两处引用为悬空,首次配置流程与偏好 schema 实际缺失。
- [ok] 布局/风格数量口径 — SKILL.md 宣称 20 layout / 17 style;§1 清单 references/layouts/ 恰 20 个 md、references/styles/ 恰 17 个 md,吻合。
- [ok] 是否有外发或凭证读取 — 全文无网络端点、无 API key/环境变量读取;$HOME 仅出现在 EXTEND.md 存在性检查与路径展示处。
- [ok] 出图由谁执行 — Step 6 明示 Select available image generation skill(多个则询问用户),由宿主另装 skill 出图,本 skill 不自带任何模型调用。
- [ok] 备份与覆盖行为 — 对 source.md / analysis.md / prompts/infographic.md / infographic.png 均定义先改名加 -backup-YYYYMMDD-HHMMSS 的备份规则,非静默覆盖。
- [ok] quote 逐条复核 — 本报告全部 evidence.quote 以子串方式回 bundle 原文比对,无编造。
6Verdict & Scenarios
8a13ef43ede1ecb6…