add-template

Installation
SKILL.md

Add a template

  1. Read contribution/templates.md and one existing template in packages/rive/src/templates.ts (for example bouncingBall or toggle).
  2. Write the template object { id, name, description, build() }, where id is kebab-case and the description says what it teaches. Build with api.* functions and name every object, timeline and input.
  3. Add it to TEMPLATES in packages/rive/src/templates.ts.
  4. Run:
    bun run check-types
    bun run test                                  # must print IDENTICAL for the new template
    bun run cli new "Template check" --template <id>
    
  5. Open the printed editor link. Check the stage and Preview, and interact with every input and listener.
  6. Delete the check project (bun run cli delete "Template check").
  7. Add a row to docs/templates.md.
  8. If template creation or verification exposes a reproducible OpenRive defect, follow openrive-report-issue automatically. Do not report an issue caused by the template itself; fix it as part of the task.
Installs
4
GitHub Stars
99
First Seen
Oct 22, 2026