add-template
Installation
SKILL.md
Add a template
- Read
contribution/templates.mdand one existing template inpackages/rive/src/templates.ts(for examplebouncingBallortoggle). - Write the template object
{ id, name, description, build() }, whereidis kebab-case and the description says what it teaches. Build withapi.*functions and name every object, timeline and input. - Add it to
TEMPLATESinpackages/rive/src/templates.ts. - Run:
bun run check-types bun run test # must print IDENTICAL for the new template bun run cli new "Template check" --template <id> - Open the printed editor link. Check the stage and Preview, and interact with every input and listener.
- Delete the check project (
bun run cli delete "Template check"). - Add a row to
docs/templates.md. - If template creation or verification exposes a reproducible OpenRive defect, follow
openrive-report-issueautomatically. Do not report an issue caused by the template itself; fix it as part of the task.