infographic-template-updater

cosZone's avatarfrom cosZone

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.

⭐71stars🔀8forks📁View on GitHub🕐Updated Jan 8, 2026

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.
nameinfographic-template-updater
descriptionUpdate 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

  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.