canghe-article-illustrator

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Article Illustrator

文章插图生成器

Analyze articles, identify illustration positions, generate images with Type × Style consistency.
分析文章内容,识别插图位置,生成风格与类型统一的图片。

Two Dimensions

二维维度

DimensionControlsExamples
TypeInformation structureinfographic, scene, flowchart, comparison, framework, timeline
StyleVisual aestheticsnotion, warm, minimal, blueprint, watercolor, elegant
Combine freely:
--type infographic --style blueprint
维度控制项示例
类型信息结构信息图、场景图、流程图、对比图、架构图、时间线
风格视觉美学Notion风格、温暖风、极简风、蓝图风、水彩风、优雅风
自由组合:
--type infographic --style blueprint

Types

类型说明

TypeBest For
infographic
Data, metrics, technical
scene
Narratives, emotional
flowchart
Processes, workflows
comparison
Side-by-side, options
framework
Models, architecture
timeline
History, evolution
类型适用场景
infographic
数据、指标、技术类内容
scene
叙事、情感类内容
flowchart
流程、工作流类内容
comparison
并列对比、选项类内容
framework
模型、架构类内容
timeline
历史、演进类内容

Styles

风格说明

See references/styles.md for Core Styles, full gallery, and Type × Style compatibility.
查看references/styles.md获取核心风格、完整风格图库以及类型与风格的兼容性说明。

Workflow

工作流

- [ ] Step 1: Pre-check (EXTEND.md, references, config)
- [ ] Step 2: Analyze content
- [ ] Step 3: Confirm settings (AskUserQuestion)
- [ ] Step 4: Generate outline
- [ ] Step 5: Generate images
- [ ] Step 6: Finalize
- [ ] Step 1: Pre-check (EXTEND.md, references, config)
- [ ] Step 2: Analyze content
- [ ] Step 3: Confirm settings (AskUserQuestion)
- [ ] Step 4: Generate outline
- [ ] Step 5: Generate images
- [ ] Step 6: Finalize

Step 1: Pre-check

步骤1:预检查

1.5 Load Preferences (EXTEND.md) ⛔ BLOCKING
bash
test -f .canghe-skills/canghe-article-illustrator/EXTEND.md && echo "project"
test -f "$HOME/.canghe-skills/canghe-article-illustrator/EXTEND.md" && echo "user"
ResultAction
FoundRead, parse, display summary
Not found⛔ Run first-time-setup
Full procedures: references/workflow.md
1.5 加载偏好设置(EXTEND.md) ⛔ 阻塞项
bash
test -f .canghe-skills/canghe-article-illustrator/EXTEND.md && echo "project"
test -f "$HOME/.canghe-skills/canghe-article-illustrator/EXTEND.md" && echo "user"
结果操作
找到文件读取、解析并显示摘要
未找到文件⛔ 运行首次设置
完整流程:references/workflow.md

Step 2: Analyze

步骤2:内容分析

AnalysisOutput
Content typeTechnical / Tutorial / Methodology / Narrative
Purposeinformation / visualization / imagination
Core arguments2-5 main points
PositionsWhere illustrations add value
CRITICAL: Metaphors → visualize underlying concept, NOT literal image.
Full procedures: references/workflow.md
分析项输出结果
内容类型技术类 / 教程类 / 方法论类 / 叙事类
创作目的信息传递 / 可视化展示 / 想象力呈现
核心论点2-5个主要观点
插图位置插图能提升内容价值的位置
关键提示:隐喻需可视化其背后的概念,而非字面图像。
完整流程:references/workflow.md

Step 3: Confirm Settings ⚠️

步骤3:确认设置 ⚠️

ONE AskUserQuestion, max 4 Qs. Q1-Q3 REQUIRED.
QOptions
Q1: Type[Recommended], infographic, scene, flowchart, comparison, framework, timeline, mixed
Q2: Densityminimal (1-2), balanced (3-5), per-section (Recommended), rich (6+)
Q3: Style[Recommended], minimal-flat, sci-fi, hand-drawn, editorial, scene, Other
Q4: LanguageWhen article language ≠ EXTEND.md setting
Full procedures: references/workflow.md
仅发起一次用户询问,最多4个问题。问题1-3为必填项。
问题选项
Q1: 类型[推荐选项], infographic, scene, flowchart, comparison, framework, timeline, mixed
Q2: 密度minimal (1-2), balanced (3-5), per-section (推荐), rich (6+)
Q3: 风格[推荐选项], minimal-flat, sci-fi, hand-drawn, editorial, scene, 其他
Q4: 语言当文章语言与EXTEND.md设置不一致时询问
完整流程:references/workflow.md

Step 4: Generate Outline

步骤4:生成大纲

Save
outline.md
with frontmatter (type, density, style, image_count) and entries:
yaml
undefined
保存带有前置元数据(type、density、style、image_count)的
outline.md
文件,内容格式如下:
yaml
undefined

Illustration 1

Illustration 1

Position: [section/paragraph] Purpose: [why] Visual Content: [what] Filename: 01-infographic-concept-name.png

Full template: [references/workflow.md](references/workflow.md#step-4-generate-outline)
Position: [section/paragraph] Purpose: [why] Visual Content: [what] Filename: 01-infographic-concept-name.png

完整模板:[references/workflow.md](references/workflow.md#step-4-generate-outline)

Step 5: Generate Images

步骤5:生成图片

BLOCKING: Prompt files MUST be saved before ANY image generation.
  1. For each illustration, create a prompt file per references/prompt-construction.md
  2. Save to
    prompts/NN-{type}-{slug}.md
    with YAML frontmatter
  3. Prompts MUST use type-specific templates with structured sections (ZONES / LABELS / COLORS / STYLE / ASPECT)
  4. LABELS MUST include article-specific data: actual numbers, terms, metrics, quotes
  5. DO NOT pass ad-hoc inline prompts to
    --prompt
    without saving prompt files first
  6. Select generation skill, process references (
    direct
    /
    style
    /
    palette
    )
  7. Apply watermark if EXTEND.md enabled
  8. Generate from saved prompt files; retry once on failure
Full procedures: references/workflow.md
阻塞项:必须先保存Prompt文件,才能进行任何图片生成操作。
  1. 为每幅插图按照references/prompt-construction.md创建Prompt文件
  2. 保存至
    prompts/NN-{type}-{slug}.md
    ,并包含YAML前置元数据
  3. Prompt必须使用类型专属模板,包含结构化章节(ZONES / LABELS / COLORS / STYLE / ASPECT)
  4. LABELS必须包含文章专属数据:实际数字、术语、指标、引用内容
  5. 禁止在未保存Prompt文件的情况下,将临时Prompt直接传入
    --prompt
    参数
  6. 选择生成工具,处理参考素材(
    direct
    /
    style
    /
    palette
  7. 若EXTEND.md中启用水印,则添加水印
  8. 从已保存的Prompt文件生成图片;生成失败时重试一次
完整流程:references/workflow.md

Step 6: Finalize

步骤6:最终定稿

Insert
![description](path/NN-{type}-{slug}.png)
after paragraphs.
Article Illustration Complete!
Article: [path] | Type: [type] | Density: [level] | Style: [style]
Images: X/N generated
在对应段落之后插入
![description](path/NN-{type}-{slug}.png)
Article Illustration Complete!
Article: [path] | Type: [type] | Density: [level] | Style: [style]
Images: X/N generated

Output Directory

输出目录

illustrations/{topic-slug}/
├── source-{slug}.{ext}
├── references/           # if provided
├── outline.md
├── prompts/
└── NN-{type}-{slug}.png
Slug: 2-4 words, kebab-case. Conflict: append
-YYYYMMDD-HHMMSS
.
illustrations/{topic-slug}/
├── source-{slug}.{ext}
├── references/           # if provided
├── outline.md
├── prompts/
└── NN-{type}-{slug}.png
Slug:2-4个单词,短横线分隔格式。冲突处理:追加
-YYYYMMDD-HHMMSS

Modification

修改操作

ActionSteps
EditUpdate prompt → Regenerate → Update reference
AddPosition → Prompt → Generate → Update outline → Insert
DeleteDelete files → Remove reference → Update outline
操作步骤
编辑更新Prompt → 重新生成 → 更新引用
添加确定位置 → 创建Prompt → 生成图片 → 更新大纲 → 插入文章
删除删除文件 → 移除引用 → 更新大纲

References

参考文档

FileContent
references/workflow.mdDetailed procedures
references/usage.mdCommand syntax
references/styles.mdStyle gallery
references/prompt-construction.mdPrompt templates
references/config/first-time-setup.mdFirst-time setup
文件内容
references/workflow.md详细流程说明
references/usage.md命令语法
references/styles.md风格图库
references/prompt-construction.mdPrompt模板
references/config/first-time-setup.md首次设置指南