canghe-article-illustrator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseArticle Illustrator
文章插图生成器
Analyze articles, identify illustration positions, generate images with Type × Style consistency.
分析文章内容,识别插图位置,生成风格与类型统一的图片。
Two Dimensions
二维维度
| Dimension | Controls | Examples |
|---|---|---|
| Type | Information structure | infographic, scene, flowchart, comparison, framework, timeline |
| Style | Visual aesthetics | notion, warm, minimal, blueprint, watercolor, elegant |
Combine freely:
--type infographic --style blueprint| 维度 | 控制项 | 示例 |
|---|---|---|
| 类型 | 信息结构 | 信息图、场景图、流程图、对比图、架构图、时间线 |
| 风格 | 视觉美学 | Notion风格、温暖风、极简风、蓝图风、水彩风、优雅风 |
自由组合:
--type infographic --style blueprintTypes
类型说明
| Type | Best For |
|---|---|
| Data, metrics, technical |
| Narratives, emotional |
| Processes, workflows |
| Side-by-side, options |
| Models, architecture |
| History, evolution |
| 类型 | 适用场景 |
|---|---|
| 数据、指标、技术类内容 |
| 叙事、情感类内容 |
| 流程、工作流类内容 |
| 并列对比、选项类内容 |
| 模型、架构类内容 |
| 历史、演进类内容 |
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: FinalizeStep 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"| Result | Action |
|---|---|
| Found | Read, 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:内容分析
| Analysis | Output |
|---|---|
| Content type | Technical / Tutorial / Methodology / Narrative |
| Purpose | information / visualization / imagination |
| Core arguments | 2-5 main points |
| Positions | Where 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.
| Q | Options |
|---|---|
| Q1: Type | [Recommended], infographic, scene, flowchart, comparison, framework, timeline, mixed |
| Q2: Density | minimal (1-2), balanced (3-5), per-section (Recommended), rich (6+) |
| Q3: Style | [Recommended], minimal-flat, sci-fi, hand-drawn, editorial, scene, Other |
| Q4: Language | When 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 with frontmatter (type, density, style, image_count) and entries:
outline.mdyaml
undefined保存带有前置元数据(type、density、style、image_count)的文件,内容格式如下:
outline.mdyaml
undefinedIllustration 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.
- For each illustration, create a prompt file per references/prompt-construction.md
- Save to with YAML frontmatter
prompts/NN-{type}-{slug}.md - Prompts MUST use type-specific templates with structured sections (ZONES / LABELS / COLORS / STYLE / ASPECT)
- LABELS MUST include article-specific data: actual numbers, terms, metrics, quotes
- DO NOT pass ad-hoc inline prompts to without saving prompt files first
--prompt - Select generation skill, process references (/
direct/style)palette - Apply watermark if EXTEND.md enabled
- Generate from saved prompt files; retry once on failure
Full procedures: references/workflow.md
⛔ 阻塞项:必须先保存Prompt文件,才能进行任何图片生成操作。
- 为每幅插图按照references/prompt-construction.md创建Prompt文件
- 保存至,并包含YAML前置元数据
prompts/NN-{type}-{slug}.md - Prompt必须使用类型专属模板,包含结构化章节(ZONES / LABELS / COLORS / STYLE / ASPECT)
- LABELS必须包含文章专属数据:实际数字、术语、指标、引用内容
- 禁止在未保存Prompt文件的情况下,将临时Prompt直接传入参数
--prompt - 选择生成工具,处理参考素材(/
direct/style)palette - 若EXTEND.md中启用水印,则添加水印
- 从已保存的Prompt文件生成图片;生成失败时重试一次
完整流程:references/workflow.md
Step 6: Finalize
步骤6:最终定稿
Insert after paragraphs.
Article Illustration Complete!
Article: [path] | Type: [type] | Density: [level] | Style: [style]
Images: X/N generated在对应段落之后插入。
Article Illustration Complete!
Article: [path] | Type: [type] | Density: [level] | Style: [style]
Images: X/N generatedOutput Directory
输出目录
illustrations/{topic-slug}/
├── source-{slug}.{ext}
├── references/ # if provided
├── outline.md
├── prompts/
└── NN-{type}-{slug}.pngSlug: 2-4 words, kebab-case. Conflict: append .
-YYYYMMDD-HHMMSSillustrations/{topic-slug}/
├── source-{slug}.{ext}
├── references/ # if provided
├── outline.md
├── prompts/
└── NN-{type}-{slug}.pngSlug:2-4个单词,短横线分隔格式。冲突处理:追加。
-YYYYMMDD-HHMMSSModification
修改操作
| Action | Steps |
|---|---|
| Edit | Update prompt → Regenerate → Update reference |
| Add | Position → Prompt → Generate → Update outline → Insert |
| Delete | Delete files → Remove reference → Update outline |
| 操作 | 步骤 |
|---|---|
| 编辑 | 更新Prompt → 重新生成 → 更新引用 |
| 添加 | 确定位置 → 创建Prompt → 生成图片 → 更新大纲 → 插入文章 |
| 删除 | 删除文件 → 移除引用 → 更新大纲 |
References
参考文档
| File | Content |
|---|---|
| references/workflow.md | Detailed procedures |
| references/usage.md | Command syntax |
| references/styles.md | Style gallery |
| references/prompt-construction.md | Prompt templates |
| references/config/first-time-setup.md | First-time setup |
| 文件 | 内容 |
|---|---|
| references/workflow.md | 详细流程说明 |
| references/usage.md | 命令语法 |
| references/styles.md | 风格图库 |
| references/prompt-construction.md | Prompt模板 |
| references/config/first-time-setup.md | 首次设置指南 |