hz-new-project-creation
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "hz-new-project-creation":https://skillpi.com/zh/skills/deepskill-bdd1435a9166b1b5744790c4dbf7419f6b7cee842f45e48afa5b171167500ac7。安装前核对上游来源和版本:https://github.com/meta-quest/agentic-tools。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
为新的 Meta Quest 与 Horizon OS 项目搭建脚手架并给出推荐设置。涵盖 Unity、Unreal、Android/Spatial SDK 或 WebXR 的建议配置,适用于从零开始创建新的 Quest 应用时使用。
介绍来源: third_party · meta-quest · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: hz-new-project-creation
license: Apache-2.0
description: "Scaffolds new Meta VR and Horizon OS projects after the build path is selected — Standard Android, Meta Spatial SDK, Unity, Unreal, or WebXR. Use when creating a new Meta VR app from scratch. Build paths: all; use hz-quest-verify-first to choose the path."
allowed-tools: Bash(metavr:*), Bash(hzdb:*), Bash(npx:*), mcp__metavr__metavr_unity_setupNew Project Creation Skill
Scaffold and configure new Meta VR projects from scratch after the build path has been selected. This skill provides step-by-step setup instructions with recommended settings optimized for Meta VR hardware.
When to Use This Skill
Use this skill when you need to:
- Create a brand-new project targeting Meta Quest (Quest 2, Quest 3, Quest 3S, Quest Pro) and Meta VR Glasses after selecting its build path
- Configure a project with the correct render settings, SDK versions, and build targets for Meta VR
- Set up a project template with recommended architecture and folder structure
- Follow the setup workflow for a previously selected Standard Android, Meta Spatial SDK, Unity, Unreal Engine, or WebXR project
Prerequisites
Before creating any Meta VR project, complete these steps regardless of platform:
- Create a Meta developer account -- Sign up at developer.meta.com and create an organization.
- Set up your Meta VR device for development -- Enable developer mode in the Meta Horizon app on your phone under your headset's settings.
- Enable USB debugging -- Connect your Meta VR device via USB-C, put on the headset, and accept the "Allow USB debugging" prompt.
- Install metavr -- Install the standalone
metavrCLI binary on your PATH (see themetavr-cliskill), or invoke it on demand vianpxwith no install:metavr --versionExamples below use the bare
metavrcommand; if you use the npm distribution, prefix withnpx -y.
Verify your device connection before starting any project:
metavr device list
Start with the selected build path
Use hz-quest-verify-first to identify the build path before scaffolding. Do not
choose an SDK from a feature checklist: several paths can expose similar Meta VR
features, but they have different project structures and runtime models.
| Build path | Choose it when | Setup reference or skill |
|---|---|---|
| Standard Android | The app is primarily 2D UI in one resizable Horizon OS panel, implemented with Jetpack Compose, Android Views, React Native, or Expo. This is the default for a new 2D app; Spatial SDK is not required. | Standard Android project; use hz-react-native-expo for React Native or Expo |
| Meta Spatial SDK | The app needs an immersive scene, 3D entities, environment control, or hybrid 2D-and-3D content. | Spatial SDK project |
| Unity | The app is an immersive game or experience built in C#. | Unity project |
| Unreal Engine | The app is an immersive project built with C++ or Blueprints. | Unreal project |
| IWSDK / WebXR | The experience is web-based and should run in the browser or ship as a web app. | Web project |
After Choosing a Platform
Once the user has selected a platform, refer to the corresponding reference guide for detailed, step-by-step project setup:
- Unity (Meta VR) -- MUST use the
metavr_unity_setupMCP tool to create the project. Do NOT run Unity CLI directly. Do NOT walk the user through manual Package Manager / XR Plug-in Management steps. See Unity Project Setup. Manual fallback at unity-project-manual.md only when the MCP tool is unavailable. (Note: this guidance applies to Meta VR Unity projects only — for non-VR Unity projects use Unity Hub as normal.) - Unreal Engine -- Unreal Project Setup
- Standard Android -- Standard Android Project Setup; use
hz-react-native-expowhen the UI is implemented with React Native or Expo - Meta Spatial SDK -- Spatial SDK Project Setup
- Web / IWSDK / WebXR -- Web Project Setup
Each reference covers:
- Required tool and SDK versions
- Project creation steps
- Recommended project settings for Meta VR
- Build and deployment workflow
- Testing and iteration workflow
Gotchas
These are common pitfalls when setting up new Meta VR projects.
- Android API level mismatch -- For new immersive projects, start with minimum API 32 and target API 34. Check
hz-store-submitfor the minimum store-acceptance floor andhz-api-upgradefor the current target range; immersive and 2D panel apps differ. Setting the wrong API level is a common reason builds fail to install or upload. Unity defaults may not match these requirements — always verify in Player Settings > Other Settings and withmetavr docs search "target API". - ARM64 only, no x86 -- Meta VR devices are ARM64 (aarch64). If your build pipeline targets x86 or includes x86 native libraries, the APK will install but crash immediately on launch. In Unity, ensure "Target Architectures" has only ARM64 checked. In Android Studio, verify your ABI filters.
- Gradle version compatibility -- Meta's Android and Spatial SDK samples often pin compatible Gradle, Android Gradle Plugin, Kotlin, and KSP versions. Copy the complete version set from a current official template or sample; upgrading one independently can cause obscure build failures.
- Unity version matters -- Not every Unity version is compatible with the latest Meta XR SDK. Check the Meta XR SDK release notes for the supported Unity version range. Using an unsupported Unity version causes cryptic C# compilation errors or missing XR subsystem errors at runtime.
- Vulkan vs. OpenGL ES -- Quest 3 supports Vulkan and it is recommended for best performance. Quest 2 also supports Vulkan but some older Meta XR SDK features had Vulkan-only bugs. If you see rendering artifacts on Quest 2 with Vulkan, try OpenGL ES 3.0 as a fallback and file a bug.
- Missing Android manifest permissions -- Meta VR-specific features (hand tracking, passthrough, scene understanding, eye tracking) require explicit manifest permissions. The app will silently fail to access these features without the correct permissions. They are not added automatically by the SDK.
- Forgetting to set the package name before first build -- Changing the package name after the first install on a device can cause data loss or install failures. Set the correct
com.company.appnamepackage name before your first build and deploy. - Unreal Engine: OpenXR vs. OVRPlugin -- Unreal supports both the OpenXR backend and the legacy OVRPlugin backend for Quest. New projects should use OpenXR. Mixing plugins in the same project causes undefined behavior.
Common Post-Setup Tasks
After the project is created and configured on any platform, these tasks are typically needed:
Register the App on the Developer Dashboard
Create an application entry at developer.meta.com to obtain an App ID. This is required for platform features like entitlement checks, multiplayer, achievements, and store submission.
Set Up Version Control
Initialize a Git repository and configure .gitignore for the chosen platform:
git init
# Use a platform-appropriate .gitignore (Unity, Unreal, Android, or Node.js)
First Build and Deploy
Build the project and install it on a connected Meta VR device:
# After building, install the APK
metavr app install path/to/build.apk
# Launch the app
metavr app launch com.yourcompany.yourapp
# Monitor logs during first run
metavr adb logcat --follow --tag yourapp
Performance Baseline
On first successful run, verify the application meets baseline performance targets:
- Frame rate: 72 Hz minimum (90 Hz or 120 Hz preferred on Quest 3)
- Frame timing: Consistent frame times without spikes
- Thermal: No thermal throttling warnings during normal use
References
Skill References
- Unity Project Setup -- One-shot Unity project setup via the
metavr_unity_setupMCP tool- Unity Manual Setup (fallback) -- Step-by-step manual configuration; only needed when the MCP tool is unavailable
- Unreal Project Setup -- Step-by-step Unreal Engine project creation and configuration
- Standard Android Project Setup -- Create a 2D Horizon OS panel app without an immersive SDK
- Spatial SDK Project Setup -- Create an immersive or hybrid Android app with Meta Spatial SDK
- Web Project Setup -- Step-by-step IWSDK/WebXR project creation and configuration
版本历史
-
v1.8.0
GitHub ↗
原版更新说明
**Full Changelog**: https://github.com/meta-quest/agentic-tools/compare/v1.2.3...v1.8.0
-
v1.2.3
GitHub ↗
原版更新说明
**Full Changelog**: https://github.com/meta-quest/agentic-tools/compare/v1.2.1...v1.2.3
-
v1.2.1
GitHub ↗
原版更新说明
**Full Changelog**: https://github.com/meta-quest/agentic-tools/commits/v1.2.1
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 高价值场景:解决 Meta Quest/Horizon OS 新项目从零搭建的核心痛点
- 多平台覆盖:支持 Unity/Unreal/Android/Spatial SDK/WebXR 全路径脚手架
- 明确受众:面向 VR 开发者,提供标准化项目初始化流程
亮点
- 触发词精准:明确要求 'build path selected' 后触发,避免前置混淆
- 场景细化:'When to Use This Skill' 清晰界定适用边界
- 平台映射:表格明确各 build path 的适用场景与参考文档
亮点
- 结构完整:涵盖前置条件、平台选择、配置指引、常见陷阱、后续任务
- 步骤清晰:分阶段引导用户完成项目创建与验证
- 示例丰富:提供命令行示例、性能基线、部署流程等端到端指引
亮点
- 工具可靠:明确推荐 metavr CLI、npx、MCP Unity tool,避免手动配置风险
- 异常覆盖全面:涵盖 API level、ABI、Gradle、Unity version、渲染后端等关键陷阱
- 安全机制:强调 package name 设置时机、manifest permissions、版本兼容性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 5, 30, 34 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- developer.meta.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。