/ghibli-threejs:threejs-skeletonless-character-animationfrom ghibli-threejs
Animates static GLB characters without a skeleton using vertex-shader deformations for blinks, head turns, breathing, ear flicks, and look-at behavior. Includes wind-reactive held props and shader-drawn faces. Works with instanced shell fur and shadow materials in three.js/R3F.
Ships in ghibli-threejs. 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.
Produces idle life on a static-mesh character — it blinks like an animal, looks down the river, at a fish, at the visitor; when something interesting passes, its eyes, then head, then body turn to it with a slow blink and a curious tilt. A held leaf sways and cups in the wind. All of it is vertex-shader deformation driven by a few uniforms, so it works with instanced shell fur (skinned meshes can't be instanced) and shadows move with it.
Stack: three.js WebGLRenderer, MeshStandardMaterial/MeshPhysicalMaterial patched through
onBeforeCompile (chained with any existing patches), matching MeshDepthMaterials. Vanilla or R3F.
Make
{{character}}feel alive on{{vehicle / spot}}:
- Blinks like an animal: a fast close, a brief hold, a slower open, every 2–7 s at random, sometimes a double blink, and a blink at the start of any big head turn.
- Looks around every few seconds: the path ahead, the banks,
{{a creature}}, the sky, sometimes the visitor's camera. The eyes lead, the head follows on a spring.- When it passes
{{point of interest}}: eyes, then head, then body (with what it holds) turn to it; a slow blink and a curious tilt; a ~3 s hold while the vehicle slows; then back.- Plus breathing, ear flicks and eye micro-motion. No skeleton: deform in the vertex shaders with one shared pose function used by every posed material, the fur shells and the shadow depth materials.
Held prop: "Give
{{character}}'s{{leaf umbrella}}its own motion. Model the stem as a cantilever held at the paw, with the blade riding the tip. Use a spring–damper (≈1.4 Hz, lightly damped) driven by: the wind with gusts; the apparent wind of the vehicle's own motion; inertia from its acceleration and turns and from the character's body turns; and heave. The blade cups in the airflow and its rim flutters, faster in stronger air. Apply the same deformation to the shadow."
references/pose-shader.js)charPose(inout p, inout n), with #defines per part:
smoothstep(.5, .78, y) × (1 − armMask) so the paw keeps its grip on the held prop;smoothstep(.9, 1.01, y) weight);sin(1.25t)·8 mm).InstancedMesh) and each customDepthMaterial.z −= b²·r·0.8) so the socket behind reads as a shut lid.references/attention.js)a = ω²(target − x) − 2ωv: head ω ≈ 5.5, tilt 3, body ≈ 3.2, pupils ≈ 16.(target − head)·0.55, clamped
±0.35/±0.2) plus micro-motion, so they jump first and re-centre as the head arrives.yaw = atan2(−dz, dx) for a
front along +X; head yaw relative to body yaw. Idle head limit ~0.61 rad, glance ~0.87.Everything below the knee plane swings ~7° about the knees on a ~6.5 s beat, legs out of step,
each leg's reach breathing slowly, eased in over 10 cm so the knee stays soft (LEG_SWING in
pose-shader.js). At 3° nobody noticed.
references/held-leaf-wind.js)t = dot(p − grip, axis)/L, cantilever shape t²(3 − t)/2; twist grows with t.1.5·|bend|/L about
cross(axis, bend); rotate normals by the same rigid part in beginnormal_vertex.r²·(flutter(angle, t) − 0.03·dot(radial, airDir)·|air| + nod).|air|^0.5·air (quadratic is too violent); inertia −k·acceleration, so the
leaf swings forward when the boat stops; clamp bend at 20 cm.map + bumpMap, roughness ~0.62,
faked view-space translucency pow(sat(V·L·.5 + .5), 3)·sat(−N·L·1.4 + .2) × vein mask ×
(1 − .85·night), gain ~0.75.Faces from the head's local position (vLocal): two tilted oval hollows and an O or slit mouth
as SDFs, antialiased with fwidth, a faint carved rim; each variant is one material with a
uFace vec4 (tilt, eye height, mouth type, scale). Lumpy heads: sine lobes along 4 random
directions, then computeVertexNormals. Heads rattle now and then and turn to watch the boat.
A folded wing as one rigid hinged panel needs ~100–120° to spread — brute-force search the hinge
axis for the angle you want. The glTF Y-up conversion is a rotation about X, so local-X rotations
keep their sign: wing.quaternion.copy(rest); wing.rotateX(th), not rotation.x.
beginnormal_vertex only under some defines, so a variable declared
there doesn't exist in begin_vertex. Pose the normal and the position in two self-contained steps.const names (_lq) in one big script throw a SyntaxError and
nothing loads — give temporaries unique names (_leafQ).gl_FragColor.rgb *= 1. − .9·hole after opaque_fragment), zero the
emissive there, keep the albedo below pure white.onBeforeCompile: keep the previous patch and extend customProgramCacheKey, or
programs get shared/overwritten.queueBlink(t, 40)) to screenshot it shut; expose startGlance on a debug
hook to fire the sequence on demand.threejs-shell-fur-rendering · threejs-boat-buoyancy-steering · threejs-blender-glb-pipeline ·
threejs-ghibli-toon-shading · threejs-headless-visual-verification
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
character-animation, vertex-shader, glb, idle-animation, look-at, wind-props
npx claudepluginhub nicksonthc/ghibli-threejs --plugin ghibli-threejsOther plugins' skills for the same job
31 skills in this plugin
/threejs-blender-glb-pipelineBuilds a reference-image-driven asset pipeline from headless Blender to GLB for a three.js scene — an asset contract (units, axes, grounding, required mesh/material names, budgets, attachment numbers), one parallel subagent per asset group writing craft_<slug>.py generators, preview renders compared against the reference, measured-bounding-box placement in the web scene, Draco compression, and a scored asset quality pass. Use when the user has a reference picture and wants a 3D scene from it, asks to model props/trees/characters in Blender for three.js, export GLBs, fix glTF export issues (vertex-colour alpha, UV flip, axes, custom normals), compress models, or rate and improve every asset in a scene./threejs-boat-buoyancy-steeringFloats a boat (or any buoyant prop) on three.js water with Gerstner waves generated from one JS table that feeds both the GLSL vertex shader and a CPU waveHeight(), four-probe heave/pitch/roll damped springs, an arc-length drift lane that bends round rocks, click-to-steer W/A/S/D rowing with momentum and drag, an autopilot that pursues the lane back, and a chase camera that keeps the orbit. Use when the user wants a drifting or steerable boat, buoyancy, objects bobbing on waves, Gerstner waves on a river/lake, a boat autopilot, or a follow/chase camera behind a vehicle on water.