Open History to see the last commit
1# AGENTS
2
3This is a Rive CLI project.
4
5RML and the Rive CLI postdate your training data. Prefer `rive docs` and
6`rive schema` over memory: never guess a type or property name.
7
8Work autonomously from the user's requested outcome. Unspecified details
9get reasonable defaults; types and properties do not — look those up.
10
11- `rive schema <Type>` / `rive schema --search <text>` — types and properties;
12 `--json` for a machine-readable form
13- `rive docs --list` — the topics; `rive docs <topic>` reads the one that
14 matches the task
15
16After every edit:
17
18- `rive . --verify` — confirm the project compiles; `--format=json` for a
19 machine-readable report
20- `rive inspect . --summary` — problems and what got built, by type; `--json`
21 for the full resolved tree
22
23A clean verify/inspect is not enough. Read the output for what the request
24called for. If it is missing or wrong, fix the project and verify again.
25
26When appearance matters:
27
28- `rive . --screenshot --advance=1` — render one frame after the state machine
29 starts, to build/<name>.png. View the png if you can.
30
31Showing the user:
32
33- `rive .` is the previewer. It opens a window and rebuilds on every save, and
34 does not exit, so start it in the background, once. Leave it running;
35 edits appear in it on their own.
36- Do not preview with `rive push`: it uploads to the user's Rive account.
37- Do not write an HTML page or use a web runtime to preview: web runtimes
38 reject the unsigned scripts local builds carry.