addressables-design
Source-anchored design rules for Unity Addressables 1.22.3/2.9.1
Set up XR Interaction Toolkit (XRI) for VR/AR
$ npx -y skills add Besty0728/Unity-Skills --skill xr --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/xrContext preview
The summary Claude sees to decide when to auto-load this skill.
Set up XR Interaction Toolkit (XRI) for VR/AR
name: unity-xr description: Set up XR Interaction Toolkit (XRI) for VR/AR
> **Before calling any skill in this module:** if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via `GET /skills/recommend?includeSchema=true`) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.
Use this module for XR Interaction Toolkit setup and configuration. All `xr_*` skills are reflection-based and support XRI 2.x on Unity 2022 and XRI 3.x on Unity 6+.
> **Requires**: `com.unity.xr.interaction.toolkit`. > **Hard rule**: Read this file before the first `xr_*` call in a session. Wrong property names can fail silently because the bridge is reflection-based.
**Operating Mode** (v1.9 three-tier):
**DO NOT** (common hallucinations):
**Correct class names to anchor on**:
**Routing**:
| Skill | Use | Key parameters | |-------|-----|----------------| | `xr_check_setup` | Validate XR package, rig, managers, and scene prerequisites | `verbose?` | | `xr_setup_rig` | Create XR Origin + camera + controllers | `name`, `cameraYOffset?` | | `xr_setup_interaction_manager` | Add or find manager | none | | `xr_setup_event_system` | Replace/add XR UI input stack | none | | `xr_get_scene_report` | Report scene-side XR status | none |
| Skill | Use | Key parameters | |-------|-----|----------------| | `xr_add_ray_interactor` | Remote pointing / ray interaction | `name`, `maxDistance?`, `lineType?` | | `xr_add_direct_interactor` | Close-range hand grab | `name`, `radius?` | | `xr_add_socket_interactor` | Snap-to slot | `name`, `showHoverMesh?`, `recycleDelay?` | | `xr_add_grab_interactable` | Rigidbody + collider + grab config | `name`, `movementType?`, `throwOnDetach?` | | `xr_add_simple_interactable` | Hover/select without grab | `name` | | `xr_configure_interactable` | Fine-tune interactable behavior | target + changed fields only | | `xr_list_interactors` | List all scene interactors | none | | `xr_list_interactables` | List all scene interactables | none |
| Skill | Use | Key parameters | |-------|-----|----------------| | `xr_setup_teleportation` | Add teleport provider to XR Origin | none | | `xr_add_teleport_area` | Mark a surface as teleportable | `name`, `matchOrientation?` | | `xr_add_teleport_anchor` | Create fixed teleport destination | `name`, `x/y/z`, `rotY?`, `matchOrientation?` | | `xr_setup_continuous_move` | Add stick locomotion | `moveSpeed?`, `enableStrafe?`, `enableFly?` | | `xr_setup_turn_provider` | Add snap or smooth turn | `turnType`, `turnAmount?`, `turnSpeed?` | | `xr_setup_ui_canvas` | Convert Canvas for XR interaction | `name` |
| Skill | Use | Key parameters | |-------|-----|----------------| | `xr_configure_haptics` | Set hover/select vibration | `name`, intensities, durations | | `xr_add_interaction_event` | Wire interaction callback to target method | `name`, `eventType`, `targetName`, `targetMethod` | | `xr_configure_interaction_layers` | Set InteractionLayerMask | `name`, `layers`, `isInteractor` |
import unity_skills as u
u.call_skill("xr_check_setup")
u.call_skill("xr_setup_rig", name="XR Origin")
u.call_skill("xr_add_ray_interactor", name="Right Controller")
u.call_skill("xr_add_direct_interactor", name="Left Controller")
u.call_skill("xr_setup_teleportation")
u.call_skill("xr_setup_turn_provider", turnType="Snap", turnAmounREST API-based AI-driven Unity Editor Automation Engine Let AI control Unity scenes directly through Skills 🎉 We are now indexed by DeepWiki! Got questions? Check out the AI-generated docs → The current official maintenance baseline is Unity 2022.3+.
Source-anchored design rules for Unity Addressables 1.22.3/2.9.1
Manage Addressables groups, entries, profiles and content builds (com.unity.addressables, reflection-based)