/bevy-skills:bevy-portingfrom bevy-skills
Maps Unity, Unreal, Godot, Phaser, Flash, Defold, Roblox, and GameMaker primitives to Bevy 0.20 equivalents, with asset extraction scripts.
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; scripts run unread.
scripts/ policy below.cargo + Cargo.toml features.| Engine | Coverage | Scripts |
|---|---|---|
| Unity | Deep (8 subsystem refs) — see § Unity below | 4 Python extractors in scripts/unity/ |
| Unreal Engine 5 | references/unreal.md — Actor/Component → ECS, UMG → bevy_ui, Niagara/animation gaps | scripts/unreal/ue5_python_export.py (drops into UE5 editor) |
| Godot 4 | references/godot.md — node-tree → ECS, .tscn text format, GDScript → Rust | scripts/godot/tscn_inventory.py (stdlib, no Godot needed) |
| Cocos Creator 3 | references/cocos.md — TypeScript node-tree → ECS, JSON .scene/.prefab | inline Python recipe in the reference |
| Vanilla JavaScript / Canvas / HTML5 | references/javascript.md — class+rAF loops → ECS systems, Canvas 2D → Sprite | — (port is a rewrite, not extraction) |
| Phaser 3 | references/phaser.md — Scene/preload/update → systems, Arcade physics, tweens | — |
| Flash / SWF | references/flash-swf.md — ffdec-based extraction, AS3 → Rust rewrite | scripts/flash/swf_assets.py (requires ffdec on PATH) |
| Defold | references/defold.md — message-passing → Bevy Messages, Lua → Rust, 2D-first | inline Python recipe in the reference |
| Roblox | references/roblox.md — Instance tree → ECS, asset-ID extraction, Luau → Rust | scripts/roblox/rbxlx_inventory.py (XML .rbxlx only) |
| GameMaker Studio 2 | references/gamemaker.md — Object events → systems, JSON project files | scripts/gamemaker/gms2_inventory.py (stdlib, walks .yyp) |
Unity is the deepest-covered engine. The eight subsystem references and four extraction scripts together cover an end-to-end port:
| Subsystem | Reference | Bevy primitives |
|---|---|---|
| Architecture (GameObject, MonoBehaviour, ScriptableObject, coroutines) | references/unity-architecture.md | Entity + ChildOf, Component + System, Asset/Resource, async tasks |
| Asset pipeline (Prefab, Material, Addressables, GUIDs) | references/unity-assets.md | Bundle/spawn fn, StandardMaterial, AssetServer + Handle<T> |
| Scene → glTF extraction | references/unity-scenes-gltf.md | bevy_gltf, WorldAssetRoot, DynamicWorld, glTFast / Blender bridge |
| Animator / Mecanim | references/unity-animation.md | AnimationGraph, AnimationTransitions::play, #[derive(AnimationEvent)] |
| Input System | references/unity-input.md | ButtonInput, Axis, Touches, Gamepad*, MessageReader |
| UGUI / UI Toolkit | references/unity-ui.md | Node, ui_widgets::Button + Hovered/Pressed, TextFont/FontSize, Taffy/flex |
Audio (AudioSource, AudioListener, mixers) | references/unity-audio.md | AudioPlayer, SpatialListener, AudioSink (&mut), bevy_audio |
| Build / deploy (Build Settings, IL2CPP, WebGL) | references/unity-build.md | cargo build --target, Cargo.toml features, WASM |
Extraction scripts (all stdlib-Python, no Unity install required):
| Script | What it does |
|---|---|
scripts/unity/scene_inventory.py | Parse .unity YAML → JSON inventory of GameObjects + transforms + components |
scripts/unity/prefab_inspector.py | Parse .prefab YAML → component graph per prefab |
scripts/unity/animation_extractor.py | Parse .anim YAML → keyframe JSON, formatted for AnimatableKeyframeCurve::new([...]) |
scripts/unity/asset_audit.py | Walk Assets/ → inventory by type, size, GUID, and (optionally) dependency graph |
Run each script with --help to see all flags. Each script's docstring points to the matching reference.
These show up regardless of source engine:
Components, behaviour in free fn Systems. Don't try to recreate MonoBehaviour / Actor / Node as one Rust struct; split it.FixedUpdate, rendering in Update, interpolation via Time<Fixed>. Decide early which systems live where — see bevy-core-concepts and bevy-animation/references/procedural-animation.md.Every engine-mapping row in references/ uses the right-hand column. If a tutorial or model emits the left-hand name, translate before porting.
| Stale (≤0.18) | Bevy 0.20 | Since |
|---|---|---|
SceneRoot(Handle<Scene>), DynamicScene, bevy::scene::* (old) | WorldAssetRoot(Handle<WorldAsset>), DynamicWorld, bevy::world_serialization::*; bevy::scene is BSN (bsn!, @ refs) | 0.19 / 0.20 |
EventWriter/EventReader, #[derive(Event)] for buffered events | MessageWriter::write / MessageReader, #[derive(Message)] | 0.17 |
Trigger<OnAdd, C>, On<Add, C>, commands.trigger_targets(e, entity) | On<Add<C>>, #[derive(EntityEvent)] + commands.trigger(E { entity }) | 0.17 / 0.20 |
Replace lifecycle, on_replace | Discard, on_discard | 0.19 |
Button + Interaction (Changed<Interaction>) | ui_widgets::Button + Hovered(bool) + Has<Pressed>, On<Activate> | 0.20 |
TextFont { font: Handle<Font>, font_size: f32 } | TextFont { font: FontSource, font_size: FontSize::Px(..) } | 0.19 |
TargetCamera | UiTargetCamera | pre-0.19 |
On<Pointer<Click>> | On<PointerClick> (flat pointer events) | 0.20 |
AmbientLight resource | GlobalAmbientLight resource; AmbientLight is a per-camera component | 0.19 |
sink.set_volume(..) on &AudioSink | needs &mut AudioSink; Volume::Linear(x) / Volume::Decibels(x) | pre-0.19 |
#import bevy_pbr::… / #ifdef in .wgsl | WESL: import bevy_pbr::render::…;, @if(..), .wesl | 0.20 |
Sprite on its own batcher | Sprite renders through Mesh2d + SpriteMaterial; new alpha_mode field | 0.20 |
NextState::set_if_neq | NextState::set_if_different | 0.20 |
scripts/<engine>/ contains runnable, single-file Python helpers that extract data from the source engine's project tree. The convention for this collection:
re not pyyaml — easier to install..unity/.prefab/.anim/.meta files directly. Engines whose files are binary (Roblox .rbxl, parts of GMS2) get a recipe in their reference instead.tree + file + stat for game projects.WorldAssetRoot); write spawn functions or bsn! templates for data prefabs.references/unity-animation.md.[CustomEditor], Unreal Blueprints' editor tooling, Godot tool scripts — none translate. Bevy 0.20 ships Feathers widgets and PanOrbitCamera for editor-style tools, but no shipped scene editor; for porting, runtime-only.ui and audio are not implied by 3d/2d (0.19). A port that trims default-features must add ui and audio explicitly or buttons and AudioPlayer silently never run.bevy_rapier3d 0.37, avian3d 0.8, bevy_hanabi 0.20, leafwing-input-manager 0.22, bevy_asset_loader 0.28, bevy_ecs_tilemap 0.20, bevy_kira_audio 0.27, bevy-persistent 0.12, bevy_hui 0.8. Still on older Bevy: bevy_prototype_lyon 0.17 (0.19), bevy_cobweb_ui 0.22 (0.17).bevy — router; pins Bevy 0.20 and indexes every sibling skill.bevy-animation — AnimationGraph, AnimationTransitions, #[derive(AnimationEvent)]. Cross-linked from unity-animation.md.bevy-ui — Node + Taffy/flex model, ui_widgets::Button. Cross-linked from unity-ui.md.bevy-cargo-features — replaces Unity Build Settings / PlayerSettings.bevy-wasm-webgpu — Unity WebGL → wasm32 / WebGPU port story.bevy-cameras — RenderTarget as a component, camera modes; close to Unity Camera component.bevy-migration-0-19-to-0-20 and bevy-migration-0-18-to-0-19 — full rename lists behind the table above.references/cocos.md (opens in a new tab)references/defold.md (opens in a new tab)references/flash-swf.md (opens in a new tab)references/gamemaker.md (opens in a new tab)references/godot.md (opens in a new tab)references/javascript.md (opens in a new tab)references/phaser.md (opens in a new tab)references/roblox.md (opens in a new tab)references/unity-animation.md (opens in a new tab)references/unity-architecture.md (opens in a new tab)references/unity-assets.md (opens in a new tab)references/unity-audio.md (opens in a new tab)references/unity-build.md (opens in a new tab)references/unity-input.md (opens in a new tab)references/unity-scenes-gltf.md (opens in a new tab)references/unity-ui.md (opens in a new tab)references/unreal.md (opens in a new tab)scripts/flash/swf_assets.py (opens in a new tab)scripts/gamemaker/gms2_inventory.py (opens in a new tab)scripts/godot/tscn_inventory.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
32 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.npx claudepluginhub chrisgliddon/bevy-skills --plugin bevy-skillsOther plugins' skills for the same job