facebook/xr-mode-test
Test XR session lifecycle and mode transitions. Use when verifying XR enter/exit behavior, testing mode-dependent features, or debugging session state issues.
npx skills add https://github.com/facebook/immersive-web-sdk --skill xr-mode-test
Test the XR session lifecycle by entering and exiting XR mode, verifying state transitions at each step.
Use mcp__iwsdk-dev-mcp__xr_get_session_status to confirm starting state:
Use mcp__iwsdk-dev-mcp__xr_accept_session to enter XR.
Use mcp__iwsdk-dev-mcp__xr_get_session_status to confirm:
visibilityState is "visible"Use mcp__iwsdk-dev-mcp__xr_get_device_state to check:
Use mcp__iwsdk-dev-mcp__xr_end_session to leave XR.
Use mcp__iwsdk-dev-mcp__xr_get_session_status to confirm:
Use mcp__iwsdk-dev-mcp__browser_get_console_logs to verify:
If $ARGUMENTS is provided, use it as a log pattern filter for step 7.
Example: /xr-mode-test "MODE|RESET" will filter logs for "MODE" or "RESET" patterns.
Report:
Take facebook/xr-mode-test from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.