Agent skill

Unity Package Management

by akiojin in akiojin/unity-cli

Manage Unity UPM packages and scoped registries with unity-cli.

MITAuto-check passedGame Development

Install Unity Package Management

skills CLI
$ npx skills add akiojin/unity-cli --skill unity-package-management -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install akiojin/unity-cli unity-package-management --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/akiojin/unity-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude-plugin/plugins/unity-cli/skills/unity-package-management .claude/skills/unity-package-management && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
unity-package-management
GitHub stars
107
Token cost
~1.9k tokens
SKILL.md length
731 words
Files
3 (incl. references)
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

Manage Unity UPM packages and scoped registries with unity-cli.

  • Works in 7 steps: Follow runtime prerequisites. Select the → Read Packages/manifest.json,… → Establish the requested package ID,… → …
  • The user asks to list installed packages
  • SKILL.md covers Use When, Do Not Use When, Preferred Flow and Examples, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Unity Package Management is an agent skill from akiojin/unity-cli. Manage Unity UPM packages and scoped registries with unity-cli. Use when the user asks to list installed packages, search, install, update or remove a package, configure OpenUPM or NuGet scopes, or verify compilation after a package change. Do not use for console-only diagnostics or Player builds; use unity-editor-tools. For C package-source navigation use unity-csharp-navigate; for new project creation use unity-project-bootstrap.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/package-operations.md` and `references/runtime-checklist.md`).

It sits in Game Development. It works with C# and Unity. The repository describes itself as: Rust CLI for Unity Editor automation over Unity TCP protocol. The licence is MIT.

When your agent uses it

  • The user asks to list installed packages
  • Remove a package
  • Configure OpenUPM
  • Verify compilation after a package change

Example prompts

  • “/unity-package-management”

Requirements

  • Pre-approved tools (allowed-tools): Bash(unity-cli:*), Read, Grep, Glob

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Follow runtime prerequisites. Select the
  2. Read Packages/manifest.json, Packages/packages-lock.json when present,
  3. Establish the requested package ID, version and registry. Use search for
  4. For a supported registry, configure only the needed scopes. Set
  5. Apply one requested change at a time. Install with packageId and optional
  6. After each change, inspect both transport and tool results: a JSON error
  7. Re-read package/registry lists, manifest and lock file; confirm the requested

What it can do on your machine

Read from SKILL.md and the folder at commit 7f45d7a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(unity-cli:*)
    • Read
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Unity Package Management loads about 1.9k tokens when it runs, and up to ~3k if it reads all its reference files. Until then it costs about 117 tokens; SKILL.md has 731 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~117
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from akiojin/unity-cli at commit 7f45d7a, republished under its MIT licence (© akiojin). 731 words, ~1,862 tokens.

Download SKILL.mdSave it as .claude/skills/unity-package-management/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
unity-package-management
description
Manage Unity UPM packages and scoped registries with unity-cli. Use when the user asks to list installed packages, search, install, update or remove a package, configure OpenUPM or NuGet scopes, or verify compilation after a package change. Do not use for console-only diagnostics or Player builds; use `unity-editor-tools`. For C# package-source navigation use `unity-csharp-navigate`; for new project creation use `unity-project-bootstrap`.
allowed-tools
Bash(unity-cli:*), Read, Grep, Glob
metadata.author
akiojin
metadata.version
0.1.1
metadata.category
editor
metadata.triggers
package, upm, registry
metadata.siblings
unity-localization, unity-editor-tools, unity-csharp-navigate, unity-project-bootstrap, unity-cli-usage

Unity Package Management

With --output json, results use {success, command, data, errors, warnings}. Check the exit status and envelope success first; tool-result fields in this skill are relative to data. Read failure codes from errors[0].code; see unity-cli-usage for exit-code recovery.

Use the existing Editor package tools to change dependencies, then verify the resolved package state and compilation in the same project.

Use When

  • List installed UPM packages, search the registry or inspect versions/dependencies.
  • Install, update or remove a package and verify the resulting compilation.
  • Add or inspect supported scoped registries and their package scopes.

Do Not Use When

  • Configure Locale/String Table assets and verify localized UI text: unity-localization.

  • Only read console, build a Player, change Editor settings or profile: unity-editor-tools. Only inspect C# package sources: unity-csharp-navigate.

  • Create a project and install its bridge: unity-project-bootstrap. Diagnose a missing CLI or unreachable bridge: unity-cli-usage.

  • Author Addressables groups/content: unity-addressables; edit imports or materials: unity-asset-management; author input actions: unity-input-system.

Preferred Flow

  1. Follow runtime prerequisites. Select the exact project and endpoint, pass the same --project-path and --port on every call when multiple Editors exist, and check system ping returns that project. Require Edit Mode and idle compilation/import before mutations.
  2. Read Packages/manifest.json, Packages/packages-lock.json when present, package_manager list, registry_config list and the console. Retain this baseline so pre-existing errors and unrelated dependencies remain visible.
  3. Establish the requested package ID, version and registry. Use search for discovery; its results are registry-dependent, not every package on the internet. info reads an installed package. Keep explicit versions and choose an Editor-compatible version when none was specified; inspect package metadata rather than assuming the newest version supports Unity 2022.3.
  4. For a supported registry, configure only the needed scopes. Set autoAddPopular:false on add_openupm / add_nuget; otherwise unrelated scopes may be added. Re-read registry_config list and the manifest. See package operations for supported actions and limitations.
  5. Apply one requested change at a time. Install with packageId and optional version; update with the same install action and the target version. Remove with the unversioned packageName. Read dependency information first: removing a direct dependency can leave it installed transitively. Do not remove a registry still used by other packages, or remove the active bridge.
  6. After each change, inspect both transport and tool results: a JSON error inside a successful transport response is still a failure. Wait for reload and compilation as described below; never send duplicate mutations just because a response timed out. Reconcile actual state first.
  7. Re-read package/registry lists, manifest and lock file; confirm the requested version/source or removal. Read console errors/exceptions after compilation settles. Report the actual result, manifest diff, resolved versions and console evidence. Existing errors prevent an unqualified clean-compilation claim; retain and distinguish them from errors introduced by this change.
Show full SKILL.md (276 more words)Show less
Reload and compilation completion

Keep the selected endpoint while the domain reloads. Retry only read-only system ping and get_editor_state with a bounded deadline (for example, 180 seconds, adjustable for a known large import). Continue when the responding project matches and isCompiling and isUpdating are both false. Confirm the resolved package state and another idle state reading before checking console; one early idle response alone does not prove an import finished. Do not require observing a reload: packages without scripts may not trigger one.

If the connection does not recover, collect the Editor log and use unity-cli-usage diagnostics. A modal package/registry notification can suspend the Editor update loop even when its TCP listener is running. Inspect the exact prompt in the selected Editor; close informational notices through its UI before resuming. If that UI is inaccessible or the prompt requires a new trust decision, report the blocker. Do not disable package validation to make polling pass. If a mutation response was lost but its result is already present, verify it instead of repeating it. If the state is ambiguous, stop with the evidence; do not edit the manifest by hand or restart an unrelated Editor. Compilation errors require diagnosis, not console clearing or a claimed PASS. Unsupported operations are tracked separately from this workflow (#376).

Examples

Run from the chosen project, adding its explicit endpoint flags when needed. The package/version below illustrate a user-selected target, not a universal recommendation. Inspect compatibility before applying it.

bash
unity-cli system ping
unity-cli raw get_editor_state --json '{}'
unity-cli raw package_manager --json '{"action":"search","keyword":"UniTask","limit":10}'
unity-cli raw registry_config --json '{"action":"list"}'
unity-cli raw registry_config --json '{"action":"add_openupm","scopes":["com.cysharp"],"autoAddPopular":false}'
unity-cli raw package_manager --json '{"action":"install","packageId":"com.cysharp.unitask","version":"2.5.5"}'
# Wait for compilation, then verify the actual resolved version and console.
unity-cli raw package_manager --json '{"action":"info","packageName":"com.cysharp.unitask"}'
unity-cli raw package_manager --json '{"action":"list","includeBuiltIn":false}'
unity-cli raw get_editor_state --json '{}'
unity-cli raw read_console --json '{"count":100,"logTypes":["Error","Exception"],"includeStackTrace":true}'
# Only when removal was requested; repeat the completion checks afterward.
unity-cli raw package_manager --json '{"action":"remove","packageName":"com.cysharp.unitask"}'
  • “Install this package, wait for reload, then show the manifest change and errors.”
  • “指定した UPM パッケージを更新して、コンパイル結果も確認して。”
  • “Only show console errors” → unity-editor-tools.

References

© akiojin, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in .claude-plugin/plugins/unity-cli/skills/unity-package-management of akiojin/unity-cli.

  • SKILL.md
  • references/package-operations.md
  • references/runtime-checklist.md

Open the folder on GitHubat commit 7f45d7a

Compare with similar skills

Unity Package Management next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Unity Package Management compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Unity Package Management this skillakiojin/unity-cli107—~1.9kAutomated safety check: PassMIT
Locus Unity BridgeMisaka-Mikoto-Tech/agent-skills275—~4kAutomated safety check: PassMIT
Unity PluginTomLeeLive/openclaw-unity-plugin107—~5.1kAutomated safety check: PassApache-2.0
Unity Version SplitIvanMurzak/Unity-MCP4.4k—~1.1kAutomated safety check: PassApache-2.0
Uloop Compile Checkhatayama/unity-cli-loop576—~1.4kAutomated safety check: PassMIT
Unity QuickstartNethereum/Nethereum2.3k—~1.6kAutomated safety check: PassMIT

Similar skills

  • Locus Unity Bridge

    Misaka-Mikoto-Tech/agent-skills

    A skill your agent uses when an agent needs to inspect or control a real Unity Editor through Locus, especially when Unity MCP is unavailable, named-pipe discovery is needed, C must be executed, or…

    275 GitHub stars~4k tokensUpdated 17 days ago
    Game DevelopmentAuto-check passed
  • Unity Plugin

    TomLeeLive/openclaw-unity-plugin

    Control Unity Editor via OpenClaw Unity Plugin. An agent skill from TomLeeLive/openclaw-unity-plugin.

    107 GitHub stars~5.1k tokensUpdated 29 days ago
    Game DevelopmentAuto-check passed
  • Unity Version Split

    IvanMurzak/Unity-MCP

    Split a C file into Unity 6.5+ and pre-Unity 6.5 variants. An agent skill from IvanMurzak/Unity-MCP.

    4.4k GitHub stars~1.1k tokensUpdated 4 days ago
    Game DevelopmentAuto-check passed
  • Uloop Compile Check

    hatayama/unity-cli-loop

    Compile C with the Unity-bundled Roslyn compiler without launching or contacting the Unity Editor; reports errors and warnings only.

    576 GitHub stars~1.4k tokensUpdated today
    Game DevelopmentAuto-check passed
  • Unity Quickstart

    Nethereum/Nethereum

    Integrate Ethereum into Unity games using Nethereum with async Web3 API, WebGL wallet support via EIP-6963 multi-wallet discovery and MetaMask (.NET/C).

    2.3k GitHub stars~1.6k tokensUpdated 3 days ago
    Game DevelopmentAuto-check passed
  • Unity Skill Create

    IvanMurzak/Unity-MCP

    Create a new skill (MCP tool) for the Unity Editor by writing a C (.cs) file that Unity compiles into the project.

    4.4k GitHub stars~2.1k tokensUpdated 4 days ago
    Game DevelopmentAuto-check passed

More from akiojin/unity-cli

All 28 skills in this repo
  • Gh PR

    akiojin/unity-cli

    Create or update GitHub Pull Requests with the gh CLI, including deciding whether to create a new PR or only push based on existing PR merge status.

    107 GitHub stars~2.7k tokensUpdated 3 days ago
    Auto-check passed
  • Gh Skills Sync

    akiojin/unity-cli

    Sync the gh- automation skills from the upstream skills repository into Codex and project skill directories.

    107 GitHub stars~680 tokensUpdated 3 days ago
    Auto-check: notes
  • Unity 2D Sprite Tilemap

    akiojin/unity-cli

    Build and verify a 2D sprite and Tilemap scene with unity-cli.

    107 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • Unity Addressables

    akiojin/unity-cli

    Manage Unity Addressables groups and content with unity-cli.

    107 GitHub stars~700 tokensUpdated 3 days ago
    Auto-check passed
  • Unity Asset Management

    akiojin/unity-cli

    Manage Unity assets and import metadata with unity-cli. An agent skill from akiojin/unity-cli.

    107 GitHub stars~1.8k tokensUpdated 3 days ago
    Auto-check passed
  • Unity Audio Setup

    akiojin/unity-cli

    Configure Unity audio with unity-cli. An agent skill from akiojin/unity-cli.

    107 GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Unity Package Management

What does Unity Package Management do?

Manage Unity UPM packages and scoped registries with unity-cli. Unity Package Management is an agent skill from akiojin/unity-cli. Manage Unity UPM packages and scoped registries with unity-cli.

When should I use Unity Package Management?

Unity Package Management fits situations like: the user asks to list installed packages; remove a package; configure OpenUPM; verify compilation after a package change.

How do I install Unity Package Management in Claude Code?

Run `npx skills add akiojin/unity-cli --skill unity-package-management -a claude-code`. Or copy the skill folder (.claude-plugin/plugins/unity-cli/skills/unity-package-management in akiojin/unity-cli) into .claude/skills/unity-package-management in your project. Claude Code loads it when a task matches its description.

How do I install Unity Package Management in Codex?

Run `npx skills add akiojin/unity-cli --skill unity-package-management -a codex`. Or copy the skill folder (.claude-plugin/plugins/unity-cli/skills/unity-package-management in akiojin/unity-cli) into .agents/skills/unity-package-management in your project. Codex loads it when a task matches its description.

Can I use Unity Package Management in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add akiojin/unity-cli --skill unity-package-management -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/unity-package-management, .gemini/skills/unity-package-management, .github/skills/unity-package-management and .opencode/skills/unity-package-management in your project.

What does Unity Package Management need to run?

SKILL.md names no scripts, command-line tools or credentials: Unity Package Management is instructions for the agent only. Its frontmatter pre-approves these tools: Bash(unity-cli:*), Read, Grep, Glob.

Does Unity Package Management access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Unity Package Management safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Unity Package Management use?

Unity Package Management is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Unity Package Management use?

About 1.9k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.2k tokens, read only when the agent opens those files.

What are the alternatives to Unity Package Management?

Skills that share tags, products or a category with Unity Package Management: Locus Unity Bridge (Misaka-Mikoto-Tech/agent-skills, 275 stars), Unity Plugin (TomLeeLive/openclaw-unity-plugin, 107 stars), Unity Version Split (IvanMurzak/Unity-MCP, 4.4k stars) and Uloop Compile Check (hatayama/unity-cli-loop, 576 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Unity Package Management?

akiojin (a GitHub user) maintains it in akiojin/unity-cli, which has 107 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 5, 2026.

Source: akiojin/unity-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.