/threejs-skills:threejs-model-animatefrom three.js Skills
Playing a loaded model's animations in three.js or R3F: clips, crossfades, one-shots, root motion, Mixamo clips, morph targets and rigged copies. Use when wiring model animations; not for procedural motion (`threejs-animation`). Hands off to `threejs-model-fix`.
Ships in three.js Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Most broken model animation comes from four mistakes: clip names guessed instead of read, no mixer.update(delta)
in the loop, rigged copies made with object.clone() (which keeps pointing at the original skeleton), and clips
from another file whose bone names or units do not match. Read the file, then wire the pattern below that fits.
threejs-model-inspect on the character and on every animation file. Note clip names and durations,
whether clips are skeletal, the bone names (Mixamo bones are mixamorigHips in three.js) and the scale.references/vanilla.mdreferences/r3f.mdreferences/mixamo.mdAnimationMixer per animated model instance, and advance it every frame with the frame
delta from THREE.Timer (Clock is deprecated since r183). drei's useAnimations does this for you.fadeTo(name) helper so
two clips never fight at full weight.SkeletonUtils.clone and give each copy its own mixer. Clips can
be shared across mixers.threejs-model-inspect's render.mjs model.glb --clip Run --time 0.3 at a few times and look at the sheets;
a clip that leaves the model in its bind pose, or stretches limbs, shows there.gltf.animations.map((clip) => clip.name); never hard-code a guess.clip.tracks[0].name is boneName.property) with the rig's bone names.mixer.stopAllAction(); mixer.uncacheRoot(root)) in apps that load and unload models.const copy = gltf.scene.clone() for a skinned model: the copy deforms with the original or not at all.action.play() on the next clip without fading the previous one out: both run at full weight.new THREE.Clock() in new code, or a delta computed from performance.now() that jumps after a tab switch.Next: threejs-model-fix if the model is in a T-pose, invisible or distorted.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub emiliodominguez/threejs-skills --plugin threejs-skills28 skills in this plugin
/threejsMap of the threejs-* skills for three.js and React Three Fiber work: 3D models, scenes, materials, lighting, animation, shaders, performance and model generation. Use when a 3D web task spans several areas or the right skill is unclear. Routes to `threejs-model-inspect` and the rest of the suite./threejs-animationKeyframe, skeletal and morph-target animation, procedural motion and clip blending, on WebGL or with WebGPU and TSL. Use when animating objects, playing glTF animations, posing bones, driving morph targets, or mixing and crossfading clips./threejs-asset-pipelineShrinking glTF assets for three.js with gltf-transform: inspect, validate and optimize commands, Draco, meshopt and quantization, KTX2, WebP and AVIF textures, the loader setup each output needs, and gltfjsx for React. Use when compressing, optimizing or validating 3D models before loading them.Other plugins' skills for the same job