关于 infographic
通过指定模板和文本语法将结构化信息转换为信息图的技能,涵盖列表、时间线、流程、比较、图表和层级结构。
主要功能
- 01列表、时间线和流程模板
- 02比较、SWOT 与象限布局
- 03饼图、柱状图和折线图模板
- 04信息图数据的规定语法
适用场景
- 01将项目里程碑展示为时间线
- 02比较选项或整理 SWOT 分析
- 03可视化图表数值与优先级矩阵
安装
复制下面的命令,在终端中运行。
npx skills add https:/ / github.com/ markdown-viewer/ skills --skill infographic安装后在 Claude Code 中输入/infographic确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/examples.mdsyntax.mdtemplates.md详细介绍
信息图可视化工具
**⚠️ 检查模板:**错误的模板名称会导致渲染失败。
适用场景与可用模板
✅ 以下情况适合使用信息图:
- 功能列表/检查清单:
list-grid-badge-card、list-grid-candy-card-lite、list-grid-ribbon-card、list-column-done-list、list-column-vertical-icon-arrow、list-column-simple-vertical-arrow、list-row-horizontal-icon-arrow、list-row-simple-illus、list-sector-plain-text、list-zigzag-down-compact-card、list-zigzag-down-simple、list-zigzag-up-compact-card、list-zigzag-up-simple - 时间线/里程碑:
sequence-timeline-simple、sequence-timeline-rounded-rect-node、sequence-timeline-simple-illus - 分步流程:
sequence-snake-steps-simple、sequence-snake-steps-compact-card、sequence-snake-steps-underline-text、sequence-stairs-front-compact-card、sequence-stairs-front-pill-badge、sequence-ascending-steps、sequence-ascending-stairs-3d-underline-text、sequence-circular-simple、sequence-pyramid-simple、sequence-mountain-underline-text、sequence-cylinders-3d-simple、sequence-zigzag-steps-underline-text、sequence-zigzag-pucks-3d-simple、sequence-horizontal-zigzag-underline-text、sequence-horizontal-zigzag-simple-illus、sequence-color-snake-steps-horizontal-icon-line - 产品路线图:
sequence-roadmap-vertical-simple、sequence-roadmap-vertical-plain-text - 漏斗/转化:
sequence-filter-mesh-simple、sequence-funnel-simple - A 与 B 对比:
compare-binary-horizontal-underline-text-vs、compare-binary-horizontal-simple-fold、compare-binary-horizontal-badge-card-arrow、compare-hierarchy-left-right-circle-node-pill-badge - SWOT 分析:
compare-swot - 优先级矩阵 2×2:
quadrant-quarter-simple-card、quadrant-quarter-circular、quadrant-simple-illus - 组织树/层级结构:
hierarchy-tree-tech-style-capsule-item、hierarchy-tree-curved-line-rounded-rect-node、hierarchy-tree-tech-style-badge-card、hierarchy-structure - 饼图/环形图:
chart-pie-plain-text、chart-pie-compact-card、chart-pie-donut-plain-text、chart-pie-donut-pill-badge - 条形图/柱状图:
chart-bar-plain-text、chart-column-simple、chart-line-plain-text - 词云:
chart-wordcloud - 关系/圆形图:
relation-circle-icon-badge、relation-circle-circular-progress
语法结构
infographic <template-name>
data
title Title
desc Description
items
- label Label
value 12.5
desc Explanation
icon mdi/rocket-launch
theme
palette #3b82f6 #8b5cf6 #f97316
**规则:**第一行是 infographic <template-name>(必须与模板列表中的名称一致)| 缩进 2 个空格 | 使用 key value 键值对(以空格分隔,而不是 key: value)| 数组项使用 - 前缀 | 对比模板必须恰好包含 2 个根项目,并带有 children | SWOT 必须恰好包含 4 个项目(Strengths/Weaknesses/Opportunities/Threats,使用英文)| 象限模板必须恰好包含 4 个带有 children 的项目 | 列表模板使用 desc,而不是 value | hierarchy-structure 最多 3 层 | 使用 desc,而不是 description | 使用 items,而不是 steps
⚠️ 常见错误(会导致渲染失败)
❌ WRONG — Do NOT use YAML colon syntax:
template: list-grid-badge-card ← wrong! no "template:" key
title: My Title ← wrong! colons are not allowed
items: ← wrong! no colon after items
- label: Item One ← wrong! no colon after label
description: Some text ← wrong! field is "desc" not "description"
value: "100" ← wrong! no colon, and value must be numeric
steps: ← wrong! field is "items" not "steps"
left: ← wrong! compare uses 2 root items + children
label: Option A ← wrong! compare structure is flat items
quadrants: ← wrong! quadrant uses 4 items + children
✅ CORRECT — Space-separated key-value, 2-space indent:
infographic list-grid-badge-card
data
title My Title
items
- label Item One
desc Some text
value 100
数据字段
| 字段 | 描述 | 示例 |
|---|---|---|
label | 项目标题/名称(必填) | label Q1 Sales |
desc | 描述文本 | desc $1.28B | +20% |
value | 数值(仅用于图表/漏斗) | value 128 |
time | 时间标签(仅用于时间线模板) | time Q1 2024 |
icon | 图标:mdi/icon-name(Iconify) | icon mdi/star |
illus | 插画名称(unDraw) | illus coding |
children | 嵌套项目(层级结构/对比) | 参见示例 |
done | 完成状态(检查清单) | done true |
核心示例
功能网格(list-grid-badge-card)
infographic list-grid-badge-card
data
title Key Metrics
desc Annual performance overview
items
- label Total Revenue
desc $1.28B | YoY +23.5%
- label New Customers
desc 3280 | YoY +45%
- label Satisfaction
desc 94.6% | Industry leading
- label Market Share
desc 18.5% | Rank #2
时间线(sequence-timeline-simple)
时间线项目使用 time 作为时间标签,使用 label 作为里程碑名称。
infographic sequence-timeline-simple
data
title Product Roadmap
items
- label Research
time Q1 2024
desc Research phase
- label Design
time Q2 2024
desc Design phase
- label Development
time Q3 2024
desc Development
- label Launch
time Q4 2024
desc Launch
漏斗图(sequence-filter-mesh-simple)
infographic sequence-filter-mesh-simple
data
title Sales Funnel
items
- label Leads
value 10000
desc Market leads
- label Qualified
value 2500
desc 25% conversion
- label Proposals
value 800
desc 32% conversion
- label Closed
value 328
desc 41% conversion
检查清单(list-column-done-list)
infographic list-column-done-list
data
title Launch Checklist
items
- label Code review completed
done true
- label Tests passing
done true
- label Documentation updated
done false
- label Deploy to production
done false
A 与 B 对比(compare-binary-horizontal-underline-text-vs)
infographic compare-binary-horizontal-underline-text-vs
data
title Cloud vs On-Premise
items
- label Cloud
children
- label Scalable on demand
- label Pay as you go
- label On-Premise
children
- label Full control
- label One-time cost
SWOT 分析(compare-swot)
必须包含且仅包含 4 个条目,并使用英文标签:Strengths、Weaknesses、Opportunities、Threats
infographic compare-swot
data
title Strategic Analysis
items
- label Strengths
children
- label Strong R&D
- label Complete supply chain
- label Weaknesses
children
- label Limited brand awareness
- label High costs
- label Opportunities
children
- label Digital transformation
- label Emerging markets
- label Threats
children
- label Intense competition
- label Market changes
饼图/圆环图(chart-pie-donut-plain-text)
infographic chart-pie-donut-plain-text
data
title Revenue by Product
items
- label Enterprise Software
value 42
- label Cloud Services
value 28
- label Hardware
value 18
- label Services
value 12
组织树(hierarchy-tree-tech-style-capsule-item)
infographic hierarchy-tree-tech-style-capsule-item
data
title Organization Structure
items
- label CEO
children
- label VP Engineering
children
- label Frontend Team
- label Backend Team
- label VP Product
children
- label Design
- label Research
优先级矩阵(quadrant-quarter-simple-card)
象限模板必须恰好包含 4 个根条目,且每个条目都要有 children。这 4 个条目分别代表 4 个象限。
infographic quadrant-quarter-simple-card
data
title Priority Matrix
items
- label Do First
desc Urgent & Important
children
- label Critical bugs
- label Client deadlines
- label Schedule
desc Not Urgent & Important
children
- label Planning
- label Training
- label Delegate
desc Urgent & Not Important
children
- label Meetings
- label Some emails
- label Eliminate
desc Not Urgent & Not Important
children
- label Time wasters
- label Busy work
输出格式
```infographic
infographic <template-name>
data
title Your Title
items
- label Item 1
desc Description here
```
主题(可选)
添加一个 theme 块,作为 data 的顶层同级项(而不是嵌套在 data 内):
# Preset theme (single line)
theme dark
# Custom palette
infographic list-grid-badge-card
theme
palette #3b82f6 #8b5cf6 #f97316
data
title My Title
items
- label Item 1
可用预设:dark、hand-drawn
相关文件
有关详细语法、模板和示例,请参阅以下资料:
- syntax.md — 完整的语法规范和规则
- templates.md — 所有可用模板及其说明
- examples.md — 各模板类别的完整示例