/video-game-development:game-ai-networking-and-toolsfrom video-game-development
Reference for building gameplay AI (FSMs, utility AI, GOAP, pathfinding), multiplayer networking (client-server, rollback netcode, prediction/reconciliation), and content pipeline tools. Part of a game development skill series.
Ships in video-game-development. 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.
None: SKILL.md is the whole skill.
Part 3 of 5 of the Video Game Development reference (plugin
video-game-development), covering §8–§10. Sibling skills:game-engines-loop-and-architecture(§0–§3),game-rendering-physics-animation-and-audio(§4–§7),game-performance-feel-and-shipping(§11–§15),game-development-reference(§16–§20). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: Verified August 2026. See §17 →
game-development-referencefor the currency snapshot and what goes stale first.
How to read this. Reference, not tutorial. Sections are independent. Three markers:
- [DURABLE] — real-time systems reality, human perception, or a lesson the industry has relearned every console generation. Does not expire.
- [VERSIONED] — specific to an engine version, API, platform, or market condition. Verify before relying on it.
- [CONTESTED] — practitioners genuinely disagree, usually because the right answer depends on team size and genre.
⚠️ GOTCHA boxes mark the mistakes that ship broken games, blow the frame budget, or destroy a studio's schedule.
The three framings that organize everything below:
- A game is a soft-real-time simulation with a hard deadline, 60 times a second. 16.67 ms at 60 fps, 8.33 ms at 120. Everything — rendering, physics, AI, audio, networking, streaming, GC — shares that budget. Consistency beats peak framerate; a stable 30 feels better than a 60 that stutters.
- Games are content pipelines with a game attached. On any team above about five people, the tools, build system, and iteration loop determine your output more than your engine code does. Ten-minute iteration times will cost you the game.
- Scope is the thing that kills projects, not technology. The overwhelming majority of unfinished games died of ambition, not of a hard technical problem. §14 →
game-performance-feel-and-shippingis the section most people need and skip.
[DURABLE] Game AI is not machine learning; it is the craft of producing believable, readable, beatable behaviour. The goal is a good opponent from the player's perspective, not an optimal agent. An AI that is too good is a design failure.
| Technique | Use |
|---|---|
| Finite state machine | Simple agents. Readable, debuggable, and it explodes combinatorially past ~10 states |
| Hierarchical FSM | Nested states — a real improvement for character control |
| Behaviour tree | The industry default. Composable, designer-authorable, good tooling in every engine |
| Utility AI | Score each option, pick the best. Excellent for sims and many-option agents (The Sims) |
| GOAP (goal-oriented action planning) | Plans a sequence of actions to reach a goal. F.E.A.R.'s famous squad AI |
| HTN planning | Hierarchical task networks. Horizon Zero Dawn, Transformers |
| Steering behaviours | Seek, flee, arrive, separate, flock (Reynolds' boids) — the movement layer beneath everything |
A* on a navmesh (or grid) is still the answer. Navmesh generation (Recast is the open-source standard, and is what most engines use or imitate). Then the practical layer: hierarchical pathfinding for large maps, string pulling / funnel algorithm to smooth the path off the mesh polygon centers, local avoidance (RVO/ORCA) so agents don't collide, path caching and request budgeting (⚠️ don't path 500 agents in one frame — amortize across frames), and flow fields when many agents share a destination (the standard RTS answer).
[DURABLE] The techniques that make AI good are mostly about legibility, not intelligence: telegraphed attacks with wind-up frames; deliberately imperfect accuracy (and the near-universal "first shot always misses" rule); reaction delays so the player can respond; barks and animation that externalize internal state so the player can read what the AI is doing; attack tokens so only one or two enemies engage at a time regardless of how many are present; and cheating in the player's favour (hidden last-hit-point buffers, ammo drops when low). F.E.A.R.'s AI is remembered as brilliant largely because the agents announce their plans out loud.
[DURABLE] Multiplayer is not a feature you add. It is an architectural decision made on day one, and retrofitting it onto a single-player codebase is one of the most reliable ways to destroy a schedule.
| Model | How | Trade-off |
|---|---|---|
| Lockstep / deterministic | Send only inputs; every peer simulates identically | Tiny bandwidth, scales to thousands of units (RTS). Requires perfect determinism (§2.2 → game-engines-loop-and-architecture); one desync ruins the match; latency = worst player |
| Client-server, authoritative | Server simulates; clients send input and render state | The standard for action games. Cheat-resistant. Costs server infrastructure |
| Peer-to-peer | Direct connections | No server cost; NAT traversal pain, and trivially cheatable |
| Rollback | Predict remote inputs, roll back and re-simulate on mismatch | The fighting-game standard (GGPO). Superb feel; demands determinism and cheap re-simulation |
The canonical stack — from the Quake/Source lineage and still correct:
⚠️ GOTCHA — lag compensation is a design decision, not a technical one. It makes shooting feel right for the shooter and produces the "I got shot behind cover" experience for the target. You are choosing whose experience to privilege, and every shooter makes that call explicitly. There is no setting that satisfies both.
Also: snapshot delta compression and interest management / relevancy (don't send what the client can't see) are what make bandwidth tractable; UDP with your own reliability layer for game traffic (TCP head-of-line blocking is fatal), with TCP or HTTPS for lobby, matchmaking, and commerce.
⚠️ Never trust the client. Validate movement, rate-limit actions, keep the inventory and economy server-side. Anti-cheat is an arms race with real anti-cheat middleware (EAC, BattlEye), and kernel-level anti-cheat is itself contested for privacy and stability reasons.
Rollback needs: full deterministic simulation, cheap save/restore of game state (usually a compact struct you can memcpy), simulation fast enough to run 7–10 frames of re-simulation inside one frame's budget, and input delay tuning. It's the reason modern fighting games feel dramatically better online than the delay-based generation did — and it's essentially impossible to bolt onto a game whose state lives scattered across engine objects.
[DURABLE] On any team past a few people, tools and iteration time determine your output more than your engine choice does. This is the most consistently under-invested area in game development.
.psd, .blend, .wav) → deterministic,
cacheable import → platform-optimized runtime format. Never ship source formats..uasset.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/game-development-referenceUse when weighing contested game-development questions (ECS vs object-oriented, Unity vs Unreal vs Godot, whether the explicit graphics APIs are still right, root motion vs in-place animation, custom vs commercial engine, generative AI in game development, how much accessibility and who pays for it), checking whether an engine, platform, or market claim is still current (snapshot verified August 2026), finding the books, talks, sites, and people, or needing the numbers, project-start checklist, and 'it runs badly' triage. Companion to the other video-game-development skills./game-engines-loop-and-architectureUse when starting a game or structuring its code: the engine decision (Unity, Unreal, Godot, custom), licensing as an engineering risk, market reality, the game loop structure (fixed vs variable time step, interpolation) and determinism, the architecture progression, ECS and when it pays off, the patterns that earn their keep (observer, command, object pool), and separating game logic from the engine. Includes the router for the whole video-game-development reference./game-performance-feel-and-shippingUse when optimizing, polishing, shipping, or planning a game: the frame budget, profiling tools, CPU and memory optimization, game feel and latency, testing and playtesting, platform certification, production and scope management (vertical slice, cutting scope, crunch), and the business context — the 2026 industry reality, generative AI adoption and sentiment, monetization (premium, F2P), live operations, and their anti-patterns./game-rendering-physics-animation-and-audioUse when working on a game's simulation and presentation systems: the rendering pipeline, the graphics APIs (Vulkan, DirectX 12, Metal, WebGPU), the things that actually cost you (draw calls, overdraw, bandwidth), ray tracing and upscaling (DLSS, FSR, XeSS), using a physics engine and collision detection (broad and narrow phase, continuous collision), animation (skeletal, blending, IK, root motion), and audio (middleware, mixing, the numbers).npx claudepluginhub the-vibey-project/vibey --plugin video-game-development