Web game foundations

From openai/plugins · View interactive version

Web game foundations is an AI agent skill from the GitHub repository openai/plugins. Set browser-game architecture before implementation. Use when the user needs engine choice, simulation and render boundaries, input model, asset organization, or save/debug/performance strategy.

How to use this skill

Skill file

Web Game Foundations

Overview

Use this skill to establish the non-negotiable architecture before implementation starts. Browser games degrade quickly when simulation, rendering, UI, asset loading, and input handling are mixed together.

Default rule: simulation state is owned outside the renderer, browser UI is not forced into the canvas unless there is a clear reason, and shipped 3D assets default to GLB or glTF 2.0 rather than ad hoc model formats.

Use This Skill When

Do Not Stay Here When

Once the stack is clear, hand off to the runtime or asset specialist skill.

Architecture Rules

  1. Separate simulation from rendering.
  1. Keep input mapping explicit.
  1. Treat asset loading as a first-class system.
  1. Define save/debug/perf boundaries up front.
  1. Use DOM overlays for menus and HUD by default.
  1. Lock 3D runtime conventions early.

Engine Selection

See ../../references/engine-selection.md for the default decision table.

Implementation Checklist

Define these before writing core code:

Anti-Patterns

References

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.