# Rust Legion Ecs Gameplay

> Design and review Rust ECS gameplay code using Legion-style entities, components, resources, systems, schedules, queries, command buffers, and spawners. Use when building ECS-driven Rust game features, migrating game state into ECS, or debugging system ordering and component composition.

- Skill: `thedixitjain/rust-legion-ecs-gameplay` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add thedixitjain/rust-legion-ecs-gameplay`
- Raw SKILL.md: https://api.skillmd.com/api/skills/thedixitjain/rust-legion-ecs-gameplay/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: thedixitjain (https://skillmd.com/u/thedixitjain)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/thedixitjain/rust-legion-ecs-gameplay

---



# 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

1. Identify entities, components, systems, and resources from the feature.
2. Add data-only components before adding systems that consume them.
3. Put entity construction in spawner functions or factories.
4. Use queries that request only the components a system needs.
5. Sequence systems with schedules and flush points when later systems must
   observe structural changes.
6. Verify behavior through one small gameplay path before adding more entity
   types.

## Read Next

Read `references/ecs-gameplay-patterns.md` for component design, system
ordering, spawners, rendering systems, and ECS review checks.

## Source Notes

Guidance is transformed and paraphrased from *Hands-On Rust* Chapter 6 and
the official companion source repository. Current crate context was checked
against Legion and Bevy ECS docs. If the target project uses Bevy, hecs, specs,
or another ECS, adapt the architecture instead of forcing Legion APIs.

---

**Source:** [`hashgraph-online/awesome-codex-plugins`](https://github.com/hashgraph-online/awesome-codex-plugins) → `plugins/LVTD-LLC/skills/skills/rust-legion-ecs-gameplay/SKILL.md`

