# unity-package-management

Discovers, installs, and removes Unity packages outside the Editor using Pipeline commands or a headless C# fallback. Helpful for CI builds and fast project setups.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 7300 installs · ★ 1149
- Author: Unity-Technologies
- License: LicenseRef-Unknown · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Unity-Technologies/skills/tree/HEAD/skills/unity-package-management/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/unity-package-management

## What it does

The skill manages Unity Package Manager dependencies through the terminal instead of the GUI. Direct manual edits to `Packages/manifest.json` are forbidden because they break dependency resolution. The tool relies on precise API calls. When an Editor instance is running with `com.unity.pipeline`, it queries parameter schemas and invokes `unity command package add` or `remove`.

If no Editor is running, the skill falls back to a batchmode C# script. It writes `Assets/Editor/ProjectBootstrap/PackageInstaller.cs` and calls `Client.AddAndRemove`. Running this through `unity run` fails immediately. The default `-quit` flag terminates the process before asynchronous UPM downloads finish. Direct execution without `-quit` lets update ticks resolve dependencies and exit cleanly.

## Requirements
- Works with: Unity

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill unity-package-management -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/unity-package-management/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/unity-package-management/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill unity-package-management -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/unity-package-management/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill unity-package-management -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/unity-package-management/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Unity-Technologies/skills unity-package-management
```

2. **Manually: put the files in place**
- File: `.github/skills/unity-package-management/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill unity-package-management -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/Unity-Technologies/skills --path skills/unity-package-management
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/unity-package-management/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill unity-package-management -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/Unity-Technologies/skills/tree/HEAD/skills/unity-package-management/SKILL.md

## When to use it
- install UPM dependencies without editing manifest.json by hand
- inspect package schemas and available versions from the terminal
- configure required Unity packages headlessly in CI pipelines
- remove unused default packages included by project templates

## Example prompts
- Add com.unity.inputsystem to the project using Pipeline commands.
- Check installed UPM packages and list their current versions.
- Remove unwanted default render pipeline packages headlessly.

## Similar
- [unity-game-developer](https://affpapa.org/en/nevibecode/agents/unity-game-developer.md) — subagent · 1122 installs
- [unity-csharp-scripting](https://affpapa.org/en/nevibecode/skills/unity-csharp-scripting.md) — skill · 5900 installs
- [unity-animation](https://affpapa.org/en/nevibecode/skills/unity-animation.md) — skill · 5800 installs
- [unity](https://affpapa.org/en/nevibecode/skills/unity.md) — skill · 908 installs
- [unity-cursor-ai-c-cursorrules-prompt-file](https://affpapa.org/en/nevibecode/rules/unity-cursor-ai-c-cursorrules-prompt-file.md) — rule · ★ 41011
- [unity-developer](https://affpapa.org/en/nevibecode/skills/unity-developer.md) — skill · 3000 installs

From the same set: [unity-technologies/skills](https://affpapa.org/en/nevibecode/by/unity-technologies/skills.md) — 31 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
