Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

multiplayer-state-machine-coverage

БесплатноБез исполняемых скриптовНе проверен

Use before a multiplayer game goes to platform cert, where broken multiplayer is a common rejection. Builds a coverage matrix for connect, authority handoff…

testlandот testland★ 18 звёзд на GitHub

Об этом скилле

multiplayer-state-machine-coverage

Overview

Networked games are state machines: each player connection, each replicated entity, and each authority handoff transitions through a documented set of states. Cert failures and on-the-wire bugs overwhelmingly happen at transition edges - connect, host migration, disconnect-mid-action, reconnect-after-network-loss - not in the steady-state gameplay loop.

This skill is a build-an-X workflow: produce a state-machine coverage matrix that enumerates every connection + ownership + replication state in your engine, crosses it with the network fault matrix (latency / loss / out-of-order / disconnect), and emits a fixture list + a go / no-go gate.

Composes with:

  • platform-cert-overview-reference - multiplayer testing is a cross-axis over functional / compliance / compatibility / performance; the matrix maps onto Xbox XR-067 (MPSD session state), XR-064 (joinable sessions), XR-115 (controller / user add and remove), and XR-074 (loss of connectivity), all cited inline below from the Xbox Requirements page.
  • unity-test-framework, unreal-automation-system, godot-gut-tests - the per-engine test frameworks the fixtures run in.

When to use

  • Building the multiplayer test plan for a title that ships to Xbox / PlayStation / Switch - cert pass risk concentrates here.
  • Triaging a recurring "host migration drops players" / "join fails after suspend" / "save corrupted on rejoin" bug class.
  • Bringing up netcode-driven gameplay (Unity NGO, Unreal replication, Mirror) for the first time on a project - set the coverage floor before launch.

Microsoft's Certification step-by-step guide explicitly cites "Multiplayer does not work as expected" as one of the three most common reasons titles are placed on Hold. Holds are calendar-week delays - coverage authored ahead of cert is the cheapest mitigation.

Inputs

Before walking the workflow, gather:

Input Where Why
Engine + netcode stack Project - Unity NGO / Unreal replication / Mirror Determines the state vocabulary you enumerate
Topology - host / dedicated / listen Game design doc Listen-server has different states than dedicated server (see Unreal section below)
Max concurrent players (MaxPlayers) Backend config / multiplayer service Caps the fixture matrix
Persistence model - does the session resume after host-migration / suspend? Game design + platform cert requirements XR-067 requires the title maintain MPSD session state
Platform target - Xbox / PSN / Switch / Steam Cert plan Drives the XR / TRC / Lotcheck clauses to cover

Workflow

Step 1 - Enumerate connection states

Per engine docs, list the states the engine exposes. The matrix is fixed by the framework - you cannot add or remove states, only choose which to cover. The full per-engine connection-state tables (Unity NGO, Unreal replication, Mirror) - each state with its trigger and observability hook - are in references/engine-states.md.

Step 2 - Enumerate ownership states

Authority handoff is where most "ghost item" / "ability use after death" bugs live. The per-engine authority-state enumeration (NGO OwnerClientId / IsOwner; Unreal ROLE_*; Mirror isServer / isOwned) is in references/engine-states.md. Authority transitions to cover:

  • Spawn → owner assignment - does the right OnStartAuthority / OnGainedOwnership callback fire?
  • Authority handoff mid-action - player picks up an item that another player owns; does the prior owner stop sending RPCs?
  • Authority loss on disconnect - does authority return to server or transfer to another client?
  • Authority on host migration - see Step 4 below.

Step 3 - Enumerate replicated-property transitions

For every replicated property (NGO NetworkVariable<T>, Unreal UPROPERTY(Replicated) / RepNotify, Mirror [SyncVar]), identify:

  1. The set of legal values it can hold.
  2. The set of legal transitions between values (some pairs should never be observed).
  3. The callback fired on remote when it changes (Unreal: OnRep_<PropName> per Networking Overview: "Replicated Using Properties: State that triggers a callback function upon replication"; Mirror: [SyncVar(hook=...)]; NGO: NetworkVariable<T>.OnValueChanged).

Each OnRep_ / hook handler is a transition edge that needs at least one fixture exercising it.

Step 4 - Cross with the network fault matrix

The engine state machines are deterministic on a perfect network. Real networks ar

Полный SKILL.md на GitHub

Установить multiplayer-state-machine-coverage в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.tessl-plugin/plugin.jsonreferences/cert-clauses.mdreferences/engine-states.md

FAQ

Что делает скилл multiplayer-state-machine-coverage?

Use before a multiplayer game goes to platform cert, where broken multiplayer is a common rejection. Builds a coverage matrix for connect, authority handoff, disconnect, reconnect and host migration under latency, loss and reordering for Unity Netcode, Unreal and Mirror, with a go/no-go gate.

Как установить скилл multiplayer-state-machine-coverage?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл multiplayer-state-machine-coverage запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить multiplayer-state-machine-coverage с