Agent skill

Antv Gpt Vis

by antvis in antvis/chart-visualization-skills

Recommend and generate appropriate data visualization charts using the GPT-Vis library.

MITAuto-check passedData & Analytics

Install Antv Gpt Vis

skills CLI
$ npx skills add antvis/chart-visualization-skills --skill antv-gpt-vis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install antvis/chart-visualization-skills antv-gpt-vis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/antvis/chart-visualization-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/antv-gpt-vis .claude/skills/antv-gpt-vis && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
antv-gpt-vis
GitHub stars
506
Token cost
~3.7k tokens
SKILL.md length
1,056 words
Files
2 (incl. references)
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Recommend and generate appropriate data visualization charts using the GPT-Vis library.

  • Works in 3 steps: Intent recognition: Select the chart… → Determine output mode: Choose Syntax… → Generate output: Produce content in the…
  • Tasks that involve Data visualization
  • SKILL.md covers Steps, Supported Chart Types, Output Modes and GPTVis API, plus 4 more sections
  • Calls npm; reaches unpkg.com

What it does

Antv Gpt Vis is an agent skill from antvis/chart-visualization-skills. Recommend and generate appropriate data visualization charts using the GPT-Vis library. Supports two output modes — (1) Syntax mode, which generates Syntax or JSON configurations, and (2) Code mode, which generates complete runnable code. Supports 26 chart types.

Its SKILL.md is about 3.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/summary.md`).

It sits in Data & Analytics, covering Data visualization. The repository describes itself as: ⛏️ Turning data into a visual language for better thinking with Skills. The licence is MIT.

When your agent uses it

  • Tasks that involve Data visualization

Example prompts

  • “/antv-gpt-vis”

Requirements

  • Node.js

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Intent recognition: Select the chart type based on user intent and data characteristics
  2. Determine output mode: Choose Syntax mode or Code mode based on context
  3. Generate output: Produce content in the selected mode

What it can do on your machine

Read from SKILL.md and the folder at commit a105fa1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • unpkg.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Antv Gpt Vis loads about 3.7k tokens when it runs, and up to ~5.2k if it reads all its reference files. Until then it costs about 69 tokens; SKILL.md has 1,056 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~69
When it runs · the whole SKILL.md, loaded when a task matches
~3.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from antvis/chart-visualization-skills at commit a105fa1, republished under its MIT licence (© antvis). 1,056 words, ~3,658 tokens.

Download SKILL.mdSave it as .claude/skills/antv-gpt-vis/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
antv-gpt-vis
description
Recommend and generate appropriate data visualization charts using the GPT-Vis library. Supports two output modes — (1) Syntax mode, which generates Syntax or JSON configurations, and (2) Code mode, which generates complete runnable code. Supports 26 chart types.

GPT-Vis Chart Visualization Skill

GPT-Vis is an AI-native visualization library designed for the LLM era. It uses a framework-agnostic architecture, supports 26 chart types, and enables LLMs to easily generate high-quality visualizations through a simple, natural syntax.

Steps

  1. Intent recognition: Select the chart type based on user intent and data characteristics
  2. Determine output mode: Choose Syntax mode or Code mode based on context
  3. Generate output: Produce content in the selected mode

Supported Chart Types

type valueUse case
lineTime series trends
areaTime series trends + totals
columnCategorical data comparison
barCategorical comparison (long labels)
piePart-to-whole proportions
scatterRelationship between two variables
dual-axesComparison of data at different scales
histogramFrequency distribution of continuous values
boxplotData distribution and outliers
violinData distribution density
radarMulti-dimensional comparison
funnelProcess conversion rates
waterfallCumulative increases and decreases
liquidPercentage / progress
word-cloudWord frequency display
vennSet intersection/union relationships
treemapHierarchical data proportions
sankeyFlow and direction of quantities
flow-diagramProcess steps
mindmapHierarchical knowledge organization
indented-treeTree node hierarchy / directories
network-graphRelationships between entities
organization-chartOrganizational hierarchy
fishbone-diagramRoot cause analysis
tableTabular data display
summaryContent summary

Output Modes

Mode 1: Syntax Mode (Syntax / JSON)

Used for LLM application integration scenarios. Generates chart configurations consumed by GPTVis.render(). Supports two formats:

  • Syntax format: Markdown-like indentation syntax, suitable for streaming output (renders in real time as the LLM generates tokens)
  • JSON format: Standard JSON object, suitable for structured API calls

Both formats are equivalent and can be passed directly to GPTVis.render().

Mode 2: Code Mode

Used when the user needs complete runnable code. Generates output including installation instructions and full code.

GPTVis API

GPTVis is the unified entry class of the library, responsible for creating, rendering, and destroying charts.

Constructor
typescript
new GPTVis(options: VisualizationOptions)

VisualizationOptions:

ParameterTypeRequiredDefaultDescription
containerstring | HTMLElementYes—CSS selector or DOM element
widthnumberNo—Chart width (px)
heightnumberNo—Chart height (px)
theme'default' | 'light' | 'dark' | 'academy'No'light'Theme
wrapperbooleanNofalseWhether to show the outer UI container (tabs, download, copy)
localestringNo'zh-CN'Language of the text inside the wrapper
Methods
render(config: string | object): void

Renders a chart. Accepts two kinds of input:

  • Syntax string: Text starting with vis [type], automatically parsed into a configuration object
  • JSON configuration object: An object containing a type field
  • Plain text: Strings not starting with vis are rendered as the summary type

Calling render() multiple times automatically destroys the previous chart before rendering the new one.

destroy(): void

Destroys the current chart instance and releases resources.

Syntax Mode: JSON Format

Directly output a JSON object conforming to the chart's TypeScript type; GPTVis.render() can consume it directly.

JSON Example
json
{
  "type": "column",
  "data": [
    { "category": "Product A", "value": 30, "group": "Online" },
    { "category": "Product B", "value": 50, "group": "Online" }
  ],
  "title": "Product Sales Comparison",
  "axisXTitle": "Product",
  "axisYTitle": "Sales (10k)",
  "stack": true,
  "theme": "academy",
  "style": {
    "palette": ["#5B8FF9", "#61DDAA"]
  }
}

Syntax Mode: Syntax Format

Markdown-like indentation syntax that supports streaming rendering. The first line must be vis [type].

Syntax Rules

Basic properties — key value, one per line:

title Annual Trend
theme dark

Object arrays — under data, each item starts with - , with sub-fields indented:

{ data: { time: string; value: number; }[]; }

Corresponds to:

data
  - time 2020
    value 100
  - time 2021
    value 120

Plain value arrays — each item starts with - :

{ data: number[] }

Corresponds to:

data
  - 10
  - 20

String values containing spaces — wrap in quotes (single or double); quotes can be omitted when there are no spaces:

categories
  - "North America"
  - 'Southeast Asia'
  - Europe

Nested objects — the object name occupies its own line, with sub-properties indented:

{ style?: { backgroundColor?: string; palette?: string[] } }

Corresponds to:

style
  backgroundColor #f0f2f5
  palette
    - #5B8FF9
    - #61DDAA

Recursive trees — the children array is indented with - :

type TreeData = { name: string; children?: TreeData[] };
{ data: TreeData; }

Corresponds to:

data
  name Root
  children
    - name Child A
      children
        - name Grandchild
    - name Child B
Complete Syntax Example
vis column
data
  - category Product A
    value 30
    group Online
  - category Product B
    value 50
    group Online
title Product Sales Comparison
axisXTitle Product
axisYTitle Sales (10k)
stack true
theme academy
style
  palette
    - #5B8FF9
    - #61DDAA
Markdown Syntax

When the output is in Markdown format, use GPT-Vis as the language tag of the fenced code block, and write the complete Syntax format in the content area:

markdown
```GPT-Vis
vis line
data
  - time 2020
    value 100
```

Format:

```GPT-Vis
<complete Syntax content, first line: vis <chart-type>>
```

Syntax rules:

  • The language tag is fixed as GPT-Vis
  • The content area follows the Syntax format rules, and the first line must contain vis <chart-type> (see the full list in Supported Chart Types above)
  • The code block is converted by the Markdown plugin into <code class="language-gpt-vis"> and rendered on the browser side

Note: In Markdown mode, the content area must include the first line vis <type>, consistent with the plain Syntax mode format.

Show full SKILL.md (410 more words)Show less

Code Mode

Generate complete runnable code based on the target framework.

Installation

NPM:

bash
npm install @antv/gpt-vis
javascript
import { GPTVis } from '@antv/gpt-vis';

CDN:

html
<script src="https://unpkg.com/@antv/gpt-vis/dist/umd/index.min.js"></script>

After loading via CDN, access the main class through GPTVis.GPTVis.

Complete HTML Example
html
<html>
  <head>
    <script src="https://unpkg.com/@antv/gpt-vis/dist/umd/index.min.js"></script>
  </head>
  <body>
    <div id="container"></div>
    <script>
      const gptVis = new GPTVis.GPTVis({
        container: '#container',
        width: 600,
        height: 400,
      });

      gptVis.render(`
vis line
data
  - time 2020
    value 100
  - time 2021
    value 120
title Annual Trend
`);
    </script>
  </body>
</html>

Chart Type Configurations

Common Configuration

All charts include the following fields, which are omitted from the individual chart type definitions below. Each section heading is the type value (e.g. line, column), corresponding to the type column in the chart type table above.

{ type: string; title?: string; theme?: 'default' | 'light' | 'dark' | 'academy'; style?: { backgroundColor?: string; palette?: string[] } }
line / area
{ data: { time: string | number; value: number; group?: string }[]; axisXTitle?: string; axisYTitle?: string; stack?: boolean; style?: { lineWidth?: number } }

stack is only supported by area.

column / bar
{ data: { category: string; value: number; group?: string }[]; axisXTitle?: string; axisYTitle?: string; stack?: boolean; group?: boolean }
pie

Values must not be percentage numbers.

{ data: { category: string; value: number }[]; innerRadius?: number }

Set innerRadius to 0.6 to turn it into a donut chart.

scatter
{ data: { x: number; y: number; group?: string }[]; axisXTitle?: string; axisYTitle?: string }
dual-axes
{ categories: string[]; series: { type: 'line' | 'column'; data: number[]; axisYTitle?: string }[]; axisXTitle?: string; style?: { startAtZero?: boolean } }
histogram
{ data: number[]; binNumber?: number; axisXTitle?: string; axisYTitle?: string }
boxplot / violin

Multiple data points are required for the same category to show distribution.

{ data: { category: string; value: number; group?: string }[]; axisXTitle?: string; axisYTitle?: string; style?: { startAtZero?: boolean } }
radar
{ data: { name: string; value: number; group?: string }[]; align?: boolean }

align: whether to align the scales of all dimensions. Defaults to false (each axis scales independently); when true, all axes share the same maximum value, suitable for comparing absolute values across multiple series.

funnel
{ data: { category: string; value: number; }[]; }
waterfall

Values can be negative to indicate decrease. palette is a color array in the order [positive color, negative color, total color].

{ data: { category: string; value: number }[]; axisXTitle?: string; axisYTitle?: string; style?: { palette?: string[] } }
liquid

percent ranges from 0 to 1.

{ percent: number; shape?: 'rect' | 'circle' | 'pin' | 'triangle' }
word-cloud
{ data: { text: string; value: number; }[]; }
venn

Intersections use commas to separate set identifiers: sets: "A,B". label is used to display the name of the corresponding set on the chart.

{ data: { sets: string | string[]; value: number; label?: string }[] }
treemap
type TreeNode = { name: string; value: number; children?: TreeNode[] };
{ data: TreeNode[] }
sankey
{ data: { source: string; target: string; value: number }[]; nodeAlign?: 'left' | 'center' | 'right' | 'justify' }
flow-diagram / network-graph

source/target reference node name values.

type GraphData = { nodes: { name: string }[]; edges: { source: string; target: string; name?: string }[] };

// flow-diagram
{ data: GraphData }

// network-graph
{ data: GraphData; layout?: 'force' | 'circular' | 'grid' | 'radial' | 'concentric' | 'dagre' }
mindmap / indented-tree / organization-chart
type TreeData = { name: string; children?: TreeData[] };

// mindmap
{ data: TreeData; direction?: 'H' | 'LR' | 'RL' }

// indented-tree
{ data: TreeData; direction?: 'LR' | 'RL' | 'H' }

// organization-chart
type OrganizationChartData = {
  name: string;
  description?: string;
  children?: OrganizationChartData[];
};

{ data: OrganizationChartData }

mindmap defaults to 'H'; indented-tree defaults to 'LR'.

fishbone-diagram
type FishboneNode = { name: string; children?: FishboneNode[] };
{ data: FishboneNode; style?: { texture?: 'rough' | 'default' } }

texture: 'rough' produces a hand-drawn style.

table
{ data: Record<string, string | number>[]; }
summary

summary is completely different from other chart types: it does not use Syntax/JSON configuration, but instead uses T8 syntax (Markdown + semantic annotations).

⚠️ Before generating a summary, you must: first read references/summary.md to get the T8 syntax rules, the complete entity type list, attribute field definitions, generation requirements, and examples, and only then generate the content. Skipping this step will cause syntax errors.

Best Practices

  1. Keep pie charts to no more than 5 categories; merge the rest into "Other" or switch to a bar chart
  2. Do not use pie charts for trends, and do not use line charts for unordered categories
  3. Value fields must be numeric; category fields must be text
  4. Distributions of continuous values (e.g. salaries, scores, ages) must use histogram
  5. Multi-dimensional field mapping: when there are two categorical dimensions, write the x-axis dimension as time/category and the other as group
  6. In Syntax mode, prefer the Syntax format (streaming-friendly)
  7. In Code mode, default to the HTML + CDN approach (zero installation); use the npm approach only when the user specifies a framework

© antvis, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/antv-gpt-vis of antvis/chart-visualization-skills.

  • SKILL.md
  • references/summary.md

Open the folder on GitHubat commit a105fa1

Compare with similar skills

Antv Gpt Vis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Antv Gpt Vis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Antv Gpt Vis this skillantvis/chart-visualization-skills506—~3.7kAutomated safety check: PassMIT
MatplotlibzLanqing/codex-claude-academic-skills4.7k17 repos~2.9kAutomated safety check: PassMIT
Chart Visualizationbytedance/deer-flow84k1 repos~840Automated safety check: PassMIT
Scientific Visualizationmims-harvard/OptimusKG14719 repos~6.3kAutomated safety check: PassMIT
SeabornzLanqing/codex-claude-academic-skills4.7k15 repos~4.9kAutomated safety check: PassBSD-3-Clause
Plot From DataTrae1ounG/paper-plot-skills8721 repos~583Automated safety check: PassNone

Similar skills

  • Matplotlib

    zLanqing/codex-claude-academic-skills

    Low-level plotting library for full customization. An agent skill from zLanqing/codex-claude-academic-skills.

    4.7k GitHub starsUsed in 17 repos~2.9k tokens
    Data & AnalyticsAuto-check passed
  • Chart Visualization

    bytedance/deer-flow

    Picks a suitable chart type from 26 options for your data, maps the data to that chart's parameters and generates a chart image through a JavaScript script.

    84k GitHub starsUsed in 1 repo~840 tokens
    Data & AnalyticsAuto-check passed
  • Scientific Visualization

    mims-harvard/OptimusKG

    Create publication figures with matplotlib/seaborn/plotly. An agent skill from mims-harvard/OptimusKG.

    147 GitHub starsUsed in 19 repos~6.3k tokens
    Data & AnalyticsAuto-check passed
  • Seaborn

    zLanqing/codex-claude-academic-skills

    Statistical visualization with pandas integration. An agent skill from zLanqing/codex-claude-academic-skills.

    4.7k GitHub starsUsed in 15 repos~4.9k tokens
    Data & AnalyticsAuto-check passed
  • Plot From Data

    Trae1ounG/paper-plot-skills

    Generate publication-quality matplotlib figures by selecting a pre-built paper style and substituting user data.

    872 GitHub starsUsed in 1 repo~583 tokens
    Data & AnalyticsAuto-check passed
  • Scientific Figure Making

    ChenLiu-1996/figures4papers

    Covers publication-ready matplotlib figures for academic papers, slides, and reports—bars, trends, scatter, heatmaps, and multi-panel layouts—with this…

    8.3k GitHub stars~557 tokensUpdated yesterday
    Data & AnalyticsAuto-check passed

More from antvis/chart-visualization-skills

All 9 skills in this repo
  • Antv G2 Chart

    antvis/chart-visualization-skills

    A skill your agent uses whenever the user wants to create, customize, or troubleshoot G2 v5 chart visualizations.

    506 GitHub stars~2.5k tokensUpdated 19 days ago
    Auto-check passed
  • Antv G6 Graph

    antvis/chart-visualization-skills

    A skill your agent uses whenever the user wants to create, customize, or troubleshoot G6 v5 graph/network visualizations.

    506 GitHub stars~1.8k tokensUpdated 19 days ago
    Auto-check passed
  • Antv Infographic

    antvis/chart-visualization-skills

    Create beautiful infographics based on given text content. An agent skill from antvis/chart-visualization-skills.

    506 GitHub stars~3k tokensUpdated 19 days ago
    Auto-check passed
  • Antv T8 Ntv

    antvis/chart-visualization-skills

    Generate structured narrative text visualizations from data using T8 Syntax.

    506 GitHub stars~4.5k tokensUpdated 19 days ago
    Auto-check passed
  • Antv X6 Editor

    antvis/chart-visualization-skills

    A skill your agent uses whenever the user wants to create, customize, or troubleshoot X6 v3 graph editor diagrams.

    506 GitHub stars~2.9k tokensUpdated 19 days ago
    Auto-check passed
  • Gpt Vis

    antvis/chart-visualization-skills

    推荐并生成合适的数据可视化图表,使用 GPT-Vis 库。支持两种输出模式:(1)语法模式——生成 Syntax 或 JSON 配置;(2)代码模式——生成完整的运行代码。支持 26 种图表类型。

    506 GitHub stars~2.5k tokensUpdated 19 days ago
    Auto-check passed

Questions about Antv Gpt Vis

What does Antv Gpt Vis do?

Recommend and generate appropriate data visualization charts using the GPT-Vis library. Antv Gpt Vis is an agent skill from antvis/chart-visualization-skills. Recommend and generate appropriate data visualization charts using the GPT-Vis library.

When should I use Antv Gpt Vis?

Antv Gpt Vis fits situations like: tasks that involve Data visualization.

How do I install Antv Gpt Vis in Claude Code?

Run `npx skills add antvis/chart-visualization-skills --skill antv-gpt-vis -a claude-code`. Or copy the skill folder (skills/antv-gpt-vis in antvis/chart-visualization-skills) into .claude/skills/antv-gpt-vis in your project. Claude Code loads it when a task matches its description.

How do I install Antv Gpt Vis in Codex?

Run `npx skills add antvis/chart-visualization-skills --skill antv-gpt-vis -a codex`. Or copy the skill folder (skills/antv-gpt-vis in antvis/chart-visualization-skills) into .agents/skills/antv-gpt-vis in your project. Codex loads it when a task matches its description.

Can I use Antv Gpt Vis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add antvis/chart-visualization-skills --skill antv-gpt-vis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/antv-gpt-vis, .gemini/skills/antv-gpt-vis, .github/skills/antv-gpt-vis and .opencode/skills/antv-gpt-vis in your project.

What does Antv Gpt Vis need to run?

Going by SKILL.md and its folder, Antv Gpt Vis needs the command-line tools its instructions call (npm). Our summary lists: Node.js.

Does Antv Gpt Vis access the network?

SKILL.md names 1 domain. In commands or code: unpkg.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Antv Gpt Vis safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Antv Gpt Vis use?

Antv Gpt Vis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Antv Gpt Vis use?

About 3.7k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Antv Gpt Vis?

Skills that share tags, products or a category with Antv Gpt Vis: Matplotlib (zLanqing/codex-claude-academic-skills, 4.7k stars), Chart Visualization (bytedance/deer-flow, 84k stars), Scientific Visualization (mims-harvard/OptimusKG, 147 stars) and Seaborn (zLanqing/codex-claude-academic-skills, 4.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Antv Gpt Vis?

antvis (a GitHub organization) maintains it in antvis/chart-visualization-skills, which has 506 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on September 22, 2026.

Source: antvis/chart-visualization-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.