agentleFS
Kevin-Liu-01Kevin-Liu-01/Claude-of-Tanks/server/SKILL.md

server-skill

Skill448 starsChanged 4 months agoMITView on GitHub

Implement and operate the match actor, the LAN room helper, collision manifests, ICE and telemetry services.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never make a client authoritative for hits, damage, reloads or the match result.

    line 42
  2. Distinctive:

    Keep payloads, queues, rooms, rates, and lifetimes bounded.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

claude-of-tanks / server

Purpose

Provide the renderer-free match authority (server/match), the room service the LAN helper and every headless proof run (server/rooms), and the small HTTP services the site deploys. The signaling server, the Redis room store, the dedicated match server and the ranked service of the first multiplayer left the tree with the cutover of 2026-09-29 (docs/MULTIPLAYER-V2.md §13.10).

Mental model and invariants

  • match/ is the Multiplayer v2 match service (docs/MULTIPLAYER-V2.md §11 and §13): MatchActor (one room: roster, the authority, the loop, seat admission, lag compensation, interest-tiered snapshots), the binary wire in src/mp/wire, seat tokens (seatToken.ts) the room service signs, service.ts + localRoomService.ts (the in-process match the LAN helper and the receipts use), server/match/README.md. The same actor runs in the host commander's browser (src/mp/host).
  • rooms/ is the LAN / offline helper (npm run server:mp, port 8792): the shared room actor (src/mp/room/roomActor.ts) over real sockets, the match in-process or in the admin's browser (COT_ROOMS_MATCH_TRANSPORT).
  • dedicatedWorldCollision.ts inflates match-local state from generated per-map collision shards (collisionManifestCodec.ts, collisionManifestLoader.ts, mapResourceCache.ts); do not hand-edit their records or checksum index. Keep idle map retention bounded and release active terrain leases on teardown. dedicatedWorldCollisionBrowser.ts is the browser-side loader the manifest receipt compares against.
  • pacingRoster.test-support.ts is the battle-pacing gate's roster fixture (battlePacing.selftest.mjs, tools/pacing-trace.mjs): the seeded era-matched bot fill the gate's bands were measured over.
  • ice.ts (api/ice.ts) issues short-lived TURN credentials from deployment secrets; credentials are never committed.
  • telemetryRecord.ts is the shared entry-telemetry schema; jev/main.ts is the local HTTP wrapper around api/jev.ts for the Vite dev server (npm run jev:dev, port 8794; docs/JEV-COMMANDER.md).
  • Never make a client authoritative for hits, damage, reloads or the match result; a room migrates its host, it never hands a client the verdict.
  • Keep payloads, queues, rooms, rates, and lifetimes bounded.

Verification

Run node server/match/matchActor.selftest.mjs, node server/match/service.selftest.mjs, node server/dedicatedWorldCollision.selftest.mjs and node server/battlePacing.selftest.mjs. Regenerate world manifests with tools/capture-world-collision-manifests.mjs after authored map collision changes. Any gameplay authority added here must also run the deterministic match tests, abuse cases, and the headless peer-to-peer proofs (npm run test:net:v2:p2p:headless, npm run test:net:v2:p2p).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.