信息图
概述
信息图是信息、数据或知识的视觉化呈现,旨在快速、清晰地展示复杂内容。本技能使用 Nano Banana Pro AI 生成信息图,配合 Gemini 3 Pro 质量评审与 Perplexity Sonar 研究。
工作原理:
- (可选)研究阶段:使用 Perplexity Sonar 收集准确的事实与统计数据
- 用自然语言描述你的信息图
- Nano Banana Pro 自动生成出版级信息图
- Gemini 3 Pro 按文档类型阈值评审质量
- 智能迭代:仅当质量低于阈值时重新生成
- 数分钟内产出可用于生产的成品
- 无需设计技能
按文档类型的质量阈值:
| 文档类型 | 阈值 | 描述 |
|---|---|---|
| marketing | 8.5/10 | 营销材料 - 必须具有吸引力 |
| report | 8.0/10 | 商业报告 - 专业质量 |
| presentation | 7.5/10 | 幻灯片、演讲 - 清晰且引人入胜 |
| social | 7.0/10 | 社交媒体内容 |
| internal | 7.0/10 | 内部使用 |
| draft | 6.5/10 | 工作草稿 |
| default | 7.5/10 | 通用目的 |
只需描述你想要什么,Nano Banana Pro 就会创建它。
快速开始
只需描述即可生成任意信息图:
# 生成列表型信息图(默认阈值 7.5/10)
python skills/infographics/scripts/generate_infographic.py
"5 benefits of regular exercise"
-o figures/exercise_benefits.png --type list
# 为营销生成(最高阈值:8.5/10)
python skills/infographics/scripts/generate_infographic.py
"Product features comparison"
-o figures/product_comparison.png --type comparison --doc-type marketing
# 以企业风格生成
python skills/infographics/scripts/generate_infographic.py
"Company milestones 2010-2025"
-o figures/timeline.png --type timeline --style corporate
# 使用色盲安全配色生成
python skills/infographics/scripts/generate_infographic.py
"Heart disease statistics worldwide"
-o figures/health_stats.png --type statistical --palette wong
# 带研究生成,以获取准确、最新的数据
python skills/infographics/scripts/generate_infographic.py
"Global AI market size and growth projections"
-o figures/ai_market.png --type statistical --research
幕后发生了什么:
- (可选)研究:Perplexity Sonar 收集准确的事实、统计与数据
- 第 1 次生成:Nano Banana Pro 遵循设计最佳实践创建初始信息图
- 第 1 次评审:Gemini 3 Pro 按文档类型阈值评估质量
- 决策:若质量 >= 阈值 → 完成(无需更多迭代!)
- 若低于阈值:基于评审改进提示词,重新生成
- 重复:直至质量达标或达到最大迭代次数
智能迭代的好处:
- ✅ 若首次生成已够好,节省 API 调用
- ✅ 对营销材料采用更高质量标准
- ✅ 草稿/内部使用更快交付
- ✅ 每个用例匹配适当质量
输出:带版本号的图像,外加一份详细的评审日志,含质量评分、评审意见与早停信息。
何时使用本技能
在以下情况下使用 infographics 技能:
- 以视觉格式呈现数据或统计
- 为项目里程碑或历史创建时间线可视化
- 解释流程、工作流或分步指南
- 将选项、产品或概念并排比较
- 以引人入胜的视觉格式总结要点
- 创建地理或基于地图的数据可视化
- 构建层级或组织图
- 设计社交媒体内容或营销材料
改而使用 scientific-schematics 的场景:
- 技术流程图与电路图
- 生物通路与分子图
- 神经网络架构图
- CONSORT/PRISMA 方法学图
研究集成
自动数据收集(--research)
创建需要准确、最新数据的信息图时,使用 --research 标志自动通过 Perplexity Sonar Pro 收集事实与统计。
# 研究并生成统计信息图
python skills/infographics/scripts/generate_infographic.py
"Global renewable energy adoption rates by country"
-o figures/renewable_energy.png --type statistical --research
# 为时间线信息图研究
python skills/infographics/scripts/generate_infographic.py
"History of artificial intelligence breakthroughs"
-o figures/ai_history.png --type timeline --research
# 为比较信息图研究
python skills/infographics/scripts/generate_infographic.py
"Electric vehicles vs hydrogen vehicles comparison"
-o figures/ev_hydrogen.png --type comparison --research
研究提供什么
研究阶段自动:
- 收集关键事实:关于该主题的 5-8 条相关事实与统计
- 提供上下文:用于准确呈现的背景信息
- 查找数据点:具体数字、百分比与日期
- 引用来源:提及主要研究或来源
- 优先近期:聚焦 2023-2026 的信息
何时使用研究
启用研究(--research)的场景:
- 需要准确数字统计信息图
- 市场数据、行业统计或趋势
- 科学或医学信息
- 当前事件或近期进展
- 准确性至关重要的任何主题
跳过研究的场景:
- 简单的概念性信息图
- 内部流程文档
- 你在提示词中已提供全部数据的主题
- 对速度要求极高的生成
研究输出
启用研究时,会创建额外文件:
{name}_research.json- 原始研究数据与来源- 研究内容自动整合进信息图提示词
信息图类型
1. 统计/数据驱动型(--type statistical)
最适合:呈现数字、百分比、调查结果和定量数据。
关键元素: 图表(柱状、饼图、折线、环形)、大号数字标注、数据对比、趋势指标。
python skills/infographics/scripts/generate_infographic.py
"Global internet usage 2025: 5.5 billion users (68% of population),
Asia Pacific 53%, Europe 15%, Americas 20%, Africa 12%"
-o figures/internet_stats.png --type statistical --style technology
2. 时间线(--type timeline)
最适合:历史事件、项目里程碑、公司历史、概念演进。
关键元素: 时间顺序流、日期标记、事件节点、连接线。
python skills/infographics/scripts/generate_infographic.py
"History of AI: 1950 Turing Test, 1956 Dartmouth Conference,
1997 Deep Blue, 2016 AlphaGo, 2022 ChatGPT"
-o figures/ai_history.png --type timeline --style technology
3. 流程/操作指南(--type process)
最适合:分步说明、工作流、流程、教程。
关键元素: 编号步骤、方向箭头、操作图标、清晰的流向。
python skills/infographics/scripts/generate_infographic.py
"How to start a podcast: 1. Choose your niche, 2. Plan content,
3. Set up equipment, 4. Record episodes, 5. Publish and promote"
-o figures/podcast_process.png --type process --style marketing
4. 比较(--type comparison)
最适合:产品对比、优缺点、前/后、选项评估。
关键元素: 并排布局、匹配的类别、对勾/叉号指示符。
python skills/infographics/scripts/generate_infographic.py
"Electric vs Gas Cars: Fuel cost (lower vs higher),
Maintenance (less vs more), Range (improving vs established)"
-o figures/ev_comparison.png --type comparison --style nature
5. 列表/信息型(--type list)
最适合:技巧、事实、要点、摘要、快速参考指南。
关键元素: 编号或项目符号要点、图标、清晰的层级。
python skills/infographics/scripts/generate_infographic.py
"7 Habits of Highly Effective People: Be Proactive,
Begin with End in Mind, Put First Things First, Think Win-Win,
Seek First to Understand, Synergize, Sharpen the Saw"
-o figures/habits.png --type list --style corporate
6. 地理型(--type geographic)
最适合:区域数据、人口统计、基于位置的统计、全球趋势。
关键元素: 地图可视化、颜色编码、数据叠加、图例。
python skills/infographics/scripts/generate_infographic.py
"Renewable energy adoption by region: Iceland 100%, Norway 98%,
Germany 50%, USA 22%, India 20%"
-o figures/renewable_map.png --type geographic --style nature
7. 层级/金字塔型(--type hierarchical)
最适合:组织结构、优先级层级、重要性排序。
关键元素: 金字塔或树状结构、清晰层级、尺寸递进。
python skills/infographics/scripts/generate_infographic.py
"Maslow's Hierarchy: Physiological, Safety, Love/Belonging,
Esteem, Self-Actualization"
-o figures/maslow.png --type hierarchical --style education
8. 解剖/视觉隐喻型(--type anatomical)
最适合:使用熟悉的视觉隐喻解释复杂系统。
关键元素: 中心隐喻图像、带标签的部件、连接线。
python skills/infographics/scripts/generate_infographic.py
"Business as a human body: Brain=Leadership, Heart=Culture,
Arms=Sales, Legs=Operations, Skeleton=Systems"
-o figures/business_body.png --type anatomical --style corporate
9. 简历/职业型(--type resume)
最适合:个人品牌、简历、作品集亮点、职业成就。
关键元素: 照片区、技能可视化、时间线、联系信息。
python skills/infographics/scripts/generate_infographic.py
"UX Designer resume: Skills - User Research 95%, Wireframing 90%,
Prototyping 85%. Experience - 2020-2022 Junior, 2022-2025 Senior"
-o figures/resume.png --type resume --style technology
10. 社交媒体型(--type social)
最适合:Instagram、LinkedIn、Twitter/X 帖子、可分享图形。
关键元素: 醒目标题、最少文字、最大冲击力、鲜艳配色。
python skills/infographics/scripts/generate_infographic.py
"Save Water, Save Life: 2.2 billion people lack safe drinking water.
Tips: shorter showers, fix leaks, full loads only"
-o figures/water_social.png --type social --style marketing
风格预设
行业风格(--style)
| 风格 | 配色 | 最适合 |
|---|---|---|
corporate |
海军蓝、钢蓝、金色 | 商业报告、金融 |
healthcare |
医疗蓝、青色、浅青 | 医疗、健康 |
technology |
科技蓝、石板色、紫罗兰 | 软件、数据、AI |
nature |
森林绿、薄荷绿、大地棕 | 环境、有机 |
education |
学术蓝、浅蓝、珊瑚色 | 学习、学术 |
marketing |
珊瑚色、青色、黄色 | 社交媒体、活动 |
finance |
海军蓝、金色、绿/红 | 投资、银行 |
nonprofit |
暖橙、鼠尾草绿、沙色 | 社会公益、慈善 |
# 企业风格
python skills/infographics/scripts/generate_infographic.py
"Q4 Results" -o q4.png --type statistical --style corporate
# 医疗风格
python skills/infographics/scripts/generate_infographic.py
"Patient Journey" -o journey.png --type process --style healthcare
色盲安全配色方案
可用配色(--palette)
| 配色 | 颜色 | 描述 |
|---|---|---|
wong |
橙色、天蓝、绿色、蓝色、朱红 | 最广泛推荐 |
ibm |
深蓝、靛蓝、品红、橙色、金色 | IBM 无障碍配色 |
tol |
12 色扩展配色 | 用于多类别 |
# Wong 色盲安全配色
python skills/infographics/scripts/generate_infographic.py
"Survey results by category" -o survey.png --type statistical --palette wong
智能迭代精炼
工作原理
┌─────────────────────────────────────────────────────┐
│ 1. 用 Nano Banana Pro 生成信息图 │
│ ↓ │
│ 2. 用 Gemini 3 Pro 评审质量 │
│ ↓ │
│ 3. 得分 >= 阈值? │
│ 是 → 完成!(早停) │
│ 否 → 改进提示词,回到第 1 步 │
│ ↓ │
│ 4. 重复直至质量达标或达到最大迭代次数 │
└─────────────────────────────────────────────────────┘
质量评审标准
Gemini 3 Pro 从以下方面评估每张信息图:
视觉层级与布局(0-2 分)
- 清晰的视觉层级
- 合乎逻辑的阅读流
- 均衡的构图
字体与可读性(0-2 分)
- 可读的文字
- 醒目的标题
- 无重叠
数据可视化(0-2 分)
- 突出的数字
- 清晰的图表/图标
- 恰当的标签
配色与无障碍(0-2 分)
- 专业的配色
- 足够的对比度
- 色盲友好
整体冲击力(0-2 分)
- 专业外观
- 无视觉缺陷
- 达成沟通目标
评审日志
每次生成都会产生一份 JSON 评审日志:
{
"user_prompt": "5 benefits of exercise...",
"infographic_type": "list",
"style": "healthcare",
"doc_type": "marketing",
"quality_threshold": 8.5,
"iterations": [
{
"iteration": 1,
"image_path": "figures/exercise_v1.png",
"score": 8.7,
"needs_improvement": false,
"critique": "SCORE: 8.7nSTRENGTHS:..."
}
],
"final_score": 8.7,
"early_stop": true,
"early_stop_reason": "Quality score 8.7 meets threshold 8.5"
}
命令行参考
python skills/infographics/scripts/generate_infographic.py [OPTIONS] PROMPT
参数:
PROMPT 信息图内容的描述
选项:
-o, --output PATH 输出文件路径(必需)
-t, --type TYPE 信息图类型预设
-s, --style STYLE 行业风格预设
-p, --palette PALETTE 色盲安全配色
-b, --background COLOR 背景色(默认:白色)
--doc-type TYPE 用于质量阈值的文档类型
--iterations N 最大精炼迭代次数(默认:3)
--api-key KEY OpenRouter API key
-v, --verbose 详细输出
--list-options 列出所有可用选项
列出所有选项
python skills/infographics/scripts/generate_infographic.py --list-options
配置
API Key 设置
设置你的 OpenRouter API key:
export OPENROUTER_API_KEY='your_api_key_here'
获取 API key:https://openrouter.ai/keys
提示词工程技巧
对内容要具体
✓ 好的提示词(具体、详细):
"5 benefits of meditation: reduces stress, improves focus,
better sleep, lower blood pressure, emotional balance"
✗ 避免模糊提示词:
"meditation infographic"
包含数据点
✓ 好:
"Market growth from $10B (2020) to $45B (2025), CAGR 35%"
✗ 模糊:
"market is growing"
指定视觉元素
✓ 好:
"Timeline showing 5 milestones with icons for each event"
参考文件
详细的指导请加载以下参考文件:
references/infographic_types.md:所有 10+ 种类型的扩展模板references/design_principles.md:视觉层级、布局、字体排印references/color_palettes.md:完整配色规范
排障
常见问题
问题:信息图中的文字不可读
- 解决方案:减少文字内容;使用 --type 指定布局类型
问题:颜色冲突或不可访问
- 解决方案:使用
--palette wong获得色盲安全颜色
问题:质量评分过低
- 解决方案:用
--iterations 3增加迭代次数;使用更具体的提示词
问题:生成了错误类型的信息图
- 解决方案:始终指定
--type标志以获得一致结果
与其他技能的集成
本技能与以下技能协同良好:
- scientific-schematics:用于技术图表与流程图
- market-research-reports:用于商业报告的信息图
- scientific-slides:用于演示的信息图元素
- generate-image:用于非信息图的视觉内容
快速参考检查清单
生成前:
- 清晰、具体的内容描述
- 已选择信息图类型(
--type) - 风格适合受众(
--style) - 已指定输出路径(
-o) - 已配置 API key
生成后:
- 审阅生成的图像
- 检查评审日志中的评分
- 如有需要,用更具体的提示词重新生成
使用 Nano Banana Pro AI 配合智能质量评审的强大能力,创建专业、无障碍且视觉引人入胜的信息图。


