Command Palette

Search for a command to run...

Назад к скиллам
скилл № 37966

matchmaking-lobby

Use when the user asks about matchmaking, lobbies, Elo, Glicko, TrueSkill, skill rating, region or ping based queues, party systems or queue times. Produces…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить matchmaking-lobby в Claude Code и Claude Desktop

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

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

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

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

Matchmaking & Lobby — Deep Engineering Guide

Purpose

Matchmaking turns "players waiting" into "a fair game started fast." The lobby keeps a group of players synced until the match host is assigned. This skill covers skill rating, match formation, queue design, region/ping routing, party/lobby state and the mechanics that make wait times feel fair.

Agent Protocol

Trigger

"matchmaking", "lobby", "skill rating", "elo", "glicko", "trueskill", "party system", "queue times".

Input Context

  • Game mode, team sizes, population per region
  • Rating system in use
  • Latency requirements

Output Artifact

Matchmaking algorithm and service design. No file unless requested.

Response Format

Rating: {system}
Formation: {algorithm, constraints}
Relaxation: {rule over wait time}
Hand-off: {allocation flow}

1. The Two Problems

  1. Matchmaking: pick the right set of players given skill, region, party, prio.
  2. Lobby state: keep that group's state consistent while waiting (routing to a match server is the handoff).

They're separate services with separate state, but one UX.

2. Skill Rating

System Model Notes
Elo points, k-factor simple, moody on big deltas
Glicko-2 rating, deviation (RD/phi), volatility (sigma) uncertainty-aware; 1v1 by design
TrueSkill / TrueSkill 2 (Microsoft) Gaussian (mu, sigma) per player built for teams and free-for-all; patented/licensed — check terms; OpenSkill is an open alternative

Pick based on match structure (1v1 vs team). Key trick: uncertainty (phi) — new players search wider; established pros narrow. Keep a floor on uncertainty (and let it grow with inactivity) so established ratings can still move.

2.1 Rating Updates

Update after the match (asynchronously, event-driven). Rules:

  • Team matches: update by team aggregate (or per-player with team-corrected delta).
  • Smurfing: high variance in phi catches a fresh account; correlated accounts (same IP) — flag not ban.

3. Match Formation (The Searcher)

3.1 The Search Expands Over Time

t = 0: strict window  (skill sigma = 100, region local)
t = 15s: widen sigma (200) + relax region
t = 60s: widen further + allow higher ping
t = 120s: "mercy" — worst match still better than no match (queue guard)

The widen over time is what makes wait times fair: a 3:00 min queue gives up skill to start faster. Config per title (ranked mode: stricter always).

3.2 The Match-Size Problem

  • Team games: gather party → slots filled from solo/small parties → fill subteams fairly (fairness across both sides = minimize |teamA_avgRating - teamB_avgRating|, not just pooled).
  • BR / large: any exactly-sized shard; rating only a soft guard.

3.3 The Scoring Function

A match quality score (m) combined from: skill variance, party-fulfillment, region/ping cost, queue-wait penalty. Choose the configuration with the best score via search over candidates (not greedy). Data-driven tune (see match-formation.md).

4. Queue Engineering

  • Queue as a service: a queueing stream (Redis/Kafka-style) beats DB polling. Push model: server announces "you're being matched" via push (websocket) when a match forms.
  • Queue priority: solos vs parties (a solo shouldn't wait longer for a small party's sake — policy by title).
  • Decline / no-show: matched but did not accept → others re-queue with priority; the decliner gets a cooldown.

4.1 The Join Race

Many players join at once → avoid stampede by offering the match slot (accept window 10–30 s) then confirming server.

5. Region & Ping Routing

  • The matchmaker must place players into a region (east, west, eu, ...) early: ping to candidate regions measured at queue-time; punish cross-region placement (high ping) in the score.
  • Prefer matches where every player has acceptable ping to the chosen region; a player far from all regions eventually gets the best available region after the wait-time relaxation.

6. Party & Lobby States

A party = a persistent group (friends). A lobby = a party + pending invitees, pre-match.

PARTY_IDLE → (search) → QUEUEING → (match formed) → MATCH_HANDOFF
                └─ (leave) → PARTY_IDLE          (handoff owner = leader)
  • Lobby owner (leader) decides region/mode; others echo.
  • State flags: ready, left, kicked, ownerChanged.
  • Invites expire 60 s; a denial kicks the invite out of the lobby.

7. Lobby ↔ Server Handoff

matchmaker picks a free server as matchHost
  → sends {matchId, playerList, region, mode, seed} to lobby service
lobby announces to all members: "match ready → join {serverIp}"
members connect to the authoritative server with their session token
server validates token + sends ACK to matchmaker (consumption)

Atomicity: the token single-use prevents double-join. If a member never arrives, the server holds a short grace and starts with a bot/penalty.

8. The Anti-

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

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

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

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

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

  • references/match-formation.md
  • references/party-and-lobby-state.md
  • references/queue-engineering.md
  • references/regions-and-ping.md
  • references/server-handoff.md
  • references/skill-rating.md

FAQ

Что делает скилл matchmaking-lobby?

Use when the user asks about matchmaking, lobbies, Elo, Glicko, TrueSkill, skill rating, region or ping based queues, party systems or queue times. Produces rating, match formation and queue relaxation design. Not for in-match netcode (use multiplayer-netcode) or server fleet autoscaling (use scaling-architecture).

Как установить скилл matchmaking-lobby?

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

Скилл matchmaking-lobby запускает скрипты?

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

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

Сравнить matchmaking-lobby с