Test XR session lifecycle and mode transitions. Use when verifying XR enter/exit behavior, testing mode-dependent features, or debugging session state issues.
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "xr-mode-test" 技能: 1. 下载 https://raw.githubusercontent.com/facebook/immersive-web-sdk/main/.claude/skills/xr-mode-test/SKILL.md 2. 保存为 ~/.claude/skills/xr-mode-test/SKILL.md 3. 装好后重载技能,告诉我可以用了
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:
Test grab system (distance grab, one-hand grab, two-hand grab) against the grab example using the iwsdk CLI.
Test XR interactions (ray, poke/touch, dual-mode, audio, UI panel) against the poke example using the iwsdk CLI.
Find and click a target object in XR. Use when testing UI interactions, clicking buttons, or verifying interactable elements work correctly.
IWSDK project planning and best practices guide. Use when planning new IWSDK features, designing systems/components, reviewing IWSDK code architecture, or when the user asks about IWSDK patterns, ECS design, signals, or reactive programming in this codebase.
Develop and iterate on IWSDK UI panels efficiently. Use when working on PanelUI components, debugging UI layout, or improving UI design in IWSDK applications.
Test level system (LevelRoot, LevelTag, default lighting, scene hierarchy) against the poke example using the iwsdk CLI.