From partme-ai-full-stack-skills
Integrates WebXR into three.js with renderer managers, VR/AR buttons, controller/hand models, estimated lights, planes, and utilities for immersive sessions and tracking.
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:
navigator.xr, reference spaces, session requestAnimationFrame loop via rendererVRButton, ARButton, XRButton creation patterns from examplesIMPORTANT: webxr vs renderers vs camera
| Topic | Skill |
|---|---|
| Enable XR on renderer, sizing | threejs-renderers (basics) + threejs-webxr (session) |
| Desktop projection | threejs-camera |
Trigger phrases include:
renderer.xr.enabled = true patterns per docs; prefer setAnimationLoop for XR loops.XREstimatedLight for AR realism—combine with threejs-lights cautiously.import { VRButton } from 'three/addons/webxr/VRButton.js';
// Feature detection and session start
if ('xr' in navigator) {
renderer.xr.enabled = true;
document.body.appendChild(VRButton.createButton(renderer));
renderer.xr.addEventListener('sessionstart', () => {
console.log('XR session started');
});
renderer.xr.addEventListener('sessionend', () => {
console.log('XR session ended — restoring desktop view');
});
} else {
console.warn('WebXR not supported in this browser');
}
See examples/workflow-xr-button.md.
| Docs section | Representative links |
|---|---|
| Renderer XR | https://threejs.org/docs/WebXRManager.html |
| Webxr addons | https://threejs.org/docs/VRButton.html |
| Webxr addons | https://threejs.org/docs/ARButton.html |
| Webxr addons | https://threejs.org/docs/XRControllerModelFactory.html |
WebXR entry points span Addons → Webxr and renderer WebXRManager in three.js docs. Browser and device capabilities vary—answers should cite the official example name and three.js version when possible.
When answering under this skill, prefer responses that:
WebXRManager, VRButton, ARButton, or controller factories as relevant.setAnimationLoop patterns with threejs-renderers for XR render loops.English: webxr, vr, ar, xr session, controller, hand tracking, three.js
中文: WebXR、VR、AR、VRButton、手柄、手部追踪、沉浸式、three.js