Agent skill

Unity Version Split

by IvanMurzak in IvanMurzak/Unity-MCP

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

Apache-2.0Auto-check passedGame Development

Install Unity Version Split

skills CLI
$ npx skills add IvanMurzak/Unity-MCP --skill unity-version-split -a claude-code

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

GitHub CLI
$ gh skill install IvanMurzak/Unity-MCP unity-version-split --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/IvanMurzak/Unity-MCP.git skills-src && mkdir -p .claude/skills && cp -r skills-src/Unity-MCP-Plugin/.claude/skills/unity-version-split .claude/skills/unity-version-split && 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-version-split
GitHub stars
4.4k
Token cost
~1.1k tokens
SKILL.md length
341 words
Files
1
Skills in repo
80
Repo updated
First seen
Licence
Apache-2.0

At a glance

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

  • Works in 5 steps: Read the Source File → Identify the Split Points → Create the Two Files → …
  • A file needs different implementations for different Unity versions due to API changes (e.g.
  • SKILL.md covers When to Use, File Naming Convention, Step-by-Step Process and Example, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Unity Version Split is an agent skill from IvanMurzak/Unity-MCP. Split a C file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Game Development, covering Game development. It works with C# and Unity. The repository describes itself as: AI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C method may be turned into a… The licence is Apache-2.0.

When your agent uses it

  • A file needs different implementations for different Unity versions due to API changes (e.g.
  • EntityId vs int
  • GetEntityId vs GetInstanceID)

Example prompts

  • “/unity-version-split”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Read the Source File
  2. Identify the Split Points
  3. Create the Two Files
  4. Refresh Assets
  5. Verify

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    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 csharp).

    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 Version Split loads about 1.1k tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 341 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

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 IvanMurzak/Unity-MCP at commit 4c8056f, republished under its Apache-2.0 licence (© IvanMurzak). 341 words, ~1,081 tokens.

Download SKILL.mdSave it as .claude/skills/unity-version-split/SKILL.md (or your agent's skills folder).
name
unity-version-split
description
Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).
argument-hint
[path to the .cs file that needs splitting]

Unity Version Split

Split a C# source file into two variants: one for Unity 6.5+ (UNITY_6000_5_OR_NEWER) and one for older versions (pre-Unity 6.5).

When to Use

Unity 6.5 introduced breaking changes including:

  • EntityId replaces int for instance IDs (GetEntityId() replaces GetInstanceID())
  • EditorUtility.EntityIdToObject(EntityId) replaces EditorUtility.InstanceIDToObject(int)
  • Implicit EntityId <-> int conversions are marked [Obsolete(..., true)] (compile error)

When a file needs different code for these Unity versions, split it into two files following the project convention.

File Naming Convention

FilePurposePreprocessor Guard
FileName.csUnity 6.5+ (newer version)#if UNITY_6000_5_OR_NEWER
FileName.pre-Unity.6.5.csPre-Unity 6.5 (older version)#if !UNITY_6000_5_OR_NEWER

For files that also have Editor/Runtime variants, combine the guards:

FileGuard
FileName.Editor.cs#if UNITY_EDITOR && UNITY_6000_5_OR_NEWER
FileName.Editor.pre-Unity.6.5.cs#if UNITY_EDITOR && !UNITY_6000_5_OR_NEWER
FileName.Runtime.cs#if !UNITY_EDITOR && UNITY_6000_5_OR_NEWER
FileName.Runtime.pre-Unity.6.5.cs#if !UNITY_EDITOR && !UNITY_6000_5_OR_NEWER

Step-by-Step Process

Step 1 — Read the Source File

Read $ARGUMENTS (the target file path). Identify which parts need version-specific code.

Step 2 — Identify the Split Points

Common differences between Unity 6.5+ and pre-6.5:

Unity 6.5+Pre-Unity 6.5
EntityIdint
EntityId.None0
go.GetEntityId()go.GetInstanceID()
EditorUtility.EntityIdToObject(entityId)EditorUtility.InstanceIDToObject(instanceID)
ObjectRef.InstanceID is EntityIdObjectRef.InstanceID is int?
Step 3 — Create the Two Files
  1. Update the original .cs file to contain only the Unity 6.5+ version:

    • Set the preprocessor guard to include UNITY_6000_5_OR_NEWER
    • Use EntityId, GetEntityId(), etc.
  2. Create the .pre-Unity.6.5.cs file with the pre-6.5 version:

    • Set the preprocessor guard to include !UNITY_6000_5_OR_NEWER
    • Use int, GetInstanceID(), etc.

Both files must:

  • Start with #nullable enable
  • Have the same copyright header as the original
  • Use the same namespace and class name (partial classes)
  • End with #endif matching the opening #if
Step 4 — Refresh Assets

Run assets-refresh tool to let Unity generate .meta files and recompile.

IMPORTANT: Do NOT manually create .meta files. Unity auto-generates them after assets-refresh or any AssetDatabase.Refresh() call.

Step 5 — Verify

Check for compilation errors using console-get-logs tool.

Example

Given GameObjectUtils.Runtime.cs with #if !UNITY_EDITOR that uses both EntityId and int with #if UNITY_6000_5_OR_NEWER inside:

Before (single file with nested #if):

csharp
#if !UNITY_EDITOR
// ...
#if UNITY_6000_5_OR_NEWER
        public static GameObject? FindByInstanceID(EntityId instanceID) { ... }
#else
        public static GameObject? FindByInstanceID(int instanceID) { ... }
#endif
#endif

After (two clean files):

GameObjectUtils.Runtime.cs:

csharp
#if !UNITY_EDITOR && UNITY_6000_5_OR_NEWER
// ...
        public static GameObject? FindByInstanceID(EntityId instanceID) { ... }
#endif

GameObjectUtils.Runtime.pre-Unity.6.5.cs:

csharp
#if !UNITY_EDITOR && !UNITY_6000_5_OR_NEWER
// ...
        public static GameObject? FindByInstanceID(int instanceID) { ... }
#endif

Reference Files

Existing examples of this pattern in the codebase:

  • Runtime/Data/ObjectRef.cs / ObjectRef.pre-Unity.6.5.cs
  • Runtime/Data/GameObjectRef.cs / GameObjectRef.pre-Unity.6.5.cs
  • Runtime/Utils/GameObjectUtils.Editor.cs / GameObjectUtils.Editor.pre-Unity.6.5.cs
  • Tests/Editor/Tool/Assets/AssetsPrefabCreateTests.cs / AssetsPrefabCreateTests.pre-Unity.6.5.cs

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

Files

Just SKILL.md in Unity-MCP-Plugin/.claude/skills/unity-version-split of IvanMurzak/Unity-MCP.

Open the folder on GitHubat commit 4c8056f

Compare with similar skills

Unity Version Split 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 Version Split compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Unity Version Split this skillIvanMurzak/Unity-MCP4.4k—~1.1kAutomated safety check: PassApache-2.0
Unity PluginTomLeeLive/openclaw-unity-plugin106—~5.1kAutomated safety check: PassApache-2.0
Unityericrisco/rsc-harness156—~4kAutomated safety check: PassMIT
Fantasy Framework Development Guideqq362946/Fantasy1.4k—~5.8kAutomated safety check: PassCustom licence
Locus Unity BridgeMisaka-Mikoto-Tech/agent-skills275—~4kAutomated safety check: PassMIT
Validate GsdkPlayFab/gsdk170—~645Automated safety check: PassApache-2.0

Similar skills

  • Unity Plugin

    TomLeeLive/openclaw-unity-plugin

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

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

    ericrisco/rsc-harness

    A skill your agent uses when writing, reviewing or structuring Unity game code in C for Unity 6 LTS — GameObjects and the Transform hierarchy, the MonoBehaviour lifecycle, prefabs and variants…

    156 GitHub stars~4k tokensUpdated yesterday
    Game DevelopmentAuto-check passed
  • Development and review guide for the Fantasy C# distributed game server framework: ECS, FTask, routing, service discovery, config and databases.

    1.4k GitHub stars~5.8k tokensUpdated 5 days ago
    Game DevelopmentAuto-check passed
  • 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 16 days ago
    Game DevelopmentAuto-check passed
  • Validate Gsdk

    PlayFab/gsdk

    Validates PlayFab Game Server SDK (GSDK) integrations in game server projects.

    170 GitHub stars~645 tokensUpdated 2 days ago
    Game DevelopmentAuto-check passed
  • Godot 2D Essentials

    jame581/GodotPrompter

    Covers Godot 4.3+ 2D systems with GDScript and C# examples: canvas layers, draw order, TileMaps, parallax, lights and shadows, particles and custom drawing.

    792 GitHub stars~2.3k tokensUpdated yesterday
    Game DevelopmentAuto-check passed

More from IvanMurzak/Unity-MCP

All 80 skills in this repo
  • Assets Shader List All

    IvanMurzak/Unity-MCP

    List all shaders available in the project assets and packages, sorted by name.

    4.4k GitHub stars~435 tokensUpdated 3 days ago
    Auto-check passed
  • Gameobject Component List All

    IvanMurzak/Unity-MCP

    List the fully-qualified C type names of every concrete UnityEngine.Component subclass available in the project.

    4.4k GitHub stars~846 tokensUpdated 3 days ago
    Auto-check passed
  • Package Add

    IvanMurzak/Unity-MCP

    Install a Unity package from the registry, a Git URL, or a local path.

    4.4k GitHub stars~665 tokensUpdated 3 days ago
    Auto-check passed
  • Package Remove

    IvanMurzak/Unity-MCP

    Uninstall a UPM package from the Unity project. An agent skill from IvanMurzak/Unity-MCP.

    4.4k GitHub stars~602 tokensUpdated 3 days ago
    Auto-check passed
  • Assets Copy

    IvanMurzak/Unity-MCP

    Copy assets at given paths and store them at new paths. An agent skill from IvanMurzak/Unity-MCP.

    4.4k GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed
  • Assets Create Folder

    IvanMurzak/Unity-MCP

    Create a new folder under a parent folder inside 'Assets/'. An agent skill from IvanMurzak/Unity-MCP.

    4.4k GitHub stars~940 tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Unity Version Split

What does Unity Version Split do?

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

When should I use Unity Version Split?

Unity Version Split fits situations like: A file needs different implementations for different Unity versions due to API changes (e.g; entityId vs int; getEntityId vs GetInstanceID).

How do I install Unity Version Split in Claude Code?

Run `npx skills add IvanMurzak/Unity-MCP --skill unity-version-split -a claude-code`. Or copy the skill folder (Unity-MCP-Plugin/.claude/skills/unity-version-split in IvanMurzak/Unity-MCP) into .claude/skills/unity-version-split in your project. Claude Code loads it when a task matches its description.

How do I install Unity Version Split in Codex?

Run `npx skills add IvanMurzak/Unity-MCP --skill unity-version-split -a codex`. Or copy the skill folder (Unity-MCP-Plugin/.claude/skills/unity-version-split in IvanMurzak/Unity-MCP) into .agents/skills/unity-version-split in your project. Codex loads it when a task matches its description.

Can I use Unity Version Split 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 IvanMurzak/Unity-MCP --skill unity-version-split -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-version-split, .gemini/skills/unity-version-split, .github/skills/unity-version-split and .opencode/skills/unity-version-split in your project.

What does Unity Version Split need to run?

SKILL.md names no scripts, command-line tools or credentials: Unity Version Split is instructions for the agent only.

Does Unity Version Split 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 Version Split 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 Version Split use?

Unity Version Split is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Unity Version Split use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Unity Version Split?

Skills that share tags, products or a category with Unity Version Split: Unity Plugin (TomLeeLive/openclaw-unity-plugin, 106 stars), Unity (ericrisco/rsc-harness, 156 stars), Fantasy Framework Development Guide (qq362946/Fantasy, 1.4k stars) and Locus Unity Bridge (Misaka-Mikoto-Tech/agent-skills, 275 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Unity Version Split?

IvanMurzak (a GitHub user) maintains it in IvanMurzak/Unity-MCP, which has 4,392 GitHub stars. The repository holds 80 skills in this directory. The repository was last updated on October 4, 2026.

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