Covers building a Godot 4 game client: GDScript vs C# choices, headless CLI imports/tests/exports, Godot 3→4 migration traps, WebSocketPeer connection to a Bun game server, and editor/export pipeline setup.
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.
Godot is the client. The server stays TypeScript on Bun (game-backend-architecture) and owns the game state; the Godot build sends intents and draws what the server says. This skill covers the Godot side and the seams to the rest of the pack.
format=3 in its .tscn headers, Godot 3 uses format=2.references/gdscript-traps.md lists the breaks from 3 to 4 and from 4.4 to 4.7.game-client when the game needs an editor for scenes, tile maps and animation, or ships native desktop and mobile builds as well as the web.@rpc, MultiplayerPeer, WebSocketMultiplayerPeer) is built on the SceneTree for Godot peers. Godot's networking page names a custom backend server as the case where low-level work cannot be avoided. Against the pack's Bun server, use a plain WebSocketPeer and the pack's JSON messages; no Godot page documents the high-level API against a non-Godot server (this skill's rule).| Need | Language |
|---|---|
| Any web export | GDScript. Godot 4 C# projects cannot export to the web |
| Desktop only, team already writes C# | C# is fine |
| Android or iOS | GDScript is the safe choice. C# on mobile is experimental since 4.2 |
C# needs the .NET-enabled editor build plus a separately installed .NET SDK: .NET 8 or later, and .NET 9 or later to export to Android. Build C# from the command line with --build-solutions. GDScript needs nothing beyond the editor binary.
An agent can do most work through files and the command line. references/project-and-cli.md has the flags, the scene format and the CI recipe. The short version:
project.godot. Paths inside the game use res:// (the project) and user:// (writable player data, where saves go)..tscn, .tres) are text. Godot 4 writes format=3; drop load_steps, which is deprecated and only appears in files saved before 4.6. The editor discards comments and properties equal to their defaults when it saves, so do not use comments as documentation inside a scene..gd files. godot --headless --path . --script res://tools/x.gd --check-only parses one script and quits.godot --headless --path . --import imports resources and quits. Run it on a fresh clone before scripts, tests or exports, because .godot/ (the import cache) is not committed (this skill's rule, from those two facts).--headless is required on machines without a GPU, such as CI. A script run with --script must extend SceneTree or MainLoop. --quit-after <n> stops after n iterations for a smoke run.godot --headless --path . --export-release "<preset>" builds/game.exe. The binary must be the editor, not an export template; export templates for that exact editor version must be installed; the preset name must match export_presets.cfg; the target directory must exist.--test runs the engine's own C++ tests and needs an engine compiled with tests=yes. Use GUT or gdUnit4 (references/project-and-cli.md).--lsp-port and --dap-port.The traps an older model hits most. The full list, with 4.4 to 4.7 changes, is in references/gdscript-traps.md.
export, onready, tool are annotations: @export, @onready, @tool.yield is gone; use await on a signal or coroutine.Signal object: button.pressed.connect(_on_pressed), not a string name._ready() and _process() no longer call the parent's version; call super() first in the override.Spatial is Node3D, KinematicBody is CharacterBody3D, Sprite is Sprite2D, File and Directory are FileAccess and DirAccess. The Tween node is gone; use Tweeners.TileMap is deprecated; use one TileMapLayer node per layer.randomize() now runs on project load. A deterministic run needs an explicit seed.*.uid files (4.4 and later). Godot's UID article says they must not go in .gitignore; without them, references break on a fresh clone. When a script or shader moves outside the editor, move its .uid beside it..godot/ (cache) and *.translation (binary files imported from CSV)..gitignore and .gitattributes from the project manager's Git option, or Project > Version Control > Generate Version Control Metadata.export_presets.cfg holds no credentials from 4.1 on, so it can be committed; Godot 3 and 4.0 could store credentials there.addons/ folder.llms.txt (all three llms.txt URLs return 404). The proposal for a built-in AI assistant (godot-proposals #12409) was closed as not planned on 2025-08-23, with users encouraged to write third-party add-ons. The 2026 contribution policy requires human-authored code in engine pull requests; it says nothing about making games with AI.references/agent-tooling.md.WebSocketPeer, polled every frame, sending the pack's JSON messages with send_text(). Read references/networking.md before writing the client: the loop, buffer sizes, and the handshake findings below.Origin header; a browser export sends the page's origin. A non-browser client can set any Origin it likes (RFC 6455), so an Origin set by a native client proves nothing: security there rests on the bearer token. game-backend-architecture accepts an upgrade with no Origin when it carries Authorization: Bearer and the session check passes; an untrusted Origin is still refused. Native builds do not fake an Origin.betterauth-integration reads the session from the upgrade's headers and cookies):
handshake_headers is not supported, so no Authorization header. Serve the game page from the same site as the auth server, sign in on the hosting page (not inside Godot), and the browser sends the session cookie with the handshake; this works with the pack's server as it is.Authorization: Bearer <token> through handshake_headers with Better Auth's bearer plugin, and no Origin. Keep the token in memory, and if it must survive a restart, in the platform's secure store (a plain user:// file is weaker); never in res://, a URL or a log (this skill's rule).references/networking.md.game-state-sync's boilerplate is TypeScript, so a GDScript client reimplements prediction and the snapshot bracket. Predicted ticks run on a fixed step, remote entities interpolate in _process. Godot's physics interpolation smooths physics ticks only and does not replace the snapshot buffer.game-save-load owns the format, versioning and where saves live. In Godot, write to user://; never call get_var(true) or bytes_to_var_with_objects on data from outside the build. Read references/saves-and-data.md.tr("KEY"), tr_n() for plurals and a context argument for ambiguous words, from CSV or gettext PO files. Keep game-localization's rules (stable IDs, whole messages, translator comments) and use the same IDs as Godot message keys. Godot's docs say PO files work better with Git than CSV.game-anti-cheat applies unchanged. A Godot build, native or web, is under the player's control. Godot's own multiplayer page says to treat all client input as untrusted._unhandled_input, so GUI controls get events first. 4.7 changed mouse and keyboard device IDs (traps file).connect_to_url() returns OK before the socket connects. Nothing moves until you call poll() each frame.handshake_headers or heartbeat_interval to work in a web export: neither does.Origin instead of sending the bearer token: the Origin proves nothing, and without the token the upgrade fails.WebSocketPeer buffers: raise inbound_buffer_size before connecting (this skill's rule).get_var(true) on a downloaded save: deserialized objects can run code..uid files missing from Git, or left behind when files move outside the editor.yield, string signal connections, Spatial, TileMap or a missing super(): Godot 3 habits.--import.@tool script: it runs in the editor and can crash it.game_eval, godot_exec or execute_editor_script: they run arbitrary GDScript.references/project-and-cli.md: read when creating a project, editing .tscn or .tres by hand, running headless imports, scripts, tests or exports, or setting up CI.references/gdscript-traps.md: read when writing or fixing GDScript, or porting code written for Godot 3 or an older 4.x.references/networking.md: read when connecting a Godot client to the Bun server: the WebSocketPeer loop, the Origin and authentication options per platform, and where interpolation runs.references/saves-and-data.md: read when saving player data, parsing JSON from the server, or loading files a player could have touched.references/agent-tooling.md: read when a user asks for a Godot MCP server or skill set, or before installing one.references/sources.md: read when you need the page behind a rule or want to re-check the version.game-backend-architecture: the authoritative Bun server, rooms, message protocol and upgrade check this client connects to.betterauth-integration: the session check on the WebSocket upgrade.game-state-sync: prediction, reconciliation and snapshot interpolation to reimplement in GDScript.game-client: the browser alternative in TypeScript.game-save-load: save format, migrations and where saves live.game-localization: string IDs, plurals and the translation process.game-anti-cheat: server-side validation; the Godot build is untrusted.ci-cd-game: the pipeline that runs the headless import, tests and export.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/game-dev:game-godotfrom 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./character-design-narrativeCovers designing game characters: NPCs, companions, antagonists, player avatars, character bibles and branching dialogue. Use when a game needs a new character written, an NPC feels flat or interchangeable, or dialogue needs a branching format with conditions and effects./ci-cd-gameGitHub Actions pipeline rules for a Bun game backend on Neon and Fly.io: migrations before deploy, one Neon database branch per pull request, a smoke test after deploy, and a pinned Bun version. Use when a game project needs CI, a deploy workflow, preview databases for pull requests, or a safe order for schema migrations and server deploys./elevenlabs-sound-musicCovers generating game audio with ElevenLabs (voice lines, sound effects, music) and Google Lyria 2 (instrumental music clips), and playing it in the browser through an audio state machine with crossfades, per-layer volume and an unlock on the first user input. Use when a game needs sound effects, NPC voice lines or a soundtrack, when music must follow game state (menu, exploration, combat, boss) without hard cuts, when audio stays silent on a phone until the player taps, or when choosing between ElevenLabs and Lyria for music./game-anti-cheatCovers how a developer defends their own online game against cheating: server-side input validation, withholding hidden state, lag-compensation limits, dupe-proof transfers, detection from server data and reports, and enforcement with delayed bans, appeals and refunds to victims. Use when a multiplayer game has speed hacks, wallhacks, aimbots, bots, item or currency dupes, real-money trading, boosting or win trading, or when planning how to detect and ban cheaters.Other plugins' skills for the same job