Terminal
Terminal/Skill
Guides building WebXR AR and VR experiences with React Three Fiber, including spatial input, UI inside the scene and XR test validation.
By Poimandres (Zustand, R3F)
Works with
npx skills add pmndrs/xr --skill pmndrs-xrUse this skill for WebXR experiences built with React Three Fiber and the React Three XR/uikit/handle packages.
src/main, src/App, styles, and vitexec/play. Get that slice building before expanding the scene.@react-three/xr plus <Canvas> and <XR store={store}>.store.enterAR() or store.enterVR().Read the smallest relevant reference first:
Generated upstream docs are also bundled:
references/docs/getting-started/introduction.mdreferences/docs/tutorials/store.mdreferences/docs/tutorials/interactions.mdreferences/docs/tutorials/origin.md, references/docs/tutorials/teleport.mdreferences/docs/tutorials/anchors.md, dom-overlay.md, hit-test.md, object-detection.mdreferences/docs/handles/introduction.mdreferences/index.mdIf unsure which page applies, search references:
rg -n "createXRStore|TeleportTarget|XRHitTest|pointerEventsType|XROrigin|DefaultXRController|Handle|uikit" path/to/skill/references
node_modules archaeology. Read only the specific bundled reference needed for the immediate API choice, then implement and validate the smallest real path before adding polish.Confirm the result has:
createXRStore and user-facing session entry.<XR store={store}> around scene content.