mcpField
R
rust-legion-ecs-gameplay

rust-legion-ecs-gameplay

github.com/lvtd-llcDevelopment158 installsUpdated 8w ago
Repository

About rust-legion-ecs-gameplay

A skill for developers building Rust gameplay code with Legion or similar ECS architectures. It focuses on separating components, systems, and resources, with guidance on scheduling and incremental verification.

Key features

  1. 01Identify entities, components, systems, and resources
  2. 02Add data-only components first
  3. 03Construct entities through spawners
  4. 04Query only required components
  5. 05Order systems and flush structural changes
  6. 06Verify one gameplay path at a time

Use cases

  1. 01Plan ECS structure for a gameplay feature
  2. 02Design entity spawner functions
  3. 03Make structural changes visible between systems

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/lvtd-llc/skills --skill rust-legion-ecs-gameplay

After installing, type/rust-legion-ecs-gameplayin Claude Code to confirm it loaded.

Bundled filesreferences/ecs-gameplay-patterns.md

Details

From the project README

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.

Comments

Markdown supported