Skip to main content
skill CX Codex

ar-vr-xr — Claude Code skill for XR development

ar-vr-xr is a Claude Code skill that guides AR, VR, and XR app design for Unity, WebXR, Apple, and Meta, including spatial interactions, interfaces, and performance.

MIT 125 installs ★ 114 updated 2026-10-25

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add travisjneuman/.claude --skill ar-vr-xr -a claude-code
Open on GitHub

What ar-vr-xr does

The skill covers Unity XR, WebXR, ARKit, ARCore, Meta Quest SDK, and visionOS. It explains patterns for handling grabbed objects, controller input, and gestures, along with placing UI in a 3D scene. Its examples include a Unity interactable object and a Three.js WebXR setup that enables VR and reads controller input.

Design guidance addresses comfort, spatial audio, and accessibility, including seated use and adjustable scale. Unity recommendations include a platform-dependent target of 72–120 FPS and draw-call limits for mobile VR and PCVR. Those figures depend on the target device, so they are not universal settings.

What it helps with

  • implement object grab and release in Unity XR
  • wire controller input into a WebXR scene
  • place VR interface elements at a comfortable distance
  • choose movement patterns that reduce discomfort
  • plan accessibility options for an XR interface

Example prompts for the agent

  • Design grab and release interactions for objects in my Unity XR scene.
  • Add a VR entry button and controller input handling to this WebXR scene.
  • Plan spatial UI placement and seated mode for this XR app.

How to install ar-vr-xr

1Skills CLI (Vercel)

npx skills add travisjneuman/.claude --skill ar-vr-xr -a claude-code

2Manually: put the files in place

~/.claude/skills/ar-vr-xr/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ar-vr-xr/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about ar-vr-xr

How do I install ar-vr-xr in Claude Code?

Run npx skills add travisjneuman/.claude --skill ar-vr-xr -a claude-code. The skill file is at ~/.claude/skills/ar-vr-xr/SKILL.md.

What does the ar-vr-xr skill do?

It guides AR, VR, and XR development, covering interactions in Unity and WebXR as well as spatial UI, comfort, and accessibility.

Which XR frameworks does ar-vr-xr cover?

It covers Unity XR, WebXR, ARKit, ARCore, Meta Quest SDK, and visionOS with RealityKit. The WebXR example uses Three.js.

Source text

SKILL.md · MIT
---
name: ar-vr-xr
description: AR/VR/XR development with Unity XR, WebXR, ARKit, ARCore, Meta Quest SDK, and spatial computing. Use when building augmented reality, virtual reality, mixed reality applications, or spatial experiences.
---

# AR/VR/XR Development

## Platform Overview

| Platform | SDK | Target Devices |
|----------|-----|----------------|
| **Unity XR** | XR Interaction Toolkit | Quest, Vision Pro, PCVR, mobile |
| **WebXR** | Three.js, A-Frame, Babylon.js | Any WebXR browser |
| **ARKit** | RealityKit, ARKit | iPhone, iPad, Vision Pro |
| **ARCore** | Sceneform, ARCore | Android devices |
| **Meta Quest** | Meta XR SDK | Quest 2/3/Pro |
| **Apple Vision Pro** | visionOS, RealityKit | Vision Pro |

## Unity XR

```csharp
// XR Interaction Toolkit setup
using UnityEngine.XR.Interaction.Toolkit;

public class GrabbableObject : XRGrabInteractable
{
    protected override void OnSelectEntered(SelectEnterEventArgs args)
    {
        base.OnSelectEntered(args);
        // Object grabbed
    }

    protected override void OnSelectExited(SelectExitEventArgs args)
    {
        base.OnSelectExited(args);
        // Object released
    }
}
```

### Unity XR Best Practices
- Target 72-120 FPS (platform-dependent) — frame drops cause nausea
- Use single-pass instanced rendering for stereo
- Bake lighting where possible, limit dynamic lights to 1-2
- Draw calls: <100 for mobile VR, <500 for PCVR
- Use LOD groups aggressively — user can't see distant detail in VR

## WebXR

```javascript
// Three.js WebXR
import * as THREE from 'three';
import { VRButton } from 'three/addons/webxr/VRButton.js';

const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.xr.enabled = true;
document.body.appendChild(VRButton.createButton(renderer));

renderer.setAnimationLoop((time, frame) => {
    if (frame) {
        const session = renderer.xr.getSession();
        const inputSources = session.inputSources;
        // Handle controller input
    }
    renderer.render(scene, camera);
});
```

## Apple Vision Pro (visionOS)

```swift
import SwiftUI
import RealityKit

struct ImmersiveView: View {
    var body: some View {
        RealityView { content in
            let sphere = MeshResource.generateSphere(radius: 0.1)
            let material = SimpleMaterial(color: .blue, isMetallic: true)
            let entity = ModelEntity(mesh: sphere, materials: [material])
            entity.position = [0, 1.5, -1]
            content.add(entity)
        }
        .gesture(TapGesture().targetedToAnyEntity().onEnded { event in
            // Handle tap on entity
        })
    }
}
```

## XR Design Principles
- **Comfort:** Avoid artificial locomotion, use teleport or room-scale movement
- **Interaction:** Direct manipulation (grab, point) over abstract UI
- **UI placement:** World-space UI at comfortable distance (1-3m), avoid head-locked HUD
- **Performance:** Frame rate is non-negotiable — optimize ruthlessly
- **Accessibility:** Provide seated mode, adjustable scale, color-blind options
- **Spatial audio:** 3D audio for immersion and wayfinding (HRTF, ambisonics)

© travisjneuman · MIT · travisjneuman/.claude

Similar skills

All skills for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set117

The whole set →
serverless-development serverless-development — a skill for AI coding on serverless compute: AWS Lambda, Vercel Edge, Cloudflare Workers. Useful when an API or webhook has to scale on its own. CX Codex +1 133installs growth-engineering growth-engineering is a Claude Code skill with architecture patterns for feature flags, A/B testing, PLG funnels, and referral tracking. CX Codex +1 133installs email-systems email-systems — a skill for Claude Code that guides transactional email setup, template design, and deliverability records. Runs when configuring sending infrastructure, building HTML templates, or troubleshooting inboxing. CX Codex +1 132installs graphql-expert graphql-expert — a skill for Claude Code guides GraphQL schema design, resolver implementation, and query optimization. Runs when drafting schemas or resolving N+1 bottlenecks. CX Codex +1 132installs blockchain-web3 The blockchain-web3 skill supports Solidity contracts, dApps, DeFi, NFTs, and EVM work. Use it when you need contract security checks or Web3 wallet integration. CX Codex +1 109installs data-engineering The data-engineering Claude Code skill covers data pipelines and warehouse schema design. It activates for ETL/ELT work, stream processing, and dbt transformations. CX Codex +1 105installs compliance-engineering The compliance-engineering Claude Code skill covers implementing SOC 2, HIPAA, GDPR, PCI-DSS, and FedRAMP requirements in code. It comes into play when adding audit logs, encryption, or access controls to a system. CX Codex +1 102installs game-development This Claude Code skill provides game-development guidance for Unity, Unreal Engine, and Godot. It activates for work on game mechanics, physics, AI, or engine-based projects. CX Codex +1 1installs

Project sponsors

Companies that keep this analytics open