Server

From Kevin-Liu-01/CoTFly · View interactive version

Server is an AI agent skill from the GitHub repository Kevin-Liu-01/CoTFly. Implement and operate Claude of Tanks signaling and dedicated authoritative multiplayer servers.

How to use this skill

Skill file

claude-of-tanks / server

Purpose

Provide bounded network coordination and dedicated ranked authority.

The signaling server relays WebRTC descriptions/ICE only and never gameplay.

Mental model and invariants

closure; production .js entries must not import raw .ts source files.

ratingStore.ts owns bearer identities, persistent Elo, and idempotent results.

per-map collision shards; do not hand-edit their records or checksum index.

Keep idle map retention bounded and release active terrain leases on teardown.

ranked authority to a player.

Verification

Run node server/signaling.selftest.mjs and

node server/dedicatedWorldCollision.selftest.mjs. Ranked changes additionally

run the rating, matchmaker, HTTP, and real-WebSocket tests. Regenerate world manifests

with tools/capture-world-collision-manifests.mjs after authored map collision

changes. Any gameplay authority added here must also run the shared src/net

tests, deterministic match tests, abuse cases, and real WebSocket soak/load tests.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.