Colyseus authoritative multiplayer

From teknokomo/universo-platformo-react · View interactive version

Colyseus authoritative multiplayer is an AI agent skill from the GitHub repository teknokomo/universo-platformo-react. Use when planning, implementing, or QA-reviewing MMOOMM realtime multiplayer with Colyseus rooms, server-authoritative simulation, room authentication, Schema state, fixed tick processing, client interpolation or reconciliation, reconnection, or MVP scaling. Applies to `@universo-react/colyseus-serv

How to use this skill

Skill file

Colyseus Authoritative Multiplayer

Use this skill for server-authoritative MMOOMM multiplayer work using the

Universo Colyseus wrappers.

Version And Package Guards

@colyseus/core@0.17.43.

wrapping @colyseus/sdk@0.17.42.

Do not tell agents to import it from server modules unless registry metadata

and compiler rules are deliberately changed later.

Required Output

For each multiplayer plan or implementation, state:

Workflow

  1. Authenticate with static onAuth before onJoin when possible.
  2. Initialize room state in onCreate.
  3. Add clients and auth-derived player state in onJoin.
  4. Accept input intents from clients, not authoritative world state.
  5. Validate message shape with project Zod patterns when shape matters.
  6. Process queued inputs on a fixed server tick.
  7. Mutate Schema state as the authoritative source.
  8. Render clients with interpolation and optionally prediction/reconciliation.
  9. Use onDrop, allowReconnection, onReconnect, and onLeave for

temporary disconnects and permanent leaves.

  1. Clean up timers, external resources, and room-owned state in onDispose.

Blocking Rules

as authoritative.

normal user-facing surfaces.

until complexity justifies it and dependencies are approved.

References

reconnect, and cleanup.

input queues, interpolation, and reconciliation.

MVP scaling notes.

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.