agentleFS
chrisgliddonchrisgliddon/bevy-skills/skills/bevy/SKILL.md

bevy

Skill16 starsChanged 3 months agoMITView on GitHub

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.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read this first when working on a Bevy project: All current implementation sibling skills assume Bevy 0.19 (released 2026-06-19).

    line 14
  2. Very specific:

    Classic scene serialization moved: Use bevy_world_serialization, WorldAssetRoot, and DynamicWorld.

    line 85
  3. Very specific:

    Lifecycle replacement is discard: Use Discard, on_discard, and #[component(on_discard = ...)].

    line 86

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Bevy 0.19 — Router

Read this first when working on a Bevy project. All current implementation sibling skills assume Bevy 0.19 (released 2026-06-19); historical migration skills deliberately describe their source versions. If the user's Cargo.toml pins a different version, stop and confirm before applying current patterns from this collection.

Smallest valid app

use bevy::prelude::*;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_systems(Startup, setup)
        .run();
}

fn setup(mut commands: Commands) {
    commands.spawn(Camera3d::default());
}

When to use which skill

TaskSkill
App / Plugin / Schedule basics, Update vs FixedUpdate, exclusive systemsbevy-core-concepts
Rebindable actions, gamepad hot-plug, deadzones, mouse capture, frame-to-fixed inputbevy-input-actions
Deterministic App/time stepping, messages/observers, async and visual testsbevy-testing
#[derive(Component)], #[require(...)], observers (On<E>), hooks, storagebevy-ecs-components
Query, filters, par_iter, query lenses, IterQueryData, SingleEntityQueryDatabevy-ecs-queries
SystemParam, SystemSet, .run_if, ordering, remove_systems_in_setbevy-ecs-systems
Cargo.toml features: 2d/3d/ui, mid-level 2d_api, renamed featuresbevy-cargo-features
Upgrading from 0.17 — MessageReader, On, RenderTarget, GlobalAmbientLight, etc.bevy-migration-0-17-to-0-18
Upgrading from 0.18 — resources-as-components, FontSource, WorldAssetRoot, Discardbevy-migration-0-18-to-0-19
AssetServer, handles, hot-reload, glTF WorldAssetRoot/WorldInstanceReadybevy-assets
Writing an AssetLoader, LoadContext::load_builder, SeekableReaderbevy-custom-assets
Versioned save DTOs, stable IDs, migrations, atomic native/browser persistencebevy-save-load
WASM build pipeline, WebGPU vs WebGL2bevy-wasm-webgpu
Camera3d, projections/targets, free/pan controls, third-person orbit/obstructionbevy-cameras
Built-in renderer vs custom/headless/external paths, forward vs deferredbevy-rendering
Custom diagnostics, tracing spans, render CPU/GPU timings, platform budgetsbevy-diagnostics-profiling
RapierPhysicsPlugin, RigidBody, Collider, collision queries, character controllersbevy-physics
StandardMaterial, MaterialPlugin<M>, AsBindGroup::label(), PBR tuningbevy-pbr-materials
glTF clips, AnimationGraph, transitions, masks, events, procedural animationbevy-animation
Hanabi particles, shaders, Gaussian splats, compatible VFX cratesbevy-vfx
AudioPlayer, sinks, spatial listeners, mix/transition policy, Seedling boundarybevy-audio
Voxel meshing with block-mesh-rs, chunk pipeline, greedy quadsbevy-voxel-pipeline
RON block definitions, palette, KTX2 atlas bakingbevy-voxel-data
Dirty sections, revision tokens, coalesced remesh queues, bounded mesh/collider swapsbevy-voxel-runtime
Camera recording, MP4/PNG encoders, ffmpeg integrationbevy-capture
es-fluent-manager-bevy i18n — FluentText<T>, BevyFluentText, LocaleChangeEvent, i18n.tomlbevy-fluent
Node, Button, Interaction, children![], TextFont, InputFocus, BorderRadius, BackgroundColorbevy-ui
Screen readers, focus navigation, captions, contrast, remapping, adaptive controllersbevy-a11y
Porting from Unity, Unreal, Godot, Cocos, web engines, Flash, Defold, Roblox, or GameMakerbevy-porting
Detecting copy-paste / near-duplicate Rust code before committing (similarity-rs --cross-file)similarity-rs

Cardinal rules (every Bevy 0.19 task)

  1. Events are messages. EventReader<E> and EventWriter<E> were renamed to MessageReader<M> / MessageWriter<M> in 0.17. They are still wrong in 0.19.
  2. Observers use On<E>, not Trigger<E>. Trigger was renamed in 0.17 (PR #19596).
  3. Declare order when behavior depends on it. Shared mutable access prevents parallel execution but does not choose a logical order. Use .before(), .after(), or .chain(), especially when deferred commands must be visible downstream.
  4. No .unwrap() in systems. Systems run every frame. Use let ... else { return }; or a real error path.
  5. Resources are singleton components in 0.19. Each resource lives on a resource entity. Inserting the same Resource type on an ordinary entity can move singleton ownership, so do not mix resource and ordinary-component use; audit broad Query<&T> access.
  6. Text uses FontSource and FontSize. Convert handles with .into() and sizes with FontSize::Px(...).
  7. Classic scene serialization moved. Use bevy_world_serialization, WorldAssetRoot, and DynamicWorld; bevy_scene now hosts BSN.
  8. Lifecycle replacement is discard. Use Discard, on_discard, and #[component(on_discard = ...)].
  9. Camera render nodes became systems. Extend Core2d/Core3d with render systems. The top-level non-camera schedule named RenderGraph still exists.
  10. Physics is a plugin choice. Bevy core has no rigid-body engine. Use bevy-physics for the current Rapier/Avian boundary, schedules, and APIs.
  11. Frame input is not fixed-tick input. Queue action edges and accumulate relative motion after InputSystems; drain once on the first available fixed tick while carrying held/absolute state to every tick.
  12. Runtime IDs are not save IDs. Persist immutable domain identifiers in a versioned DTO and rebuild dense palettes/entities/handles while loading.

Gotchas

  • Bevy's training-data footprint is dominated by older code. Check both migration skills before trusting an apparently familiar snippet.
  • bevy::prelude::* doesn't re-export everything. Many ECS internals live under bevy::ecs::... — import explicitly when needed.
  • The bevy crate now re-exports many subcrates (bevy_camera, bevy_light, bevy_post_process, bevy_anti_alias, bevy_input_focus, bevy_gizmos_render, bevy_sprite_render, bevy_ui_render). Subcrate APIs are stable points to depend on for plugins.

See also

  • bevy-migration-0-18-to-0-19 — current upgrade catalogue.
  • bevy-migration-0-17-to-0-18 — historical rename catalogue.
  • bevy-cargo-features — what to put in Cargo.toml before any of the above will compile the way you want.
  • bevy-physics — Rapier setup, fixed-step ordering, queries, and controllers.
  • bevy-input-actions — logical input, devices, and the fixed-step bridge.
  • bevy-testing — deterministic app stepping and visual regression.
  • bevy-diagnostics-profiling — metrics, traces, render timing, and budgets.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.