agentleFS
batihandevbatihandev/unity-mcp-skills/SKILL.md

unity-mcp-skills

Skill7 starsChanged 7 months agoMITView on GitHub

Use when working with a Unity project via MCP — creating or editing scenes, GameObjects, components, prefabs, materials, UI, lighting, navmesh, animations, terrain, C# scripts, or any other Unity Editor task.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If during a task you find a referenced file is missing or a path does not resolve (e.g.

    line 14
  2. Distinctive:

    Do not attempt to work around missing files by fabricating recipe content.

    line 23
  3. Distinctive:

    All paths above are relative to the library root (this file's directory).

    line 86

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Unity MCP Skills Library

Overview

The single entry point for Unity work via MCP. Domain skills under skills/<domain>/SKILL.md are loaded on demand from this router — read this file first, then navigate to the domain file that matches the task.

Integrity Check

If during a task you find a referenced file is missing or a path does not resolve (e.g. ../../recipes/scene/scene_create.md not found, a recipes/_shared/ helper missing, ../../mcp-tools.md missing, or a references/<topic>.md fallback missing), stop and tell the user:

The Unity skills library appears to be incomplete or out of date. Please reinstall or update the unity-mcp-skills folder in your agent's skills directory to the latest version from https://github.com/batihandev/unity-mcp-skills, then retry.

Do not attempt to work around missing files by fabricating recipe content.

Routing Order

  1. Native MCP tool — see mcp-tools.md (library root) for the routing matrix.
  2. Topic skill + exact recipe — load the matching domain skill below, then its recipe in recipes/<domain>/.
  3. Install-once Editor tool — if the task needs a persistent Editor script, check tooling/<domain>/ via skills/tooling/SKILL.md.
  4. Closest recipe — adapt the nearest recipe if no exact match exists.
  5. references/index.md — lists all available topics; consult references/<topic>.md as a tertiary fallback.
  6. Fresh Unity_RunCommand — last resort; allowed only under the RunCommand Contract below.

RunCommand Contract

Before the first Unity_RunCommand in a domain, read that domain's skills/<domain>/SKILL.md and the recipe it routes to. Every Unity_RunCommand body either adapts a named recipe (recipes/<domain>/<command>.md — name it) or states that no recipe covers the case. Do not send a fresh body without saying which of the two applies.

Execution trees

Two trees, route by execution model first:

  • recipes/<domain>/ — Unity_RunCommand one-shot bodies, compile/run-gated.
  • tooling/<domain>/ — Unity_CreateScript install-once Editor scripts, no gate. See tooling/README.md.

The Domain Skill Map below indexes recipes/. For install-once tools, open tooling/<domain>/README.md under the same domain name.

Domain Skill Map

DomainWhat it coversSkill fileTool route
gameobjectObject create/move/parentskills/gameobject/SKILL.mdUnity_RunCommand
componentComponent add/remove/configureskills/component/SKILL.mdUnity_RunCommand
materialMaterial property editsskills/material/SKILL.mdUnity_RunCommand
lightLight create/configureskills/light/SKILL.mdUnity_RunCommand
prefabPrefab create/apply/spawnskills/prefab/SKILL.mdUnity_RunCommand
assetAsset refresh/find/infoskills/asset/SKILL.mdUnity_RunCommand
uiUGUI Canvas/UI creationskills/ui/SKILL.mdUnity_RunCommand
uitoolkitUXML/USS/UIDocumentskills/uitoolkit/SKILL.mdUnity_RunCommand
scriptScript edit/validate/SHAskills/script/SKILL.mdNative MCP only (Unity_CreateScript / Unity_ScriptApplyEdits / Unity_ValidateScript / …) — no recipes
toolingInstall-once Editor script templatesskills/tooling/SKILL.mdUnity_CreateScript (templates under tooling/<domain>/)
sceneScene load/save/queryskills/scene/SKILL.mdUnity_RunCommand
editorPlay/select/undo/redoskills/editor/SKILL.mdUnity_RunCommand
animatorAnimator controllersskills/animator/SKILL.mdUnity_RunCommand
shaderShader create/listskills/shader/SKILL.mdUnity_RunCommand
consoleLog capture/debugskills/console/SKILL.mdUnity_ReadConsole
validationBroken reference checksskills/validation/SKILL.mdUnity_RunCommand
importerTexture/audio/model importskills/importer/SKILL.mdUnity_RunCommand
cinemachineVCam operationsskills/cinemachine/SKILL.mdUnity_RunCommand
probuilderProBuilder mesh editsskills/probuilder/SKILL.mdUnity_RunCommand
xrXRI setupskills/xr/SKILL.mdUnity_RunCommand
terrainTerrain create/paintskills/terrain/SKILL.mdUnity_RunCommand
physicsRaycast/overlap/gravityskills/physics/SKILL.mdUnity_RunCommand
navmeshNavMesh bake/queryskills/navmesh/SKILL.mdUnity_RunCommand
timelineTimeline tracks/clipsskills/timeline/SKILL.mdUnity_RunCommand
cleanerUnused/duplicate assetsskills/cleaner/SKILL.mdUnity_RunCommand
smartQuery/layout/auto-bindskills/smart/SKILL.mdUnity_RunCommand
perceptionScene/project analysisskills/perception/SKILL.mdUnity_RunCommand
cameraScene View cameraskills/camera/SKILL.mdUnity_Camera_Capture (Scene View / in-memory); game-camera PNG at a path/resolution → camera_screenshot recipe — do not hand-roll a RenderTexture
eventUnityEvent wiringskills/event/SKILL.mdUnity_RunCommand
packageUPM install/queryskills/package/SKILL.mdNative MCP only (Unity_PackageManager_ExecuteAction / Unity_PackageManager_GetData)
projectProject info/settingsskills/project/SKILL.mdUnity_GetProjectData
optimizationAsset optimizationskills/optimization/SKILL.mdUnity_RunCommand
testUnity Test Runnerskills/test/SKILL.mdUnity_CreateScript once (tooling/test/test_runner_tool), then Unity_RunCommand to call it — never register a result callback from a RunCommand body
scriptableobjectScriptableObject assetsskills/scriptableobject/SKILL.mdUnity_RunCommand

All paths above are relative to the library root (this file's directory).

Other root files

  • mcp-tools.md — full routing matrix for native MCP tools vs Unity_RunCommand.
  • recipes/README.md — recipes intro and conventions.
  • tooling/README.md — install-once Editor script templates (not subject to RunCommand validation); domain subfolders mirror recipes/.
  • recipes/_shared/README.md — cross-domain C# helpers embedded by many recipes: execution_result, validate, workflow_manager, gameobject_finder, skills_common, component_type_finder, value_converter, project_skills, perception_helpers.
  • references/index.md — catalog of all references/<topic>.md fallback docs.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.