Design or review a game codebase when choosing architecture, deciding which modules to share across games, separating simulation from rendering, choosing ECS or scene composition, or changing save, replay, or multiplayer boundaries. Apply to new designs and refactors where ownership, dependencies, or compatibility are the main decision.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Game Architecture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/neotherapper-game-architecture)
---
name: game-architecture
description: Design or review a game codebase when choosing architecture, deciding which modules to share across games, separating simulation from rendering, choosing ECS or scene composition, or changing save, replay, or multiplayer boundaries. Apply to new designs and refactors where ownership, dependencies, or compatibility are the main decision.
---
# Game architecture
> Paths in this skill are relative to the folder that contains this SKILL.md. Resolve them to absolute paths before reading a file or running a script.
1. **Trace a real player action.** Find the normal entry point and follow input through rule validation, state changes, presentation, and persistence. Name the owner of authoritative state, update order, time and randomness. Cite code paths, active consumers, and existing tests. For a new design or unavailable source, draw the intended trace, label assumptions, and make a provisional decision.
2. **Choose the smallest useful boundary.** Prefer the existing engine's composition for presentation and an explicit rules entry point where a game needs headless tests, replays, or an authoritative server. Use [architecture choices](references/architecture-choices.md) for scene composition, fixed ticks, data-oriented systems, multiplayer or workers. For an ECS, engine rewrite, or new shared runtime, name the measured bottleneck or missing capability and compare a smaller change on the same workload.
3. **Prove what can be reused.** Identify existing callers and compare behavior, dependencies, lifecycle, and failure cases. For an extraction across games, show two real consumers that can use one narrow contract and keep each game's policies local. With one consumer, keep the seam local until a second consumer or a stated external API justifies packaging. See [reuse and compatibility checks](references/reuse-and-compatibility.md) for choosing a package boundary and preserving saves and replays.
4. **Verify the decision through the game.** For an implementation, test the smallest real slice in each affected game. Run relevant old-save loads, replay fixtures, and headless rule tests. Where the boundary affects presentation, storage, workers, or networking, exercise that adapter through the normal runtime. Record exact commands, fixtures, observed results, and missing coverage. For research or design, identify which tests would decide the proposed change.
Return the current dependency and state-ownership map, the proposed seam or architecture, its consumers and trade-offs, and the compatibility evidence. Route isolated frame timing to `game-performance`, real-input acceptance to `game-playtest`, and release readiness to `game-production` when available.