unity-netcode-design

Enforce Netcode design rules for Unity Netcode for GameObjects 2.x scripts.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-netcode-design-yiduandtdt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-netcode-design
Source: https://github.com/YiDuandtdt/Bone-Throne/tree/main/.agents/skills/unity-skills/skills/netcode-design
Command: npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-netcode-design-yiduandtdt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Netcode engineering for Unity Netcode for GameObjects 2.x can be tricky; this skill provides source-anchored design rules to prevent API hallucinations and incorrect lifecycle ordering.

Core Features & Use Cases

  • Covers spawn lifecycle, OnNetworkSpawn timing, ownership, RPC rules, NetworkVariables, NetworkList, scene management, and prefab registration.
  • Helps teams align on best practices to avoid common mistakes during development, reviews, and onboarding.
  • Use cases: when implementing new Netcode-enabled gameplay systems, to ensure consistent patterns and reduce runtime bugs.

Quick Start

Read this skill before writing any NGO or Netcode code and apply its rules while drafting NetworkBehaviour classes.

Frequently Asked Questions about unity-netcode-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the correct ordering for OnNetworkSpawn in Unity Netcode for GameObjects?

OnNetworkSpawn in Unity Netcode for GameObjects must follow specific lifecycle ordering rules to prevent initialization bugs. Source-anchored design rules enforce predictable spawn timing for NetworkBehaviour scripts across server, host, and client contexts.

How do I write RPCs in Unity Netcode 2.x without causing runtime errors?

Writing RPCs in Unity Netcode 2.x requires following strict naming and target rules to avoid runtime errors. Design rules enforce correct RPC patterns for server, host, and client contexts to ensure robust multiplayer gameplay.

Does Unity Netcode for GameObjects support NetworkList and NetworkVariables for nested objects?

Unity Netcode for GameObjects supports NetworkVariables and NetworkList but imposes constraints on nested objects. Applying source-anchored design rules ensures correct prefab registration and networked object interactions without lifecycle ordering bugs.

Why does my Unity Netcode scene synchronization fail during spawning?

Unity Netcode scene synchronization fails during spawning often due to incorrect lifecycle ordering or prefab registration. Following source-anchored Netcode design rules prevents API hallucinations and ensures predictable scene management.

Can I use these Netcode design rules for client-side prediction systems?

These Netcode design rules apply to developers writing NetworkBehaviour scripts, RPCs, and networked object interactions across server, host, and client contexts, ensuring consistent patterns for complex gameplay systems like client-side prediction.

When do I need to follow prefab registration rules in Unity Netcode?

Prefab registration rules in Unity Netcode must be followed whenever implementing networked object spawning and scene synchronization. Source-anchored design rules prevent common mistakes during development and onboarding for NGO 2.x.