/narrative-text-visualization
Generate structured narrative text visualizations from data using T8 Syntax. Use when users want to create data interpretation reports, summaries, or structured articles with semantic entity annotations. T8 is designed for unstructured data visualization where T stands for Text
$ npx -y skills add antvis/chart-visualization-skills --skill narrative-text-visualization --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/narrative-text-visualization
Context preview
The summary Claude sees to decide when to auto-load this skill.
Generate structured narrative text visualizations from data using T8 Syntax. Use when users want to create data interpretation reports, summaries, or structured articles with semantic entity annotations. T8 is designed for unstructured data visualization where T stands for Text
SKILL.md
narrative-text-visualization.SKILL.mdname: narrative-text-visualization
description: Generate structured narrative text visualizations from data using T8 Syntax. Use when users want to create data interpretation reports, summaries, or structured articles with semantic entity annotations. T8 is designed for unstructured data visualization where T stands for Text and 8 represents a byte of 8 bits, symbolizing deep insights beneath the text.
Narrative Text Visualization Skill
This skill provides a workflow for transforming data into structured narrative text visualizations using **T8 Syntax** - a declarative Markdown-like language for creating data narratives with semantic entity annotations.
What is T8
T8 is a text visualization solution under the AntV technology stack designed specifically for insight-based narrative text display. Instead of manually constructing DOM elements, you write simple, human-readable syntax that describes your data narrative.
**Key Features:**
- **LLM-Friendly**: The syntax is intuitive and can be easily generated by AI models
- **Declarative & Readable**: Write what you want, not how to build it
- **Framework Agnostic**: Works with React, Vue, or vanilla JavaScript
- **Standardized Styling**: Professional appearance by default
- **Built-in Data Visualizations**: Mini charts (pie, line) are native to the syntax
- **Lightweight**: Less than 20KB before gzip
Workflow
To generate narrative text visualizations, follow these steps:
1. Understand the Requirements
Analyze the user's request to determine:
- The topic or data to be analyzed
- The type of narrative needed (report, summary, article)
- The key insights to highlight
- Any specific data sources or metrics
2. Generate T8 Syntax Content
Create narrative text using T8 Syntax following the specification below. The content must include:
- Proper document structure (headings, paragraphs, lists)
- Entity annotations for all meaningful data points
- Appropriate metadata for entities (origin, assessment, etc.)
3. Generate Frontend Code
Create HTML, React, or Vue code to render the T8 content based on user's preferred framework.
4. Validate Output
Ensure:
- All data is from authentic sources
- Minimum content length (800 words or equivalent)
- Proper entity annotations throughout
- Clear structure and logical flow
---
T8 Syntax Specification
T8 Syntax is a Markdown-like language for creating narrative text with semantic entity annotations. It makes data analysis reports more expressive and visually appealing.
Document Structure
Headings (6 levels)
Use standard Markdown heading syntax:
# Level 1 Heading (Main Title)
## Level 2 Heading (Section)
### Level 3 Heading (Subsection)
#### Level 4 Heading
##### Level 5 Heading
###### Level 6 Heading
**Rules:**
- Each heading must be on its own line
- Add one space after the `#` symbols
- Headings create visual hierarchy in the rendered output
Paragraphs
Regular text paragraphs are separated by blank lines:
This is the first paragraph with some content.
This is the second paragraph, separated by a blank line.
**Rules:**
- Paragraphs can span multiple lines
- Use blank lines to separate distinct paragraphs
- Text within a paragraph flows naturally
Lists
T8 Syntax supports both unordered and ordered lists.
**Unordered Lists:**
- First item
- Second item
- Third item
**Ordered Lists:**
1. First step
2. Second step
3. Third step
**Rules:**
- Each list item must be on its own line
- Add one space after the bullet marker (`-`, `*`) or number
- Lists can contain entities and text formatting
Text Formatting
T8 Syntax supports inline text formatting using Markdown syntax:
**Bold Text:** `This is **bold text** that stands out.`
**Italic Text:** `This is *italic text* for emphasis.`
**Underline Text:** `This is __underlined text__ for importance.`
**Links:** `Visit [our website](https://example.com) for more information.`
**Rules:**
- Formatting markers must be balanced (opening and closing)
- Formatting can be combined with entities
- Links use `[text](URL)` syntax where URL starts with `http://`, `https://`, or `/`
Entity Annotation Syntax
The core feature of T8 Syntax is **entity annotation** - marking specific data points with semantic meaning and metadata.
Basic Entity Syntax
[displayText](entityType)
- `displayText`: The text shown to readers
- `entityType`: The semantic type of this entity
**Example:**
The [sales revenue](metric_name) reached [¥1.5 million](metric_value) this quarter.
Entity with Metadata
[displayText](entityType, key1=value1, key2=value2, key3="string value")
**Metadata Rules:**
- Separate multiple metadata fields with commas
- Numbers and booleans: write directly (e.g., `origin=1500000`, `active=true`)
- Strings: wrap in double quotes (e.g., `unit="元"`, `region="Asia"`)
**Example:**
Revenue grew by [15.3%](ratio_value, origin=0.153, assessment="positive") compared to last year.
Entity Types Reference
Use these entity types to annotate different kinds of data:
| Entity Type | Description | When to Use | Examples | | -------------------- | ------------------------------------ | ---------------------------------------------- | -------------------------------------------------------- | | `metric_name` | Name of a metric or KPI | When mentioning what you're measuring | "revenue", "user count", "market share" | | `metric_value` | Primary metric value | The main number/value being reported | "¥1.5 million", "50,000 users", "250 units" | | `other_metric_value` | Secondary or supporting metric value | Additional metrics that provide context | "average order value: $120" | | `delta_
Read more
name: narrative-text-visualization description: Generate structured narrative text visualizations from data using T8 Syntax. Use when users want to create data interpretation reports, summaries, or structured articles with semantic entity annotations. T8 is designed for unstructured data visualization where T stands for Text and 8 represents a byte of 8 bits, symbolizing deep insights beneath the text.
Narrative Text Visualization Skill
This skill provides a workflow for transforming data into structured narrative text visualizations using **T8 Syntax** - a declarative Markdown-like language for creating data narratives with semantic entity annotations.
What is T8
T8 is a text visualization solution under the AntV technology stack designed specifically for insight-based narrative text display. Instead of manually constructing DOM elements, you write simple, human-readable syntax that describes your data narrative.
**Key Features:**
- **LLM-Friendly**: The syntax is intuitive and can be easily generated by AI models
- **Declarative & Readable**: Write what you want, not how to build it
- **Framework Agnostic**: Works with React, Vue, or vanilla JavaScript
- **Standardized Styling**: Professional appearance by default
- **Built-in Data Visualizations**: Mini charts (pie, line) are native to the syntax
- **Lightweight**: Less than 20KB before gzip
Workflow
To generate narrative text visualizations, follow these steps:
1. Understand the Requirements
Analyze the user's request to determine:
- The topic or data to be analyzed
- The type of narrative needed (report, summary, article)
- The key insights to highlight
- Any specific data sources or metrics
2. Generate T8 Syntax Content
Create narrative text using T8 Syntax following the specification below. The content must include:
- Proper document structure (headings, paragraphs, lists)
- Entity annotations for all meaningful data points
- Appropriate metadata for entities (origin, assessment, etc.)
3. Generate Frontend Code
Create HTML, React, or Vue code to render the T8 content based on user's preferred framework.
4. Validate Output
Ensure:
- All data is from authentic sources
- Minimum content length (800 words or equivalent)
- Proper entity annotations throughout
- Clear structure and logical flow
---
T8 Syntax Specification
T8 Syntax is a Markdown-like language for creating narrative text with semantic entity annotations. It makes data analysis reports more expressive and visually appealing.
Document Structure
Headings (6 levels)
Use standard Markdown heading syntax:
# Level 1 Heading (Main Title) ## Level 2 Heading (Section) ### Level 3 Heading (Subsection) #### Level 4 Heading ##### Level 5 Heading ###### Level 6 Heading
**Rules:**
- Each heading must be on its own line
- Add one space after the `#` symbols
- Headings create visual hierarchy in the rendered output
Paragraphs
Regular text paragraphs are separated by blank lines:
This is the first paragraph with some content. This is the second paragraph, separated by a blank line.
**Rules:**
- Paragraphs can span multiple lines
- Use blank lines to separate distinct paragraphs
- Text within a paragraph flows naturally
Lists
T8 Syntax supports both unordered and ordered lists.
**Unordered Lists:**
- First item - Second item - Third item
**Ordered Lists:**
1. First step 2. Second step 3. Third step
**Rules:**
- Each list item must be on its own line
- Add one space after the bullet marker (`-`, `*`) or number
- Lists can contain entities and text formatting
Text Formatting
T8 Syntax supports inline text formatting using Markdown syntax:
**Bold Text:** `This is **bold text** that stands out.`
**Italic Text:** `This is *italic text* for emphasis.`
**Underline Text:** `This is __underlined text__ for importance.`
**Links:** `Visit [our website](https://example.com) for more information.`
**Rules:**
- Formatting markers must be balanced (opening and closing)
- Formatting can be combined with entities
- Links use `[text](URL)` syntax where URL starts with `http://`, `https://`, or `/`
Entity Annotation Syntax
The core feature of T8 Syntax is **entity annotation** - marking specific data points with semantic meaning and metadata.
Basic Entity Syntax
[displayText](entityType)
- `displayText`: The text shown to readers
- `entityType`: The semantic type of this entity
**Example:**
The [sales revenue](metric_name) reached [¥1.5 million](metric_value) this quarter.
Entity with Metadata
[displayText](entityType, key1=value1, key2=value2, key3="string value")
**Metadata Rules:**
- Separate multiple metadata fields with commas
- Numbers and booleans: write directly (e.g., `origin=1500000`, `active=true`)
- Strings: wrap in double quotes (e.g., `unit="元"`, `region="Asia"`)
**Example:**
Revenue grew by [15.3%](ratio_value, origin=0.153, assessment="positive") compared to last year.
Entity Types Reference
Use these entity types to annotate different kinds of data:
| Entity Type | Description | When to Use | Examples | | -------------------- | ------------------------------------ | ---------------------------------------------- | -------------------------------------------------------- | | `metric_name` | Name of a metric or KPI | When mentioning what you're measuring | "revenue", "user count", "market share" | | `metric_value` | Primary metric value | The main number/value being reported | "¥1.5 million", "50,000 users", "250 units" | | `other_metric_value` | Secondary or supporting metric value | Additional metrics that provide context | "average order value: $120" | | `delta_
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.
Repo: antvis/chart-visualization-skills
Other skills on chart-visualization-skills.
- /antv-g2-chart
Use this skill whenever the user wants to create, customize, or troubleshoot G2 v5 chart visualizations. Triggers include: any mention of 'G2', 'antv g2', '@antv/g2', 'G2 chart', 'G2 可视化', or requests to produce charts like bar charts (柱状图), line charts (折线图), pie charts (饼图),
Open skill - /antv-g6-graph
Use this skill whenever the user wants to create, customize, or troubleshoot G6 v5 graph/network visualizations. Triggers include: any mention of 'G6', 'antv g6', '@antv/g6', 'G6 graph', 'G6 图', '网络图', '关系图', '拓扑图', '树形图', '流程图', '思维导图', '鱼骨图', '力导向图', 'force graph', 'network
Open skill - /antv-x6-editor
Use this skill whenever the user wants to create, customize, or troubleshoot X6 v3 graph editor diagrams. Triggers include: any mention of 'X6', 'antv x6', '@antv/x6', 'X6 editor', 'X6 图编辑', '流程图', 'DAG', 'ER图', '实体关系图', '血缘图', '组织架构图', 'UML类图', 'flowchart', 'DAG diagram', 'ER
Open skill - /chart-visualization
将数据可视化为图表。当用户需要生成柱状图、折线图、饼图、散点图、雷达图、桑基图、思维导图、流程图等图表时调用此技能,通过 curl 工具调用 AntV API 生成图表图片
Open skill - /gpt-vis
推荐并生成合适的数据可视化图表,使用 GPT-Vis 库。支持两种输出模式:(1)语法模式——生成 Syntax 或 JSON 配置;(2)代码模式——生成完整的运行代码。支持 26 种图表类型。
Open skill - /icon-retrieval
Search icons through HTTP API and retrieve SVG strings with curl.
Open skill

