---
name: gdas-reader
description: "GDAS-reader turns a source tree, web bundle, asset folder, WASM module, or PE/ELF file into an evidence ledger for godot-rea or bevy-rea. Use before emitting a Godot or Bevy reconstruction. Keywords: GDAS-reader, ledger, read_artifact, reconstruction, evidence."
title: gdas-reader
canonical_url: https://skilld.dev/gh/thedivergentai/game-dev-agentic-skills/gdas-reader
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: [fixtures/source/player.py](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/gdas-reader/fixtures/source/player.py), [fixtures/web/config.json](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/gdas-reader/fixtures/web/config.json), [fixtures/web/index.html](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/gdas-reader/fixtures/web/index.html), [references/ledger.md](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/gdas-reader/references/ledger.md), [scripts/read_artifact.py](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/gdas-reader/scripts/read_artifact.py).
>
> If the user asked to install this Skill, run `npx skilld install thedivergentai/game-dev-agentic-skills/gdas-reader`. 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/gdas-reader`, 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/gdas-reader) 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/gdas-reader`. 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/gdas-reader --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/gdas-reader --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.

# GDAS-reader

Read an artifact and write `ledger.json`. This skill does not create a Godot scene or a Bevy crate. [godot-rea](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-rea/SKILL.md) and [bevy-rea](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-rea/SKILL.md) do that from the ledger.

## When to use

Load this when the input is a folder or a shipped file and the output must be a reconstruction in Godot or Bevy. Run the reader first. Hand the ledger to one emitter.

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

A hub-only install uses the copy under Available Scripts: [read_artifact.py](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/gdas-reader/scripts/read_artifact.py).

Schema: [references/ledger.md](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/gdas-reader/references/ledger.md).

## What the reader records

| Artifact | Confirmed facts | What stays partial or unknown |
| --- | --- | --- |
| Source tree | Declarations, including `class_name`, `async fn`, and `pub(crate) fn`. UI-shaped string literals. | State-looking names (`state`, `phase`, `mode`) stay `partial`. |
| Web bundle | Document title outside script and style, headings, script URLs, image URLs, JSON key paths for every array element | Behavior inside minified scripts. A folder is also scanned for source, assets, and WASM instead of dropping them. |
| Asset folder | File path, media type, and `source_path` | Bytes stay put unless `--allow-assets` and a real `--license-note` are both set |
| WASM | Export names, import module and field names, up to 10 ASCII runs | Function bodies. Non-ASCII text. A truncated section becomes `unknown` instead of a crash. |
| PE or ELF | Format identification and readable strings | Machine code. A `.dll` or `.so` string is `partial` because the import table is not walked. A short header becomes `unknown`. |

The reader is stdlib Python. It does not call an external decompiler. A native binary contributes a header walk, imports, and strings. Packed or encrypted sections become `unknown` entries.

## Ledger honesty

Score the ledger before an emitter runs. Bands are additive. A ledger below 3 does not get emitted as gameplay.

| Band | Rule |
| --- | --- |
| 0 | Entries claim behavior the file does not show. |
| 1 | Status is missing, or every guess is marked `confirmed`. |
| 2 | Status values exist, but `limits` hides a format the reader cannot parse. |
| 3 | Each entry has `id`, `status`, `evidence`, and a skill suggestion. `unknown` is listed. |
| 4 | Caps and license gaps are in `limits`. No asset bytes were copied. Partial names are not described as working mechanics. |

## NEVER

- NEVER mark a symbol `confirmed` because its name looks like health, damage, or save. Those matches are `partial`.
- NEVER copy image, audio, or glTF bytes unless both `--allow-assets` and `--license-note` are set. A note alone records the license and still leaves the bytes in place.
- NEVER decompile native code, WASM bodies, or minified JavaScript to invent a mechanic.
- NEVER drop `limits` when the scan hit the 40-entry cap or the file was packed.
- NEVER point `godot-rea` or `bevy-rea` at a relative `../gdas-reader` path. Link the GitHub URL above so a single-skill install still names the prerequisite.

## Available Scripts

### [read_artifact.py](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/gdas-reader/scripts/read_artifact.py)

Classifies a file or directory and writes the ledger. `--self-test` checks fixtures. `--license-note` records a license. `--allow-assets` copies bytes into `copied-assets/` next to `--out` and requires that note.

## Related Skills

#### Prerequisites
- None. This skill is the first step.

#### Complements
- [godot-rea](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-rea/SKILL.md) — Godot 4.7 project emitted from this ledger.
- [bevy-rea](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-rea/SKILL.md) — Bevy 0.20 crate emitted from this ledger.

#### Downstream / consumers
- [godot-builder](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-builder/SKILL.md) — Headless import after `godot-rea` writes scenes.
- [bevy-project-foundations](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-project-foundations/SKILL.md) — Crate pin and plugin shape the Bevy emitter follows.

#### Master
- Mirrored inside [godot-master](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/godot-master/SKILL.md) and [bevy-master](https://github.com/thedivergentai/Game-Dev-Agentic-Skills/blob/main/skills/bevy-master/SKILL.md). A hub-only install still has this reader.
