/threejs-skills:threejs-dev-setupfrom threejs-skills
Bootstraps three.js projects with npm, Vite/Webpack/Rollup, ESM import maps, and TypeScript. Covers canonical import paths for core vs addons, version alignment, and fixing module resolution errors.
Ships in threejs-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.
ALWAYS use this skill when the user mentions:
importmapthree package, aligning version with documentation, or TypeScript setup (@types/three where applicable)three/addons/..., examples/jsm, ESM vs CJS interop, or bare specifier resolutionIMPORTANT: this skill vs runtime topics
WebGLRenderer / WebGPURenderer, canvas, pixel ratio, render loop—after the project loads.GLTFLoader, DRACOLoader, progress callbacks—after imports resolve.Trigger phrases include:
importmap—each affects how three/addons/ resolves.three version to a release compatible with the docs the user cites; note that addon paths follow the published package layout.three; controls/loaders/effects from three/addons/... (mapped to examples/jsm in source tree). See examples/workflow-scaffold.md.requestAnimationFrame—enough to verify toolchain without duplicating threejs-renderers depth.moduleResolution appropriate for bundler; reference types from three package typings; avoid duplicating global script tag patterns unless user targets no-bundler HTML.window/document).| Docs section | Representative links |
|---|---|
| Manual (getting started) | https://threejs.org/manual/ |
| Docs index | https://threejs.org/docs/ |
| Package / install context | https://www.npmjs.com/package/three |
three copies in one page breaks singletons; dedupe with bundler aliases.node_modules/.../examples/jsm paths is fragile; prefer package exports three/addons/... when available.Toolchain and import paths follow the three npm package version the user installs. The Manual and docs are updated with the library; addon paths (three/addons/...) must match the package layout for that release—when in doubt, cite the version number and the exact import line from the current docs.
When answering under this skill, prefer responses that:
importmap) and the intended three version.three in package.json / lockfile when duplicate singleton issues appear.English: three.js, vite, webpack, rollup, import map, typescript, npm, three/addons, examples jsm, module resolution, scaffold
中文: three.js 安装、构建、importmap、模块解析、three/addons、脚手架、Vite、Webpack
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (full-stack-skills/threejs-skills) — no native marketplace selected
npx claudepluginhub p/full-stack-skills-threejs-skills18 skills in this plugin
/threejs-animationthree.js keyframe animation system: AnimationMixer, AnimationClip, AnimationAction, KeyframeTrack variants, PropertyBinding, PropertyMixer, AnimationObjectGroup, AnimationUtils; mixing and crossfading clips, loop modes, timeScale, weight; addon AnimationClipCreator and CCDIKSolver for procedural rigs. Use when playing glTF clips, blending actions, or authoring procedural tracks; for skin deformation rigging on meshes see threejs-objects; for math interpolants without clips see threejs-math only when not tied to AnimationMixer./threejs-audiothree.js audio spatialization: AudioListener attached to camera rig, Audio and PositionalAudio sources, AudioAnalyser for FFT/time-domain data, and integration with Web Audio API contexts; AudioLoader is referenced from threejs-loaders for file decoding. Use when placing 3D sound, configuring panner parameters, or visualization; not a replacement for full game audio middleware./threejs-camerathree.js cameras: Camera base, PerspectiveCamera, OrthographicCamera, CubeCamera, ArrayCamera, StereoCamera; projection matrices, aspect, FOV, orthographic frustum sizes, near/far planes, and dynamic environment maps with CubeCamera. Use when placing views, rendering reflections, or multi-view splits; for XR projections and eye matrices use threejs-webxr; for post pass camera tricks use threejs-postprocessing alongside threejs-renderers.Other plugins' skills for the same job