data-oriented-architecture
Installation
SKILL.md
Data-Oriented Architecture Patterns
When To Use This Skill
Activate this skill when:
- Encountering switch statements or if/else chains dispatching on entity/object type
- Designing systems with multiple variants of similar entities
- Refactoring code where adding new types requires changes in multiple locations
- Building plugin systems, handler registries, or factory patterns
- Noticing the "expression problem" (hard to add new types AND new operations)
Core Principle
Separate data from behavior, dispatch via registry.