agentleFS
wormholeportalwormholeportal/Makone/skills/game/architecture/SKILL.md

game-architecture

Skill28 starsChanged 3 months agoMITView on GitHub

Code structure for games that keep growing - composition over inheritance, state machines, event bus, save systems. Use when adding a feature keeps breaking unrelated ones, or before committing to a data model.

The file

Files
SKILL.md

architecture/ — structure that survives the fifth feature

Small games don't need this. Reach here the moment a new feature starts breaking an old one — or before you decide what a save file contains, because that decision is expensive to change later.

pagewhat it fixes
entity-composition.mdclass Snake extends Enemy extends Entity — build component bundles instead
state-machines.mdbehaviour spread across a pile of if/else — model it as an explicit FSM
event-bus.md"enemy dies" hard-wired to score + sfx + drop + achievement — emit, subscribe
save-systems.mdsave bolted on at the end — it shapes the data model, so decide on day one

Engine-level performance (pooling, spatial partitioning, timestep, update order) lives in skills/three/, not here.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.