webxr-anchors

Create, manage and persist WebXR anchors via hit-testing for cross-session AR content placement.

1|1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/Entelligentsia/skillforge --skill webxr-anchors
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webxr-anchors
Source: https://github.com/Entelligentsia/skillforge/tree/main/meta-webxr-skills/skills/webxr-anchors
Command: npx skills add https://github.com/Entelligentsia/skillforge --skill webxr-anchors

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

WebXR spatial anchors enable developers to reliably attach virtual content to real-world surfaces and persist object positions across sessions on Meta Quest, simplifying AR experiences.

Core Features & Use Cases

  • Anchor creation: create anchors at hit-test results or from poses.
  • Persistence: save and restore anchors across sessions and rooms.
  • Hit-testing integration: perform hit-tests to determine anchor placement and surface interaction.

Quick Start

Place an anchor at a hit-test result and attach your content to it to persist it across sessions.

Frequently Asked Questions about webxr-anchors

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist WebXR anchors across sessions on Meta Quest?

To persist WebXR anchors across sessions, you save and restore persistence handles to reliably attach content to real-world surfaces. This allows AR experiences to maintain object positions across rooms and sessions on Meta Quest.

How do I use hit-testing to place an anchor in Three.js?

You perform hit-testing to determine surface interaction points, then create an anchor at the hit-test result. Attaching your Three.js content to this anchor grounds it physically in the AR space.

What is the WebXR anchor lifecycle API used for?

The WebXR anchor lifecycle API is used to create, manage, and persist XR anchors within WebXR sessions. It enables developers to reliably attach virtual content to real-world surfaces and maintain object positions over time.

Does WebXR anchor persistence work with RATK integrations?

Yes, WebXR anchor persistence works with RATK integrations. The implementation covers anchor lifecycle APIs, hit-test workflows, and persistence handles specifically within Three.js and RATK integrations for practical AR deployment.

Why are my WebXR anchors drifting from their real-world surfaces?

WebXR anchors may drift if they are created from raw poses instead of hit-test results. Performing hit-tests determines accurate anchor placement and surface interaction, ensuring content reliably attaches to real-world surfaces.