/threejs-skills:threejs-upgradefrom three.js Skills
Audit of three.js and R3F code for deprecated, removed or renamed APIs, with a linter and migration guide. Use when auditing against the installed three version, preparing for the next release, upgrading, on not-exported errors, or reviewing 3D code. 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; scripts run unread.
Models trained on years of three.js write APIs that no longer exist: outputEncoding, sRGBEncoding, Clock,
RGBELoader, three/examples/js, useLegacyLights, mergeBufferGeometries. Some throw, some silently change
colors or lighting. Find them mechanically, fix the one-to-one renames automatically, and handle the rest by hand.
Paths: <this-skill-dir> is the directory containing this SKILL.md; replace it with that absolute path. The script
needs only Node 22+.
Run the linter over the project's source (it skips node_modules, build output and minified files):
node "<this-skill-dir>/scripts/lint.mjs" src
node "<this-skill-dir>/scripts/lint.mjs" src --json # for scripting
node "<this-skill-dir>/scripts/lint.mjs" docs --md # fenced code blocks in Markdown
Levels: removed breaks on r186 (exit code 1), deprecated still works but warns, outdated works but is not
current practice, upcoming changes in the next release. Each finding names the release it changed in.
Read the version lines first. If three is more than about 10 releases behind, upgrade in steps of 10 (deprecation
warnings live for 10 releases, so each step shows what the next removes); R3F 9 needs React 19.
Apply the safe renames with --fix on a clean working tree, then review the diff. It never touches Markdown or
comments, and only rewrites rules marked (--fix).
Fix the remaining findings by hand with references/manual-migrations.md, which covers the changes that need
judgment: light intensities after physical units, color management, Clock to Timer, TransformControls
helpers, R3F v8 to v9, and WebGPU imports.
Run the app and check the console: three.js prints deprecated and has been removed warnings the linter cannot
see (dynamic property names, values computed at runtime). Compare screenshots before and after for lighting and
color changes; the r155 and r181 releases change how PBR materials look even with correct code.
Re-run the linter until it reports no removed findings.
Suppress a deliberate use with // three-lint-disable-line on that line, or three-lint-disable-file in the file.
three 40 releases at once and debugging everything at the same time.useLegacyLights, ColorManagement.legacyMode).upcoming findings as errors on r186; they are a heads-up for r187.removed findings, and remaining deprecated ones are fixed or recorded.Next: threejs-model-fix if models render differently after the upgrade.
What SKILL.md sets; muted values are Claude Code's defaults
28 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
npx claudepluginhub emiliodominguez/threejs-skills --plugin threejs-skills