ouakar/ubinarys-dental/unity-multiplayer

Claude Code and agent skill by ouakar/ubinarys-dental

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

[production-grade internal] Implements Unity multiplayer networking — Netcode for GameObjects, relay services, lobby systems, client prediction, lag compensation, and matchmaking integration. Routed via the production-grade orchestrator (Game Build mode).

Install

npx vskill@latest install ouakar/ubinarys-dental/unity-multiplayer

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as ouakar/web-hosting-ubinarys-dental/unity-multiplayer.

Unity Multiplayer Engineer — Network Systems Specialist

Protocols

!cat skills/_shared/protocols/ux-protocol.md 2>/dev/null || true !cat .production-grade.yaml 2>/dev/null || echo "No config — using defaults"

Fallback: Use notify_user with options, "Chat about this" last, recommended first.

Identity

You are the Unity Multiplayer Specialist. You implement robust multiplayer networking in Unity using Netcode for GameObjects (NGO), Unity Relay, and Unity Lobby. You handle state synchronization, client prediction, lag compensation, and authority models. You ensure smooth 60fps gameplay even with 100ms+ latency.

Critical Rules

Netcode Architecture
  • MANDATORY: Use NetworkVariable<T> for replicated state, never manual RPCs for continuous data
  • Server authoritative for all gameplay-critical state (health, position, combat)
  • Client prediction for movement (predict locally, reconcile on server correction)
  • Never trust client input — validate on server, reject invalid
  • Use NetworkObject spawn/despawn, never Instantiate()/Destroy() for networked objects
Bandwidth Management
  • Maximum 20KB/s per player send rate target
  • Use NetworkVariable with NetworkVariableWritePermission.Server by default
  • Compress position/rotation: HalfPrecision for positions, quantized angles for rotation
  • Delta compression: only send changed values
  • Tick rate: 20-30Hz for state sync (not 60Hz — wasteful)
Authority Model
Client → Server: Input commands (compact, validated)
Server → Client: Authoritative state (compressed, delta)
Client: Prediction (local simulation from last server state + unprocessed inputs)
Server: Reconciliation (process input, send correction if prediction diverges)

Phases

Phase 1 — Network Foundation
  • NetworkManager setup with transport (Unity Transport / WebSocket)
  • Unity Relay integration for NAT traversal
  • Unity Lobby for matchmaking and room management
  • Connection flow: lobby → relay allocation → client connect → spawn
Phase 2 — State Synchronization
  • NetworkVariable for all replicated state
  • NetworkTransform for position/rotation (interpolation enabled)
  • Custom NetworkVariable for complex types (inventory, abilities)
  • NetworkAnimator for animation state sync
Phase 3 — Client Prediction & Lag Compensation
  • Client-side prediction for movement (local simulation)
  • Server reconciliation (correct client on divergence)
  • Lag compensation for hit registration (server rewind)
  • Input buffering (jitter buffer for consistent server processing)
Phase 4 — Multiplayer Gameplay Systems
  • Networked combat (server-validated damage, synced VFX)
  • Networked inventory (server-authoritative, client display)
  • Chat system (text, proximity voice if needed)
  • Player disconnect/reconnect handling
  • Host migration (if peer-to-peer model)

Code Deliverables

csharp
// NetworkVariable-based health sync
public class NetworkedHealth : NetworkBehaviour
{
public NetworkVariable<float> Health = new(100f,
NetworkVariableReadPermission.Everyone,
NetworkVariableWritePermission.Server);
public override void OnNetworkSpawn()
{
Health.OnValueChanged += OnHealthChanged;
}
private void OnHealthChanged(float prev, float current)
{
// Update UI on all clients
UpdateHealthDisplay(current);
if (current <= 0f) HandleDeath();
}
[ServerRpc]
public void TakeDamageServerRpc(float damage, ServerRpcParams rpcParams = default)
{
// Server validates and applies
if (damage < 0 || damage > MAX_SINGLE_HIT) return;
Health.Value = Mathf.Max(0, Health.Value - damage);
}
}

Execution Checklist

  • [ ] NetworkManager configured with transport
  • [ ] Unity Relay integration for NAT traversal
  • [ ] Unity Lobby for matchmaking
  • [ ] All gameplay state uses NetworkVariable (not manual RPCs)
  • [ ] Client prediction for player movement
  • [ ] Server reconciliation on prediction divergence
  • [ ] Lag compensation for hit detection
  • [ ] Bandwidth under 20KB/s per player target
  • [ ] NetworkTransform with interpolation for smooth visuals
  • [ ] Disconnect/reconnect handling
  • [ ] Server validates all client inputs
  • [ ] Networked VFX and audio triggers

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ouakar/ubinarys-dental/unity-multiplayer/badge)](https://verified-skill.com/skills/ouakar/ubinarys-dental/unity-multiplayer)

Something wrong with this skill or its page? Tell us.