infographic

infographic

熱門

使用空格分隔的鍵值語法(非 YAML)建立基於模板的資訊圖表。最適合用於 KPI 儀表板、時間軸、路線圖、SWOT 分析、漏斗圖、比較圖和組織圖,快速呈現視覺效果。

3093星標
178分支
更新於 2026/5/26
SKILL.md
唯讀
名稱
infographic
描述

使用空格分隔的鍵值語法(非 YAML)建立基於模板的資訊圖表。最適合用於 KPI 儀表板、時間軸、路線圖、SWOT 分析、漏斗圖、比較圖和組織圖,快速呈現視覺效果。

Infographic Visualizer

⚠️ 檢查模板: 錯誤的模板名稱會導致渲染失敗。

使用時機與可用模板

✅ 使用 infographic 的時機:

  • 功能列表 / 核取清單list-grid-badge-cardlist-grid-candy-card-litelist-grid-ribbon-cardlist-column-done-listlist-column-vertical-icon-arrowlist-column-simple-vertical-arrowlist-row-horizontal-icon-arrowlist-row-simple-illuslist-sector-plain-textlist-zigzag-down-compact-cardlist-zigzag-down-simplelist-zigzag-up-compact-cardlist-zigzag-up-simple
  • 時間軸 / 里程碑sequence-timeline-simplesequence-timeline-rounded-rect-nodesequence-timeline-simple-illus
  • 逐步流程sequence-snake-steps-simplesequence-snake-steps-compact-cardsequence-snake-steps-underline-textsequence-stairs-front-compact-cardsequence-stairs-front-pill-badgesequence-ascending-stepssequence-ascending-stairs-3d-underline-textsequence-circular-simplesequence-pyramid-simplesequence-mountain-underline-textsequence-cylinders-3d-simplesequence-zigzag-steps-underline-textsequence-zigzag-pucks-3d-simplesequence-horizontal-zigzag-underline-textsequence-horizontal-zigzag-simple-illussequence-color-snake-steps-horizontal-icon-line
  • 產品路線圖sequence-roadmap-vertical-simplesequence-roadmap-vertical-plain-text
  • 漏斗 / 轉換sequence-filter-mesh-simplesequence-funnel-simple
  • A vs B 比較compare-binary-horizontal-underline-text-vscompare-binary-horizontal-simple-foldcompare-binary-horizontal-badge-card-arrowcompare-hierarchy-left-right-circle-node-pill-badge
  • SWOT 分析compare-swot
  • 優先矩陣 2×2quadrant-quarter-simple-cardquadrant-quarter-circularquadrant-simple-illus
  • 組織樹 / 階層hierarchy-tree-tech-style-capsule-itemhierarchy-tree-curved-line-rounded-rect-nodehierarchy-tree-tech-style-badge-cardhierarchy-structure
  • 圓餅 / 甜甜圈圖chart-pie-plain-textchart-pie-compact-cardchart-pie-donut-plain-textchart-pie-donut-pill-badge
  • 長條 / 柱狀圖chart-bar-plain-textchart-column-simplechart-line-plain-text
  • 文字雲chart-wordcloud
  • 關係 / 圓形relation-circle-icon-badgerelation-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

⚠️ 常見錯誤(會導致渲染失敗)

❌ 錯誤 — 請勿使用 YAML 冒號語法:
template: list-grid-badge-card     ← 錯誤!不能有 "template:" 鍵
title: My Title                    ← 錯誤!不允許冒號
items:                             ← 錯誤!items 後面不能有冒號
  - label: Item One                ← 錯誤!label 後面不能有冒號
    description: Some text         ← 錯誤!欄位是 "desc" 而非 "description"
    value: "100"                   ← 錯誤!不能有冒號,且 value 必須是數值
steps:                             ← 錯誤!欄位是 "items" 而非 "steps"
left:                              ← 錯誤!比較使用 2 個根項目 + children
  label: Option A                  ← 錯誤!比較結構是扁平項目
quadrants:                         ← 錯誤!象限使用 4 個項目 + children

✅ 正確 — 空格分隔的鍵值對,2 空格縮排:
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-nameIconify 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 vs 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 個項目代表四個象限。

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
```

主題(選用)

data同層級(而非巢狀在 data 內)加入 theme 區塊:

# 預設主題(單行)
theme dark

# 自訂調色盤
infographic list-grid-badge-card
theme
  palette #3b82f6 #8b5cf6 #f97316
data
  title My Title
  items
    - label Item 1

可用預設:darkhand-drawn

相關檔案

如需詳細語法、模板和範例,請參閱以下參考資料:

資源