/meta-vr:hz-unity-project-analyzerfrom meta-vr
Analyzes, documents, and maintains a living .agent-docs/ knowledge base for Unity projects targeting Meta VR and Horizon OS. Scans project structure, explains Unity systems, and updates docs after structural changes.
Ships in meta-vr. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
README.md, CHANGELOG.md, and any docs in Documentation/ folderPackages/manifest.json to understand all included packagesAssets/**/*.unityAssets/**/*.asmdef.prefab filesProjectSettings/ProjectVersion.txtunity 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.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:
.agent-docs/project-overview.md).agent-docs/scenes/)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 --> Gameplay
.agent-docs/systems/)Identify logical systems (networking, UI, audio, input, gameplay, etc.) and create one file per system.
For each system document:
.agent-docs/prefabs/)Group or document individually based on clarity:
.agent-docs/prefabs/ui-elements.md).agent-docs/prefabs/player-rig.md)For each prefab/group:
.agent-docs/assets/)Document non-script, non-prefab assets adaptively:
.agent-docs/scripts/)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: YYYY-MM-DD
## Quick Context
[2-3 sentence project summary]
## Document Map
- [Project Overview](project-overview.md)
- Scenes
- [Scene Flow](<scenes/_flow.md>)
- [SceneName](<scenes/scene-name.md>)
- ...
- Systems
- [SystemName](<systems/system-name.md>)
- ...
- Prefabs
- [PrefabGroup](<prefabs/group-name.md>)
- ...
- Assets
- [AssetGroup](<assets/group-name.md>)
- ...
- Scripts
- [ScriptArea](<scripts/area-name.md>)
- ...
## Runtime Flow
[Brief description of app lifecycle from launch to gameplay]
Create .agent-docs/_config.md:
---
last_full_scan: YYYY-MM-DD
last_update: YYYY-MM-DD
documented_systems:
- system-name-1
- system-name-2
documented_scenes:
- scene-name-1
- scene-name-2
documented_prefab_groups:
- group-name-1
- group-name-2
---
.agent-docs/_config.md and .agent-docs/index.mdPackages/manifest.json.agent-docs/index.md if new docs were added or removedlast_update and the documented lists in .agent-docs/_config.mdDo NOT rewrite docs that haven't changed.
.agent-docs/index.md exists — if not, skip (no docs to ingest).agent-docs/index.md to get the document map and quick contextproject-overview.mdsystems/balls.mdscenes/_flow.mdproject-overview.md and scenes/_flow.mdLast updated: YYYY-MM-DD at the top of each sub-doc. This helps identify docs that may need refresh.Last updated fields — no parenthetical annotations.player-controller.md, main-menu.md_flow.md, _config.mdStartup.unity → startup.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
unity, meta-vr, horizon-os, project-analysis, documentation, knowledge-base
npx claudepluginhub meta-quest/agentic-tools --plugin meta-vr36 skills in this plugin
/hz-android-2d-portingGuides porting existing Android 2D apps to Meta VR and Horizon OS — input adaptation, panel layout, and design requirements. Use when adapting a mobile Android app for Meta VR. For UI design decisions, use hz-panel-designer if available. Build path: Standard Android; use hz-quest-verify-first if the build path is unclear./hz-api-upgradeUpgrades Meta VR apps to newer Horizon OS SDK versions — migration guides, deprecated API replacements, changelog. Use when updating SDK versions or fixing deprecated API warnings. Build paths: all Meta VR app stacks; use hz-quest-verify-first if the build path is unclear./hz-immersive-designerGuides design of comfortable, intuitive VR/MR experiences for Meta VR and Horizon OS — comfort guidelines, interaction patterns, spatial layout, accessibility. Use during UX design review or when evaluating comfort and accessibility. Build paths: Meta Spatial SDK, Unity, Unreal, native OpenXR, and WebXR; for 2D panel apps use hz-panel-designer if available. Use hz-quest-verify-first if the build path is unclear./hz-iwsdk-webxrBuilds WebXR experiences for Meta VR and Horizon OS using the Immersive Web SDK (IWSDK) — ECS architecture, Three.js integration, spatial UI. Use when creating web-based VR/MR apps for Quest Browser./hz-metavrx-layout-sdkBuild multi-window Meta Horizon OS experiences with the MetaVrx Layout SDK in Jetpack Compose or React Native. Covers framework selection, setup, anchoring, semantic offsets, window promotion, fallback, priority, lifecycle, and theming. Use for apps that need multiple app-owned panels without an immersive scene. Build path: Standard Android, including React Native; use hz-quest-verify-first if the path is unclear, and do not use this skill for immersive Spatial SDK scenes./hz-metavrx-ui-setBuilds app UI for Meta VR and Horizon OS with the MetaVrx UI Set, a Jetpack Compose component library and design system. Covers UiSetTheme, buttons, cards, controls, dialogs, dropdowns, inputs, side navigation, sliders, tooltips, the Icons.Regular library, Gradle setup, and migration from the Spatial SDK UI Set. Build path: Standard Android; use hz-quest-verify-first if the path is unclear.Other plugins' skills for the same job