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.
The infographic-syntax-creator skill is designed to generate AntV Infographic syntax outputs. It solves the problem of converting user-provided content into a structured infographic format, adhering to specific rules and syntax constraints. By utilizing this skill, users can easily transform their data, titles, descriptions, and metrics into a visual representation following the AntV DSL (Domain Specific Language). This makes it easier for non-technical users to generate complex infographic designs without needing to understand the underlying syntax intricacies.
The skill's capabilities include selecting the appropriate template based on the content's structure, such as sequence, list, compare, hierarchy, or chart. It ensures the generated syntax strictly adheres to predefined formatting rules and constraints, preserving the correct structure, indentation, and key-value pairs. The skill can handle missing or incomplete data by inferring missing pieces where necessary, ensuring consistent output. The primary target users for this skill include developers, data analysts, and business professionals who require quick, template-driven infographic generation without deep expertise in the specific DSL.
To use the infographic-syntax-creator skill, provide your content, including the title, description, items, hierarchy, and metrics. The skill will select a suitable template and generate the AntV Infographic syntax in a single plain code block.
You need to ensure the content includes key information such as title, description, items, hierarchy, and metrics. The skill will infer any missing pieces, but providing as much detail as possible will help the process.
No, the skill uses predefined templates and selects the most appropriate one based on the structure of your content. Customization of the templates is not supported.
The output will always be in a single plain code block with the format 'infographic <template-name>'. It uses two-space indentation, key-value pairs are formatted as 'key value', and arrays are represented with a hyphen ('-'). For compare templates, exactly two root nodes with children are required.
Yes, the skill supports complex hierarchies and compare templates, but the compare templates require exactly two root nodes with children to be valid.
Quick Setup:
.claude/skills/Repository
antvis/Infographic