infographic-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.
When & Why to Use This Skill
The Infographic Template Updater is a specialized automation skill designed to streamline the developer workflow by synchronizing template catalogs and UI prompts. It automatically detects new infographic templates in the source directory and updates all relevant metadata files, including SKILL.md, site gallery mappings, and AIPlayground prompt lists. This ensures that the frontend UI and AI agent capabilities remain perfectly in sync with the codebase, eliminating manual registration errors and maintaining documentation consistency.
Use Cases
- Automated Template Registration: Automatically update internal catalogs and public-facing gallery mappings whenever a new infographic template (.ts file) is added to the project.
- AI Prompt Synchronization: Ensure the AIPlayground and infographic-syntax-creator prompts are instantly updated with the latest template names to maintain feature parity.
- Documentation Maintenance: Keep the 'Available Templates' section in SKILL.md up-to-date without manual editing, ensuring users always see the current capabilities.
- Cross-File Consistency Checks: Use automated sanity checks (via ripgrep) to verify that new templates are correctly referenced across the entire repository architecture.
| 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.