Infographic infographic-syntax-creator
Generate AntV Infographic syntax only. Use when asked to turn notes, outlines, reports, or other user content into the Infographic DSL with template selection, data structuring, and theme hints. Do not use for HTML rendering or TS/TSX component implementation.
install
source · Clone the upstream repo
git clone https://github.com/antvis/Infographic
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/antvis/Infographic "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/infographic-syntax-creator" ~/.claude/skills/antvis-infographic-infographic-syntax-creator && rm -rf "$T"
manifest:
skills/infographic-syntax-creator/SKILL.mdsource content
Infographic Syntax Creator
Overview
Generate AntV Infographic syntax output from user content, following the rules in
references/prompt.md.
Workflow
- Read
for syntax rules, templates, and output constraints.references/prompt.md - If the user explicitly names a valid template or template family, honor it first; otherwise choose the best matching template for the structure (sequence/list/compare/hierarchy/chart).
- Extract the user's key structure: title, desc, items, hierarchy, metrics; infer missing pieces if needed.
- Compose the syntax using
as the formatting baseline.references/prompt.md - Preserve hard constraints in every output:
- Output is a single fenced code block containing only syntax; no extra text.
- First line is
.infographic <template-name> - Use two-space indentation; key/value pairs are
; arrays usekey value
.- - Keep all user-facing text in the same language as the user's input unless the user explicitly asks for translation or bilingual output.
- Prefer generating
for semantic data items by default. If a list item, step, node, compare branch, or compare child has a clear concept, include anicon
unless the user explicitly wants text-only output or the template is chart-only.icon - If the chosen template name or item style implies icons, treat
as expected on every primary datum rather than optional.icon - When
is written as a keyword phrase, separate words with spaces rather than hyphens. Exact icon IDs may keep their native punctuation.icon
/compare-binary-*
must have exactly two root nodes, and the actual comparison points belong in each root node'scompare-hierarchy-left-right-*
.children
/compare-swot
follow their own root-node counts and should not be forced into a binary structure.compare-quadrant-*
Notes
- This skill returns syntax only. If the user wants a rendered HTML file or a complete deliverable, prefer
.infographic-creator - The template list in
is representative rather than exhaustive; prefer structurally correct registered templates over forcing a bad match.references/prompt.md