threejs-impl-xr

threejs-impl-xr is a skill for Claude Code, Codex from Impertio-Studio/Three.js-Claude-Skill-Package. It costs 113 tokens per session (3,173 once invoked), scanned A, original, MIT.

A Three.js guide for building virtual-reality (VR) and augmented-reality (AR) experiences through WebXR, the browser technology that connects web pages to XR devices.

In plain words
What is it for?
Use it when adding VR or AR entry buttons, headset rendering, controllers, hand tracking, hit testing, or teleport movement to a Three.js project.
Why use it?
It helps avoid setup and input mistakes that can stop an XR scene from working correctly, such as using the wrong animation loop or reference space.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it when adding VR or AR entry buttons, headset rendering, controllers, hand tracking, hit testing, or teleport movement to a Three.js project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/impertio-studio/three.js-claude-skill-package/threejs-impl-xr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Impertio-Studio/Three.js-Claude-Skill-Package --skill threejs-impl-xr
Clone the repo
git clone --depth 1 https://github.com/Impertio-Studio/Three.js-Claude-Skill-Package

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for threejs-impl-xr

README.md
[![agentmods](https://agentmods.dev/badge/skills/impertio-studio/three.js-claude-skill-package/threejs-impl-xr/github.svg)](https://agentmods.dev/skills/impertio-studio/three.js-claude-skill-package/threejs-impl-xr)
Your own site
<a href="https://agentmods.dev/skills/impertio-studio/three.js-claude-skill-package/threejs-impl-xr"><img src="https://agentmods.dev/badge/skills/impertio-studio/three.js-claude-skill-package/threejs-impl-xr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for threejs-impl-xr

Your own site · 80×15
<a href="https://agentmods.dev/skills/impertio-studio/three.js-claude-skill-package/threejs-impl-xr"><img src="https://agentmods.dev/badge/skills/impertio-studio/three.js-claude-skill-package/threejs-impl-xr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,173 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00113 $0.03173
Opus 5 $0.00056 $0.01587
Sonnet 5 $0.00023 $0.00635
Haiku 4.5 $0.00011 $0.00317

Measured 9d ago against content hash 0ba1a8833a58, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

threejs-impl-xr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/source/threejs-impl/threejs-impl-xr/SKILL.md · 377 lines

How it starts

The opening of the file, as written. The whole thing — 377 lines — stays where its author put it; the contents beside it link to each section on GitHub.

threejs-impl-xr

Quick Reference

WebXRManager Properties

Property Type Default Description
enabled boolean false Enable XR rendering
isPresenting boolean read-only Whether an XR session is active
cameraAutoUpdate boolean true Auto-update camera from XR device pose

WebXRManager Methods

Method Signature Description
getSession() () => XRSession | null Current XR session
setSessionInit(options) (XRSessionInit) => void Configure session features before entry
setReferenceSpaceType(type) (string) => void Set reference space type
getController(index) (number) => Group Get controller target ray space
getControllerGrip(index) (number) => Group Get controller grip space
getHand(index) (number) => Group Get hand tracking group
setFoveation(level) (number) => void Set foveated rendering (0.0–1.0)
getFoveation() () => number Get current foveation level
getEnvironmentBlendMode() () => string Get blend mode (opaque, additive, alpha-blend)
setFramebufferScaleFactor(scale) (number) => void Adjust XR render resolution

Session Types

Type Use Case
'immersive-vr' Full VR headset experience
'immersive-ar' AR passthrough on headset or phone
'inline' Non-immersive XR in a browser window

Reference Space Types

Type Origin Use Case
'viewer' Head position HUD elements, gaze-locked UI
'local' Initial head position Seated experiences
'local-floor' Floor level at start Standing VR, ALWAYS preferred for room-scale
'bounded-floor' Floor with boundary Room-scale with guardian
'unbounded' World origin Large-scale AR experiences

XR Addon Classes

Class Import Path Purpose
VRButton three/addons/webxr/VRButton.js Creates "Enter VR" button with feature detection
ARButton three/addons/webxr/ARButton.js Creates "Enter AR" button with feature detection
XRControllerModelFactory three/addons/webxr/XRControllerModelFactory.js Loads appropriate controller 3D model
XRHandModelFactory three/addons/webxr/XRHandModelFactory.js Creates hand tracking visualization
XRHandPrimitiveModel three/addons/webxr/XRHandPrimitiveModel.js Simple geometric hand representation
XREstimatedLight three/addons/webxr/XREstimatedLight.js AR environment lighting estimation
XRPlanes three/addons/webxr/XRPlanes.js AR plane detection visualization

Read the full file on GitHub · 377 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 377 lines · 113 tokens per session scan A 0ba1a8833a58

Subscribe to this mod's changes

threejs-impl-xr is a skill published in the GitHub repository Impertio-Studio/Three.js-Claude-Skill-Package (13 stars, last pushed 2mo ago), licensed MIT. It adds 113 tokens to every session and 3,173 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

sceneview-web

Build 3D and WebXR (AR/VR) experiences in the browser with SceneView for Web — Filament.js (WebGL2/WASM) wrapped in a Kotlin/JS DSL and a plain-JavaScript API on window.sceneview. Use whenever the user asks for "3D in the browser", "a web model viewer", "WebXR AR/VR", or any browser 3D/AR app where the dependency is…

sceneview/sceneview · 147 tokens

hud

Putting numbers, buttons, messages and panels on top of a game — a resource counter, a price, a build button, a toast, a dialog, floating +5s. Use when adding a HUD, an overlay, a score or resource display, a shop button, a notification, a modal; when a tap on the game is being swallowed by the interface; or when the…

plausibleventures/lattice · 89 tokens

typescript-style

Validate TypeScript/React code against style and architectural conventions.

peteski22/agent-pragma · 14 tokens

threejs-docs

Comprehensive Three.js reference covering core API (objects, cameras, lights, materials, geometries, renderers, scenes, textures, math, animation, audio, loaders, helpers, nodes), all addons (controls, postprocessing, loaders, exporters, geometries, shaders, WebXR, physics), TSL (Three.js Shading Language) functions…

pledgeandgrow/pledge-skills · 112 tokens

frontend-design

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

anthropics/claude-plugins-official · 40 tokens

ima-dai-sdk

Integrates the Google Interactive Media Ads (IMA) Dynamic Ad Insertion (DAI) SDK into websites, web apps, mobile apps, or TV apps. Use when: - A video player needs to load and play HLS or DASH streams in web apps, Android apps, iOS apps, tvOS apps, Cast (CAF) receivers, or Roku channels. - The app needs to make use of…

google/skills · 125 tokens