Native Rive
Rive React Native/Nitro runtime, .riv assets, state machines, inputs, asset loading, platform compatibility, accessibility, and iOS/Android proof.
Operating Contract
Use this skill as a compact router plus domain checklist. Load references only
when the current task matches their condition. Do not cite local scrape paths,
machine cache paths, or hidden source locations. Verify API details against the
target repo's installed package versions before editing.
Source Order
- Inspect the target repo's installed packages, framework/runtime versions,
local design tokens, accessibility policy, and existing motion patterns.
- Use the bundled references below for skill-specific gotchas and copied source
excerpts.
- Use official current docs/package source as API truth when local code or
bundled notes are version-sensitive.
Decision Boundaries
- Use web-rive for browser runtime.
- Use native-lottie for Lottie/dotLottie assets.
- Use native-motion-core for code-driven Reanimated motion.
Workflow
- Check package/runtime compatibility and native build requirements.
- Verify asset path, state machine name, input names, and autoplay.
- Map app state to inputs with cleanup on unmount.
- Validate iOS/Android build/rendering and accessibility fallback.
Gotchas
- State machine names and inputs are asset contracts.
- Native Rive runtime may require development build proof, not only Expo Go.
- Canvas-like output needs surrounding accessible semantics.
Bundled Resources
references/rive-native-state-machines.md - Native Rive state-machine contract. Read when binding inputs, triggers, or state machine names.
references/rive-native-asset-loading.md - Rive native asset loading and lifecycle. Read for .riv bundling, runtime setup, and cleanup.
references/nitro-platform-validation.md - Nitro/platform validation notes. Read before closing native build/runtime changes.
references/rive-file-caching-and-assets.md - Native Rive file caching and asset loading. Read when .riv files are bundled, cached, loaded remotely, reused across views, or include out-of-band assets.
references/state-machine-input-protocol.md - Native Rive state-machine input protocol. Read when app state drives boolean, number, or trigger inputs in a native Rive state machine.
references/docs-rive-react-native.md - Copied source excerpt. Load only when exact upstream wording or API detail is needed.
references/docs-rive-state-machine.md - Copied source excerpt. Load only when exact upstream wording or API detail is needed.
references/index.md - Complete reference inventory and routing summary.
references/source-ledger.md - Source list, checked date, and copy policy.
references/provenance.json - Machine-readable source and local-resource metadata.
scripts/audit.mjs - Self-contained audit CLI; run doctor before scan when setup is unclear.
assets/templates/native-rive-audit-report.md - Audit response/report template.
assets/templates/native-rive-review-checklist.md - Manual review checklist.
assets/examples/native-rive-starter.tsx - Starter fixture/example for this skill.
evals/trigger-queries.json - Trigger/near-miss eval set for description tuning.
evals/evals.json - Task-quality evals with assertions.
Audit CLI
node scripts/audit.mjs doctor --root . --format json
node scripts/audit.mjs scan --root . --format markdown
node scripts/audit.mjs scan --root . --format json --output native-rive-audit.json
Treat script findings as leads. Verify every finding against current code before
changing behavior or reporting it as valid.
Closeout
Before finalizing, run the repo's focused validation command, this skill's audit
CLI when relevant, and any browser/device/manual proof required by the changed
surface. Report commands run, findings fixed, findings skipped with reasons,
and residual risk.
1---2name: native-rive3description: Use this skill for Rive React Native/Nitro runtime, .riv assets, state machines, inputs, asset loading, platform compatibility, accessibility, and iOS/Android proof. Trigger on @rive-app/react-native, Rive React Native, .riv native, Rive state machine native, rive-nitro. Do not use for near-miss tasks outside these boundaries; route to adjacent motion or platform skills when they own the implementation.4license: MIT5---67# Native Rive89Rive React Native/Nitro runtime, .riv assets, state machines, inputs, asset loading, platform compatibility, accessibility, and iOS/Android proof.1011## Operating Contract1213Use this skill as a compact router plus domain checklist. Load references only14when the current task matches their condition. Do not cite local scrape paths,15machine cache paths, or hidden source locations. Verify API details against the16target repo's installed package versions before editing.1718## Source Order19201. Inspect the target repo's installed packages, framework/runtime versions,21 local design tokens, accessibility policy, and existing motion patterns.222. Use the bundled references below for skill-specific gotchas and copied source23 excerpts.243. Use official current docs/package source as API truth when local code or25 bundled notes are version-sensitive.2627## Decision Boundaries2829- Use web-rive for browser runtime.30- Use native-lottie for Lottie/dotLottie assets.31- Use native-motion-core for code-driven Reanimated motion.3233## Workflow34351. Check package/runtime compatibility and native build requirements.362. Verify asset path, state machine name, input names, and autoplay.373. Map app state to inputs with cleanup on unmount.384. Validate iOS/Android build/rendering and accessibility fallback.3940## Gotchas4142- State machine names and inputs are asset contracts.43- Native Rive runtime may require development build proof, not only Expo Go.44- Canvas-like output needs surrounding accessible semantics.4546<!-- skill-resources:start -->47## Bundled Resources4849- `references/rive-native-state-machines.md` - Native Rive state-machine contract. Read when binding inputs, triggers, or state machine names.50- `references/rive-native-asset-loading.md` - Rive native asset loading and lifecycle. Read for .riv bundling, runtime setup, and cleanup.51- `references/nitro-platform-validation.md` - Nitro/platform validation notes. Read before closing native build/runtime changes.52- `references/rive-file-caching-and-assets.md` - Native Rive file caching and asset loading. Read when `.riv` files are bundled, cached, loaded remotely, reused across views, or include out-of-band assets.53- `references/state-machine-input-protocol.md` - Native Rive state-machine input protocol. Read when app state drives boolean, number, or trigger inputs in a native Rive state machine.54- `references/docs-rive-react-native.md` - Copied source excerpt. Load only when exact upstream wording or API detail is needed.55- `references/docs-rive-state-machine.md` - Copied source excerpt. Load only when exact upstream wording or API detail is needed.56- `references/index.md` - Complete reference inventory and routing summary.57- `references/source-ledger.md` - Source list, checked date, and copy policy.58- `references/provenance.json` - Machine-readable source and local-resource metadata.59- `scripts/audit.mjs` - Self-contained audit CLI; run `doctor` before `scan` when setup is unclear.60- `assets/templates/native-rive-audit-report.md` - Audit response/report template.61- `assets/templates/native-rive-review-checklist.md` - Manual review checklist.62- `assets/examples/native-rive-starter.tsx` - Starter fixture/example for this skill.63- `evals/trigger-queries.json` - Trigger/near-miss eval set for description tuning.64- `evals/evals.json` - Task-quality evals with assertions.65<!-- skill-resources:end -->6667## Audit CLI6869```bash70node scripts/audit.mjs doctor --root . --format json71node scripts/audit.mjs scan --root . --format markdown72node scripts/audit.mjs scan --root . --format json --output native-rive-audit.json73```7475Treat script findings as leads. Verify every finding against current code before76changing behavior or reporting it as valid.7778## Closeout7980Before finalizing, run the repo's focused validation command, this skill's audit81CLI when relevant, and any browser/device/manual proof required by the changed82surface. Report commands run, findings fixed, findings skipped with reasons,83and residual risk.