stevysmith/rive-skills/rive-generator
Claude Code and agent skill by stevysmith/rive-skills
- community
Checking that the SKILL.md file is still in the repository.
Trigger when: (1) User wants to create a Rive animation programmatically, (2) User mentions "generate .riv file" or "create Rive animation", (3) User wants to see a visual animation created from code, (4) Working with the rive-generator project. Generate .riv files programmatically using TypeScript. Creates static shapes and animations. Requires npm package @stevysmith/rive-generator.
Install
npx vskill@latest install stevysmith/rive-skills/rive-generatorSKILL.md
Rive Generator Skill
Generate Rive animations programmatically using TypeScript.
Installation
First, install the npm package:
Quick Start
Running
API Reference
RiveFile
Main class for building .riv files.
| Method | Description | |
|---|---|---|
addArtboard(options) | Add an artboard (canvas) | |
addNode(parent, options) | Add a transform group | |
addShape(parent, options) | Add a shape container | |
addEllipse(shape, options) | Add an ellipse/circle | |
addRectangle(shape, options) | Add a rectangle | |
addPointsPath(shape, options) | Add a custom vector path | |
addVertex(path, options) | Add a straight vertex | |
addFill(shape, options) | Add a fill | |
addStroke(shape, options) | Add a stroke | |
addSolidColor(paint, color) | Set solid color | |
addLinearGradient(paint, options) | Add linear gradient | |
addRadialGradient(paint, options) | Add radial gradient | |
addGradientStop(gradient, options) | Add gradient color stop | |
addLinearAnimation(artboard, options) | Add an animation | |
addKeyedObject(animation, targetId) | Link animation to object | |
addKeyedProperty(keyedObject, propertyKey) | Specify property to animate | |
addKeyFrameDouble(keyedProperty, options) | Add a keyframe | |
export() | Returns Uint8Array of .riv binary |
Colors
PropertyKey
Important Constraints
- Use a single Node container - All shapes must be children of ONE Node under the Artboard.
- Gradient shapes must be LAST - Add shapes with gradients after solid color shapes.
- DO NOT use CubicVertex - Use
addVertex()only. Approximate curves with many straight vertices.
- DO NOT use cornerRadius - Use plain rectangles or PointsPath for rounded corners.
- First shape position bug - Add a tiny transparent dummy shape first:
``typescript const dummy = riv.addShape(container, { name: 'Dummy', x: 0, y: 0 }); riv.addRectangle(dummy, { width: 1, height: 1 }); const dummyFill = riv.addFill(dummy); riv.addSolidColor(dummyFill, hex('#00000000')); ``
Animation Example
Viewing Generated .riv Files
- Rive Editor - Import to view/edit
- rive.app/preview - Quick online preview
- Your app using
@rive-app/canvasor@rive-app/react-canvas
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/rive-generator/SKILL.md
Popularity
- Repository stars
- 13
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/stevysmith/rive-skills/rive-generator)