What problem does it solve?
Three.js and React Three Fiber apps often suffer from per-frame allocations, undisposed GPU resources, and visual defects like z-fighting, shadow acne, and wrong color spaces that general React scanners cannot detect. This Skill combines the React Doctor scanner with a frame-loop-aware triage process and a visual inspection rubric to find and fix these issues.
Core Features & Use Cases
- Frame-loop performance triage: Re-ranks scanner findings by where code runs, prioritizing allocations and setState calls inside useFrame or requestAnimationFrame callbacks.
- GPU memory leak detection: Identifies geometries, materials, textures, and render targets created imperatively without dispose() cleanup.
- Visual defect rubric: Checks rendered output against ten criteria including z-fighting, shadow acne, color space errors, transparency sorting, and resize handling.
- Use Case: A team notices their R3F product configurator stutters and leaks memory over time. Run this Skill to scan the codebase, find a new Vector3 allocated every frame and undisposed textures, fix them, and validate the score did not regress.
Quick Start
Ask the agent to audit and improve your Three.js or React Three Fiber app, or type /improve-threejs in your project directory.