From partme-ai-full-stack-skills
Bootstraps three.js projects using npm, Vite, Webpack, Rollup, ESM import maps, and TypeScript. Guides canonical import paths for core/addons, version alignment, and module resolution fixes for new 3D setups, bundler migrations, or import errors.
npx claudepluginhub partme-ai/full-stack-skills --plugin t2ui-skillsThis skill uses the workspace's default tool permissions.
**ALWAYS use this skill when the user mentions:**
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
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.moduleResolution appropriate for bundler; reference types from three package typings; avoid duplicating global script tag patterns unless user targets no-bundler HTML.window/document).npm create vite@latest my-3d-app -- --template vanilla && cd my-3d-app
npm install three
// main.js — canonical imports and minimal render loop
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, innerWidth / innerHeight, 0.1, 100);
camera.position.z = 3;
const renderer = new THREE.WebGLRenderer();
renderer.setSize(innerWidth, innerHeight);
document.body.appendChild(renderer.domElement);
const mesh = new THREE.Mesh(
new THREE.BoxGeometry(),
new THREE.MeshStandardMaterial({ color: 0x00ff00 })
);
scene.add(mesh, new THREE.AmbientLight(0xffffff, 0.5));
renderer.setAnimationLoop(() => renderer.render(scene, camera));
| 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