ecs-architecture
Installation
SKILL.md
ECS Architecture
When to Use
Use this skill when:
- Building a game or simulation with many interactive objects
- Refactoring object-oriented game code for better performance
- Implementing data-oriented design patterns
- Creating scalable game systems with complex interactions
Core Principles
- Composition over Inheritance: Entities are composed of components, not class hierarchies
- Data Locality: Components store data; systems process data in contiguous memory
- Separation of Concerns: Components = data, Systems = logic, Entities = IDs
- Type Safety: Leverage TypeScript for compile-time guarantees
- Performance: Cache-friendly iteration over components