About infographic-template-updater
A repository-maintenance skill for keeping public infographic template lists and gallery mappings aligned with new templates. It guides developers through finding template keys, updating specified files, and checking the results.
Key features
- 01Find new template keys
- 02Update three template lists
- 03Check entries with rg
- 04Align gallery example data
Use cases
- 01Adding a template to the infographic library
- 02Keeping prompt template lists current
- 03Providing matching gallery data for a template
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ antvis/ infographic --skill infographic-template-updaterAfter installing, type/infographic-template-updaterin Claude Code to confirm it loaded.
Details
From the project READMEInfographic 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.
Comments
Markdown supported