Web project structure

From MRCalderon3D/everything-game-dev-code · View interactive version

Web project structure is an AI agent skill from the GitHub repository MRCalderon3D/everything-game-dev-code. Organize a web game project so the entry point, modules, assets, configuration, and tests stay predictable.

How to use this skill

Skill file

Web Project Structure

Purpose

Organize a web game project so the entry point, modules, assets, configuration, and tests stay predictable.

Use When

Inputs

Process

  1. keep a single entry HTML plus a bootstrap module that wires systems, separate from gameplay code
  2. split source into modules by system or feature (loop, input, rendering, audio, scenes, save) rather than one monolithic file
  3. separate source art and working files from runtime-ready assets, and group runtime assets by type with stable relative paths
  4. make the toolchain explicit: commit bundler config, or document the no-build setup including the local static server used for development
  5. place tests for pure logic where they can run without a browser, and document naming and ownership rules for each folder

Outputs

Quality Bar

Common Failure Modes

Related Agents

Related Commands

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.