hz-android-2d-porting

hz-android-2d-porting is a skill for Claude Code, Codex from meta-quest/agentic-tools. It costs 46 tokens per session (1,851 once invoked), scanned A, original, Apache-2.0.

A guide for adapting existing Android apps to run as 2D panels on Meta Quest headsets using Horizon OS. Horizon OS runs these apps in floating, resizable windows inside the headset's 3D space.

In plain words
What is it for?
Use it to adapt touchscreen controls for controller pointers or hand tracking, adjust layouts for floating panels, check Quest compatibility, and prepare an Android app for Horizon Store submission.
Why use it?
A phone app cannot assume users have a touchscreen or a fixed full-screen display. The guide explains the input, layout, performance, and store requirements that need attention.

Skill for Claude CodeCodex

Part of the agentic-tools plugin — 29 skills, 1 hook, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/meta-quest/agentic-tools/hz-android-2d-porting
Any agent
npx skills add meta-quest/agentic-tools --skill hz-android-2d-porting
Clone the repo
git clone --depth 1 https://github.com/meta-quest/agentic-tools

Made for: Claude Code, Codex.

Or install agentic-tools, the plugin that ships this one along with the rest of its 29 skills, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hz-android-2d-porting

README.md
[![agentmods](https://agentmods.dev/badge/skills/meta-quest/agentic-tools/hz-android-2d-porting.svg)](https://agentmods.dev/skills/meta-quest/agentic-tools/hz-android-2d-porting)
Your own site
<a href="https://agentmods.dev/skills/meta-quest/agentic-tools/hz-android-2d-porting"><img src="https://agentmods.dev/badge/skills/meta-quest/agentic-tools/hz-android-2d-porting.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,851 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00046 $0.01851
Opus 5 $0.00023 $0.00925
Sonnet 5 $0.00009 $0.00370
Haiku 4.5 $0.00005 $0.00185

Measured 5d ago against content hash 9e65afcfd231, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hz-android-2d-porting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hz-android-2d-porting/SKILL.md · 187 lines

How it starts

The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Android 2D App Porting to Horizon OS

When to Use

Use this skill when:

  • Porting an existing Android 2D app to run on Meta Quest headsets
  • Adapting a mobile Android app for Horizon OS panels
  • Troubleshooting input, layout, or compatibility issues with a 2D app on Quest
  • Preparing an Android app for Horizon Store submission
  • Evaluating whether an existing Android app is compatible with Horizon OS

Overview

Horizon OS is built on Android (AOSP) and can run standard Android applications inside panels -- floating 2D windows positioned in 3D space. Most well-built Android apps work on Quest with minimal changes, but several areas require attention:

  1. Input: There is no touchscreen. Users interact via controller pointer (ray-casting), hand tracking, or connected peripherals.
  2. Layout: Apps run in resizable panels, not full-screen on a fixed display.
  3. Design: Apps must meet Horizon OS design requirements for Horizon Store approval.
  4. Performance: Quest uses a mobile GPU (Adreno) with thermal constraints.

The goal of porting is to make the app feel native to the Quest experience while preserving existing functionality.

Porting Workflow

Step 1: Initial Testing

Invoke metavr (the Quest device CLI) via metavr <args>. The command is published as the npm package metavr, so if metavr is not on PATH you can run the same CLI via npx -y metavr <args> — no global install needed; npx fetches the latest published version on demand.

The examples in this doc call metavr directly; the npx -y metavr <args> form above is the equivalent when metavr is not on PATH (the published npm package is still metavr).

Install the existing APK on a connected Quest device and test basic functionality:

metavr app install path/to/your-app.apk
metavr app launch com.example.yourapp

Note any immediate issues: crashes, black screens, input problems, or layout breakage.

Step 2: Input Adaptation

The most common porting issue is input. Touch events are translated from the controller pointer, but:

Read the full file on GitHub · 187 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 187 lines · 46 tokens per session scan A 9e65afcfd231

Subscribe to this mod's changes

hz-android-2d-porting is a skill published in the GitHub repository meta-quest/agentic-tools (188 stars, last pushed 14d ago), licensed Apache-2.0. It adds 46 tokens to every session and 1,851 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

android-phone-control

Control an Android phone from a local Termux/Linux host using a deterministic ADB toolkit: device checks, wake/unlock/session mode, screenshots, UI dumps, taps, text input, key events, app launch, and safe app smoke tests.

patrickdass93/android-phone-control-skill · 53 tokens

unity-platform-player-settings

Use for a Unity 6 platform pass: Android/WebGL/iOS PlayerSettings snippets, scripting backends, and platform packages (foldables, Web threads, etc.).

rachitkumarrastogi/unity-mcp-server · 39 tokens

unity-firebase-mobile

Use for Firebase on Unity mobile: google-services.json, GoogleService-Info.plist, project ID discovery (paths only; no secret dumping).

rachitkumarrastogi/unity-mcp-server · 34 tokens

google-mobile-ads-android-migrate-to-next-gen

Migrates Android applications from the old, legacy Google Mobile Ads (GMA) SDK (com.google.android.gms:play-services-ads) to the new GMA Next-Gen SDK (com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk). Provides comprehensive mapping tables for imports, classes, and method signatures to help determine…

google/skills · 105 tokens

developer-device-platform-basics

Provides guidance and instructions on managing remote devices on Developer Device Platform (DDP). Use when reserving remote Android devices, establishing connection tunnels, checking session status, or extending/cancelling leases. Don't use for iOS or local device/hardware inquiries.

google/skills · 57 tokens

google-mobile-ads-validate

Validates a project's Google Mobile Ads (GMA) SDK integration for iOS, Android, or Unity projects. Use when conducting a full pre-launch audit of an app that integrates GMA SDK or when validating any individual GMA SDK integration checks, such as when validating ad unit IDs and ad formats, SKAdNetwork IDs, mediation…

google/skills · 84 tokens