/threejs-skills:threejs-model-inspectfrom three.js Skills
Report of what a glTF/GLB model contains and what three.js needs to load it: node and material names, clips, bones, bounds, texture sizes, decoders. Use when handed a 3D model or before writing code that loads it. Hands off to `threejs-model-fix` or `threejs-model-optimize`.
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; scripts run unread.
Code that loads a model depends on facts only the file knows: node names, clip names, bone names, scale, required
decoders. Guessed names fail silently (getObjectByName returns undefined, a missing clip plays nothing), so read
the file before writing code against it.
Paths: <this-skill-dir> is the directory containing this SKILL.md. Replace it with that absolute path, quote
paths in commands, and keep the working directory in the user's project. Bundled scripts need only Node 22+;
render.mjs also needs a Chrome-family browser.
If the model is not .glb or .gltf (FBX, OBJ, USDZ, STL, DAE, PLY), read references/converting.md and convert
it first. Everything downstream assumes glTF.
Run the bundled script. It has no dependencies and never decodes geometry, so it is fast on any file, compressed or not:
node <this-skill-dir>/scripts/inspect.mjs path/to/model.glb
node <this-skill-dir>/scripts/inspect.mjs path/to/model.glb --json # for scripting
node <this-skill-dir>/scripts/inspect.mjs path/to/model.glb --max-nodes 300
Exit code 2 means an error finding: the model will not load as-is.
Read the findings first. error blocks loading, warn usually shows on screen, info is context. Visual
symptoms (black, invisible, giant, inside-out) go to threejs-model-fix; size, texture and draw-call findings go
to threejs-model-optimize.
Use the report's values in code instead of placeholders:
_, [ ] . : / are dropped,
so Mixamo mixamorig:Hips becomes mixamorigHips). Nodes tagged duplicate name get _1, _2 suffixes in
load order; reach them by traversal or path, not by name.Group of N meshes loads as a Group with one child Mesh per material, not as a Mesh.## Animations; skeletal means bones are animated.## Decoders lists the exact loader calls the file needs.Look at the model. The report says what is in the file; a render shows whether it is right:
node <this-skill-dir>/scripts/render.mjs path/to/model.glb # six-view contact sheet PNG
node <this-skill-dir>/scripts/render.mjs model.glb --clip Run --time 0.4 # posed on a clip
node <this-skill-dir>/scripts/render.mjs before.glb --compare after.glb # A, B and a pixel-diff row
It drives a headless Chrome or Chromium (set CHROME_PATH if it is not found) over the bundled reference viewer,
writes the PNG next to the model, and prints triangles, draw calls, bounds, clips and console errors. Open the
PNG and describe what you see; do not report a model as fine without looking at it.
Asset kits (many props in one file, each modeled at the origin and picked by name in code) are detected
automatically: the report adds an ## Assets table per root asset (size, triangles, draw calls, whether it rests
on y=0) and skips whole-file bounds findings, and render.mjs draws one labeled tile per asset. Render a single
asset with --node <name>, or the stacked file with --whole.
Answer what was asked from the report (size budget, parts list, clip list) and quote numbers, not impressions.
getObjectByName("Wheel") or actions["Run"] before checking the names exist.Next: threejs-model-fix for anything that renders wrong, threejs-model-optimize before shipping.
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