bevy-ecs-patterns

bevy-ecs-patterns is a skill for Claude Code from laurigates/claude-plugins. It costs 37 tokens per session (1,212 once invoked), scanned A, original, MIT.

A guide to advanced patterns for Bevy, a Rust game engine whose Entity Component System organizes game data and behavior. It covers complex queries, scheduling, change detection, and performance decisions.

In plain words
What is it for?
Use it to optimize queries, model entity relationships, control system order, detect data changes, and handle parallel or batch operations.
Why use it?
It helps when basic Bevy patterns are not enough and systems become difficult to order, query, maintain, or optimize.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool.

Part of the bevy-plugin plugin — 2 skills shipped together

Good fit Use it to optimize queries, model entity relationships, control system order, detect data changes, and handle parallel or batch operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/laurigates/claude-plugins/bevy-ecs-patterns
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 laurigates/claude-plugins --skill bevy-ecs-patterns
Clone the repo
git clone --depth 1 https://github.com/laurigates/claude-plugins

Made for: Claude Code.

Or install bevy-plugin, the plugin that ships this one along with the rest of its 2 skills.

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-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/laurigates/claude-plugins/bevy-ecs-patterns/github.svg)](https://agentmods.dev/skills/laurigates/claude-plugins/bevy-ecs-patterns)
Your own site
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/bevy-ecs-patterns"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/bevy-ecs-patterns/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-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/bevy-ecs-patterns"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/bevy-ecs-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,212 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00037 $0.01212
Opus 5.5 $0.00015 $0.00485
Sonnet 5.5 $0.00007 $0.00242
Haiku 4.5 $0.00004 $0.00121

Measured 1mo ago against content hash 8e98a36ef703, 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-patterns 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 1mo 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.

bevy-plugin/skills/bevy-ecs-patterns/SKILL.md · 174 lines

How it starts

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

Bevy ECS Patterns

Advanced patterns and techniques for Bevy's Entity Component System, focusing on performance, maintainability, and complex game architectures.

When to Use This Skill

Use this skill when... Use bevy-game-engine instead when...
Optimizing ECS query performance Setting up a new Bevy project from scratch
Implementing complex entity relationships or hierarchies Learning basic ECS concepts (components, systems, resources)
Designing system scheduling and ordering Handling input, assets, or game states
Using change detection (Changed<T>, Added<T>) Writing basic game logic or app structure
Working with ParamSet, parallel iteration, or batch operations Configuring rendering, UI, or audio
Debugging archetype fragmentation or storage strategies Adding plugins or common Bevy dependencies

Core Expertise

Advanced Queries

  • Complex query filters and combinations
  • Query state and caching
  • Entity relationships and hierarchies
  • Parallel iteration strategies

System Scheduling

  • System ordering and dependencies
  • Run conditions and gating
  • System sets and scheduling
  • Fixed timestep systems

Change Detection

  • Changed<T> and Added<T> filters
  • Ref<T> for change tracking
  • Efficient reactive systems

Advanced Query Patterns

Query Filters

use bevy::prelude::*;

// Multiple filters
fn targeting_system(
    query: Query<
        (&Transform, &mut Target),
        (With<Enemy>, Without<Dead>, Changed<Health>)
    >,
) {
    for (transform, mut target) in &query {
        // Only enemies that are alive and recently damaged
    }
}

// Optional components
fn flexible_system(
    query: Query<(&Transform, Option<&Velocity>, Option<&Acceleration>)>,
) {
    for (transform, velocity, acceleration) in &query {
        if let Some(vel) = velocity {
            // Has velocity
        }
    }
}

// Or filters
fn pickup_system(
    query: Query<Entity, Or<(With<HealthPickup>, With<AmmoPickup>)>>,
) {
    for entity in &query {
        // Process any pickup type
    }
}

Read the full file on GitHub · 174 lines

Files

What ships with it

1 file 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. 1mo ago Changed · -286 lines 8e98a36ef703
  2. 1mo ago First seen · 460 lines · 37 tokens per session scan A 18eb16e5ef4c

Subscribe to this mod's changes

bevy-ecs-patterns is a skill published in the GitHub repository laurigates/claude-plugins (60 stars, last pushed yesterday), licensed MIT. It adds 37 tokens to every session and 1,212 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

bevy-ecs

Structure a Bevy app around its Entity Component System: build the App with plugins, define Component/Resource types, write systems with Query/Res/Commands, filter and order systems, and use the Time resource for frame-rate-independent motion. Use when building or debugging a Bevy game in Rust — when the user mentions…

gamedev-skills/awesome-gamedev-agent-skills · 100 tokens

bevy-ecs-patterns

Use when writing Bevy (Rust ECS) game code - pin and respect the repo's minor version, plugins/systems/queries/resources, schedules with FixedUpdate and Time, states and run conditions, messages vs observers across versions, required components, testing systems with App::update and a manual time strategy, compile-time…

makifbaysal/tasktrooper · 74 tokens

bevy-migration-0-18-to-0-19

Use when upgrading from Bevy 0.18 to Bevy 0.19, fixing resource/query conflicts, replacing SceneRoot with WorldAssetRoot, migrating text to FontSource and FontSize, converting render-graph nodes to render systems, replacing lifecycle Replace with Discard, or updating asset load builders, lights, input focus, and Cargo…

chrisgliddon/bevy-skills · 93 tokens

bevy

Use when starting any Bevy task, choosing between Update and FixedUpdate, picking Cargo feature flags, or recalling which sibling skill covers ECS, assets, rendering, or migration. Routes to the right Bevy 0.19 skill and pins the engine version for downstream snippets.

chrisgliddon/bevy-skills · 58 tokens

bevy

Build, test, debug, and optimize Rust games and tools using the Bevy engine, ECS scheduling, assets, rendering, and platform features. Use when Cargo.toml selects Bevy.

metaspartan/cybara · 43 tokens

use-sparse-set

For sparse data: infinite grids, large spaces with few active elements, membership testing, set operations on coordinates or states.

jimmc414/claude-code-plugin-marketplace · 29 tokens