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★ 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/OnGainedOwnershipcallback 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:
- The set of legal values it can hold.
- The set of legal transitions between values (some pairs should never be observed).
- 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
Установить multiplayer-state-machine-coverage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub