tuzi-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| 维度 | 控制项 | 示例 |
|---|---|---|
| 类型(Type) | 信息结构 | infographic, scene, flowchart, comparison, framework, timeline |
| 风格(Style) | 视觉美学 | notion, warm, minimal, blueprint, watercolor, elegant |
可自由组合:
--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- [ ] 步骤1:前置检查 (EXTEND.md, 参考文件, 配置)
- [ ] 步骤2:内容分析
- [ ] 步骤3:确认配置 (AskUserQuestion)
- [ ] 步骤4:生成大纲
- [ ] 步骤5:生成图片
- [ ] 步骤6:收尾交付Step 1: Pre-check
步骤1:前置检查
1.5 Load Preferences (EXTEND.md) ⛔ BLOCKING
bash
test -f .tuzi-skills/tuzi-article-illustrator/EXTEND.md && echo "project"
test -f "$HOME/.tuzi-skills/tuzi-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 .tuzi-skills/tuzi-article-illustrator/EXTEND.md && echo "project"
test -f "$HOME/.tuzi-skills/tuzi-article-illustrator/EXTEND.md" && echo "user"| 结果 | 操作 |
|---|---|
| 找到配置文件 | 读取、解析、展示配置摘要 |
| 未找到配置文件 | ⛔ 运行 first-time-setup |
完整流程: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
仅发起一次AskUserQuestion,最多4个问题,问题1-3为必填项。
| 问题 | 可选值 |
|---|---|
| Q1: 类型 | [推荐值], infographic, scene, flowchart, comparison, framework, timeline, mixed |
| Q2: 密度 | 极简(1-2张), 均衡(3-5张), 按章节生成(推荐), 丰富(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保存,包含frontmatter(类型、密度、风格、图片数量)和如下条目:
outline.mdyaml
undefinedIllustration 1
插图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)位置: [章节/段落]
用途: [配图目的]
视觉内容: [展示内容]
文件名: 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
⛔ 阻塞要求:生成任何图片前必须先保存提示词文件。
- 针对每张插图,按照references/prompt-construction.md要求创建提示词文件
- 保存到,包含YAML frontmatter
prompts/NN-{type}-{slug}.md - 提示词必须使用对应类型的模板,包含结构化板块(ZONES / LABELS / COLORS / STYLE / ASPECT)
- 标签必须包含文章专属数据:真实数值、术语、指标、引用内容
- 禁止在未保存提示词文件的情况下直接向传递临时内联提示词
--prompt - 选择生成工具,处理参考素材(/
direct/style)palette - 如果EXTEND.md中开启了水印则添加水印
- 基于已保存的提示词文件生成图片,生成失败可重试一次
完整流程: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在对应段落下方插入。
文章插图生成完成!
文章路径: [path] | 类型: [type] | 密度: [level] | 风格: [style]
已生成图片: X/N 张Output 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/ # 若提供参考文件则存在
├── outline.md
├── prompts/
└── NN-{type}-{slug}.pngSlug:2-4个单词,kebab-case格式。命名冲突:追加后缀。
-YYYYMMDD-HHMMSSModification
修改规则
| Action | Steps |
|---|---|
| Edit | Update prompt → Regenerate → Update reference |
| Add | Position → Prompt → Generate → Update outline → Insert |
| Delete | Delete files → Remove reference → Update outline |
| 操作 | 步骤 |
|---|---|
| 编辑 | 更新提示词 → 重新生成 → 更新引用 |
| 新增 | 确认插入位置 → 编写提示词 → 生成 → 更新大纲 → 插入 |
| 删除 | 删除对应文件 → 移除引用 → 更新大纲 |
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 | 提示词模板 |
| references/config/first-time-setup.md | 首次配置指引 |