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.
How do I install this agent skill?
npx skills add https://github.com/antvis/infographic --skill infographic-syntax-creatorIs this agent skill safe to install?
- Gen Agent Trust Hubfail
This skill contains multiple severe security vulnerabilities, including command execution, persistence mechanisms, and potential exfiltration vectors, disguised within legitimate code.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1/2 files flagged
What does this agent skill do?
Infographic Syntax Creator
Overview
Generate AntV Infographic syntax output from user content, following the rules in references/prompt.md.
Workflow
- Read
references/prompt.mdfor syntax rules, templates, and output constraints. - 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
references/prompt.mdas the formatting baseline. - 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
key value; arrays use-. - 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
iconfor semantic data items by default. If a list item, step, node, compare branch, or compare child has a clear concept, include aniconunless the user explicitly wants text-only output or the template is chart-only. - If the chosen template name or item style implies icons, treat
iconas expected on every primary datum rather than optional. - When
iconis written as a keyword phrase, separate words with spaces rather than hyphens. Exact icon IDs may keep their native punctuation. compare-binary-*/compare-hierarchy-left-right-*must have exactly two root nodes, and the actual comparison points belong in each root node'schildren.compare-swot/compare-quadrant-*follow their own root-node counts and should not be forced into a binary structure.
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
references/prompt.mdis representative rather than exhaustive; prefer structurally correct registered templates over forcing a bad match.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/antvis/infographic/infographic-syntax-creator">View infographic-syntax-creator on skillZs</a>