Skip to content
Data
Skill

/antv-infographic

Create beautiful infographics based on given text content. Use when users request to create infographics.

From plugin
chart-visualization-skills
5199 skills

Claude Code

$ npx -y skills add antvis/chart-visualization-skills --skill antv-infographic --agent claude-code

SKILL.md

antv-infographic.SKILL.md
name: antv-infographic
description: Create beautiful infographics based on given text content. Use when users request to create infographics.

Infographics convert data, information, and knowledge into perceptible visual language. They combine visual design with data visualization, compressing complex information with intuitive symbols to help audiences quickly understand and remember key points.

`Infographic = Information Structure + Visual Expression`

This task uses [AntV Infographic](https://infographic.antv.vision/) to create visual infographics.

Before starting the task, you need to understand the AntV Infographic syntax specifications, including template list, data structure, themes, etc.

Specifications

AntV Infographic Syntax

AntV Infographic syntax is a custom DSL used to describe infographic rendering configurations. It uses indentation to describe information, has strong robustness, and is convenient for AI streaming output and infographic rendering. It mainly contains the following information:

1. template: Use templates to express the text information structure. 2. data: Infographic data, including title, desc, data items, etc. Data items typically contain fields such as label, desc, icon, etc. 3. theme: Theme contains style configurations such as palette, font, etc.

For example:

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

Syntax Specifications

  • The first line must be `infographic <template-name>`, template selected from the list below (see "Available Templates" section).
  • Use `data` / `theme` blocks, with two-space indentation within blocks.
  • Key-value pairs use "key space value"; arrays use `-` as entry prefix.
  • icon uses icon keywords (e.g., `star fill`).
  • `data` should contain title/desc + template-specific main data field (not necessarily `items`).
  • Main data field selection (use only one, avoid mixing):
  • `list-*` → `lists`
  • `sequence-*` → `sequences` (optional `order asc|desc`)
  • `compare-*` → `compares` (supports `children` for grouped comparisons), can contain multiple comparison items
  • `hierarchy-structure` → `items` (each item corresponds to an independent hierarchy, each level can contain sub-items, can be nested up to 3 levels)
  • `hierarchy-*` → single `root` (tree structure, nested through `children`);
  • `relation-*` → `nodes` + `relations`; simple relation diagrams can omit `nodes`, using arrow syntax in relations
  • `chart-*` → `values` (numeric statistics, optional `category`)
  • Use `items` as fallback when uncertain
  • `compare-binary-*` / `compare-hierarchy-left-right-*` binary templates: must have two root nodes, all comparison items hang under these two root nodes' children
  • `hierarchy-*`: use single `root`, nested through `children` (do not repeat `root`)
  • `theme` is used to customize themes (palette, font, etc.)

For example: dark theme + custom color scheme

  infographic list-row-horizontal-icon-arrow
  theme dark
    palette
      - #61DDAA
      - #F6BD16
      - #F08BB4
  • Use `theme.base.text.font-family` to specify font, such as handwriting style `851tegakizatsu`
  • Use `theme.stylize` to select built-in styles and pass parameters

Common styles:

  • `rough`: hand-drawn effect
  • `pattern`: pattern fill
  • `linear-gradient` / `radial-gradient`: linear/radial gradient

For example: hand-drawn style (rough)

  infographic list-row-horizontal-icon-arrow
  theme
    stylize rough
    base
      text
        font-family 851tegakizatsu
  • Do not output JSON, Markdown, or explanatory text

Data Syntax Examples

Data syntax examples by template category (use corresponding fields, avoid adding `items` simultaneously):

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

Quadrant diagram

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-*` templates
infographic chart-column-simple
data
  values
    - label Visits
      value 1280
    - label Conversion
      value 12.4
  • `relation-*` templates

> Edge label syntax: A -label-> B or 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
  • Fallback `items` example
infographic list-row-horizontal-icon-arrow
data
  items
    - label Item A
      desc Description
      icon sun
    - label Item B
      desc Description
      icon moon

Available Templates

  • 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
Read more
@antvis
Ships withchart-visualization-skills

Turning data into a visual language for better thinking. AntV , initiated by Ant Group and open-sourced starting in 2017, reimagines data visualization by embedding the theory of graphical grammar into the JavaScript language.

Stars on GitHub

Momentum

stars in total
519
Star history of antvis/chart-visualization-skills on GitHub, a chart by star-history.com
chart-visualization

chart-visualization

将数据可视化为图表。当用户需要生成柱状图、折线图、饼图、散点图、雷达图、桑基图、思维导图、流程图等图表时调用此技能,通过 curl 工具调用 AntV API 生成图表图片

More skills from other plugins.

context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem04d69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog11d41k
@posthog@posthogInstall Skill

Questions about antv-infographic.

Which coding agents can use antv-infographic?
antv-infographic installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.