Confirm successful installation by checking the skill directory location:
.cursor/skills/r3f-animation
Restart Cursor to activate r3f-animation. Access via /r3f-animation in your agent's command palette.
โ
Security Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
import{ useFrame }from'@react-three/fiber'import{ useRef }from'react'functionAnimatedMesh(){const meshRef =useRef()useFrame((state, delta)=>{// state contains: clock, camera, scene, gl, mouse, etc.// delta is time since last frame in seconds meshRef.current.rotation.y+= delta
})return(<meshref={meshRef}><boxGeometry/><meshStandardMaterialcolor="orange"/></mesh>)}
State Object
useFrame((state, delta, xrFrame)=>{const{ clock,// THREE.Clock camera,// Current camera scene,// Scene gl,// WebGLRenderer mouse,// Normalized mouse position (-1 to 1) pointer,// Same as mouse viewport,// Viewport dimensions size,// Canvas size raycaster,// Raycaster get,// Get current state set,// Set state invalidate,// Request re-render (when frameloop="demand")}= state
// Time-based animationconst t = clock.getElapsedTime() meshRef.current.position.y=Math.sin(t)*2})
Render Priority
// Lower numbers run first. Default is 0.// Use negative for pre-render, positive for post-renderfunctionPreRender(){useFrame(()=>{// Runs before main render},-1)}functionPostRender(){useFrame(()=>{// Runs after main render},1)}functionDefaultRender(){useFrame(()=>{// Runs at default priority (0)})}
The recommended way to play animations from GLTF/GLB files.
Basic Usage
import{ useGLTF, useAnimations }from'@react-three/drei'import{ useEffect, useRef }from'react'functionAnimatedModel(){const group =useRef()const{ scene, animations }=useGLTF('/models/character.glb')const{ actions, names }=useAnimations(animations, group)useEffect(()=>{// Play first animation actions[names[0]]?.play()},[actions, names])return<primitiveref={group}object={scene}/>}
Animation Control
functionCharacter(
Implementation Guide
Prerequisites
โบClaude Desktop or compatible AI client with skill support
โบClear understanding of task or problem to solve
โบWillingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Steps
1Install skill using provided installation command
2Test with simple use case relevant to your work
3Evaluate output quality and relevance
4Iterate on prompts to improve results
5Integrate into regular workflow if valuable
Common Pitfalls
โ Expecting perfect results without iteration
โ Not providing enough context in prompts
โ Using skill for tasks outside its intended scope
โ Accepting outputs without review and validation
Best Practices
โ Do
+Start with clear, specific prompts
+Provide relevant context and constraints
+Review and refine all outputs before using
+Iterate to improve output quality
+Document successful prompt patterns
โ Don't
โDon't use without understanding skill limitations
โDon't skip validation of outputs
โDon't share sensitive information in prompts
โDon't expect skill to replace human judgment
๐ก Pro Tips
โ Be specific about desired format and style
โ Ask for multiple options to choose from
โ Request explanations to understand reasoning
โ Combine AI efficiency with human expertise
When to Use This
โ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
โ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path
1Familiarize yourself with skill capabilities and limitations
2Start with low-risk, non-critical tasks
3Progress to more complex and valuable use cases
4Build expertise through regular use and experimentation