bevy-ecs-systems

bevy-ecs-systems is a skill for Claude Code from shinyobjectz/raea-skills. It costs 110 tokens per session (2,219 once invoked), scanned A, original, Apache-2.0.

A guide to Bevy 0.20 systems: reusable parameters, groups of systems, conditions, game states, and ordering. It explains how to run systems only when certain messages, states, or resources are present.

In plain words
What is it for?
Use it to organise gameplay systems, react to state changes, gate work behind conditions, define shared system inputs, and control strict or optional execution order.
Why use it?
It reduces repeated setup code and makes game logic run at the right time. It also helps avoid unclear ordering and safely add or remove groups of systems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions OpenCode.

Part of the raea plugin — 66 skills, 4 hooks shipped together

Good fit Use it to organise gameplay systems, react to state changes, gate work behind conditions, define shared system inputs, and control strict or optional execution order.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shinyobjectz/raea-skills/bevy-ecs-systems
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shinyobjectz/raea-skills --skill bevy-ecs-systems
Clone the repo
git clone --depth 1 https://github.com/shinyobjectz/raea-skills

Made for: Claude Code.

Or install raea, the plugin that ships this one along with the rest of its 66 skills, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bevy-ecs-systems

README.md
[![agentmods](https://agentmods.dev/badge/skills/shinyobjectz/raea-skills/bevy-ecs-systems/github.svg)](https://agentmods.dev/skills/shinyobjectz/raea-skills/bevy-ecs-systems)
Your own site
<a href="https://agentmods.dev/skills/shinyobjectz/raea-skills/bevy-ecs-systems"><img src="https://agentmods.dev/badge/skills/shinyobjectz/raea-skills/bevy-ecs-systems/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bevy-ecs-systems

Your own site · 80×15
<a href="https://agentmods.dev/skills/shinyobjectz/raea-skills/bevy-ecs-systems"><img src="https://agentmods.dev/badge/skills/shinyobjectz/raea-skills/bevy-ecs-systems.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,219 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.02219
Opus 5.5 $0.00044 $0.00888
Sonnet 5.5 $0.00022 $0.00444
Haiku 4.5 $0.00011 $0.00222

Measured 8d ago against content hash 7166e2943ca6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bevy-ecs-systems scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bevy/pack/bevy-ecs-systems/SKILL.md · 148 lines

How it starts

The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bevy 0.20 — ECS Systems (params, sets, run conditions)

When to use this skill

  • Bundling related state into one parameter via #[derive(SystemParam)].
  • Grouping systems into a SystemSet so callers can order against the whole group.
  • Gating systems with run conditions (run_if, on_message, in_state, resource_exists, any_with_component).
  • Hooking into state transitions with OnEnter(S) / OnExit(S) / OnTransition { exited, entered }.
  • Hot-removing systems at runtime (tearing down a debug overlay) with remove_systems_in_set.
  • Choosing strict .chain() versus weak .chain_weak() ordering (0.20).

Canonical pattern

use bevy::ecs::system::SystemParam;
use bevy::prelude::*;

#[derive(SystemSet, Hash, PartialEq, Eq, Clone, Debug)]
enum GameLoop { Input, Simulate, Render }

#[derive(States, Default, Hash, PartialEq, Eq, Clone, Debug)]
enum AppState { #[default] Loading, Playing }

#[derive(Resource, Default)]
struct Score(u32);

#[derive(Message)]
struct GoalScored { team: u8 }

// Composite param: pass one argument, get three.
// 'w = world borrow; 's = system-local state borrow.
#[derive(SystemParam)]
struct GameCtx<'w, 's> {
    time:  Res<'w, Time>,
    score: ResMut<'w, Score>,
    goals: MessageReader<'w, 's, GoalScored>,
}

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .init_resource::<Score>()
        .add_message::<GoalScored>()
        .init_state::<AppState>()
        .configure_sets(Update, (GameLoop::Input, GameLoop::Simulate, GameLoop::Render).chain())
        .add_systems(OnEnter(AppState::Playing), spawn_level)
        .add_systems(OnExit(AppState::Playing), despawn_level)
        .add_systems(Update, read_input.in_set(GameLoop::Input))
        .add_systems(
            Update,
            tally_goals
                .in_set(GameLoop::Simulate)
                .run_if(on_message::<GoalScored>),
        )
        .add_systems(Update, (draw_hud, start_game).in_set(GameLoop::Render))
        .run();
}

#[derive(Component)]
struct LevelEntity;

fn spawn_level(mut commands: Commands) {
    commands.spawn((LevelEntity, Name::new("level")));
}

fn despawn_level(mut commands: Commands, query: Query<Entity, With<LevelEntity>>) {
    for e in &query { commands.entity(e).despawn(); }
}

fn read_input(mut writer: MessageWriter<GoalScored>) {
    writer.write(GoalScored { team: 0 });
}

fn tally_goals(mut ctx: GameCtx) {
    let _ = ctx.time.delta_secs();
    for goal in ctx.goals.read() {
        ctx.score.0 += 1;
        info!("team {} scored, total {}", goal.team, ctx.score.0);
    }
}

fn draw_hud(score: Res<Score>) { let _ = score.0; }

// 0.20: `set_if_different` (was `set_if_neq`) skips OnExit/OnEnter when
// the target equals the current state.
fn start_game(mut next: ResMut<NextState<AppState>>) {
    next.set_if_different(AppState::Playing);
}

Read the full file on GitHub · 148 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 148 lines · 110 tokens per session scan A 7166e2943ca6

Subscribe to this mod's changes

bevy-ecs-systems is a skill published in the GitHub repository shinyobjectz/raea-skills (41 stars, last pushed today), licensed Apache-2.0. It adds 110 tokens to every session and 2,219 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-26.

Related

bevy-ecs-systems compared with skills from other repositories

bevy-ecs-systems next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bevy-ecs-systemsshinyobjectz/raea-skillsSkill41todayApache-2.0A110Claude Code
bevy-ecsgamedev-skills/awesome-gamedev-agent-skillsSkill13k4d agoApache-2.0A102Claude Code
bevy-ecs-patternsmakifbaysal/tasktrooperSkill1232d agoApache-2.0A74Claude Code, Codex
bevy-game-enginelaurigates/claude-pluginsSkill60yesterdayMITA48Claude Code
bevy-ecs-patternslaurigates/claude-pluginsSkill60yesterdayMITA37Claude Code
ags-ambient1llu50ry/mcp-gamehackingSkill3921mo agoMITA41Claude Code, Codex
bevyTerminalSkills/skillsSkill22426d agoApache-2.0B116Claude Code, Codex