Describe
Ask for the experience in plain language. Your agent writes inspectable scene JSON.
scene.json
rive-cli / Rive authoring for coding agents
Describe the experience you want. Your agent authors the scene, compiles a real
.riv file, renders the result, and refines it — all inside your repo.
Code-first source · real .riv output · Rive runtime checks
Why rive-cli
rive-cli gives your coding agent a code-first way to create the graphics, motion, and
state logic together. The source stays readable in Git; the output is a real
.riv file that can be loaded, rendered, and improved without leaving the
product workflow.
An agent-native authoring loop
The agent writes the source. The CLI turns it into Rive, shows the result, and gives the agent enough evidence to make the next pass better.
Ask for the experience in plain language. Your agent writes inspectable scene JSON.
scene.json
Compile graphics, animation, and interaction into a real Rive binary.
rive-cli generate
Render key frames and inputs, inspect what happened, and iterate.
rive-cli render
Bring your own coding agent
A coding agent that can edit files and run commands can use rive-cli. Templates provide a known-good start. The schema explains what is valid. Structured errors and text render summaries tell the agent what to change next.
Read the agent skill and schema ↗$ rive-cli generate \ parity/reproductions/coffee_loader.json \ -o coffee_loader.riv $ rive-cli render coffee_loader.riv \ --frames 0,15,30,45 \ --preview
Quality stays in the loop
The verification lab loads files made by rive-cli in the Rive runtime and compares them with known references. That gives an agent more than a successful command: it can see whether the file loads and how closely it matches the intended result.
Open Verification Lab ↗Start in your own repo
# install from this repo $ cargo install --path . # scaffold, build, and render a scene $ rive-cli new spinner > scene.json $ rive-cli generate scene.json -o scene.riv $ rive-cli validate scene.riv $ rive-cli render scene.riv --preview
Ask your agent to start from a template, inspect the schema, and edit
scene.json. The source stays reviewable; the output is a real
.riv file ready for Rive runtimes.