In the Skill's Own Terms
An AntV skill that turns a text description into a rendered infographic. The agent writes AntV Infographic syntax, an indentation-based DSL whose first line names a template and whose data block carries title, desc and the template's own main field — lists, sequences, compares, values, nodes and relations, or root.
A theme block sets palette, font and stylize effects. The bundled template list spans list, sequence, compare, hierarchy, relation and chart families, covering timelines, SWOT, mind maps, roadmaps, quadrant analysis and word clouds. The agent then writes a browser-ready HTML file named <title>-infographic.html that renders the diagram and exports it as SVG.
What it produces
- The AntV Infographic syntax itself, which the user can read, keep or reuse.
- A complete HTML file written with the Write tool, named
<title>-infographic.html. - An SVG export of the finished graphic, produced from the rendered page.
How It Works
- 01Work Out What the User Actually Wants to Show
Before anything else the skill reads the user's needs and the information they want to express, because that decides both the template and the data structure.
- 02Ask Back When the Brief Is Thin
If the content description is not clear and concise, the skill requests one rather than inventing content, and may also ask which template the user wants.
- 03Match Content Shape to a Template Family
Strict sequences go to
sequence-, opinion listings tolist-row-orlist-column-, binary comparisons tocompare-binary-, trees tohierarchy-tree-, and quadrants tocompare-quadrant-. - 04Express the Structure in the DSL
The structure becomes AntV Infographic syntax: a template line, a
datablock with title/desc and the template's main field, plus an optionalthemeblock. - 05Generate the HTML File
The syntax is dropped into a full HTML document with the AntV Infographic script tag, a container and a render call.
- 06Hand Back the File and Syntax, Then Offer Tweaks
The reply carries the generated file path and the syntax, followed by an invitation to adjust the template, colors or content.