Skip to content

77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.

fix(bevy): correct summary-tick scope, conflict error codes, add 0.20 pointer-event pitfall

Kiro Crewa30e2e0461c8
diff --git a/skills/other-engines/bevy-ecs/SKILL.md b/skills/other-engines/bevy-ecs/SKILL.md
index be816d0..c7c1274 100644
--- a/skills/other-engines/bevy-ecs/SKILL.md
+++ b/skills/other-engines/bevy-ecs/SKILL.md
@@ -190,12 +190,16 @@ impl Plugin for GameplayPlugin {
- **"conflicting implementations of trait `Component`" after deriving both `Resource`
and `Component`** → since 0.19 `Resource` extends `Component`; derive `Resource` alone.
- **"Despawn everything" panics, or `Query<EntityMut>` next to a `Res<T>` panics with
- `error[B0002]`** → since 0.19 every resource lives on an entity tagged `IsResource`,
+ `error[B0002]` (or `B0001`, depending on parameter order)** → since 0.19 every
+ resource lives on an entity tagged `IsResource`,
so `Query<Entity>`/`EntityRef`/`EntityMut` match those entities too. Query your own
marker component, or add `Without<IsResource>` (`use bevy::ecs::resource::IsResource`).
- **`On<Add, Player>` fails with "struct takes 1 generic argument but 2 generic
arguments were supplied"** → 0.20 moved the component into the lifecycle event:
write `On<Add<Player>>` (likewise `Insert<T>`, `Discard<T>`, `Remove<T>`, `Despawn<T>`).
+- **`Pointer<Click>` / `Pointer<Press>` not found in a picking observer** → 0.20
+ flattened pointer events: observe `On<PointerClick>` / `On<PointerPress>`, and read
+ `click.pointer.position` (a `Vec2`) instead of the old `pointer_location`.
- **`OnExit`/`OnEnter` run again when "switching" to the current state** →
`NextState::set` always runs the transition schedules. Use `set_if_different` to skip
same-state transitions (renamed from `set_if_neq` in 0.20; calling `set_if_neq` on a
diff --git a/skills/other-engines/bevy-ecs/references/queries-and-scheduling.md b/skills/other-engines/bevy-ecs/references/queries-and-scheduling.md
index 2d44ee6..83312d2 100644
--- a/skills/other-engines/bevy-ecs/references/queries-and-scheduling.md
+++ b/skills/other-engines/bevy-ecs/references/queries-and-scheduling.md
@@ -97,7 +97,8 @@ fn swap(mut set: ParamSet<(
3. **Resource entities** — since 0.19 each resource is stored on an entity tagged
`IsResource`, so broad queries (`Query<Entity>`, `Query<EntityRef>`,
`Query<EntityMut>`) match those entities too. `Query<EntityMut>` next to any
- `Res<T>` panics with `error[B0002]`, and despawning every entity a `Query<Entity>`
+ `Res<T>` panics at startup (`error[B0002]` when the `Res` comes after the query,
+ `error[B0001]` when it comes first), and despawning every entity a `Query<Entity>`
returns panics. Query a marker component instead, or exclude resources:
```rust
@@ -221,9 +222,11 @@ react only to modified data — cheaper than recomputing every frame. Note: writ
through a `&mut T` marks it changed even if the value is identical; guard with a
value check if that matters.
-For a component that is checked with `Changed<T>` often but written rarely, 0.20 can
-keep a per-column summary tick so unchanged columns are skipped wholesale. Every write
-gets slightly more expensive, so opt in only where the queries dominate:
+A component can opt in to a per-table summary tick (0.20). It only pays off for code
+that walks the component with `Query::contiguous_iter()` over `Ref<T>` and checks the
+chunk's `summary_tick_is_changed()` to skip a whole table at once; an ordinary
+`Changed<T>` filter still checks every entity's tick. Every write gets slightly more
+expensive, so opt in only for components that are scanned often and written rarely:
```rust
#[derive(Component)]