multiplayer-basics

multiplayer-basics is a skill for Claude Code from jame581/GodotPrompter. It costs 44 tokens per session (3,802 once invoked), scanned A, original, MIT.

A guide to building online multiplayer games in Godot, where a server and connected players exchange messages and game actions. It covers network connections, remote calls, and which player controls each object.

In plain words
What is it for?
Use it to set up client-server games with ENet or WebSocket connections, remote procedure calls, and player authority.
Why use it?
It helps structure multiplayer ownership and communication so clients cannot accidentally or incorrectly control shared game state.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the godot-prompter plugin — 61 skills, 9 agents, 2 hooks shipped together

Good fit Use it to set up client-server games with ENet or WebSocket connections, remote procedure calls, and player authority.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jame581/godotprompter/multiplayer-basics
About the project

GodotPrompter is a skills framework for Godot 4.x game development that gives AI coding agents structured guidance for GDScript and C# projects. It helps agents follow Godot-specific workflows for tasks such as project setup, gameplay systems, multiplayer, rendering, and shipping. The catalogue entries are GodotPrompter’s skills, agents, instructions, hooks, settings, and plugin components.

jame581/GodotPrompter · 1,009 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jame581/GodotPrompter --skill multiplayer-basics
Clone the repo
git clone --depth 1 https://github.com/jame581/GodotPrompter

Made for: Claude Code.

Or install godot-prompter, the plugin that ships this one along with the rest of its 61 skills, 9 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for multiplayer-basics

README.md
[![agentmods](https://agentmods.dev/badge/skills/jame581/godotprompter/multiplayer-basics/github.svg)](https://agentmods.dev/skills/jame581/godotprompter/multiplayer-basics)
Your own site
<a href="https://agentmods.dev/skills/jame581/godotprompter/multiplayer-basics"><img src="https://agentmods.dev/badge/skills/jame581/godotprompter/multiplayer-basics/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for multiplayer-basics

Your own site · 80×15
<a href="https://agentmods.dev/skills/jame581/godotprompter/multiplayer-basics"><img src="https://agentmods.dev/badge/skills/jame581/godotprompter/multiplayer-basics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,802 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.03802
Opus 5.5 $0.00018 $0.01521
Sonnet 5.5 $0.00009 $0.00760
Haiku 4.5 $0.00004 $0.00380

Measured yesterday against content hash 92319c79e396, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

multiplayer-basics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/multiplayer-basics/SKILL.md · 332 lines

How it starts

The opening of the file, as written. The whole thing — 332 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Multiplayer Basics in Godot 4.3+

All examples target Godot 4.3+ with no deprecated APIs. GDScript is shown first, C# follows.

Related skills: multiplayer-sync for state synchronization and interpolation, dedicated-server for headless export and server deployment.


1. Multiplayer Architecture

Godot uses a client-server model built on top of MultiplayerAPI. One peer acts as the server; all others are clients. Every peer has a unique integer ID assigned by the network layer:

Peer ID Role
1 The server (always)
2+ Connected clients — randomly generated unique IDs, not sequential

Multiplayer authority is the concept of ownership over a node. Only the authoritative peer should read input and drive that node's state. By default the server (peer 1) is the authority for every node. Call set_multiplayer_authority(peer_id) to transfer ownership to a client — on every peer, since the call is local and is not replicated.

Server (peer 1)
    ├── Owns game state by default
    ├── Spawns and validates objects
    └── Routes RPCs
Client (peer 2, 3, …)
    ├── Sends input to server via RPC
    └── Receives state updates from server

2. Setting Up ENetMultiplayerPeer

Both sides use the same three steps: create an ENetMultiplayerPeer, call create_server(port, max_clients) or create_client(address, port), then assign it to multiplayer.multiplayer_peer and connect the MultiplayerAPI signals (peer_connected, peer_disconnected, connected_to_server, connection_failed, plus server_disconnected — see §7). Check the create_* return value — it returns an Error, and a silent ERR_CANT_CREATE (port already in use) otherwise looks exactly like a hang.

The server is always peer ID 1; clients receive randomly generated unique IDs, so never assume they are sequential.

Full server and client implementations with every signal handler, in GDScript and C#: references/enet-setup.md

Read the full file on GitHub · 332 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +22 lines · +19 tokens per session 92319c79e396
  2. 1mo ago Changed 0e62df969ff6
  3. 1mo ago Changed b5a4025c6daa
  4. 2mo ago First seen · 310 lines · 25 tokens per session scan A f5364956e31f

Subscribe to this mod's changes

multiplayer-basics is a skill published in the GitHub repository jame581/GodotPrompter (1,009 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 3,802 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

multiplayer-basics compared with skills from other repositories

multiplayer-basics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
multiplayer-basicsjame581/GodotPrompterSkill1.0kyesterdayMITA44Claude Code
godot-csharpgamedev-skills/awesome-gamedev-agent-skillsSkill13kyesterdayApache-2.0A111Claude Code
unity-csharp-scriptinggamedev-skills/awesome-gamedev-agent-skillsSkill13kyesterdayApache-2.0A91Claude Code
unity-cliAlex-Rachel/TEngineSkill2.4k13d agoMITA68Codex
roblox-cameraTabooHarmony/roblox-brainSkill229todayMITA38Claude Code
luban-devAlex-Rachel/TEngineSkill2.4k13d agoMITA63Codex
tengine-devAlex-Rachel/TEngineSkill2.4k13d agoMITA71Codex