hz-api-upgrade
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "hz-api-upgrade":https://skillpi.com/zh/skills/deepskill-d3d1174e336cf77654c8e7d3f2d15731aaf087303f6b785599a51336e7ddca75。安装前核对上游来源和版本:https://github.com/meta-quest/agentic-tools。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
将 Meta Quest 应用升级至更高版本的 Horizon OS SDK。提供迁移指南、已弃用 API 的替代方案以及更新日志。适用于在更新 SDK 版本或修复已弃用 API 警告时使用。
介绍来源: third_party · meta-quest · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: hz-api-upgrade
license: Apache-2.0
description: "Upgrades 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."
allowed-tools: Bash(metavr:*), Bash(hzdb:*)Horizon API Upgrade Skill
For Unity projects using the Meta XR SDK, use the dedicated
hz-unity-sdk-upgrade skill. Continue
here for Unreal, native Android or Spatial SDK, Web or IWSDK, and general
cross-platform upgrade planning.
When to Use
Use this skill when:
- Upgrading an existing Meta VR application to a newer Horizon OS SDK version
- Fixing deprecated API warnings or compilation errors after an SDK update
- Migrating between major API versions (e.g., VrApi to OpenXR)
- Understanding what changed between SDK releases
- Planning an upgrade path for a project that has fallen behind on SDK versions
General Upgrade Workflow
Every SDK upgrade, regardless of platform, follows the same high-level process:
1. Identify Current SDK Version
Determine what version the project currently targets:
- Unity: Check
Packages/manifest.jsonor the Package Manager UI forcom.meta.xr.*package versions - Unreal: Check the Meta XR Plugin version in
.upluginfiles or the Plugins browser - Spatial SDK / Android: Check
build.gradleorbuild.gradle.ktsforcom.meta.spatial:*dependency versions - Web / IWSDK: Check
package.jsonfor@meta-spatial-sdk/*or@iwsdk/*package versions
2. Check the API Changelog
Before upgrading, review what changed between your current version and the target version. See references/api-changelog.md for a summary of recent changes.
Use the device hub to search documentation:
metavr docs search "release notes v72"
metavr docs search "migration guide openxr"
3. Update SDK Dependencies
Update the version numbers in your project configuration:
- Unity: Update via Package Manager or edit
manifest.jsondirectly - Unreal: Download and install the new plugin version
- Gradle projects: Bump version strings in
build.gradle - npm projects: Run
npm updateor editpackage.json
4. Fix Deprecated API Calls
After updating, compile the project and address errors and warnings. See references/deprecation-guide.md for common replacements.
# Search project for known deprecated APIs
grep -rn "vrapi_" --include="*.c" --include="*.cpp" --include="*.h" src/
grep -rn "OVRManager" --include="*.cs" Assets/
5. Test on Device
Deploy and verify functionality on a connected Meta VR device:
metavr app install ./build/output.apk
metavr app launch com.yourcompany.yourapp
6. Run Performance Check
Ensure the upgrade did not introduce performance regressions:
metavr perf capture
Platform-Specific Upgrade Paths
Unity: Meta XR SDK
The Meta XR SDK for Unity is distributed as UPM packages. Upgrades are performed through the Unity Package Manager. Key packages include com.meta.xr.sdk.core, com.meta.xr.sdk.interaction, and com.meta.xr.sdk.platform.
See references/sdk-migration.md for the step-by-step Unity upgrade guide.
Unreal Engine: Meta XR Plugin
The Meta XR Plugin for Unreal is distributed as an engine plugin. Upgrades involve downloading the new plugin version and regenerating project files.
See references/sdk-migration.md for the step-by-step Unreal upgrade guide.
Android / Spatial SDK
The Meta Spatial SDK is distributed as Gradle dependencies. Upgrades involve bumping version numbers in your Gradle build files.
See references/sdk-migration.md for the step-by-step Spatial SDK upgrade guide.
Web / IWSDK
The Immersive Web SDK is distributed as npm packages. Upgrades involve updating package versions in package.json.
See references/sdk-migration.md for the step-by-step IWSDK upgrade guide.
Common Upgrade Issues
Namespace Changes
Meta has progressively moved from Oculus.* and OVR* namespaces to Meta.* namespaces. After an upgrade, you may see compilation errors due to renamed classes or moved packages.
Removed APIs
APIs that were deprecated in previous versions may be fully removed in newer versions. If you skipped intermediate upgrades, you may encounter missing symbols. Always upgrade incrementally.
New Required Permissions
Newer Horizon OS versions may require additional permissions in your AndroidManifest.xml. Common additions include:
com.oculus.permission.HAND_TRACKINGfor hand tracking featureshorizonos.permission.HEADSET_CAMERAfor passthrough camera access- New
<meta-data>entries for feature declarations
Manifest Changes
Newer SDK versions may require updated <meta-data> entries in AndroidManifest.xml, such as com.oculus.supportedDevices or updated minSdkVersion values.
Android SDK Targeting Requirement
New binary uploads for Meta Horizon apps must set targetSdkVersion within the supported range.
What's required
- Set
targetSdkVersionto API level 32-34 for immersive apps (or 32-36 for 2D panel apps) minSdkVersioncan remain at API level 32- Applies to all new binary uploads for both new and existing apps
- Existing published apps continue to work without changes
How to update
Unity: Use the Project Setup Tool in the Meta XR SDK -- it can update API versions automatically. Or manually set in Player Settings -> Other Settings -> Target API Level.
Unreal: Use the Project Setup Tool in the Meta XR Plugin. Or set in Project Settings -> Android -> Target SDK Version.
Gradle (Spatial SDK / Native):
android {
defaultConfig {
targetSdkVersion 34 // 32-34 for immersive, 32-36 for 2D panel apps
minSdkVersion 32
}
}
Using metavr for Documentation Lookup
The metavr tool provides documentation search to help during upgrades. Invoke via metavr <args> (published as the npm package metavr; if metavr is not on PATH, run npx -y metavr <args>) — no global install needed.
# Search for migration-related documentation
metavr docs search "migration guide"
metavr docs search "deprecated API"
metavr docs search "breaking changes v73"
# Search for specific API replacements
metavr docs search "OVRManager replacement"
metavr docs search "vrapi openxr migration"
References
- Deprecation Guide -- Common deprecated APIs and their replacements
- SDK Migration Guide -- Step-by-step platform-specific migration instructions
- API Changelog -- Summary of changes across recent SDK versions
版本历史
-
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 实验室的评测报告。
亮点
- 提供完整的 Horizon OS SDK 升级工作流,涵盖多平台(Unity、Unreal、Android、Web)
- 包含详细的弃用 API 替代方案和常见升级问题解决方案
亮点
- 触发描述清晰完整,覆盖多种使用场景和变体
- frontmatter 中 description 位置正确且内容无截断
待提升项
-
When to Use 章节内容形式 原报告严重程度:轻微
When to Use 章节使用列表形式而非段落描述
改进建议:建议补充一段引导性文字说明使用场景的整体目标
亮点
- 文档结构清晰,分阶段引导用户完成升级流程
- 提供端到端示例和具体命令行操作
亮点
- 工具来源明确(metavr、grep、npm、Gradle),参数正确
- 覆盖主要异常场景并提供前置文档查阅建议
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 162 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。