antv-infographic
Skill502 starsChanged 52 days agoMITView on GitHub
Create beautiful infographics based on given text content. Use when users request to create infographics.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- antv-g2-chartSkill
- antv-g6-graphSkill
- antv-gpt-visSkill
- antv-t8-ntvSkill
- antv-x6-editorSkill
- chart-visualizationSkill
- gpt-visSkill
- icon-retrievalSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 7 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Before starting the task, you need to understand the AntV Infographic syntax specifications, including template list, data structure, …
- Very specific: line 43
Use data / theme blocks, with two-space indentation within blocks.
- Very specific: line 55
Use items as fallback when uncertain
- Very specific: line 68
Use theme.base.text.font-family to specify font, such as handwriting style 851tegakizatsu
- Very specific: line 69
Use theme.stylize to select built-in styles and pass parameters Common styles:
- Distinctive: line 86
Do not output JSON, Markdown, or explanatory text
- Distinctive: line 322
Before creating an infographic, first understand the user's needs and the information they want to express, in order to determine the …
- Distinctive: line 324
If the user provides a clear content description, it should be broken down into a clear and concise structure.
- Distinctive: line 333
Key Note: Must respect the language of user input.
- Distinctive: line 337
When you have the final AntV Infographic syntax, you can generate a complete HTML file following these steps:
- Distinctive: line 339
Create a complete HTML file with the following structure:
- Very specific: line 343
Create container div with id container
- Very specific: line 347
Add SVG export functionality: const svgDataUrl = await infographic.toDataURL({ type: 'svg' }).
- Very specific: line 369
Use the Write tool to generate HTML file, named as <title>-infographic.html
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 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:
- template: Use templates to express the text information structure.
- data: Infographic data, including title, desc, data items, etc. Data items typically contain fields such as label, desc, icon, etc.
- 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 #f97316Syntax Specifications
- The first line must be
infographic <template-name>, template selected from the list below (see "Available Templates" section). - Use
data/themeblocks, 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). datashould contain title/desc + template-specific main data field (not necessarilyitems).- Main data field selection (use only one, avoid mixing):
list-*→listssequence-*→sequences(optionalorder asc|desc)compare-*→compares(supportschildrenfor grouped comparisons), can contain multiple comparison itemshierarchy-structure→items(each item corresponds to an independent hierarchy, each level can contain sub-items, can be nested up to 3 levels)hierarchy-*→ singleroot(tree structure, nested throughchildren);relation-*→nodes+relations; simple relation diagrams can omitnodes, using arrow syntax in relationschart-*→values(numeric statistics, optionalcategory)- Use
itemsas 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' childrenhierarchy-*: use singleroot, nested throughchildren(do not repeatroot)themeis used to customize themes (palette, font, etc.) For example: dark theme + custom color schemeinfographic list-row-horizontal-icon-arrow theme dark palette - #61DDAA - #F6BD16 - #F08BB4- Use
theme.base.text.font-familyto specify font, such as handwriting style851tegakizatsu Use
theme.stylizeto select built-in styles and pass parameters Common styles:rough: hand-drawn effectpattern: pattern filllinear-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 checksequence-*templates
infographic sequence-steps-simple
data
sequences
- label Step 1
- label Step 2
- label Step 3
order aschierarchy-*templates
infographic hierarchy-structure
data
root
label Company
children
- label Dept A
- label Dept Bcompare-*templates
infographic compare-swot
data
compares
- label Strengths
children
- label Strong brand
- label Loyal users
- label Weaknesses
children
- label High cost
- label Slow releaseQuadrant 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 Effortchart-*templates
infographic chart-column-simple
data
values
- label Visits
value 1280
- label Conversion
value 12.4relation-*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
itemsexample
infographic list-row-horizontal-icon-arrow
data
items
- label Item A
desc Description
icon sun
- label Item B
desc Description
icon moonAvailable 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
- 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-ascending-stairs-3d-underline-text
- sequence-ascending-steps
- sequence-circular-simple
- sequence-color-snake-steps-horizontal-icon-line
- sequence-cylinders-3d-simple
- sequence-filter-mesh-simple
- sequence-funnel-simple
- sequence-horizontal-zigzag-underline-text
- sequence-mountain-underline-text
- sequence-pyramid-simple
- sequence-roadmap-vertical-plain-text
- sequence-roadmap-vertical-simple
- sequence-snake-steps-compact-card
- sequence-snake-steps-simple
- sequence-snake-steps-underline-text
- sequence-stairs-front-compact-card
- sequence-stairs-front-pill-badge
- sequence-timeline-rounded-rect-node
- sequence-timeline-simple
- sequence-zigzag-pucks-3d-simple
- sequence-zigzag-steps-underline-text
Template Selection Recommendations:
- Strict sequence (process/steps/development trend) →
sequence-*- Timeline →
sequence-timeline-* - Staircase diagram →
sequence-stairs-* - Roadmap →
sequence-roadmap-vertical-* - Zigzag path →
sequence-zigzag-* - Circular progress →
sequence-circular-simple - Colorful snake steps →
sequence-color-snake-steps-* - Pyramid →
sequence-pyramid-simple
- Timeline →
- Opinion listing →
list-row-*orlist-column-* - Binary comparison (pros/cons) →
compare-binary-* - SWOT →
compare-swot - Hierarchical structure (tree diagram) →
hierarchy-tree-* - Data charts →
chart-* - Quadrant analysis →
compare-quadrant-* - Grid list (key points) →
list-grid-* - Relationship display →
relation-* - Word cloud →
chart-wordcloud - Mind map →
hierarchy-mindmap-*
Example
Creating an Internet technology evolution infographic
infographic list-row-horizontal-icon-arrow
data
title Internet Technology Evolution
desc From Web 1.0 to AI era, key milestones
lists
- time 1991
label Web 1.0
desc Tim Berners-Lee published the first website, opening the Internet era
icon web
- time 2004
label Web 2.0
desc Social media and user-generated content become mainstream
icon account multiple
- time 2007
label Mobile
desc iPhone released, smartphone changes the world
icon cellphone
- time 2015
label Cloud Native
desc Containerization and microservices architecture are widely used
icon cloud
- time 2020
label Low Code
desc Visual development lowers the technology threshold
icon application brackets
- time 2023
label AI Large Model
desc ChatGPT ignites the generative AI revolution
icon brainGeneration Process
Step 1: Understand User Requirements
Before creating an infographic, first understand the user's needs and the information they want to express, in order to determine the template and data structure.
If the user provides a clear content description, it should be broken down into a clear and concise structure.
Otherwise, clarification from the user is needed (e.g., "Please provide a clear and concise content description.", "Which template do you want to use?")
- Extract key information structure (title, desc, items, etc.).
- Clarify required data fields (title, desc, items, label, value, icon, etc.).
- Select appropriate template.
- Describe infographic content using AntV Infographic syntax
{syntax}.
Key Note: Must respect the language of user input. For example, if the user inputs in Chinese, the text in the syntax must also be in Chinese.
Step 2: Render the Infographic
When you have the final AntV Infographic syntax, you can generate a complete HTML file following these steps:
- Create a complete HTML file with the following structure:
- DOCTYPE and HTML meta (charset: utf-8)
- Title:
{title} - Infographic - Include AntV Infographic script:
https://unpkg.com/@antv/infographic@latest/dist/infographic.min.js - Create container div with id
container - Initialize Infographic (
width: '100%',height: '100%') - Replace
{title}with actual title - Replace
{syntax}with actual AntV Infographic syntax - Add SVG export functionality:
const svgDataUrl = await infographic.toDataURL({ type: 'svg' });
Reference HTML template:
<div id="container"></div>
<script src="https://unpkg.com/@antv/infographic@latest/dist/infographic.min.js"></script>
<script>
const infographic = new AntVInfographic.Infographic({
container: '#container',
width: '100%',
height: '100%',
});
document.fonts?.ready.then(() => {
infographic.render(`{syntax}`);
}).catch((error) => {
console.error('Error waiting for fonts to load:', error);
infographic.render(`{syntax}`);
});
</script>- Use the Write tool to generate HTML file, named as
<title>-infographic.html - Show to user:
- Generate file path and prompt: "Open directly with a browser to view and save as SVG"
- Output syntax and prompt: "Tell me if you need to adjust template/colors/content"
Note: The HTML file must include:
- SVG export via export button
- Container is responsive, both width and height are 100%
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

