---
name: godot-rea
description: "Emit a Godot 4.7 project from a GDAS-reader evidence ledger. Stubs name the ledger id and the Domain Skill to load. Use after gdas-reader, not as a decompiler. Keywords: godot-rea, reconstruction, ledger, emit_project, Godot 4.7."
title: godot-rea
canonical_url: https://skilld.dev/gh/thedivergentai/game-dev-agentic-skills/godot-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-contract.md](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-rea/references/ledger-contract.md), [references/migration-notes.md](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-rea/references/migration-notes.md), [scripts/emit_project.py](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-rea/scripts/emit_project.py).
>
> If the user asked to install this Skill, run `npx skilld install thedivergentai/game-dev-agentic-skills/godot-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/godot-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/godot-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/godot-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/godot-rea --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/godot-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.

# godot-rea

Turn a [GDAS-reader](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/gdas-reader/SKILL.md) ledger into a Godot 4.7 project. The project is a scaffold of stubs. It is not a port of machine code.

## When to use

Run this after `read_artifact.py` has written `ledger.json` and the honesty rubric in GDAS-reader scores at least 3. Then open the Domain Skill named on each stub before writing gameplay.

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

## What gets written

| Path | Role |
| --- | --- |
| `project.godot` | Godot 4.7 project. Features are `4.7` and `Forward Plus`. Renderer is `forward_plus`. Main scene is `res://scenes/main.tscn`. The scene file has no `uid://` line. The editor writes UIDs on import. |
| `scenes/main.tscn` | One child node per ledger entry. The node name is the ledger id, not the display name, so two entries cannot share a sibling name. |
| `scripts/<id>.gd` | Stub. Comment carries ledger id, status, evidence path, and the Godot skill to load. `_ready` is `pass`. |
| `placeholders/` or `assets/` | Placeholders when the license is unspecified. Copied bytes when `--allow-assets` and the ledger license are both set. |
| `COVERAGE.md` | Limits plus one line per entry. |

`--allow-assets` copies bytes into `assets/<ledger-id>.<ext>` when that entry's `license` is not blank or `unspecified`. It prefers the reader's `copied` path, then `source_path`. Without that pair, the emitter writes `placeholders/` and leaves the bytes alone.

## Expert Knowledge Delta

- A `confirmed` declaration means the name exists in the artifact. It does not mean the Godot function should reproduce that body. Load the suggested skill and re-implement the behavior you are allowed to write.
- A `partial` string from a PE or ELF scan is a hint. The reader does not walk the import table, so a `.dll` string is not a confirmed import. Wiring it to `health` or a signal without a second source of truth fails the honesty rubric.
- `unknown` entries still get a node so coverage stays visible. Leaving them out makes the project look finished.
- Headless `ResourceSaver` does not write UIDs. The emitter omits `uid://` because `uid://rea_main` is illegal: `ResourceUID` text is `a-z` and `0-9` only, and an underscore returns `INVALID_ID`. After import, [godot-builder](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-builder/SKILL.md) runs `godot -e --headless --import`.
- `config/features` must include both `4.7` and `Forward Plus`, and `renderer/rendering_method` must be `forward_plus`. A features array that is only `4.7` loses the renderer tag the next time the editor saves the project.
- The text loader sets `owner` to the scene root when a node has `parent="."` and no owner field. `parent` is not that assignment. `Node.duplicate()` does not copy owner. A later `PackedScene.pack` drops children whose owner is unset, so that step must `set_owner` on the copy and each child.
- Godot 4.7 new projects stretch with `canvas_items` and `expand` once the editor rewrites settings. The emitter does not pin stretch. See [references/migration-notes.md](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-rea/references/migration-notes.md) and [references/ledger-contract.md](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-rea/references/ledger-contract.md).

## NEVER

- NEVER invent damage formulas, scene flow, or input maps that the ledger does not state. A `partial` or `unknown` row is not a mechanic. Band 0 is that failure.
- NEVER mark a stub done by deleting `pass` and guessing a method body. The stub is done when the named Domain Skill replaces it.
- 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 cleared to vendor into the project.
- NEVER decompile the original binary to fill a stub. The reader did not prove a function body, and a disassembly is not a Godot function.
- NEVER link this skill to GDAS-reader with a relative `../gdas-reader` path. A single-skill install has no sibling folder. Use the GitHub URL in Related Skills.
- NEVER add a `## Godot 4.7 Baseline` section here. Hop text stays in `references/migration-notes.md`.

## Honesty rubric

| Band | Rule |
| --- | --- |
| 0 | Emitted GDScript implements a mechanic the ledger marked `partial` or `unknown`. |
| 1 | `COVERAGE.md` omits limits or drops unknown ids. |
| 2 | Stubs exist but comments omit the skill name. |
| 3 | Every entry has a script, a coverage line, and a `pass` body. Comments are single lines. |
| 4 | Feature tags are `4.7` and `Forward Plus`. Suggested skills match the ledger. Assets are placeholders, or a licensed copy named from the ledger id when `--allow-assets` was set. |

Ship at band 4.

## Available Scripts

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

Reads ledger JSON and writes the project tree. `--self-test` checks the Forward Plus feature tag, a comment that cannot become a statement, a placeholder when the license is unspecified, and a licensed copy under `--allow-assets`.

Field table and scene header: [references/ledger-contract.md](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-rea/references/ledger-contract.md).

## Reference

### Official Documentation

- [Godot projects](https://docs.godotengine.org/en/stable/tutorials/editor/project_manager.html) — Project file and main scene the emitter writes.
- [Scenes and nodes](https://docs.godotengine.org/en/stable/getting_started/step_by_step/nodes_and_scenes.html) — Node tree the main scene uses for one stub per entry.
- [GDScript basics](https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.html) — Typed `_ready` stubs.
- [Upgrading to Godot 4.7](https://docs.godotengine.org/en/stable/tutorials/migrating/upgrading_to_godot_4.7.html) — Feature tag and stretch defaults.

## Related Skills

#### Prerequisites
- [gdas-reader](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/gdas-reader/SKILL.md) — Writes the ledger this skill emits.
- [godot-project-foundations](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-project-foundations/SKILL.md) — Folder and project conventions for the scaffold.
- [godot-builder](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-builder/SKILL.md) — Headless import after the files exist.

#### Complements
- [godot-composition](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-composition/SKILL.md) — Fill entity-shaped stubs.
- [godot-combat-system](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-combat-system/SKILL.md) — Fill combat-shaped symbols.
- [godot-input-handling](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-input-handling/SKILL.md) — Fill input entries.
- [godot-ui-containers](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-ui-containers/SKILL.md) — Fill UI entries.
- [godot-save-load-systems](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-save-load-systems/SKILL.md) — Fill save entries.

#### Downstream / consumers
- [godot-testing-patterns](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-testing-patterns/SKILL.md) — Tests for stubs once a skill replaces `pass`.

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