mcpField
I
infographic-template-updater

infographic-template-updater

github.com/antvisDevelopment7.0k127 installsUpdated 1w ago
Repository

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

  1. 01Find new template keys
  2. 02Update three template lists
  3. 03Check entries with rg
  4. 04Align gallery example data

Use cases

  1. 01Adding a template to the infographic library
  2. 02Keeping prompt template lists current
  3. 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-updater

After installing, type/infographic-template-updaterin Claude Code to confirm it loaded.

Details

From the project README

Infographic Template Updater

Overview

Update public template lists and gallery mappings when new templates are added in src/templates.

Workflow

  1. Collect new template names from the added src/templates/*.ts file (object keys).
    • If templates are composed via spreads (e.g. ...listZigzagTemplates), also confirm the final keys in src/templates/built-in.ts.
  2. Update template lists:
    • skills/infographic-creator/SKILL.md in the "Available Templates" list.
    • site/src/components/AIPlayground/Prompt.ts in the template list.
    • skills/infographic-syntax-creator/references/prompt.md in the template list. Keep existing ordering/grouping; add new list-* entries near other list templates.
  3. 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.ts to match its structure.

Comments

Markdown supported