Requires identifying collision shapes, movement models, entity counts, and collision layers.
3 fixed18 passed either way1 still failing0 broke
Pass-rate lift
+14 pp
Tokens
-20%
Agent turns
0%
Response time
-34%
Model gemini-3.6-flashMeasured 8/16/2026v121 of 22 cases passed with skill · 21 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 2
Prompt
What initial parameters must be identified before selecting a broadphase algorithm for a Bevy physics architecture?
What was checked, without and with the skill
Checked
Without skill
With skill
Requires identifying collision shapes, movement models, entity counts, and collision layers.
Missed
Passed
case-17 · gemini-3.6-flash · 8/16/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md31 lines2 files
Rust Bevy Collision Broadphase
Use this skill to make Bevy collision detection scale without mixing detection,
response, rendering, and gameplay rules into one system.
Core Workflow
Identify the collision shapes, movement model, entity counts, and layers.
Keep collider data small and independent from sprites, textures, and game
rules.
Choose the cheapest broadphase that fits the scene: brute force for tiny
counts, spatial hash for uniform worlds, quad tree for clustered worlds.
Emit candidate or collision events; let separate systems decide response.
Test edge contacts, fast movement, layer filters, despawn cases, and
deterministic ordering.
Benchmark before and after changing the broadphase.
Read Next
Task
Load
Pick or review a broadphase
guidelines.md, references/broadphase-patterns.md
Optimize an existing collision system
workflows/optimize-collision.md
Route a specific symptom
guidelines.md
Source Notes
Guidance is transformed and paraphrased from Herbert Wolverson,
Advanced Hands-On Rust, especially Chapter 8 on obstacles and collision
detection and Chapter 12 on optimization. The examples are original skeletons
intended to preserve the transferable technique, not the book's project code.