unity-package-management
An agent skill by Unity-Technologies, from Unity-Technologies/unity-agent-plugin. Tags: automation, cloud, dependencies, development, setup.
What it does
Use when adding, removing, upgrading, or discovering Unity (UPM) packages programmatically from outside the Editor — headless or CI package installs via the C# UnityEditor.PackageManager.Client API, verifying package ids/versions against the Unity registry, or choosing which packages a game needs by genre, platform, and monetization. The Unity CLI does not manage UPM packages, so this skill covers that gap. Triggers on "install a Unity package", "add com.unity.*", "set up packages headless/CI", "which packages for a [genre] game".
Install
With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:
npx skills add Unity-Technologies/unity-agent-plugin --skill unity-package-management
Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):
git clone --depth 1 https://github.com/Unity-Technologies/unity-agent-plugin
cp -r unity-agent-plugin/skills/unity-package-management ~/.claude/skills/unity-package-management
Safety box score
Grade C, moderate risk: 33 of 100 risk points, rated 2026-10-19. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.
This skill manages Unity packages by generating C# editor scripts and running the Unity Editor headlessly to add, remove, upgrade, or search packages. The main risks are project-level code execution inside the Editor, network access to Unity registries, and direct modification of project dependency files and Editor-only source files.
| Category | Level | Why |
|---|---|---|
| Code & shell execution | 2 (moderate) | It explicitly writes C# editor scripts and runs them via the Unity Editor with `-batchmode -executeMethod`, e.g. `ProjectBootstrap.PackageInstaller.Install` and `ProjectBootstrap.PackageSearch.SearchAll`. |
| Network access | 2 (moderate) | It contacts Unity package registries for discovery and resolution, including `Client.SearchAll()` / `Client.AddAndRemove(...)` and `curl -fsSL https://packages.unity.com/...`. |
| Filesystem reach | 2 (moderate) | It creates and edits project files under `Assets/Editor/ProjectBootstrap/` and verifies `Packages/manifest.json`, so it changes project contents on disk. |
| Secrets & credentials | 0 (none) | The skill does not ask for tokens, passwords, keychains, `.env` files, or browser/session credentials. |
| Privilege & persistence | 0 (none) | There is no sudo, global install, service registration, shell startup edit, or OS-wide configuration change. |
| Instruction hijack surface | 1 (low) | It contains strong process directives like `do not hand-edit Packages/manifest.json` and `do not pass -quit`, but no hidden or externally sourced instruction-following. |
| Irreversible actions | 2 (moderate) | Its purpose is to add, remove, and upgrade packages automatically, including `Client.AddAndRemove(...)`, which changes project dependencies without manual editing. |
| Transparency | 0 (none) | The shipped files are plain markdown with embedded code samples; there are no binaries, opaque installers, or decoded blobs. |
Before installing
- Read `references/select-packages.md` and confirm the package list is actually needed for the project.
- Run it on a scratch copy of the project first, because it will modify `Packages/manifest.json` and `Assets/Editor/ProjectBootstrap/`.
- Check the generated `PackageInstaller.cs` before running it, especially any added or removed package IDs.
- Confirm the Unity editor version and registry access are correct for your environment before headless execution.
Rated 2026-10-19 by an automated review of 2 files from the skill's repository.
Source
- Repository
- Unity-Technologies/unity-agent-plugin (all skills from this repository)
- Path
- skills/unity-package-management/SKILL.md
- Branch
- main
- Updated
- 2026-09-22
Related skills
- expo-upgrade — Framework (OSS). Guidelines for upgrading Expo SDK versions and fixing dependency issues
- setup-security-agent — Configure AWS Security Agent for the current workspace — provision or reuse an agent space, IAM service role, and S3 bucket.
- agents-deploy — Use when deploying your agent to AWS, or when a deploy has failed.
- aws-blocks — Guides building full-stack applications with AWS Blocks — an Infrastructure-from-Code framework.
- aws-messaging-and-streaming — Guides general use of AWS messaging and streaming services.
- coordinating-multi-space-devops-agent — Coordinate the AWS DevOps Agent across multiple AgentSpaces from one Claude Code session — route questions to the right space (prod vs staging vs knowledge).