webxr-3d-spatial-design

webxr-3d-spatial-design is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 70 tokens per session (1,793 once invoked), scanned A, original, MIT.

Technical guidance for building 3D experiences that run in web browsers with WebXR, Three.js, and WebGPU. It covers virtual and augmented reality sessions, controllers and hands, 3D interface input, sound, and model loading.

In plain words
What is it for?
Use it to build browser-based VR, AR, and 3D interfaces with tracked controllers or hands, spatial audio, ray-based selection, and GLTF model loading.
Why use it?
It helps developers manage the browser-specific session and rendering work needed for VR and AR. It also addresses interaction and performance issues that are easy to miss in 3D applications.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build browser-based VR, AR, and 3D interfaces with tracked controllers or hands, spatial audio, ray-based selection, and GLTF model loading.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/webxr-3d-spatial-design
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 hamzabellouch/agent-skills --skill webxr-3d-spatial-design
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

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 webxr-3d-spatial-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/webxr-3d-spatial-design/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/webxr-3d-spatial-design)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/webxr-3d-spatial-design"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/webxr-3d-spatial-design/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 webxr-3d-spatial-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/webxr-3d-spatial-design"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/webxr-3d-spatial-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,793 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.00070 $0.01793
Opus 5.5 $0.00028 $0.00717
Sonnet 5.5 $0.00014 $0.00359
Haiku 4.5 $0.00007 $0.00179

Measured 7d ago against content hash 64ee88c05aa1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

webxr-3d-spatial-design 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 7d 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.

Art/Spatial_Design_and_XR/webxr-3d-spatial-design/SKILL.md · 211 lines

How it starts

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

WebXR & 3D Spatial Design Production Guidelines

This skill covers architecture, frame loop synchronization, input handling (tracked controllers, hand tracking, raycasting), spatial audio integration, and performance optimization for WebXR and Three.js applications across VR headsets and AR pass-through devices.


1. WebXR Lifecycle & Session Management

1.1 Session Initialization (Immersive VR vs Immersive AR)

import * as THREE from 'three';
import { VRButton } from 'three/addons/webxr/VRButton.js';
import { ARButton } from 'three/addons/webxr/ARButton.js';

class SpatialApp {
  constructor() {
    this.container = document.createElement('div');
    document.body.appendChild(this.container);

    // 1. Scene & Camera Setup
    this.scene = new THREE.Scene();
    this.camera = new THREE.PerspectiveCamera(
      50, 
      window.innerWidth / window.innerHeight, 
      0.1, 
      20
    );
    this.camera.position.set(0, 1.6, 0); // 1.6m height standard human eye level

    // 2. Renderer with WebXR enabled
    this.renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
    this.renderer.setPixelRatio(window.devicePixelRatio);
    this.renderer.setSize(window.innerWidth, window.innerHeight);
    this.renderer.xr.enabled = true;
    this.renderer.shadowMap.enabled = true;
    this.renderer.shadowMap.type = THREE.PCFSoftShadowMap;
    this.container.appendChild(this.renderer.domElement);

    this.initButtons();
    this.initLighting();
  }

  initButtons() {
    // Add VR entry button to DOM
    document.body.appendChild(VRButton.createButton(this.renderer));
  }

  initLighting() {
    const ambientLight = new THREE.AmbientLight(0xffffff, 0.6);
    this.scene.add(ambientLight);

    const dirLight = new THREE.DirectionalLight(0xffffff, 0.8);
    dirLight.position.set(2, 4, 2);
    dirLight.castShadow = true;
    this.scene.add(dirLight);
  }

  // 3. WebXR-compliant Render Loop (Do NOT use requestAnimationFrame directly)
  start() {
    this.renderer.setAnimationLoop((timestamp, frame) => {
      this.update(timestamp, frame);
      this.renderer.render(this.scene, this.camera);
    });
  }

  update(timestamp, frame) {
    // Frame delta handling
    if (frame) {
      const session = frame.session;
      // Process XR input sources / reference space poses
    }
  }
}

Read the full file on GitHub · 211 lines

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. 7d ago First seen · 211 lines · 70 tokens per session scan A 64ee88c05aa1

Subscribe to this mod's changes

webxr-3d-spatial-design is a skill published in the GitHub repository hamzabellouch/agent-skills (8 stars, last pushed today), licensed MIT. It adds 70 tokens to every session and 1,793 once invoked, about $0.0003 per session on Opus 5.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-10-10.

Related

Other skills, from other repositories

browser-testing-with-devtools

Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be…

addyosmani/agent-skills · 68 tokens

fetch-url-as-markdown

Fetch a web page (URL) and return clean Markdown via local trafilatura, with Exa MCP as a fallback for JS-rendered or anti-bot pages. Use when the user asks to read, fetch, scrape, summarize, or quote a URL — prefer this over the built-in WebFetch tool. Don't use for binary files (PDFs, images, archives) or for…

CodeAlive-AI/ai-driven-development · 90 tokens

browser-testing-with-devtools

A guide for testing web pages and browser-based applications in a real Chrome browser through Chrome DevTools. It checks what is actually rendered and how the page behaves at runtime.

vinvcn/addyosmani-agent-skills-zh · 76 tokens

e2e-testing

End-to-end testing workflow with Playwright for browser automation, visual regression, cross-browser testing, and CI/CD integration.

tmolavi/mcp-agent-skills-hub · 29 tokens

spec-implement

Orchestrate parallel implementation of a feature specification by dispatching coder agents batch-by-batch with code review gates between batches. Use this skill when the user says "implement this feature", "start implementing", "run the spec", "execute the plan", "continue implementing", or wants to begin coding a…

benjaminthomas/spec-driven-dev · 130 tokens

spec-ship

Push the current branch to GitHub and create a pull request. Use this skill when the user says "ship it", "ship this", "push to github", "create a pr", "open a pull request", "send for review", "get this reviewed", or wants to push their work and open a PR. Also use when the user says "/spec-ship" (or their host's…

benjaminthomas/spec-driven-dev · 119 tokens