用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Besty0728/Unity-Skills --skill unity-package命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | unity-package |
| description | Manage Unity Package Manager (UPM) packages |
Before calling any skill in this module: if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via
GET /skills/recommend?includeSchema=true) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.
Manage installed Unity packages and package-related helper flows such as Cinemachine and Splines setup.
Operating Mode (v1.9 three-tier):
package_list, package_check, package_search, package_get_dependencies, package_get_versions, package_get_cinemachine_status) run directly. package_refresh is the only FullAuto mutator — on MODE_RESTRICTED, run the grant protocol for it. Every other mutator is auto-forbidden (next bullet) and grant does not unlock it.package_install, package_remove, package_install_cinemachine, package_install_splines (all MayTriggerReload = true, RiskLevel = "high"; package_remove also carries SkillOperation.Delete). They return MODE_FORBIDDEN under both Approval and Auto, and are reachable only under Bypass mode or via a user-managed Allowlist entry; the grant flow returns MODE_FORBIDDEN too, so do not attempt it.jobId; the actual package import + Domain Reload happens asynchronously and may make the REST server transiently unavailable. Poll with job_status / job_wait.DO NOT (common hallucinations):
package_add / package_update do not exist -> use package_installpackage_get_info does not exist -> use package_list, package_check, package_get_dependencies, or package_get_versionspackage_search searches the installed package cache only; it does not query the Unity Registry{ success: false, status: "refreshing", cacheReady: false, retryStrategy: "wait_and_retry", retryAfterSeconds: 2 }; retry instead of treating this as installed=false.Routing:
package_install_cinemachinepackage_install_splinesproject_get_packagesdebug_set_definespackage_listList all installed packages currently cached by UnitySkills. Parameters: None.
Returns: { success, count, packages }
package_checkCheck whether a package is installed.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
packageId | string | Yes | - | Package ID such as com.unity.cinemachine |
Returns: { packageId, installed, version }
package_installInstall a package. Returns an async job when the request is accepted.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
packageId | string | Yes | - | Package ID to install |
version | string | No | null | Optional explicit version |
Returns: { success, status, jobId, message, serverAvailability }
package_removeRemove an installed package. Returns an async job when the request is accepted.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
packageId | string | Yes | - | Installed package ID to remove |
Returns: { success, status, jobId, message, serverAvailability }
package_refreshRefresh the installed package cache used by query skills. Parameters: None.
Returns: { success, status, jobId, message }
package_install_cinemachineInstall Cinemachine using the supported package/version strategy.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
version | int | No | 3 | 2 for CM2, 3 for CM3 |
Notes:
Returns: { success, status?, jobId?, message, serverAvailability? }
package_install_splinesInstall or upgrade Unity Splines using the recommended version for the current Unity editor line. Parameters: None.
Returns: { success, status?, jobId?, message, serverAvailability? }
package_get_cinemachine_statusGet current Cinemachine and Splines installation status. Parameters: None.
Returns: { cinemachine, splines }
package_searchSearch the installed package cache by package name or display name.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | - | Search keyword |
Returns: { success, query, count, packages }
package_get_dependenciesGet dependency information for one installed package.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
packageId | string | Yes | - | Installed package ID |
Returns: { success, packageId, version, dependencyCount, dependencies }
package_get_versionsGet available versions for one installed package.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
packageId | string | Yes | - | Installed package ID |
Returns: { success, packageId, currentVersion, compatibleVersion, latestVersion, allVersions }
Exact names, parameters, defaults, and returns are defined by GET /skills/schema or unity_skills.get_skill_schema(), not by this file.