hz-android-2d-porting
Guides porting existing Android 2D apps to Meta VR and Horizon OS — input adaptation, panel layout, and design requirements. Use…
Analyzes, documents, and maintains a living `.agent-docs/` knowledge base for Unity projects targeting Meta VR and Horizon OS. Use when the user asks to scan project structure, explain how a Unity system works, or update project docs after structural changes.
Claude Code
$ npx -y skills add meta-quest/agentic-tools --skill hz-unity-project-analyzer --agent claude-code
Codex
$ npx skills add meta-quest/agentic-tools --skill hz-unity-project-analyzer -a codex -y
Cursor
$ npx skills add meta-quest/agentic-tools --skill hz-unity-project-analyzer -a cursor -y
Gemini CLI
$ npx skills add meta-quest/agentic-tools --skill hz-unity-project-analyzer -a gemini-cli -y
GitHub Copilot
$ npx skills add meta-quest/agentic-tools --skill hz-unity-project-analyzer -a github-copilot -y
OpenCode
$ npx skills add meta-quest/agentic-tools --skill hz-unity-project-analyzer -a opencode -y
Windsurf
$ npx skills add meta-quest/agentic-tools --skill hz-unity-project-analyzer -a windsurf -y
name: hz-unity-project-analyzer license: Apache-2.0 description: Analyzes, documents, and maintains a living `.agent-docs/` knowledge base for Unity projects targeting Meta VR and Horizon OS. Use when the user asks to scan project structure, explain how a Unity system works, or update project docs after structural changes.
Analyze, document, and maintain a living knowledge base of a Unity project's structure, optimized for AI agent comprehension. Output lives in `.agent-docs/` as source-control-friendly markdown files.
This skill operates in four modes. Determine which mode to use based on context:
**Trigger:** `.agent-docs/` directory does not exist or `.agent-docs/index.md` does not exist.
**Trigger:** User asks to update docs, or AI agent has made structural changes (new scenes, scripts, prefabs, systems). Default update mode.
**Important:** Incremental updates are part of implementation, not a separate step. When creating or modifying scripts, prefabs, or assets, update the corresponding .agent-docs/ files in the same pass before moving on to the next task.
**Trigger:** User explicitly requests a full rescan (e.g., "rescan project", "full project analysis").
**Trigger:** User asks about the project structure or how a system/feature works (e.g., "what does this project do", "how does the ball system work", "project structure", "load project analysis"). Only use this mode when `.agent-docs/` exists. This mode is **read-only** — do not modify docs.
---
1. Read `README.md`, `CHANGELOG.md`, and any docs in `Documentation/` folder 2. Read `Packages/manifest.json` to understand all included packages 3. List all scenes: `Assets/**/*.unity` 4. List all script folders and assembly definitions: `Assets/**/*.asmdef` 5. List all prefab folders: find directories containing `.prefab` files 6. Identify the project's Unity version from `ProjectSettings/ProjectVersion.txt` 7. If an Editor is reachable (`unity status --format json` shows state `ready`), inspect it live for richer data than the files alone give — `unity command get_scene_hierarchy`, `find_assets`, `package_list --scope installed`, and the `get_*_settings` commands (`get_player_settings`, `get_quality_settings`, `get_graphics_settings`). See the **`unity-cli`** skill. 8. If a headset is attached, record the test-device baseline — `metavr device list` and `metavr device info <id>` (OS version, form factor) — so later findings can cite the hardware they were observed on.
Before documenting, ask the user about anything that is **not clear from the code or docs alone**. Examples:
Only ask about genuinely ambiguous items. If something is clear from naming, folder structure, or code inspection, document it directly.
For each category below, create or update the corresponding sub-document:
Create one file per scene (e.g., `.agent-docs/scenes/startup.md`).
For each scene document:
Create a scene flow diagram in `.agent-docs/scenes/_flow.md` using mermaid:
graph LR
Startup --> MainMenu --> GameplayIdentify logical systems (networking, UI, audio, input, gameplay, etc.) and create one file per system.
For each system document:
Group or document individually based on clarity:
For each prefab/group:
Document non-script, non-prefab assets adaptively:
Scripts are self-documenting through code. Here, document **usage context only**:
Create or update `.agent-docs/index.md` as the main entry point:
# [Project Name] — Agent Documentation > Auto-generated project knowledge base for AI agent comprehension. > Last updated:
Guides porting existing Android 2D apps to Meta VR and Horizon OS — input adaptation, panel layout, and design requirements. Use…
Upgrades Meta VR apps to newer Horizon OS SDK versions — migration guides, deprecated API replacements, changelog. Use when…
Guides design of comfortable, intuitive VR/MR experiences for Meta VR and Horizon OS — comfort guidelines, interaction patterns,…
Builds WebXR experiences for Meta VR and Horizon OS using the Immersive Web SDK (IWSDK) — ECS architecture, Three.js integration,…
Build multi-window Meta Horizon OS experiences with the MetaVrx Layout SDK in Jetpack Compose or React Native. Covers framework…
Builds app UI for Meta VR and Horizon OS with the MetaVrx UI Set, a Jetpack Compose component library and design system. Covers…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.