ecs-component-patterns
Installation
SKILL.md
ECS Component Patterns
When to Use
Use this skill when:
- Designing components for game entities
- Optimizing component memory layout
- Implementing special component types
- Managing shared game data
- Creating reusable component libraries
Core Principles
- Data-Only Components: No logic, only data
- Small Components: Single responsibility principle
- Composition: Combine simple components for complex behavior
- Tag Components: Empty components as flags
- Shared Data: Singleton components for global state
- Type Safety: TypeScript for all component definitions