Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add fcsouza/agent-skills --skill matchmaking-systemgit clone --depth 1 https://github.com/fcsouza/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/fcsouza/agent-skills/matchmaking-system)<a href="https://agentmods.dev/skills/fcsouza/agent-skills/matchmaking-system"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/matchmaking-system/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/matchmaking-system"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/matchmaking-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00116 | $0.02489 |
| Opus 5.5 | $0.00046 | $0.00996 |
| Sonnet 5.5 | $0.00023 | $0.00498 |
| Haiku 4.5 | $0.00012 | $0.00249 |
Grade A, and why
matchmaking-system scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Matchmaking System
Pairs players by skill from a Redis sorted set, widens the skill bracket as they wait, claims each pair atomically, and runs the lobby until the match ends.
Choose the rating system
| System | Pick it when | What it tracks |
|---|---|---|
| Elo | Matches are plentiful and you can keep matchmaking tight | One number. Menke: needs more matches to converge than Glicko or TrueSkill. |
| Glicko-2 | Players compete alone and you want an uncertainty that grows while a player is away (RD rises in a rating period with no games) | Rating, rating deviation (RD), volatility; a draw scores 0.5. Menke, on Glicko: converges faster than Elo, not naturally adapted to teams. |
| TrueSkill | Team modes, more than two teams, or draws | Mean mu and uncertainty sigma per player; team skill is the sum of its players. Menke: designed for teams and draws, converges in the fewest matches of the three. |
Starting values with a source:
- Glicko-2: unrated players start at rating 1500, RD 350, volatility 0.06. Set the system constant tau between 0.3 and 1.2 and test which predicts best. Rating periods work best with 10-15 games per player.
- TrueSkill: new players start at mu 25, sigma 8.333. Rank on the conservative estimate mu - 3 sigma, not on mu.
- A Glicko-2 player's strength sits in rating plus or minus 2 RD with 95% confidence.
No Elo K-factor is given here because no source was checked. Pick one and tune it against your own win-prediction data.
Persist ratings in Postgres after each match (postgres-game-schema) and cache them in Redis for the queue.
Procedure
- Split pools by game mode and region. One sorted set per pool, score = rating. A player only searches their own pool unless they opt in to cross-region.
- Enqueue: write the sorted-set member and a hash with rating, deviation, games played and
queuedAt, with a TTL so a crashed client does not stay queued forever. - Add one BullMQ search job per player. The job calls
findMatch; if nothing fits, it adds a delayed copy of itself, so the search runs again with a wider bracket. - Bracket width comes from wait time:
initial + floor(wait / interval) * step, capped at a maximum. Derive it fromqueuedAton every search; do not store it, so it cannot go stale and needs no separate "widen" job. - A pair fits when the rating gap is inside the wider of the two players' brackets, so the player who waited longer decides.
- Claim the pair in one Lua script: if both members are still in the sorted set, remove both and delete both hashes; otherwise remove nothing and try the next candidate. See "Atomic dequeue" below.
- Create the lobby. Players ready up; the last ready-up moves the lobby to COUNTDOWN.
- When the countdown ends, check every player's presence (WebSocket heartbeat). If all are there, the lobby goes IN_PROGRESS. If anyone dropped, the lobby is short of its match size, so it dissolves:
startMatchdeletes it, unmaps every player and returns the connected ones inrequeue. Requeue them with their originalqueuedAtso their bracket stays wide. A leave before IN_PROGRESS dissolves the lobby the same way;leaveLobbyreturns the ids to requeue. - On match end, mark the lobby COMPLETE, update ratings, and let the lobby expire after the results screen.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 19d ago Changed · -69 lines · +65 tokens per session bf52d84608f7
- 3mo ago First seen · 204 lines · 51 tokens per session scan A 5be5f8231187
matchmaking-system is a skill published in the GitHub repository fcsouza/agent-skills (29 stars, last pushed today), licensed MIT. It adds 116 tokens to every session and 2,489 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
matchmaking-system compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| matchmaking-systemfcsouza/agent-skills | Skill | 29 | today | MIT | A | 116 | Claude Code |
| playtest-reportDonchitos/Claude-Code-Game-Studios | Skill | 42k | 24d ago | MIT | A | 20 | Claude Code |
| godot-signals-groupsgamedev-skills/awesome-gamedev-agent-skills | Skill | 13k | 3d ago | Apache-2.0 | A | 93 | Claude Code |
| scenario-unreal-gameplayscenario-labs/skills | Skill | 4.7k | yesterday | MIT | A | 121 | Claude Code |
| texture-workflowarjun988/blender-skills | Skill | 5.8k | 27d ago | MIT | A | 41 | Claude Code |
| motionOpenDCAI/GameFactory-3A | Skill | 1.6k | yesterday | Apache-2.0 | A | 0 | Claude Code, Codex |
| gamedev-shadersericrisco/rsc-harness | Skill | 707 | yesterday | MIT | A | 102 | Claude Code, Codex |