Files
reliquary/plugins/bevy/README.md
T
g4borg 0aa4b99d46 🛰️ export: 1 file (satellite)
M plugins/bevy/README.md

Upstream-Commit: ea4dd38a9d873c021cca5ef1de02360f613015e4
2026-11-25 02:18:54 +01:00

52 lines
2.6 KiB
Markdown

# bevy
Skills for developing with the [Bevy](https://bevyengine.org/) game engine in Rust.
Bevy's rapid release cycle (0.16 through 0.19 in ~18 months) introduces fundamental API renames and semantic shifts between versions. LLMs confidently generate code against outdated patterns — `Parent` instead of `ChildOf`, `Event` instead of `Message`, `use_state` idioms that no longer exist. These skills exist to correct that.
## Skills
- **bevy-0.19** — Implementation helper for writing correct, idiomatic Bevy 0.19 code. Covers plugins, ECS, hierarchy, events/observers, input, camera, and production gotchas. Triggers on Bevy 0.19 Rust code. Contains a compact always-loaded cheat sheet plus a `references/` folder for deeper topic dives.
- **bevy-upgrade** — Version migration guide for upgrading between Bevy releases. Covers the breaking-change chain (0.16 through 0.19+) with rename tables, semantic shifts, and step-by-step migration patterns. Invoked by the `bevy-0.19` skill when an upgrade task is detected, or directly when the user asks to migrate.
## Research
The skills were written from a research pass over Bevy 0.16 through 0.19. It covered these topics:
| Topic | Scope |
|-------|-------|
| Plugins | Plugin trait lifecycle, dependencies, states, schedules |
| ECS core | Components, resources, systems, queries, commands |
| Hierarchy | ChildOf relationships, spawning/querying children |
| Events and observers | Message/Event split (0.18), observers, lifecycle triggers |
| Input | Keyboard, mouse, gamepad, touch input patterns |
| Camera gotchas | Camera setup, rendering, coordinates |
| Lessons from production | 15 gotchas from a production Bevy 0.18 multiplayer game |
| Landscape and design sketch | Ecosystem survey, architecture options |
The findings are distilled into the skills and their `references/` folders; the research notes themselves are not part of the published plugin.
## Architecture
This plugin follows **Approach A** from the design research: a compact always-loaded skill (~500 lines) for the critical patterns agents get wrong, with a `references/` folder for deeper topic material. Skills are versioned by Bevy minor version (like `dioxus-0.7`). The `bevy-upgrade` skill is a companion that handles version migration specifically.
## Install
```
/plugin marketplace add git@git.g4b.org:dirigence/reliquary.git
/plugin install bevy@reliquary
```
Or in `.claude/settings.json`:
```json
{
"extraKnownMarketplaces": {
"reliquary": {
"source": { "source": "git", "url": "git@git.g4b.org:dirigence/reliquary.git" }
}
},
"enabledPlugins": { "bevy@reliquary": true }
}
```