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.
npx skills add fcsouza/agent-skills --skill game-state-syncgit clone --depth 1 https://github.com/fcsouza/agent-skillsWrote 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.
[](https://agentmods.dev/skills/fcsouza/agent-skills/game-state-sync)<a href="https://agentmods.dev/skills/fcsouza/agent-skills/game-state-sync"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/game-state-sync/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.
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/game-state-sync"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/game-state-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00100 | $0.02788 |
| Opus 5.5 | $0.00040 | $0.01115 |
| Sonnet 5.5 | $0.00020 | $0.00558 |
| Haiku 4.5 | $0.00010 | $0.00279 |
Grade A, and why
game-state-sync 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 19d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Game State Sync
The server owns the game state. Clients send inputs, never results. Every technique below hides latency on top of that rule; none of them replaces it.
Prerequisites: a server tick loop and authority model (game-backend-architecture). For fanning deltas out across several server processes, see the fan-out section of game-backend-architecture.
Pick a sync strategy
Decide this first. Most games combine rows: prediction for the local player, interpolation for everyone else, lag compensation for hits.
| Game situation | Strategy | Cost and limits | Boilerplate |
|---|---|---|---|
| Turn-based or slow (strategy, cards, board games) | Dumb client: send input, wait for the server's new state, render it | Input lag equals round-trip time. Fine when turns are slow | Not needed; skip prediction |
| Your own avatar in a real-time game | Client prediction plus server reconciliation: apply input locally, tag it with a sequence number, replay unacknowledged inputs on each server state | Mispredictions cause corrections; smooth small ones, snap large ones | StateSyncEngine.reconcile, ClientGameLoop.handleServerUpdate |
| Other players whose speed and direction change instantly (shooters) | Entity interpolation: render them in the past, between two received snapshots | They appear about one interpolation period behind. Source defaults to 100 ms (cl_interp 0.1) |
RollbackBuffer.getBracket over received snapshots |
| Entities with predictable motion (vehicles, ships) | Dead reckoning: extrapolate from last speed and heading, correct on the next update | Wrong when motion changes. Cap how long you extrapolate | Pattern only, see references/client-architecture.md |
| Hit detection against entities shown in the past | Lag compensation: the server rewinds the world to the shooter's view time and tests the hit there | A target can be hit just after reaching cover | Not implemented; use RollbackBuffer for the history |
| 2-4 players, simulation you can make deterministic | Deterministic lockstep: send inputs only | Bandwidth independent of object count. Everyone waits for the slowest player's input; float differences break it | Not implemented |
| Physics-heavy co-op with no competitive stakes | Distributed authority with state synchronization: each player owns the objects it touches | Less secure; only for non-competitive play | Not implemented |
What ships with it
7 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.
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.
- 19d ago Changed · -197 lines · +53 tokens per session f6945e86900f
- 3mo ago First seen · 373 lines · 47 tokens per session scan A 4ba4d6b3324f
game-state-sync is a skill published in the GitHub repository fcsouza/agent-skills (29 stars, last pushed today), licensed MIT. It adds 100 tokens to every session and 2,788 once invoked, about $0.0004 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-08-30.
game-state-sync compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| game-state-syncfcsouza/agent-skills | Skill | 29 | today | MIT | A | 100 | Claude Code |
| scenario-godot-multiplayerscenario-labs/skills | Skill | 4.7k | yesterday | MIT | A | 132 | Claude Code |
| league-akari-sgp-data-sourceLeagueAkari/LeagueAkari | Skill | 4.9k | yesterday | MIT | A | 50 | Claude Code, Codex |
| csharp-godotjame581/GodotPrompter | Skill | 1.0k | 2d ago | MIT | A | 34 | Claude Code |
| web-servicesjame581/GodotPrompter | Skill | 1.0k | 2d ago | MIT | A | 64 | Claude Code |
| gamedev-multiplayerericrisco/rsc-harness | Skill | 707 | yesterday | MIT | A | 86 | Claude Code, Codex |
| cloudflare-durable-objectssecondsky/claude-skills | Skill | 257 | 3d ago | MIT | A | 43 | Claude Code |