unity-migrate

unity-migrate is a command for Claude Code from XeldarAlz/everything-claude-unity. It costs 26 tokens per session (364 once invoked), scanned A, original, MIT.

A Unity migration assistant that plans and carries out upgrades between Unity versions or changes between rendering systems such as Built-in and URP. URP is Unity's Universal Render Pipeline, which controls how scenes are rendered.

In plain words
What is it for?
Use it to plan or perform upgrades such as Unity 2021 to 2022 LTS, Unity 2022 to Unity 6, or Built-in to URP. It can update packages and code, check errors, run tests, and verify the build.
Why use it?
It identifies outdated code, incompatible packages, shader and material changes, and testing needs that can make a migration risky or time-consuming.

Command for Claude Code

Part of the everything-claude-unity plugin — 10 skills, 27 commands, 20 agents, 5 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/xeldaralz/everything-claude-unity/unity-migrate
Clone the repo
git clone --depth 1 https://github.com/XeldarAlz/everything-claude-unity

Made for: Claude Code.

Or install everything-claude-unity, the plugin that ships this one along with the rest of its 10 skills, 27 commands, 20 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for unity-migrate

README.md
[![agentmods](https://agentmods.dev/badge/commands/xeldaralz/everything-claude-unity/unity-migrate.svg)](https://agentmods.dev/commands/xeldaralz/everything-claude-unity/unity-migrate)
Your own site
<a href="https://agentmods.dev/commands/xeldaralz/everything-claude-unity/unity-migrate"><img src="https://agentmods.dev/badge/commands/xeldaralz/everything-claude-unity/unity-migrate.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 364 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.00364
Opus 5 $0.00013 $0.00182
Sonnet 5 $0.00005 $0.00073
Haiku 4.5 $0.00003 $0.00036

Measured 4d ago against content hash bc66c34bc991, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

unity-migrate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/unity-migrate.md · 57 lines

What it actually says

/unity-migrate — Migration Assistant

Plan and execute a migration to: $ARGUMENTS

Workflow

Use the unity-migrator agent to:

Step 1: Assess Current State

project_info resource → current Unity version, platform, packages
manage_packages action:"list" → all installed packages with versions

Scan codebase for:

  • Deprecated API usage (Grep for known deprecated methods)
  • Platform-specific code that may need updating
  • Shader code using old includes

Step 2: Create Migration Plan

Present a step-by-step plan:

  1. Backup — create git branch
  2. Package updates — which packages need version bumps
  3. API changes — specific code changes needed (old → new)
  4. Shader changes — if render pipeline migration
  5. Material conversion — if render pipeline migration
  6. Testing — what to test after migration

Step 3: Execute (with user approval)

For each step:

  1. Make the change
  2. Check console via read_console
  3. Fix any errors before proceeding
  4. Report progress

Step 4: Verify

  • Run all tests via run_tests MCP
  • Check console for warnings
  • Verify build still succeeds

Common Migrations

  • Unity 2021 → 2022 LTS
  • Unity 2022 → Unity 6
  • Built-in → URP
  • Legacy Input → Input System
  • Coroutines → UniTask
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 57 lines · 26 tokens per session scan A bc66c34bc991

Subscribe to this mod's changes

unity-migrate is a command published in the GitHub repository XeldarAlz/everything-claude-unity (21 stars, last pushed 4mo ago), licensed MIT. It adds 26 tokens to every session and 364 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.