integrate-r3f-three-legacy
Installation
SKILL.md
Integrate R3F Three Legacy
Use this skill when a 3D frontend mixes React Three Fiber with older imperative Three.js code and the real work is defining safe boundaries between the two systems rather than only fixing one component in isolation.
When to Use
- a 3D app mixes R3F with imperative Three.js
- migrating legacy Three.js into R3F safely
- managing global bridge state between paradigms
- controlling scene ownership and cleanup boundaries
Core Rules
- define one clear owner for render loop, scene mutation, and disposal in each code path
- do not let legacy globals and React state mutate the same 3D objects without an explicit contract
- treat loaders, materials, controls, and decal logic as shared-risk areas when bridging old and new systems
- preserve current interaction behavior while reducing architectural overlap
- verify migration or bridge changes against nearby flows, not only the target scene