/godot-agent-skills:godot-networkingfrom godot-agent-skills
Covers Godot 4.7 networking: high-level multiplayer (ENet, WebSocket, WebRTC), server-authoritative design, RPC modes, MultiplayerSpawner/Synchronizer replication, dedicated headless servers, and HTTP/REST requests.
Ships in godot-agent-skills. 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.
1. multiplayer.get_unique_id(), multiplayer.is_server(), multiplayer.get_peers(). Signals: peer_connected/peer_disconnected (all) and connected_to_server/connection_failed/server_disconnected (clients).MultiplayerPeer, so swapping is trivial): ENetMultiplayerPeer (UDP, desktop and mobile, the default choice), WebSocketMultiplayerPeer (web clients; host needs TLS for https pages), WebRTCMultiplayerPeer (P2P, needs signaling), and Steam through the GodotSteam extension.dedicated_server feature (Export → Resources → "Dedicated Server" strips visuals) and run with --headless. Branch with OS.has_feature("dedicated_server") or DisplayServer.get_name() == "headless".@rpc("any_peer" | "authority", "call_local" | "call_remote", "reliable" | "unreliable" | "unreliable_ordered", channel). Call with rpc(&"method", args) (everyone) or rpc_id(peer, &"method", args). The default @rpc is authority-only, call_remote and reliable.[Rpc(MultiplayerApi.RpcMode.AnyPeer, CallLocal = true, TransferMode = MultiplayerPeer.TransferModeEnum.Reliable)], then Rpc(MethodName.Fire, dir) / RpcId(1, MethodName.Fire, dir).multiplayer.get_remote_sender_id() tells you who called. Validate every any_peer RPC on the server: is the sender allowed, is the value sane, is it rate-limited?unreliable for frequent state (positions), reliable for events (damage, chat, spawn requests) and unreliable_ordered for streams where old packets are useless. Use separate channels for unrelated reliable streams so they don't block each other.MultiplayerSpawner: set spawn_path (the parent node) and add_spawnable_scene("res://player.tscn"), or a spawn_function for custom data. Only the authority adds children (or calls spawn(data)), and clients get them automatically. The spawned signal fires on clients.MultiplayerSynchronizer: set root_path and a replication config with properties such as .:position and Sprite2D:flip_h. Each property has a mode: spawn-only, ON_CHANGE (watch) or ALWAYS (sync). Tune replication_interval/delta_interval. Control interest with public_visibility = false + set_visibility_for(peer, true) or add_visibility_filter(callable).set_multiplayer_authority(peer_id) on a player's node (recursive by default) so that client's input synchronizer sends its data. Check is_multiplayer_authority() before reading local input. A common split is client authority over an input-only synchronizer node while the server keeps authority over state._process, or buffer two snapshots. Never snap.SceneMultiplayer.auth_callback + send_auth/complete_auth runs a handshake (version check, token) before a peer counts as connected.SceneMultiplayer.allow_object_decoding = false (the default). Never send Objects or Resources over the network.load() paths or str_to_var data that came from peers. Don't call() method names received from the network.create_server(port, max_clients)), and handle disconnects mid-game: despawn their nodes on the server.HTTPRequest node: request(url, headers, method, body), then request_completed(result, code, headers, body). Parse with JSON.parse_string(body.get_string_from_utf8()). Use one request at a time per node (create more nodes for parallel requests), and set timeout.TLSOptions.client(trusted_cert).HTTPClient (streaming), WebSocketPeer (connect_to_url, call poll() every frame), StreamPeerTCP (4.6+: poll()/get_status() live on StreamPeerSocket), PacketPeerUDP and StreamPeerUDS (Unix sockets, 4.6+).Debug → "Customize Run Instances" in the editor can launch several instances with different arguments (--server, --client). From the CLI, start one headless server process plus GUI clients. run_godot.py smoke covers a headless server boot.
Lobby (ENet host/join), spawner + synchronizer player, validated RPCs, HTTP client, C# RPCs (compiled by the tests): references/patterns.md
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub el4cteo/godot-skills --plugin godot-agent-skills27 skills in this plugin
/godot-2d2D games in Godot 4.7 - pixel-art and HD setup, TileMapLayer (cells, terrains, custom data, runtime tiles, physics chunking), Parallax2D, Camera2D (limits, smoothing, shake), y-sort and z-index, 2D lights and normal maps, AnimatedSprite2D, one-way platforms, custom drawing, many-sprite performance. Use for platformers, top-down, tile-based or any 2D scene./godot-3d-gameplayBuilding 3D games in Godot 4.7 - third-person and orbit cameras (SpringArm3D), camera-relative movement, lock-on, top-down/RTS/isometric cameras, GridMap + MeshLibrary levels, CSG blockout and baking, modular kit import hints, Path3D rails, interactables, spawners, world-space UI, large worlds and LOD. Use for 3D player controllers, cameras or level building./godot-Other plugins' skills for the same job