rust-legion-ecs-gameplay
Installation
SKILL.md
Rust Legion ECS Gameplay
Use this skill to build ECS gameplay code in Rust, especially in projects using Legion or a Legion-like architecture. Keep components as data, systems as focused logic, and resources as shared singleton state.
Core Workflow
- Identify entities, components, systems, and resources from the feature.
- Add data-only components before adding systems that consume them.
- Put entity construction in spawner functions or factories.
- Use queries that request only the components a system needs.
- Sequence systems with schedules and flush points when later systems must observe structural changes.
- Verify behavior through one small gameplay path before adding more entity types.