Agent skill

Hz Xr Simulator Control

by meta-quest in meta-quest/agentic-tools

Routes Meta VR and Horizon OS simulator work to the right metavr command group, and drives a running Meta XR Simulator via metavr xrsim — runtime, device, input, compositor layers and MP4 recording.

Apache-2.0Auto-check passedMobile

Install Hz Xr Simulator Control

skills CLI
$ npx skills add meta-quest/agentic-tools --skill hz-xr-simulator-control -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install meta-quest/agentic-tools hz-xr-simulator-control --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/meta-quest/agentic-tools.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/hz-xr-simulator-control .claude/skills/hz-xr-simulator-control && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
hz-xr-simulator-control
GitHub stars
215
Token cost
~2.4k tokens
SKILL.md length
1,201 words
Files
2 (incl. references)
Skills in repo
34
Repo updated
First seen
Licence
Apache-2.0

At a glance

Routes Meta VR and Horizon OS simulator work to the right metavr command group, and drives a running Meta XR Simulator via metavr xrsim — runtime, device, input, compositor layers and MP4 recording.

  • Works in 2 steps: A setter reports what the runtime holds,… → runtime status is fault-tolerant by…
  • A goal concerns a simulated headset rather than a physical one
  • SKILL.md covers Which Command Group, The Three Connection Tiers, Safe Frontend Shutdown and Two Things That Bite, plus 2 more sections
  • Calls ffmpeg

What it does

Hz Xr Simulator Control is an agent skill from meta-quest/agentic-tools. Routes Meta VR and Horizon OS simulator work to the right metavr command group, and drives a running Meta XR Simulator via metavr xrsim — runtime, device, input, compositor layers and MP4 recording. Use when a goal concerns a simulated headset rather than a physical one, when choosing between xrsim, ssim, capture and tapedeck, or when a metavr xrsim command returns a connection error. For installing the simulator or configuring it into a Unity, Unreal or native OpenXR project, use…

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/commands.md`).

It sits in Mobile, covering Mobile testing and debugging and Game development. The repository describes itself as: Agent Skills for Meta Quest/Horizon OS VR Development. The licence is Apache-2.0.

When your agent uses it

  • A goal concerns a simulated headset rather than a physical one
  • Choosing between xrsim
  • Capture and tapedeck
  • A metavr xrsim command returns a connection error

Example prompts

  • “Use the hz-xr-simulator-control skill to route Meta VR and Horizon OS simulator work to the right metavr command group, and drives a running Meta XR…”
  • “/hz-xr-simulator-control”

Requirements

  • Pre-approved tools (allowed-tools): Bash(metavr:*), Bash(hzdb:*)

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. A setter reports what the runtime holds, not merely what was requested. device set,
  2. runtime status is fault-tolerant by default. It can exit 0 after a section fails, so check

What it can do on your machine

Read from SKILL.md and the folder at commit 3a8553d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(metavr:*)
    • Bash(hzdb:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • ffmpeg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Hz Xr Simulator Control loads about 2.4k tokens when it runs, and up to ~4.1k if it reads all its reference files. Until then it costs about 143 tokens; SKILL.md has 1,201 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~143
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from meta-quest/agentic-tools at commit 3a8553d, republished under its Apache-2.0 licence (© meta-quest). 1,201 words, ~2,407 tokens.

Download SKILL.mdSave it as .claude/skills/hz-xr-simulator-control/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
hz-xr-simulator-control
description
Routes Meta VR and Horizon OS simulator work to the right `metavr` command group, and drives a running Meta XR Simulator via `metavr xrsim` — runtime, device, input, compositor layers and MP4 recording. Use when a goal concerns a simulated headset rather than a physical one, when choosing between `xrsim`, `ssim`, `capture` and `tapedeck`, or when a `metavr xrsim` command returns a connection error. For installing the simulator or configuring it into a Unity, Unreal or native OpenXR project, use hz-xr-simulator-install-and-configure instead.
allowed-tools
Bash(metavr:*), Bash(hzdb:*)
license
Apache-2.0

XR Simulator Control

metavr is overwhelmingly a physical Quest or Glasses CLI: device, app, capture, input, log, files and ui all talk to a headset over ADB. xrsim is one group among them and drives a simulated headset instead. Choosing the wrong group is the most common failure here, and it is quiet: metavr device list prints No devices connected and exits 0, so the wrong answer looks healthier than the right one.

This skill drives a simulator that already exists. Installing one, or wiring it into a project, belongs to hz-xr-simulator-install-and-configure.

Which Command Group

The goal concernsUseNot
The simulated headset model, IPD, refresh ratemetavr xrsim device …metavr device … (physical, ADB)
The simulator frontend processmetavr xrsim app …metavr app … (APKs on a headset)
Simulated hands and controllersmetavr xrsim input …metavr input … (keyevents to hardware)
The simulator's synthetic roommetavr xrsim env …—
Compositor layers, simulated frame ratemetavr xrsim layer / xrsim runtime fps—
The simulator's own logsmetavr xrsim runtime logsmetavr log / metavr adb logcat (device logcat)
What the simulated headset rendersmetavr xrsim recordmetavr capture (physical device screen)
Recording and replaying an app's OpenXR calls on a real headsetmetavr tapedeckmetavr xrsim record (compositor pixels, not a call stream)
The SpatialSim emulatormetavr ssimmetavr xrsim (a different simulator)

Read the Use column as the right tool for that goal and Not as the one you might reach for by mistake. The last two rows are in this table because they are the mistakes, not because they are this skill's job.

Three are worth stating outright, because a plausible command exists on both sides:

  • "Record an OpenXR session" is the most confusable intent in the CLI. xrsim record captures the simulator's compositor output to MP4; tapedeck captures and replays an app's OpenXR call stream on a physical device. They are not substitutes.
  • "The simulator" is ambiguous inside this binary. ssim is the SpatialSim emulator, xrsim is the Meta XR Simulator.
  • device, app and input exist both at the top level and under xrsim, so the same verb means different things depending on the group. capture does not: there is no xrsim capture, and the simulator equivalent is xrsim record.

The Three Connection Tiers

Once you are inside xrsim, what a command needs decides which error you get.

TierCommandsNeeds
Localreadme, runtime logs, and on Linux bare record --output … --duration …nothing running
Lifecycleapp launch/quit/ensure-runningnothing running — these manage the frontend
Frontendruntime activate/deactivate/list, env set/listthe frontend app
Runtimeruntime ping/status/info/fps, device *, input *, layer *, record start/stop/statusthe frontend and a connected XR app

device list and device refresh-rates read like static catalogs but come from the live runtime. input sources prints a fixed list yet still needs a connection, because the input group opens one before it dispatches.

Two that a reasonable guess gets wrong in the other direction:

  • The app group is how you fix a down frontend, not something blocked by one. app launch and app ensure-running start it if it is absent. app quit asks the frontend on --port to close; --force terminates that same process instead, and --all is the explicit escape hatch for stopping every MetaXRSimulator on the host. Treating lifecycle commands as frontend-tier rules out the recovery.
  • Bare record is local on Linux. Without --runtime-addr it never connects — it captures the framebuffer through ffmpeg, so it needs ffmpeg on PATH but neither tier. The record start / stop / status subcommands are runtime-tier and additionally refuse to run on Linux without --runtime-addr.

Each error names exactly one hop, so do not retry blindly.

MessageWhat brokeFix
XR Simulator is not running…nothing listening on the frontend portstart the app, or pass --port
XR Simulator is running but no app is connected…frontend up, no OpenXR app attachedlaunch the app under test
Runtime at <addr> is no longer responding…the attached app diedrestart it; the stale endpoint clears itself
Meta XR Simulator is not installed in a registered system or MQDH locationthe frontend binary was never foundan install problem — see hz-xr-simulator-install-and-configure
native recording subcommands require --runtime-addr on Linuxrecord start/stop/status on Linuxpass --runtime-addr, or use bare record --output … --duration …
ffmpeg is required to record XR Simulator MP4sthe Linux record path has no ffmpeginstall ffmpeg

Check liveness with a frontend-tier command before asking runtime-tier questions. A refused connection returns XR Simulator is not running immediately, and --timeout is the total connection budget rather than a fresh budget for every retry. runtime list also distinguishes a reachable frontend with no attached app from a missing frontend, while runtime status requires an attached runtime.

So diagnose in tier order — cheapest first, stopping at the first failure:

bash
metavr xrsim runtime logs                             # local: paths resolve with nothing running
metavr xrsim runtime list --format json --timeout 2   # frontend reachable? how many runtimes?
metavr xrsim runtime status --format json             # only once a runtime is attached

runtime logs goes first precisely because it is the one that still answers when everything else is down: when runtime list fails, the log paths are what say why the frontend will not come up, and the XR Simulator is not running row above cannot tell you that.

runtime list returning [] is the frontend being up with no app connected — a different failure from the frontend being down, needing a different fix. More than one entry is its own trap: the runtime-tier groups follow the frontend's current endpoint, so pin one with --runtime-addr rather than guessing which answered.

Show full SKILL.md (318 more words)Show less

Safe Frontend Shutdown

Scope routine shutdown to the frontend's port. The default sends a close request so a live OpenXR session can tear down cleanly; use --force only after that scoped close fails. Never use --all as ordinary cleanup because it stops every MetaXRSimulator on the host.

bash
metavr xrsim --port 33794 app quit
metavr xrsim --port 33794 app quit --force  # only after graceful close fails
metavr xrsim app quit --all                 # only when every instance must stop

The quit report names the scoped pid and whether the operation was forced, alongside was_running, killed, and confirmed_stopped. For --all, the table renders all in the PID column; the JSON payload omits the internal scope marker.

Two Things That Bite

  1. A setter reports what the runtime holds, not merely what was requested. device set, device ipd, and device refresh-rate read settings back into an OBSERVED column. Without --wait, that is one immediate read and may still show the old value; with --wait, the command waits for convergence or exits with a timeout. Treat unknown as a failed read-back, never as confirmation that the requested value applied.
  2. runtime status is fault-tolerant by default. It can exit 0 after a section fails, so check device_error / input_error / fps_error. In automation, pass --strict: any failed query then produces a non-zero exit while the report is still printed for diagnosis.

XR Operator Port Consistency

When Meta XR Operator controls the app through a non-default port, set AGENTICXR_MCP_PORT to the same value for the in-app layer and the process running metavr. The proxy receives the resulting backend URL from metavr; mismatched environments point the proxy at a different port from the layer. Restart the affected app and MCP server after changing the variable.

For everything else — exact flags, output shapes, the two recording engines — metavr xrsim readme and metavr xrsim --help are authoritative and always current. Ask the binary rather than guessing.

References

  • references/commands.md — tier per group, the irregular corners of the surface, what the output means
  • GitHub: https://github.com/meta-quest/agentic-tools/tree/main/skills/hz-xr-simulator-control
  • hz-xr-simulator-install-and-configure — installing the simulator and configuring it into a project
  • hz-vr-debug — debugging against a physical device

© meta-quest, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/hz-xr-simulator-control of meta-quest/agentic-tools.

  • SKILL.md
  • references/commands.md

Open the folder on GitHubat commit 3a8553d

Compare with similar skills

Hz Xr Simulator Control next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Hz Xr Simulator Control compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Hz Xr Simulator Control this skillmeta-quest/agentic-tools215—~2.4kAutomated safety check: PassApache-2.0
Test Playable Web Gamesnirholas/three.ws2291 repos~429Automated safety check: PassApache-2.0
Phone HarnessShawnPana/phone-harness3.2k—~7.7kAutomated safety check: PassMIT
Maa Issue Log AnalysisMaaAssistantArknights/MaaAssistantArknights24k—~4kAutomated safety check: PassAGPL-3.0
Mobile QAtloncorp/tlon-apps107—~2.4kAutomated safety check: PassMIT
Store Listing Screenshotstherxmv/Telegram-Themer119—~2.5kAutomated safety check: PassNone

Similar skills

  • Test Playable Web Games

    nirholas/three.ws

    Test a playable browser game end to end with deterministic fixtures and real browser evidence.

    229 GitHub starsUsed in 1 repo~429 tokens
    Testing & QAAuto-check passed
  • Phone Harness

    ShawnPana/phone-harness

    Control the user's phone - an iPhone through the Mac's iPhone Mirroring window, an Android over adb, a rented cloud Android, or a cloud iPhone over HTTPS: open apps, tap, type, swipe, read the screen.

    3.2k GitHub stars~7.7k tokensUpdated today
    MobileAuto-check passed
  • Maa Issue Log Analysis

    MaaAssistantArknights/MaaAssistantArknights

    分析 MaaAssistantArknights 上游仓库公开 Issue(https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/...

    24k GitHub stars~4k tokensUpdated today
    MobileAuto-check passed
  • Mobile QA

    tloncorp/tlon-apps

    Run a mobile QA checklist on a physical Android device over adb for tlon-apps, then triage what fails into fixes.

    107 GitHub stars~2.4k tokensUpdated today
    MobileAuto-check passed
  • Store Listing Screenshots

    therxmv/Telegram-Themer

    Generate TelegramThemer's Play Store listing images — capture the 8 required app screenshots on a running emulator/device by driving the real UI with adb, then composite them into the final…

    119 GitHub stars~2.5k tokensUpdated 29 days ago
    MobileAuto-check passed
  • Maestro Improve

    ReinaMacCredy/maestro

    Turn filed lessons into the smallest doctrine edit. An agent skill from ReinaMacCredy/maestro.

    233 GitHub stars~1.9k tokensUpdated 13 days ago
    MobileAuto-check passed

More from meta-quest/agentic-tools

All 34 skills in this repo
  • Hz Android 2D Porting

    meta-quest/agentic-tools

    Guides porting existing Android 2D apps to Meta VR and Horizon OS — input adaptation, panel layout, and design requirements.

    215 GitHub stars~2.1k tokensUpdated 16 days ago
    Auto-check passed
  • Hz API Upgrade

    meta-quest/agentic-tools

    Upgrades Meta VR apps to newer Horizon OS SDK versions — migration guides, deprecated API replacements, changelog.

    215 GitHub stars~1.8k tokensUpdated 16 days ago
    Auto-check passed
  • Hz Iwsdk Webxr

    meta-quest/agentic-tools

    Builds WebXR experiences for Meta VR and Horizon OS using the Immersive Web SDK (IWSDK) — ECS architecture, Three.js integration, spatial UI.

    215 GitHub stars~3k tokensUpdated 16 days ago
    Auto-check passed
  • Hz Metavrx Layout SDK

    meta-quest/agentic-tools

    Build multi-window Meta Horizon OS experiences with the MetaVrx Layout SDK in Jetpack Compose or React Native.

    215 GitHub stars~855 tokensUpdated 16 days ago
    Auto-check passed
  • Hz New Project Creation

    meta-quest/agentic-tools

    Scaffolds new Meta VR and Horizon OS projects after the build path is selected — Standard Android, Meta Spatial SDK, Unity, Unreal, or WebXR.

    215 GitHub stars~2.3k tokensUpdated 16 days ago
    Auto-check passed
  • Hz Perfetto Debug

    meta-quest/agentic-tools

    Analyzes Meta VR and Horizon OS VR performance using Perfetto traces — frame timing, CPU/GPU bottlenecks, render pass analysis.

    215 GitHub stars~2.8k tokensUpdated 16 days ago
    Auto-check passed

Questions about Hz Xr Simulator Control

What does Hz Xr Simulator Control do?

Routes Meta VR and Horizon OS simulator work to the right metavr command group, and drives a running Meta XR Simulator via metavr xrsim — runtime, device, input, compositor layers and MP4 recording. Hz Xr Simulator Control is an agent skill from meta-quest/agentic-tools. Routes Meta VR and Horizon OS simulator work to the right metavr command group, and drives a running Meta XR Simulator via metavr xrsim — runtime, device, input, compositor layers and MP4 recording.

When should I use Hz Xr Simulator Control?

Hz Xr Simulator Control fits situations like: A goal concerns a simulated headset rather than a physical one; choosing between xrsim; capture and tapedeck; A metavr xrsim command returns a connection error.

How do I install Hz Xr Simulator Control in Claude Code?

Run `npx skills add meta-quest/agentic-tools --skill hz-xr-simulator-control -a claude-code`. Or copy the skill folder (skills/hz-xr-simulator-control in meta-quest/agentic-tools) into .claude/skills/hz-xr-simulator-control in your project. Claude Code loads it when a task matches its description.

How do I install Hz Xr Simulator Control in Codex?

Run `npx skills add meta-quest/agentic-tools --skill hz-xr-simulator-control -a codex`. Or copy the skill folder (skills/hz-xr-simulator-control in meta-quest/agentic-tools) into .agents/skills/hz-xr-simulator-control in your project. Codex loads it when a task matches its description.

Can I use Hz Xr Simulator Control in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add meta-quest/agentic-tools --skill hz-xr-simulator-control -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hz-xr-simulator-control, .gemini/skills/hz-xr-simulator-control, .github/skills/hz-xr-simulator-control and .opencode/skills/hz-xr-simulator-control in your project.

What does Hz Xr Simulator Control need to run?

Going by SKILL.md and its folder, Hz Xr Simulator Control needs the command-line tools its instructions call (ffmpeg). Its frontmatter pre-approves these tools: Bash(metavr:*), Bash(hzdb:*).

Does Hz Xr Simulator Control access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Hz Xr Simulator Control safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Hz Xr Simulator Control use?

Hz Xr Simulator Control is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Hz Xr Simulator Control use?

About 2.4k tokens (SKILL.md is roughly 9.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Hz Xr Simulator Control?

Skills that share tags, products or a category with Hz Xr Simulator Control: Test Playable Web Games (nirholas/three.ws, 229 stars), Phone Harness (ShawnPana/phone-harness, 3.2k stars), Maa Issue Log Analysis (MaaAssistantArknights/MaaAssistantArknights, 24k stars) and Mobile QA (tloncorp/tlon-apps, 107 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Hz Xr Simulator Control?

meta-quest (a GitHub organization) maintains it in meta-quest/agentic-tools, which has 215 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on September 24, 2026.

Source: meta-quest/agentic-tools on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.