infographic-syntax-creator

antvis's avatarfrom antvis

Generate AntV Infographic syntax outputs. Use when asked to turn user content into the Infographic DSL (template selection, data structuring, theme), or to output `infographic <template>` plain syntax.

⭐2.7kstars🔀172forks📁View on GitHub🕐Updated Jan 4, 2026⬇️2downloads

When & Why to Use This Skill

The Infographic Syntax Creator is a specialized Claude skill designed to automate the generation of AntV Infographic DSL (Domain Specific Language). It streamlines the process of transforming raw text, data structures, and hierarchical information into precise, template-ready infographic syntax. By handling template selection, data mapping, and theme application, it allows users to create professional visual representations—such as comparisons, sequences, and charts—without needing to manually write complex code.

Use Cases

  • Data Visualization Prototyping: Rapidly convert raw metrics and hierarchical data into AntV-compatible syntax for quick visual iteration.
  • Comparative Analysis: Generate structured 'compare' templates to visually contrast two different products, services, or datasets with exact root-node constraints.
  • Process Documentation: Transform step-by-step workflows or chronological events into visual sequence infographics for better readability.
  • Content Summarization: Turn long-form articles or reports into concise visual lists or hierarchy charts to enhance information retention.
nameinfographic-syntax-creator
descriptionGenerate AntV Infographic syntax outputs. Use when asked to turn user content into the Infographic DSL (template selection, data structuring, theme), or to output `infographic <template>` plain syntax.

Infographic Syntax Creator

Overview

Generate AntV Infographic syntax output from user content, following the rules in references/prompt.md.

Workflow

  1. Read references/prompt.md for syntax rules, templates, and output constraints.
  2. Extract the user's key structure: title, desc, items, hierarchy, metrics; infer missing pieces if needed.
  3. Select a template that matches the structure (sequence/list/compare/hierarchy/chart).
  4. Compose the syntax using references/prompt.md as the formatting baseline.
  5. Preserve hard constraints in every output:
    • Output is a single plain code block; no extra text.
    • First line is infographic <template-name>.
    • Use two-space indentation; key/value pairs are key value; arrays use -.
    • Compare templates (compare-*) must have exactly two root nodes with children.