/bevy-skills:bevy-migration-0-17-to-0-18from bevy-skills
Indexes every breaking change when upgrading from Bevy 0.17 to 0.18. Covers observer syntax, buffered events, Camera target, AmbientLight, MaterialPlugin, Mesh::insert_attribute, and other compiler-breaking API renames.
Ships in bevy-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Released 2026-01-13. Apply top-down — earlier items break later builds if skipped.
bevy = "0.17" → bevy = "0.18" bump.Trigger<E> → On<E>// 0.18 (also 0.17)
fn on_hit(on: On<Damage>) { let _e = on.event(); }
Event → Message// 0.18
#[derive(Message)] struct Tick;
// app.add_message::<Tick>();
fn read(mut reader: MessageReader<Tick>) { for _ in reader.read() {} }
fn write(mut w: MessageWriter<Tick>) { w.write(Tick); }
Event is now reserved for observed, entity-targeted events (#[derive(EntityEvent)]).
Camera { target: ... } → RenderTarget component// 0.18
commands.spawn((Camera3d::default(), RenderTarget::Image(handle.into())));
AmbientLight is no longer a resource// 0.18: global default
app.insert_resource(GlobalAmbientLight { brightness: 2000.0, ..default() });
// Per-camera override:
commands.spawn((Camera3d::default(), AmbientLight { brightness: 5000.0, ..default() }));
MaterialPlugin<M> config moved to trait methods// 0.18
impl Material for M {
fn enable_prepass() -> bool { false }
fn enable_shadows() -> bool { false }
}
app.add_plugins(MaterialPlugin::<M>::default());
AsBindGroup::label() is now requiredimpl AsBindGroup for MyMaterial {
fn label() -> &'static str { "MyMaterial" }
}
AssetLoader must #[derive(TypePath)]#[derive(TypePath)]
struct MyLoader;
impl AssetLoader for MyLoader { /* ... */ }
Mesh::insert_attribute is panicky — prefer try_insert_attribute// 0.18 safe form — returns Result<(), MeshAccessError>
mesh.try_insert_attribute(Mesh::ATTRIBUTE_POSITION, positions)?;
State::set always triggers a transition// 0.18: always fires OnExit + OnEnter. Guard with:
next_state.set_if_neq(GameState::Playing);
// 0.18
GltfPlugin {
convert_coordinates: GltfConvertCoordinates {
rotate_scene_entity: true,
rotate_meshes: true,
},
..default()
}
SimpleExecutor was removed. Add .before(), .after(), or .chain() when a
later system must observe commands from an earlier one in the same schedule. The
remaining executors use those dependencies to place ApplyDeferred; ambiguity
detection remains separately configurable. See
references/schedule-renames.md.
| Topic | Reference |
|---|---|
On<E>, MessageReader/MessageWriter, Entity::index, tick moves, Resource 'static, reflect syntax, hierarchy helpers | references/ecs-renames.md |
RenderTarget component, GlobalAmbientLight, MaterialPlugin, AsBindGroup::label, gizmos, bevy_gizmos_render split | references/render-renames.md |
AssetLoader + TypePath, LoadContext::asset_path, asset_bytes reader pattern, AssetSource channel, try_insert_attribute | references/asset-renames.md |
SimpleExecutor removal, ScheduleBuildError variants, State::set always-fires, or combinator, glTF coordinates | references/schedule-renames.md |
animation → gltf_animation, picking-backend renames, documentation → reflect_documentation, input opt-in | references/cargo-feature-renames.md |
bevy_gizmos was split. Render-side code now lives in bevy_gizmos_render. Update import paths if you used internals.Resource no longer allows non-'static lifetimes. A Resource with a borrowed field will fail to compile.#[reflect(...)] (parens) is accepted; brace/bracket forms are rejected.AnimationTarget split into two components. Use (AnimationTargetId(id), AnimatedBy(player)).Atmosphere now references a Handle<ScatteringMedium> — what was a flat struct is now indirect.bevy-migration-0-18-to-0-19 — the next release's rename catalogue.bevy-core-concepts — schedule executor change in detail.bevy-cargo-features — feature rename table.bevy-ecs-systems — Message/MessageReader/MessageWriter ergonomics.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub chrisgliddon/bevy-skills --plugin bevy-skills32 skills in this plugin
/bevyUse when starting any Bevy task, choosing between Update and FixedUpdate, picking Cargo feature flags, or recalling which sibling skill covers ECS, assets, rendering, UI, or migration. Routes to the right Bevy 0.20 skill and pins the engine version for downstream snippets./bevy-a11yUse when designing or auditing high-standard video-game accessibility in Bevy 0.20, integrating screen readers and focus navigation, supporting adaptive controllers and complete remapping, implementing captions or audio description, checking contrast and motion safety, or building disabled-player test evidence./bevy-animationUse when wiring `AnimationPlayer` + `AnimationGraphHandle`, building an `AnimationGraph` from glTF clips, blending state-driven animations with `AnimationTransitions::play`, isolating body parts with `AnimationMask`, firing gameplay sync via `#[derive(AnimationEvent)]` + `On<E>` observers, tweening with `AnimatableCurve` / `EaseFunction` / `CubicSegment::new_bezier_easing` from `bevy::curve`, or applying the 12 Basic Principles of Animation to 3D characters in Bevy 0.20.Other plugins' skills for the same job