game-unity
Covers building a game client in the Unity engine (C#) that an agent can drive without the Editor window: when Unity fits, the version to target, the Unity…
от fcsouza★ 29 звёзд на GitHub
Установить game-unity в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Game Unity
Unity is a C# engine with an editor, its own asset pipeline and its own licence. In this pack the server is TypeScript on Bun (game-backend-architecture), so a Unity project is a client: it renders, collects input, predicts, and talks to that server over a plain WebSocket. This skill owns the Unity side of that contract and the rules an agent breaks when it works on a Unity project from a terminal.
When Unity fits
- Fits: a 3D or 2D game that ships to desktop, mobile or consoles, or a team that already works in Unity. Unity's own page sells the engine for 2D and 3D on any platform, with C# and .NET as the scripting base.
- Fits less well for a browser-first game. A Web build cannot use .NET sockets, needs a WebSocket library with a browser path, and pauses when the tab is hidden (
references/networking.md). For a browser-only game, comparegame-clientfirst. That comparison is this skill's rule. - Unity's own netcode does not fit this pack. Netcode for GameObjects expects a Unity game instance as the server: its client-server page says the server always has authority and runs the main simulation, as a dedicated server or a listen-server host, both running Netcode. A Bun server cannot be that instance, so the client skips Netcode and uses a plain WebSocket (this skill's rule).
Version
Target Unity 6.3 LTS (editor version 6000.3; the newest patch on 2026-11-14 is 6000.3.28f1, released Nov 3, 2026). Unity supports 6.3 LTS until December 2027.
- Unity 6.6 (6000.6.9f1, Nov 12, 2026) is the newest Update release. Unity calls Update releases production-ready, but each is supported only until the next one ships. Code written for 6.3 can warn or break on 6.6:
references/api-traps.mdlists the changes from 6.4 to 6.6. - Unity 6.7 is in beta and Unity 7.0 in alpha (the manual's own labels). Unity announced CoreCLR, .NET 10 and C# 14 for Unity 7, with a preview in December 2026 and a full release targeted for Q1 2027. Do not write Unity 7 code for a 6.x project.
- The language is C# 9.0 on Roslyn, in both 6.3 and 6.6, with gaps: no init-only setters, covariant returns or module initializers. Records need a hand-declared
System.Runtime.CompilerServices.IsExternalInit. An agent trained on modern .NET writes C# 10 to 14 by default; it will not compile. - Read docs pinned to your version:
https://docs.unity.com/en-us/engine/6000.3/.... Pages without a version, and package docs at@latest, describe newer editors. Every manual page also serves Markdown when you add.mdto its path, andhttps://docs.unity.com/llms.txtindexes each product.
What an agent can do without the Editor window
- Install Editors, manage projects, build and test from the Unity CLI (
unity, 1.0.0, GA on November 12, 2026; Unity Hub installs it by default).unity installinstalls an Editor,unity projectslists, creates and opens projects,unity buildbuilds in batch mode,unity testruns Edit Mode and Play Mode tests and writes an NUnit report,unity runruns a project in batch mode,unity recompilereports compile errors from a running Editor. Details and exit codes:references/project-and-cli.md. - Fall back to raw Editor arguments when the CLI is not installed:
-batchmode -projectPath <path> -executeMethod Class.Method -logFile <path>, plus-runTestsfor tests. Read the traps inreferences/project-and-cli.mdbefore you add-quit. - Drive a running Editor through the CLI and the Unity Pipeline package (Unity 6.0 or later; a local HTTP API on localhost):
unity status,unity command,unity eval. This is how an agent edits scenes, GameObjects and prefabs. Ask the user to open the Editor; do not start a second one on the same project. - Edit C# freely. Scripts are plain text. After an edit, a running Editor recompiles when it refreshes (on focus with Auto-Refresh, on Assets > Refresh, or on
AssetDatabase.Refresh); from the terminal, rununity recompile.
Rules for project files:
- Never write or hand-edit scene (
.unity), prefab (.prefab) or other asset YAML. Unity's own manual says to avoid generating or editing Unity YAML directly and to use the Unity API. UnityYAML is a custom library that supports only part of the YAML spec (no comments, for one). This skill's rule: do not expect a generic YAML tool to round-trip these files. Change them through a live Editor or an-executeMethodscript that calls the API. - A
.metafile travels with its asset. It holds the asset's unique ID and its import settings. When you move or rename an asset outside Unity, move or rename its.metato match. An asset that loses its.metagets a new one, and every reference to it breaks. Never delete or regenerate a.meta. - Keep the defaults: asset serialization Force Text and version control mode Visible Meta Files. Merge
.unity,.prefaband.metaconflicts with UnityYAMLMerge (Smart Merge), not a text merge. - When the Editor will not respond, do not fall
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/agent-tooling.md
- references/api-traps.md
- references/assets-and-input.md
- references/networking.md
- references/project-and-cli.md
- references/sources.md
FAQ
Что делает скилл game-unity?
Covers building a game client in the Unity engine (C#) that an agent can drive without the Editor window: when Unity fits, the version to target, the Unity CLI and batch mode for builds and tests, scene, prefab and .meta file rules, API changes across Unity 6 releases, licence terms, agent tooling, and connecting to the pack's Bun server over WebSocket. Use when a game's client is or will be a Unity project: creating or building it from the command line, running its tests in CI, fixing C# that uses renamed Unity APIs, connecting a Unity or WebGL build to the authoritative server, or choosing Unity MCP servers and skills.
Как установить скилл game-unity?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл game-unity запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…