infographic-syntax-creator
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.
More from antvis/infographic
infographic-creator
基于给定文字内容创建精美信息图。当用户请求创建信息图时使用。
116infographic-structure-creator
Generate or update infographic Structure components for this repo (TypeScript/TSX in src/designs/structures). Use when asked to design, implement, or modify structure layouts (list/compare/sequence/hierarchy/relation/geo/chart), including layout logic, component composition, and registration.
61infographic-item-creator
Generate or update infographic Item components for this repo (TypeScript/TSX in src/designs/items). Use when asked to design, implement, or modify data item visuals, layout logic, or registerItem composites.
60infographic-template-updater
Update template catalogs and UI prompts after adding new infographic templates (src/templates/*.ts), including SKILL.md template list, site gallery template mappings, and the AIPlayground prompt list.
56