Command Palette

Search for a command to run...

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

game-godot

Covers building a game client in Godot 4 for this pack: when Godot fits, GDScript or C#, editing text scenes and running headless imports, scripts, tests and…

БесплатноБез исполняемых скриптов
fcsouzaот fcsouza★ 29 звёзд на GitHub

Установить game-godot в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Godot

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.

Version checked

  • Checked against Godot 4.7.2-stable (published 2026-08-18) on 2026-11-14. The documentation's "stable" branch is 4.7. 4.8 is in beta (4.8-beta3, 2026-11-09): re-check the traps file when 4.8 ships.
  • Godot 3 is still maintained (3.6.3-stable, 2026-08-22). Find out which major a project uses before writing code: a Godot 4 project has format=3 in its .tscn headers, Godot 3 uses format=2.
  • An assistant trained on Godot 3 writes code that no longer parses. references/gdscript-traps.md lists the breaks from 3 to 4 and from 4.4 to 4.7.

When Godot fits

  • Free and open source (MIT), 2D and 3D. The editor and exports run on Windows, macOS and Linux; Android editor support is experimental; iOS runs exported projects. For consoles, see https://godotengine.org/consoles/.
  • Pick Godot over the browser stacks of 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.
  • Limits that decide against it, or decide the language:
    • Web exports target WebGL 2 through the Compatibility renderer only. Forward+ and Mobile do not run on the web, and Godot has no WebGPU backend.
    • On the web, only HTTP, WebSocket (client) and WebRTC work. Raw TCP and UDP do not.
    • A browser client in Godot 4 must be GDScript (next section).
  • Godot's high-level multiplayer API (@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).

GDScript or C#

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.

Working without the editor

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: a folder with project.godot. Paths inside the game use res:// (the project) and user:// (writable player data, where saves go).
  • Scenes and resources (.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.
  • Scripts are plain .gd files. godot --headless --path . --script res://tools/x.gd --check-only parses one script and quits.
  • Import first: 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).
  • Run headless: --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.
  • Export: 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.
  • Tests: Godot ships no game test framework. --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).
  • Language server: the editor serves the GDScript language server and debug adapter on the ports given by --lsp-port and --dap-port.

Godot 3 code that breaks

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.
  • Connect signals through the 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.
  • Renames: Spatial is Node3D, KinematicBody is CharacterBody3D, Sprite is Sprite2D, File
Полный SKILL.md на GitHub

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

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

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

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

  • references/agent-tooling.md
  • references/gdscript-traps.md
  • references/networking.md
  • references/project-and-cli.md
  • references/saves-and-data.md
  • references/sources.md

FAQ

Что делает скилл game-godot?

Covers building a game client in Godot 4 for this pack: when Godot fits, GDScript or C#, editing text scenes and running headless imports, scripts, tests and exports from the command line, Godot 3 habits that break in Godot 4, what to commit, community MCP servers, and connecting to the Bun game server over WebSocketPeer with Better Auth, saves and translations. Use when a game's client, editor tooling or export pipeline is in Godot, when GDScript or .tscn files written from an older Godot fail, or when a Godot build must talk to the pack's authoritative server.

Как установить скилл game-godot?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл game-godot запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

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