threejs-upgrade
Installation
SKILL.md
Upgrade outdated three.js code
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+.
Process
-
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