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★ 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=3in its.tscnheaders, Godot 3 usesformat=2. - An assistant trained on Godot 3 writes code that no longer parses.
references/gdscript-traps.mdlists 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-clientwhen 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 plainWebSocketPeerand 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 useres://(the project) anduser://(writable player data, where saves go). - Scenes and resources (
.tscn,.tres) are text. Godot 4 writesformat=3; dropload_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
.gdfiles.godot --headless --path . --script res://tools/x.gd --check-onlyparses one script and quits. - Import first:
godot --headless --path . --importimports 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:
--headlessis required on machines without a GPU, such as CI. A script run with--scriptmust extendSceneTreeorMainLoop.--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 matchexport_presets.cfg; the target directory must exist. - Tests: Godot ships no game test framework.
--testruns the engine's own C++ tests and needs an engine compiled withtests=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-portand--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,toolare annotations:@export,@onready,@tool.yieldis gone; useawaiton a signal or coroutine.- Connect signals through the
Signalobject:button.pressed.connect(_on_pressed), not a string name. _ready()and_process()no longer call the parent's version; callsuper()first in the override.- Renames:
SpatialisNode3D,KinematicBodyisCharacterBody3D,SpriteisSprite2D,File
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- 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), без исполняемых скриптов.
Похожие скиллы
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…