nathankim0/riv-editor/rive-editor

Claude Code and agent skill by nathankim0/riv-editor

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Directly inspect and patch Rive runtime `.riv` binary files without runtime overlays. Use when Codex must edit Rive assets themselves: recolor vector parts, find object/component paths, remove or hide named parts such as fire/flame/mouth/tail by nullifying runtime objects safely, or verify that `.riv` files no longer contain unwanted colors or parts.

Install

npx vskill@latest install nathankim0/riv-editor/rive-editor

SKILL.md

Rive Editor

Overview

Use this skill for direct .riv asset work. Prefer editing the Rive file itself over Flutter/React/native overlays when the user asks to change a Rive character or animation.

The bundled script is dependency-light Python and works on Rive runtime binary files by parsing object type keys, property keys, names, parent ids, color fields, opacity/scale, and selected visibility fields.

Safety Model

Do not physically delete bytes from a .riv file. Rive object ids are positional; removing bytes usually shifts ids and breaks parent, draw-order, animation, and target references.

For “delete this part”, prefer one of these in order:

  1. --nullify-pattern REGEX --include-descendants: change matching objects and descendants to an unused 1-byte type key so the runtime reads them as null objects while object ids stay stable.
  2. --hide-paint-pattern REGEX: set existing ShapePaint.isVisible fields to false when those fields exist.
  3. Color patching only when the user explicitly accepts color/alpha hiding.

Always inspect first, patch a copy or use backups, then verify the app or renderer can still load the file.

Script

Use:

bash
python3 /Users/jinyeob/.claude/skills/rive-editor/scripts/riv_editor.py inspect path/to/file.riv --match 'fire|flame' --colors

Patch examples:

bash
# Recolor body-like parts to app primary while keeping eyes/mouth readable.
python3 /Users/jinyeob/.claude/skills/rive-editor/scripts/riv_editor.py patch asset.riv \
--in-place --backup \
--primary-character 'body|face|head|ear|tail|leg|foot|eye|mouth|tongue' \
--primary F19100 \
--primary-dark 8A5200 \
--primary-light FFCC80
# Remove fire-like objects without changing file length or ids.
python3 /Users/jinyeob/.claude/skills/rive-editor/scripts/riv_editor.py patch asset.riv \
--in-place --backup \
--nullify-pattern 'fire|flame|small_f|big_f' \
--include-descendants
# Set exact colors by path regex.
python3 /Users/jinyeob/.claude/skills/rive-editor/scripts/riv_editor.py patch asset.riv \
--in-place \
--color-rule 'body|face=F19100' \
--color-rule 'eye|mouth=8A5200'

Workflow

  1. Confirm the user wants direct .riv edits and not runtime code.
  2. Run inspect --match for likely part names and inspect --colors to map visible color fields.
  3. Identify the displayed artboard. Many .riv files include nested or unused artboards, so inspect paths and state-machine names before patching broadly.
  4. Patch with the narrowest regex that covers the requested part.
  5. Re-run inspect or a byte/color check to confirm unwanted parts/colors are gone.
  6. Run the project’s normal asset loading/build verification. For Flutter projects, follow project rules; do not run Flutter tests if the repo forbids them.

Practical Notes

  • Rive colors are 32-bit AARRGGBB, stored little-endian in the file.
  • Component name property key is 4; parent id is 5; color fields commonly include 37, 38, 88, 555, 638, and 651.
  • WorldTransform.opacity key is 18; scaleX/scaleY are 16/17; ShapePaint.isVisible is 41; Drawable.drawableFlags is 129.
  • --nullify-pattern only changes 1-byte object type keys. If a target has a multi-byte type key, the script skips it instead of corrupting the file.
  • Keep a backup when working on user assets unless version control already protects the file.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nathankim0/riv-editor/rive-editor/badge)](https://verified-skill.com/skills/nathankim0/riv-editor/rive-editor)

Something wrong with this skill or its page? Tell us.