Agent Skills
› antvis/Infographic
› infographic-template-updater
infographic-template-updater
GitHub当向src/templates添加新信息图模板时,自动更新相关文档、站点画廊映射及AI提示词列表,确保模板名称准确并同步至各引用文件。
Trigger Scenarios
向 src/templates/*.ts 添加新信息图模板
需要更新 SKILL.md 模板列表或 AIPlayground 提示词
Install
npx skills add antvis/Infographic --skill infographic-template-updater -g -y
SKILL.md
Frontmatter
{
"name": "infographic-template-updater",
"description": "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."
}
Infographic Template Updater
Overview
Update public template lists and gallery mappings when new templates are added in src/templates.
Workflow
- Collect new template names from the added
src/templates/*.tsfile (object keys).- If templates are composed via spreads (e.g.
...listZigzagTemplates), also confirm the final keys insrc/templates/built-in.ts.
- If templates are composed via spreads (e.g.
- Update template lists:
skills/infographic-creator/SKILL.mdin the "Available Templates" list.site/src/components/AIPlayground/Prompt.tsin the template list.skills/infographic-syntax-creator/references/prompt.mdin the template list. Keep existing ordering/grouping; add newlist-*entries near other list templates.
- Sanity check with
rg -n "<template-name>"across the above files to confirm presence.
Notes
- Do not remove or rename existing entries.
- Keep template names exact and lower-case.
- If a template needs example data, update or extend
site/src/components/Gallery/datasets.tsto match its structure.
Version History
- 0.2.19 Current 2026-08-20 13:25


