Browser 3d runtime integration

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

Browser 3d runtime integration is an AI agent skill from the GitHub repository teknokomo/universo-platformo-react. Use when planning, implementing, or reviewing a browser 3D/game runtime surface inside Universo published applications, especially PlayCanvas canvas widgets, Colyseus realtime clients, game HUDs, lazy-loaded engine widgets, input ownership, game loops, cleanup, or Playwright proof in `apps-template-

How to use this skill

Skill file

Browser 3D Runtime Integration

Use this skill for the glue between PlayCanvas/Colyseus and the Universo

React/MUI runtime shell.

Required Companion Skills

When implementation or QA touches runtime UI, also use:

For engine-specific decisions, use playcanvas-engine-runtime. For room/network

decisions, use colyseus-authoritative-multiplayer.

Required Output

Before implementation, state:

canvas surfaces;

Workflow

  1. Mount the 3D experience inside apps-template-mui; do not build a parallel

application shell.

  1. Reuse existing dashboard, widget, dialog, list, table, DataGrid, card, and

toolbar primitives before proposing a new UI primitive.

  1. Lazy-load PlayCanvas and Colyseus client code when route-level bundle size or

first paint matters.

  1. Separate platform data from realtime state: use platform/TanStack Query data

for slow metadata and Colyseus for realtime room state.

  1. Keep HUD/dialog/list controls in MUI and world rendering in the canvas.
  2. Keep game loops outside React render loops; bridge summarized UI state only.
  3. Define input ownership for keyboard, pointer, pointer lock, focus, Escape,

dialogs, and text fields.

  1. Handle mount/unmount, visibility changes, resize observers, network cleanup,

and engine cleanup.

  1. Require browser evidence for implemented runtime UI.

Blocking Rules

[object Object], protocol errors, Zod errors, or server stack details on

normal user surfaces.

canvas or breaks dialogs/text fields.

apps-template-mui or MUI primitives fit.

References

reuse, and runtime UI rules.

and cleanup.

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.