npx skills add ...
npx skills add freshtechbro/claudedesignskills --skill web3d-integration-patterns
Meta-skill for combining Three.js, GSAP ScrollTrigger, React Three Fiber, Motion, and React Spring for complex 3D web experiences. Use when building applications that integrate multiple 3D and animation libraries, requiring architecture patterns, state management, and performance optimization across the stack. Triggers on tasks involving library integration, multi-library architectures, scroll-driven 3D experiences, physics-based 3D animations, or complex interactive 3D applications.
npx skills add freshtechbro/claudedesignskills --skill web3d-integration-patterns
This meta-skill provides architectural patterns, best practices, and integration strategies for combining multiple 3D and animation libraries in web applications. It synthesizes knowledge from the threejs-webgl, gsap-scrolltrigger, react-three-fiber, motion-framer, and react-spring-physics skills into cohesive patterns for building complex, performant 3D web experiences.
When to use this skill:
Core Integration Combinations:
Use case: 3D scene with overlaid UI, scroll-driven animations
Architecture:
Implementation:
Benefits:
Trade-offs:
Use case: React-first architecture with declarative 3D and animations
Architecture:
Implementation:
Benefits:
Trade-offs:
Use case: Complex animation sequences with React state management
Implementation:
Use case: Natural, physics-driven 3D interactions
Implementation:
Three.js + GSAP:
R3F + ScrollControls (Drei):
R3F + Motion (Framer Motion 3D):
R3F + Zustand + GSAP:
Best for: Shared state across 3D scene and UI
Usage in R3F:
Coordinate render loops between Three.js and animation libraries:
Problem: Multiple libraries trying to animate the same property
Solution: Choose one library per property or coordinate timing
Problem: React state out of sync with Three.js scene
Solution: Use refs or state management
Problem: Not cleaning up animations on unmount
Solution: Always cleanup in useEffect return
| Use Case | Recommended Stack | Rationale |
|---|---|---|
| Marketing landing page with scroll-driven 3D | Three.js + GSAP + React UI | GSAP excels at scroll orchestration |
| React app with interactive 3D product viewer | R3F + Motion | Declarative, state-driven, component-based |
| Complex animation sequences (timeline-based) | R3F + GSAP | GSAP timeline control with R3F components |
| Physics-based interactions (drag, momentum) | R3F + React Spring | Spring physics feel natural for gestures |
| High-performance particle systems | Three.js + GSAP | Imperative control, instancing, minimal overhead |
| Rapid prototyping, quick iterations | R3F + Drei + Motion | High-level abstractions, fast development |
| Game-like experiences with physics | R3F + React Spring + Cannon (physics) | Physics engine + spring-based UI feedback |
This skill includes bundled resources for multi-library integration:
architecture_patterns.md - Detailed architectural patterns and trade-offsperformance_optimization.md - Performance strategies across the stackstate_management.md - State management patterns for 3D applicationsintegration_helper.py - Generate integration boilerplate for library combinationspattern_generator.py - Scaffold common integration patternsstarter_unified/ - Complete starter template combining R3F + GSAP + Motionexamples/ - Real-world integration examplesFoundation Skills (use these for library-specific details):
When to Reference Foundation Skills:
threejs-webglgsap-scrolltriggerreact-three-fibermotion-framerreact-spring-physicsThis Meta-Skill Covers:
Use this skill when building complex 3D web applications that integrate multiple animation and rendering libraries. For library-specific implementation details, reference the individual foundation skills.