Command Palette

Search for a command to run...

Назад к скиллам
скилл № 00003

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от 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, compare game-client first. 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.md lists 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 .md to its path, and https://docs.unity.com/llms.txt indexes each product.

What an agent can do without the Editor window

  1. 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 install installs an Editor, unity projects lists, creates and opens projects, unity build builds in batch mode, unity test runs Edit Mode and Play Mode tests and writes an NUnit report, unity run runs a project in batch mode, unity recompile reports compile errors from a running Editor. Details and exit codes: references/project-and-cli.md.
  2. Fall back to raw Editor arguments when the CLI is not installed: -batchmode -projectPath <path> -executeMethod Class.Method -logFile <path>, plus -runTests for tests. Read the traps in references/project-and-cli.md before you add -quit.
  3. 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.
  4. 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, run unity 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 -executeMethod script that calls the API.
  • A .meta file 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 .meta to match. An asset that loses its .meta gets 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, .prefab and .meta conflicts with UnityYAMLMerge (Smart Merge), not a text merge.
  • When the Editor will not respond, do not fall
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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), без исполняемых скриптов.

Похожие скиллы

Сравнить game-unity с