skills/rive-script-builder/SKILL.md
Build and revise Rive Luau scripts across Node, Layout, Converter, Path Effect, Transition Condition, Listener Action, Util, and Test protocols. Use when the user asks to write or modify Rive scripts, choose protocols, wire script inputs or data binding, debug runtime behavior, or plan unit tests for script logic.
npx skillsauth add sanqiushili/rive_skills rive-script-builderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Build accurate, runnable Rive Luau scripts. Optimize for correct protocol choice, valid Luau signatures, editor wiring, and minimal user back-and-forth.
Knowledge policy:
/rive-app/rive-docs).sync_rive_docs.py online/cache/offline chain.os.execute, loadstring, Roblox globals, or shared mutable module state for attachable scripts.late() for Rive objects created in init, editor-assigned references, Input<Data.X>, and other values initialized later.Input<Trigger> defaults to function() end, not late() or nil.Input<T> values are read directly, for example self.speed, not self.speed.value.Color is immutable; channel helpers return new colors.Lookup order when exact API confirmation is needed:
scripts/sync_rive_docs.py (secondary fallback)Context7 MCP primary call:
resolve-library-id -> /rive-app/rive-docs
query-docs(libraryId="/rive-app/rive-docs", query="<target API/protocol question>")
Query templates:
docs/context7-query-recipes.mdFallback lookup commands:
cd /path/to/rive-script-builder
python3 scripts/sync_rive_docs.py search --source auto --query "PathEffect"
python3 scripts/sync_rive_docs.py show --source auto --path scripting/protocols/path-effect-scripts.mdx
Optional cache prewarm (recommended, not required):
cd /path/to/rive-script-builder
python3 scripts/sync_rive_docs.py sync
Resolve scripts/sync_rive_docs.py relative to this SKILL.md; do not assume a fixed global skill directory.
auto fallback chain:
search: online -> cache -> offlineshow: online -> cacheIf fallback happens, keep the reason explicit in output.
See docs/live-docs-workflow.md.
Offline knowledge includes full upstream mirror at docs/source-scripting/.
docs/protocol-router.md.docs/api-signature-cheatsheet.md to lock exact method signatures.docs/source-scripting/api-reference/.docs/data-binding-deep-dive.md and docs/script-inputs-deep-dive.md.docs/clarification-checklists.md.docs/pointer-events-playbook.md to narrow unresolved event-routing details.Use this phase only when the request is broad, underspecified, or likely to require multiple scripts.
Present this structure before coding:
If user does not approve, keep refining plan only.
references/scaffold-templates.md.references/case-recipes.md and adapt.Always include:
Use docs/editor-wiring-recipes.md and docs/debug-test-playbook.md.
Use docs/path-api-performance-notes.md for path-heavy scripts.
Use docs/quality-gates.md as final quality checklist.
Vector as the canonical vector type; Vec2D may exist as an alias but should not be the default in generated code.Node.update(self) is for input-change recomputation. PathEffect.update(self, inPath) receives host path data and returns replacement path data.~=, and, or, not; do not output JavaScript/C syntax such as !=, &&, ||, or !.import/export default; use Rive's require("UtilName") and return patterns.draw; rebuild paths in update or before drawing in advance.reset() a Path again in the same frame after drawing it.TransitionCondition.evaluate fast and side-effect free.ListenerAction.perform for side effects.PathEffect, keep update deterministic; use advance only for time-based behavior.docs/common-errors-and-fixes.md before final handoff.When approval is needed:
For direct implementation, or after approval:
docs/live-docs-workflow.mddocs/publish-cross-platform.mddocs/protocol-router.mddocs/api-signature-cheatsheet.mddocs/clarification-checklists.mddocs/data-binding-deep-dive.mddocs/script-inputs-deep-dive.mddocs/pointer-events-playbook.mddocs/path-api-performance-notes.mddocs/quality-gates.mddocs/context7-query-recipes.mddocs/source-scripting-index.mddocs/source-scripting/docs/editor-wiring-recipes.mddocs/debug-test-playbook.mddocs/common-errors-and-fixes.mdreferences/scaffold-templates.mdreferences/case-recipes.mddevelopment
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.