---
name: bevy-rea
description: "Emit a Bevy 0.20 crate from a GDAS-reader evidence ledger. Each confirmed or unknown entry becomes a plugin stub. Use after gdas-reader, not as a decompiler. Keywords: bevy-rea, reconstruction, ledger, emit_project, Bevy 0.20."
title: bevy-rea
canonical_url: https://skilld.dev/gh/thedivergentai/game-dev-agentic-skills/bevy-rea
last_updated: 2026-10-17T02:01:56.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/ledger-to-ecs.md](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/bevy-rea/references/ledger-to-ecs.md), [scripts/emit_project.py](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/bevy-rea/scripts/emit_project.py).
>
> If the user asked to install this Skill, run `npx skilld install thedivergentai/game-dev-agentic-skills/bevy-rea`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/bevy-rea`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/thedivergentai/game-dev-agentic-skills/bevy-rea) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/bevy-rea`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/bevy-rea --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/bevy-rea --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# bevy-rea

Turn a [GDAS-reader](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/gdas-reader/SKILL.md) ledger into a Bevy 0.20 crate. Plugins are stubs. They do not reimplement the artifact.

## When to use

Load this when the ledger exists and the reconstruction target is Bevy. Run GDAS-reader first. Score that ledger at least 3 before emitting.

```powershell
python skills/gdas-reader/scripts/read_artifact.py P:\artifact --out P:\work\ledger.json
python skills/bevy-rea/scripts/emit_project.py P:\work\ledger.json --out P:\work\bevy-crate
python skills/bevy-rea/scripts/emit_project.py --self-test
```

## ECS shape

- **Crate:** `bevy = "0.20"` with the dev opt-level split from [bevy-project-foundations](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-project-foundations/SKILL.md).
- **App:** `App::new()`, `DefaultPlugins`, then one plugin per ledger entry.
- **Components:** none until the suggested skill adds them. A stub system takes no `Query`.
- **Resources:** none by default. A score or config from a `partial` string stays out of the crate.
- **Systems:** `tick_<id>` on `Update`. The body is empty.

`unknown` entries still get a plugin so `COVERAGE.md` matches the module tree.

## What gets written

| Path | Role |
| --- | --- |
| `Cargo.toml` | Package `reconstructed`, Bevy 0.20. |
| `src/main.rs` | `DefaultPlugins` plus feature plugins. |
| `src/features/<id>.rs` | Plugin and empty system. Comment names ledger id, status, evidence, and the Bevy skill to load. |
| `placeholders/` or `assets/` | Placeholders when that entry's `license` is blank or `unspecified`. Copied bytes when `--allow-assets` and that entry's `license` are both set. |
| `COVERAGE.md` | Limits and one line per entry. |

## NEVER

- NEVER add a `Health` component because a symbol was named `apply_damage`. That entry is a stub until `bevy-combat-system` is loaded and the behavior is confirmed.
- NEVER copy asset bytes unless `--allow-assets` is set and that entry's `license` is not blank or `unspecified`. An unspecified license means the bytes are not yours to vendor.
- NEVER decompile native code or WASM into Rust. A stub is not a disassembly. Invented Rust from those bytes fails the honesty rubric.
- NEVER point this skill at a relative `../gdas-reader` path. Install layouts have no sibling folder. Use the GitHub URL in Related Skills.
- NEVER add Godot nodes, signals, or autoloads to the crate. Those types are not Bevy. Ownership stays a `Plugin` and an empty `Update` system until the suggested skill adds a `Component`.

## Honesty rubric

| Band | Rule |
| --- | --- |
| 0 | A system mutates gameplay state the ledger did not confirm. |
| 1 | Coverage drops an unknown id or omits `limits`. |
| 2 | Plugins exist but comments omit the Bevy skill. |
| 3 | Every entry is a plugin with an empty system and a coverage line. |
| 4 | `bevy = "0.20"` and `DefaultPlugins`. Assets are placeholders, or a licensed copy named from the module when `--allow-assets` was set. |

Ship at band 4.

Schedule rules: [references/ledger-to-ecs.md](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/bevy-rea/references/ledger-to-ecs.md).

## Available Scripts

### [emit_project.py](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/bevy-rea/scripts/emit_project.py)

Reads ledger JSON and writes the crate. `--self-test` checks the pin, the empty system, and that a damage-shaped name does not declare health.

## Reference

### Official Documentation

- [Getting started](https://bevy.org/learn/quick-start/getting-started/) — App setup the emitter follows.
- [Plugins](https://bevy.org/learn/quick-start/getting-started/plugins/) — `Plugin`, `DefaultPlugins`, and `add_plugins`.
- [ECS](https://bevy.org/learn/quick-start/getting-started/ecs/) — Systems stay empty until a Domain Skill adds components.
- [App](https://docs.rs/bevy/latest/bevy/app/struct.App.html) — `App::new` and `add_plugins`.
- [Plugin](https://docs.rs/bevy/latest/bevy/app/trait.Plugin.html) — one impl per ledger id.
- [Update](https://docs.rs/bevy/latest/bevy/app/struct.Update.html) — schedule for the empty stub.

## Related Skills

#### Prerequisites
- [gdas-reader](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/gdas-reader/SKILL.md) — Writes the ledger.
- [bevy-project-foundations](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-project-foundations/SKILL.md) — Crate pin and plugin boundary.

#### Complements
- [bevy-ecs-composition](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-ecs-composition/SKILL.md) — Fill entity-shaped entries.
- [bevy-combat-system](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-combat-system/SKILL.md) — Fill combat-shaped symbols.
- [bevy-input-handling](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-input-handling/SKILL.md) — Fill input entries.
- [bevy-state-machines](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-state-machines/SKILL.md) — Fill screen entries.
- [bevy-ui-layout](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-ui-layout/SKILL.md) — Fill UI entries.
- [bevy-save-load](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-save-load/SKILL.md) — Fill save entries.
- [bevy-asset-scenes](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-asset-scenes/SKILL.md) — Fill asset entries after the license check.

#### Downstream / consumers
- [bevy-testing-patterns](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-testing-patterns/SKILL.md) — `cargo test` once a stub gains real systems.

#### Master
- [bevy-master](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-master/SKILL.md) — Router when the suggested skill is the wrong chain.
