xr-mode-test

โดย facebook

ทดสอบวงจรชีวิตเซสชัน XR และการเปลี่ยนโหมด ใช้เมื่อตรวจสอบพฤติกรรมการเข้า/ออก XR ทดสอบฟีเจอร์ที่ขึ้นกับโหมด หรือดีบักปัญหาสถานะเซสชัน

npx skills add https://github.com/facebook/immersive-web-sdk --skill xr-mode-test

XR Mode Toggle Test

Test the XR session lifecycle by entering and exiting XR mode, verifying state transitions at each step.

Test Flow

1. Check Initial State

Use mcp__iwsdk-dev-mcp__xr_get_session_status to confirm starting state:

  • In 2D mode: no active session
  • Already in XR: note current state before proceeding

2. Enter XR Mode

Use mcp__iwsdk-dev-mcp__xr_accept_session to enter XR.

3. Verify XR Session Active

Use mcp__iwsdk-dev-mcp__xr_get_session_status to confirm:

  • Session is active
  • visibilityState is "visible"

4. Optional: Verify Input Devices

Use mcp__iwsdk-dev-mcp__xr_get_device_state to check:

  • Controllers are connected
  • Headset position is valid

5. Exit XR Mode

Use mcp__iwsdk-dev-mcp__xr_end_session to leave XR.

6. Verify Session Ended

Use mcp__iwsdk-dev-mcp__xr_get_session_status to confirm:

  • No active session
  • Back to 2D mode

7. Check Application State

Use mcp__iwsdk-dev-mcp__browser_get_console_logs to verify:

  • Any mode-switch logs fired correctly
  • Application state reset as expected (if applicable)

Arguments

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.

Expected Results

Report:

  • Whether each step passed or failed
  • Any unexpected state or errors
  • Time taken for session transitions
  • Relevant log messages from the application

Skills เพิ่มเติมจาก facebook

api-health
facebook
Monitor API health for a Meta app — check rate limits, call volume, and API deprecations. Use to diagnose throttling, plan capacity, or prepare for API version…
official
api-integration
facebook
แนะนำนักพัฒนาในการตั้งค่าการเชื่อมต่อ Meta API ตั้งแต่เริ่มต้น — ค้นหา API ที่เหมาะสม ดึงคู่มือการตั้งค่า ข้อกำหนดการยืนยันตัวตน…
official
app-review-prep
facebook
เตรียมแอป Meta สำหรับ App Review — ตรวจสอบสถานะปัจจุบัน ข้อกำหนดที่ค้างอยู่ สิทธิ์ที่ได้รับ และประวัติการส่ง ใช้ก่อนส่งแอป…
official
debug-webhooks
facebook
แก้ไขปัญหาเว็บฮุคสำหรับแอป Meta — ตรวจสอบการสมัครใช้งานที่ใช้งานอยู่ ระบุการตั้งค่าที่ผิดพลาด และส่งเพย์โหลดทดสอบเพื่อยืนยันการส่งมอบ ใช้เมื่อ…
official
webhook-setup
facebook
Set up webhooks for a Meta app end-to-end — discover available topics, subscribe to fields, and verify with a test payload. Use when configuring webhooks for…
official
buck2-rule-basics
facebook
แนะนำผู้ใช้ผ่านการเขียนกฎ Buck2 ตัวแรก เพื่อเรียนรู้แนวคิดพื้นฐาน ได้แก่ กฎ แอ็กชัน เป้าหมาย คอนฟิกูเรชัน การวิเคราะห์ และ select() ใช้…
official
add-ir-instruction
facebook
Guide for adding a new IR instruction to the Hermes compiler. Use when the user asks to add, create, or define a new IR instruction (Inst/Instruction) in the…
official
binary-size-analysis
facebook
ทักษะนี้ควรใช้เมื่อผู้ใช้ต้องการวิเคราะห์การเปลี่ยนแปลงขนาดไบนารีของ hermesvm ในช่วงของคอมมิต ใช้เมื่อผู้ใช้กล่าวถึง "binary size",…
official