Command Palette

Search for a command to run...

Назад к скиллам
скилл № 77384

infographic-creator

基于给定文字内容创建精美信息图。当用户请求创建信息图时使用。

БесплатноБез исполняемых скриптов
LingyiChen-AIот LingyiChen-AI★ 70 звёзд на GitHub

Установить infographic-creator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

信息图(Infographic)将数据、信息与知识转化为可感知的视觉语言。它结合视觉设计与数据可视化,用直观符号压缩复杂信息,帮助受众快速理解并记住要点。

Infographic = Information Structure + Visual Expression

本任务使用 AntV Infographic 创建可视化信息图。

在开始任务前,需要理解 AntV Infographic 语法规范,包括模板列表、数据结构、主题等。

规范

AntV Infographic 语法

AntV Infographic 语法是一种自定义的 DSL,用于描述信息图渲染配置。它使用缩进描述信息,具有较强鲁棒性,便于 AI 流式输出并渲染信息图。主要包含以下信息:

  1. template:用模板表达文字信息结构。
  2. data:信息图数据,包含 title、desc、数据项等。数据项通常包含 label、desc、icon 等字段。
  3. theme:主题包含 palette、font 等样式配置。

例如:

infographic list-row-horizontal-icon-arrow
data
  title Title
  desc Description
  lists
    - label Label
      value 12.5
      desc Explanation
      icon document text
theme
  palette #3b82f6 #8b5cf6 #f97316

语法规范

  • 第一行必须是 infographic <template-name>,模板从下方列表中选择(见“可用模板”部分)。

  • 使用 data / theme 块,块内用两个空格缩进。

  • 键值对使用「键 空格 值」;数组使用 - 作为条目前缀。

  • icon 使用图标关键词(如 star fill)。

  • data 应包含 title/desc + 模板对应的主数据字段(不一定是 items)。

  • 主数据字段选择(只用一个,避免混用):

    • list-* → lists
    • sequence-* → sequences(可选 order asc|desc)
    • compare-* → compares(支持 children 分组对比),可包含多个对比项
    • hierarchy-structure → items(每一项对应一个独立层级,每一层级可以包含子项,最多可嵌套 3 层)
    • hierarchy-* → 单一 root(树结构,通过 children 嵌套);
    • relation-* → nodes + relations;简单关系图可省略 nodes,在 relations 中用箭头语法
    • chart-* → values(数值统计,可选 category)
    • 不确定时再用 items 兜底
  • compare-binary-* / compare-hierarchy-left-right-* 二元模板:必须两个根节点,所有对比项挂在这两个根节点的 children

  • hierarchy-*:使用单一 root,通过 children 嵌套(不要重复 root)

  • theme 用于自定义主题(palette、font 等) 例如:暗色主题 + 自定义配色

    infographic list-row-simple-horizontal-arrow
    theme dark
      palette
        - #61DDAA
        - #F6BD16
        - #F08BB4
    
  • 使用 theme.base.text.font-family 指定字体,如手写风格 851tegakizatsu

  • 使用 theme.stylize 选择内置风格并传参 常见风格:

    • rough:手绘效果
    • pattern:图案填充
    • linear-gradient / radial-gradient:线性/径向渐变

    例如:手绘风格(rough)

    infographic list-row-simple-horizontal-arrow
    theme
      stylize rough
      base
        text
          font-family 851tegakizatsu
    
  • 禁止输出 JSON、Markdown 或解释性文字

数据语法示例

按模板类别的数据语法示例(使用对应字段,避免同时添加 items):

  • list-* 模版
infographic list-grid-badge-card
data
  title Feature List
  lists
    - label Fast
      icon flash fast
    - label Secure
      icon secure shield check
  • sequence-* 模版
infographic sequence-steps-simple
data
  sequences
    - label Step 1
    - label Step 2
    - label Step 3
  order asc
  • hierarchy-* 模版
infographic hierarchy-structure
data
  root
    label Company
    children
      - label Dept A
      - label Dept B
  • compare-* 模版
infographic compare-swot
data
  compares
    - label Strengths
      children
        - label Strong brand
        - label Loyal users
    - label Weaknesses
      children
        - label High cost
        - label Slow release

四象限图

infographic compare-quadrant-quarter-simple-card
data
  compares
    - label High Impact & Low Effort
    - label High Impact & High Effort
    - label Low Impact & Low Effort
    - label Low Impact & High Effort
  • chart-* 模版
infographic chart-column-simple
data
  values
    - label Visits
      value 1280
    - label Conversion
      value 12.4
  • relation-* 模版

边标签写法:A -label-> B 或 A -->|label| B

infographic relation-dagre-flow-tb-simple-circle-node
data
  nodes
    - id A
      label Node A
    - id B
      label Node B
  relations
    A - approves -> B
    A -->|blocks| B
  • 兜底 items 示例
infographic list-row-horizontal-icon-arrow
data
  items
    - label Item A
      desc Description
      icon sun
    - label Item B
      desc Description
      icon moon

可用模板

  • chart-bar-plain-text
  • chart-column-simple
  • chart-line-plain-text
  • chart-pie-compact-card
  • chart-pie-donut-pill-badge
  • chart-pie-donut-plain-text
  • chart-pie-plain-text
  • chart-wordcloud
  • compare-binary-horizontal-badge-card-arrow
  • compare-binary-horizontal-simple-fold
  • compare-binary-horizontal-underline-text-vs
  • compare-hierarchy-left-right-circle-node-pill-badge
  • compare-quadrant-quarter-circular
  • compare-quadrant-quarter-simple-card
  • compare-swot
  • hierarchy-mindmap-branch-gradient-capsule-item
  • hierarchy-mindmap-level-gradient-compact-card
  • hierarchy-structure
  • hierarchy-tree-curved-line-rounded-rect-node
  • hierarchy-tree-tech-style-badge-card
  • hierarchy-tree-tech-style-capsule-item
  • list-column-done-list
  • list-column-simple-vertical-arrow
  • list-column-vertical-icon-arrow
  • list-grid-badge-card
  • list-grid-candy-card-lite
  • list-grid-ribbon-card
  • list-row-horizontal-icon-arrow
  • list-sector-plain-text
  • list-zigzag-down-compact-card
  • list-zigzag-down-simple
  • list-zigzag-up-compact-card
  • list-zigzag-up-simple
  • relation-dagre-flow-tb-animated-badge-card
  • relation-dagre-flow-tb-animated-simple-circle-node
  • relation-dagre-flow-tb-badge-card
  • relation-dagre-flow-tb-simple-circle-node
  • sequence-ascendin
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл infographic-creator?

基于给定文字内容创建精美信息图。当用户请求创建信息图时使用。

Как установить скилл infographic-creator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл infographic-creator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить infographic-creator с