Covers building a Unity game client (C#) that an agent can drive from the command line: targeting Unity 6.3 LTS, using CLI/batch mode for builds and tests, handling scene/prefab/.meta files, API changes across Unity 6 releases, licensing, and connecting to a Bun server over WebSocket.
Ships in game-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
references/networking.md). For a browser-only game, compare game-client first. That comparison is this skill's rule.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.
references/api-traps.md lists the changes from 6.4 to 6.6.System.Runtime.CompilerServices.IsExternalInit. An agent trained on modern .NET writes C# 10 to 14 by default; it will not compile.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.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.-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.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.AssetDatabase.Refresh); from the terminal, run unity recompile.Rules for project files:
.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..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..unity, .prefab and .meta conflicts with UnityYAMLMerge (Smart Merge), not a text merge.unity status to read the errors, fix the C#, and wait for the Editor to leave Safe Mode.The full list, with the version that changed each one, is in references/api-traps.md. The ones that break most often:
FindObjectsOfType and FindObjectOfType are obsolete since 6.0. In 6.6 the FindObjectsByType overloads that take a sort mode and FindFirstObjectByType are obsolete too: use FindObjectsByType<T>() and FindAnyObjectByType<T>().Rigidbody.velocity and drag are obsolete in favour of linearVelocity and linearDamping.references/assets-and-input.md).InstanceID with EntityId; GetInstanceID() becomes GetEntityId(), and the id no longer fits in an int.?. and ?? on a Unity object skip Unity's overridden null check, so a destroyed object passes them. Compare with == null.These are Unity's terms as published on the date checked, read from Unity's own pages. They change. Read the current Unity Editor Software Terms and pricing page before you start a project, and ask a lawyer about your case; this is not legal advice.
Use the unity-cli skill if it is installed, otherwise https://docs.unity.com/en-us/unity-cli. Official first: the Unity CLI and unity mcp, Unity's skills and plugin, the docs as Markdown and llms.txt. The MCP server inside the AI Assistant package is deprecated. Community MCP servers can run arbitrary C# in your Editor, and one relays through a cloud service by default. The user installs all of these; this pack ships no MCP config. Publisher, licence, what each can do, what must be running and the warnings are in references/agent-tooling.md.
game-backend-architecture and sends inputs, never results. Use a plain WebSocket client with a browser path (NativeWebSocket); details in references/networking.md.betterauth-integration reads the session once, from the upgrade request's headers and cookies, and the server in game-backend-architecture refuses an untrusted Origin. An upgrade with no Origin passes only when it carries Authorization: Bearer and the session check finds a session. What each build can send:
Authorization header. The browser sets Origin to the page that hosts the build and attaches cookies under its own rules. Host the build on an origin in the server's trusted origins and rely on the Better Auth session cookie. This skill's rule: serve the build and the auth and game server from the same site, because the cookie's SameSite setting decides whether the browser sends it with the upgrade. Better Auth's cookie page does not state the default SameSite value, and it notes that Safari blocks third-party cookies.ClientWebSocket can set request headers, and NativeWebSocket passes a header dictionary through to it. Send Authorization: Bearer <token> as a request header, with the token from the set-auth-token response header after sign-in and Better Auth's bearer() plugin on the server. Do not send an Origin: a native client needs none (RFC 6455 makes it optional outside browsers). Test the header path on each target platform.Origin set by a native client proves nothing. The server's Origin check protects players' browsers from other sites; any non-browser program can send any Origin. Security for native builds rests on the bearer token alone, and a leaked token gives full access to that player's account until the session is revoked.PlayerPrefs. Never put the token in the URL query string, a log, a crash report or an analytics event. A WebGL build must not read or store set-auth-token.game-state-sync owns prediction, reconciliation and interpolation. Where its fixed-step loop and interpolation hook into Update, FixedUpdate and LateUpdate is in references/networking.md.game-save-load). On Web, Application.persistentDataPath is in the browser's IndexedDB under a hash of the page URL, so this skill expects local saves to be lost when the build moves to another URL.game-localization owns the process and string rules. In Unity, the Localization package (1.5) holds string and asset tables, Smart Strings for placeholders and plurals, pseudo-localization, and XLIFF, CSV and Google Sheets exchange.game-anti-cheat applies unchanged: the server validates every input. A Unity build is a client the player controls, whatever the engine.game-blender; Addressables and the Input System are in references/assets-and-input.md.-quit together with -runTests: the Editor quits before the tests finish.-nographics without -logFile: output logs are off.-accept-apiupdate on a project upgraded from an older editor: the API Updater does not run and old code can fail to compile.<Project>/Logs/Editor.log.System.Net.WebSockets or a blocking UnityWebRequest loop in a Web build.JsonUtility for the server's delta messages: it cannot read dictionaries or free-form objects.references/project-and-cli.md: read when creating, building or testing a Unity project from the terminal or CI, or when a batch run hangs or exits with a code you do not recognise.references/api-traps.md: read when writing or fixing C# for Unity 6, or upgrading a project between 6.x releases.references/networking.md: read when connecting a Unity client to the Bun server, authenticating the socket, parsing server messages, or wiring interpolation into the frame loop.references/assets-and-input.md: read when setting up input, loading content with Addressables, or bringing assets in from Blender.references/agent-tooling.md: read when choosing or installing the Unity CLI, Unity's skills, or a community MCP server.references/sources.md: read when you need the page behind a rule or want to re-check a version or a licence term.game-backend-architecture: the authoritative Bun server, rooms, tick loop and WebSocket upgrade this client connects to.betterauth-integration: the session check on the WebSocket handshake.game-state-sync: prediction, reconciliation and snapshot interpolation the client runs.game-client: the browser client in TypeScript, for comparing stacks.game-save-load: server-side saves and local save rules.game-localization: string IDs, plurals and translation process.game-anti-cheat: server validation that treats every client as untrusted.game-blender: making the models, textures and animations the project imports.ci-cd-game: the pipeline that runs the build and test commands.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
unity, game-client, csharp, websocket, batch-mode, cli-builds
/game-dev:game-unityfrom game-dev
npx claudepluginhub fcsouza/agent-skills --plugin game-dev39 skills in this plugin
/betterauth-integrationCovers the game-specific layer of Better Auth: player, moderator and admin roles, session checks on game routes and WebSocket handshakes, and keeping the auth session apart from the game session. Use when a game needs player login, moderator or admin powers, or authenticated real-time connections, and the project uses Better Auth./bullmq-game-queuesBackground job design for game backends on BullMQ and Redis: one queue per game domain, idempotent reward fulfilment, and cron schedulers for daily rewards and season ends. Use when a game needs matchmaking requests, reward grants, match results, notifications or analytics processed off the request path, or recurring and timed jobs such as daily login rewards, leaderboard snapshots and season rollovers./Other plugins' skills for the same job