Agent skill
multiplayer-building
Networking systems for multiplayer building games. Use when implementing networked construction, delta synchronization, client prediction, or conflict resolution. Server-authoritative model with optimistic client prediction for responsive gameplay.
Install this agent skill to your Project
npx add-skill https://github.com/Bbeierle12/Skill-MCP-Claude/tree/main/skills/multiplayer-building
SKILL.md
Multiplayer Building
Networking layer for multiplayer building games.
Quick Start
import { BuildingNetworkServer, BuildingNetworkClient } from './scripts/building-network-manager.js';
// Server
const server = new BuildingNetworkServer(buildingSystem, {
tickRate: 20,
conflictStrategy: 'first_write'
});
server.start();
// Client
const client = new BuildingNetworkClient(buildingSystem);
client.connect('ws://server:8080');
const localPiece = client.placeRequest('wall', position, rotation);
Reference
See references/multiplayer-networking.md for:
- Authority model comparison
- Delta compression strategy
- Conflict resolution approaches
- Large structure synchronization
Scripts
scripts/delta-compression.js- Only sync changed state (Source engine pattern)scripts/client-prediction.js- Optimistic placement with rollbackscripts/conflict-resolver.js- Handle simultaneous builds (first-write, timestamp, lock-based)scripts/building-network-manager.js- Complete server/client system
Architecture
Server-authoritative with client prediction:
- Client predicts placement locally (ghost piece)
- Server validates and confirms/rejects
- Client reconciles with server state
- Delta compression syncs only changes
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
r3f-materials
Three.js materials in R3F, built-in materials (Standard, Physical, Basic, etc.), ShaderMaterial with custom GLSL, uniforms binding and animation, and material properties. Use when choosing materials, creating custom shaders, or binding dynamic uniforms.
audio-router
Router for audio domain including playback, analysis, and audio-reactive visuals. Use when implementing any audio functionality including music, sound effects, visualizers, or audio-driven animations. Routes to 3 specialized skills.
case-studies-reference
Game building mechanics case studies and decision frameworks. Use when designing building systems, evaluating trade-offs, or learning from existing games. Reference-only skill with detailed analysis of Fortnite, Rust, Valheim, Minecraft, No Man's Sky, and Satisfactory building systems.
brainstorming
Use when starting any feature, project, or design work. Guides collaborative design refinement through incremental questioning before any code is written.
shader-router
Decision framework for GLSL shader projects. Routes to specialized shader skills (fundamentals, noise, SDF, effects) based on task requirements. Use when starting a shader project or needing guidance on which shader techniques to combine.
audio-playback
Audio playback using Tone.js including players, transport, scheduling, and loading audio. Use when implementing background music, sound effects, audio synchronization, or timed audio events. Essential for any audio-enabled web application.
Didn't find tool you were looking for?