by erkamyaman
Reverse-engineer any game, rebuild it in any engine (web, Rust, Godot) and prove the rebuild plays the same, frame by frame. Behavior specs in the open GAME.md format.
# Add to your Claude Code skills
git clone https://github.com/erkamyaman/rea-gamesLast scanned: 11/29/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-11-29T14:13:53.623Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}rea-games is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by erkamyaman. Reverse-engineer any game, rebuild it in any engine (web, Rust, Godot) and prove the rebuild plays the same, frame by frame. Behavior specs in the open GAME.md format. It has 550 GitHub stars.
Yes. rea-games passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/erkamyaman/rea-games" and add it to your Claude Code skills directory (see the Installation section above).
rea-games is primarily written in JavaScript. It is open-source under erkamyaman on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh rea-games against similar tools.
No comments yet. Be the first to share your thoughts!
Part of a family: rea takes software apart, rea-video does it for video, craft-anything rebuilds apps, and rust-anything proves a Rust rewrite behaves like the original. rea-games does it for games.
In your browser, no install: erkamyaman.github.io/rea-games
Each is written from a behavior spec (GAME.md), draws its own art, and passes its recording.
| Game | Original | Play | Verified |
|---|---|---|---|
| 2048 | gabrielecirulli/2048, MIT | play it | 19 cases, 24,044 inputs: web, Godot and Rust (Bevy) ports |
| Dino | Chrome's offline dinosaur (copy, BSD-3) | play it | 29 cases, 63,000 inputs: web, Godot and Rust (Bevy) ports |
| Canvas Bird | giotiskl/Canvas-Bird, MIT | play it | 30 cases, 68,409 inputs: web, Godot and Rust (Bevy) ports |
| Blocks (falling blocks) | jakesgordon/javascript-tetris, MIT | play it | 36 cases, 104,208 inputs: web, Godot and Rust (Bevy) ports |
| Bricks (brick breaking) | jakesgordon/javascript-breakout, MIT | play it | 37 cases, 209,600 inputs: web port |
| Paddles (two-paddle ball game) | jakesgordon/javascript-pong, MIT | play it | 19 cases, 198,300 inputs: web port |
| Mines (mine-finding grid) | Joeynoh/HTML5-Minesweeper, MIT | play it | 14 cases, 628 inputs: web port |
original game ──(fake clock, seeded random numbers)──> cases/*.json inputs + every random number + state after each step
│
GAME.md (what the recording shows) ──> your port, in any engine ──> rea-games verify ──> identical, or the first difference
Math.random are replaced from outside, so a run can be repeated. Every random number it draws is saved (the tape), with the inputs and the game state after each step.GAME.md states the rules, the order of operations in a frame, the constants, the quirks (including the original's bugs) and what is not modelled.{trace, tapeUsed} is a port: JavaScript, Rust, Godot run headless, C#.What verify all prints at the end, from the CI run on main (Godot 4.4.1, cargo and the .NET SDK installed); the per-case ok lines above it are left out:
$ node bin/rea-games.mjs verify all
...
summary
2048 / web => 19/19 cases identical, 24044 inputs, 24063 recorded states
2048 / godot => 19/19 cases identical, 24044 inputs, 24063 recorded states
2048 / bevy => 19/19 cases identical, 24044 inputs, 24063 recorded states
2048 / unity => 19/19 cases identical, 24044 inputs, 24063 recorded states
blocks / web => 36/36 cases identical, 104208 inputs, 104244 recorded states
blocks / godot => 36/36 cases identical, 104208 inputs, 104244 recorded states
blocks / bevy => 36/36 cases identical, 104208 inputs, 104244 recorded states
bricks / web => 37/37 cases identical, 209600 inputs, 209637 recorded states
canvas-bird / web => 30/30 cases identical, 68409 inputs, 68439 recorded states
canvas-bird / godot => 30/30 cases identical, 68409 inputs, 68439 recorded states
canvas-bird / bevy => 30/30 cases identical, 68409 inputs, 68439 recorded states
dino / web => 29/29 cases identical, 63000 inputs, 63029 recorded states
dino / godot => 29/29 cases identical, 63000 inputs, 63029 recorded states
dino / bevy => 29/29 cases identical, 63000 inputs, 63029 recorded states
mines / web => 14/14 cases identical, 628 inputs, 642 recorded states
paddles / web => 19/19 cases identical, 198300 inputs, 198319 recorded states
A check that cannot fail proves nothing, so each port was also broken on purpose (a constant, a collision offset, a timing gate, a spawn-gap factor): verify failed each time, for example 5 of 30 Canvas Bird cases pass with the 30 fps gate changed, 3 of 19 for 2048 with the spawn odds changed from 0.9 to 0.8.
claude plugin marketplace add erkamyaman/rea-games
claude plugin install rea-games@rea-games
The same plugin is listed in .agents/plugins/marketplace.json for agents that use that marketplace format (for example Codex: codex plugin marketplace add erkamyaman/rea-games, then codex plugin add rea-games@rea-games).
Then: "rea this game: , rebuild it in Godot." The skill (skills/rea-games/SKILL.md) runs the loop above. It records, writes the spec, builds the port, verifies, and reports what it could not cover.
Or by hand:
node bin/rea-games.mjs list
node bin/rea-games.mjs new my-game # scaffold games/my-game
node bin/rea-games.mjs record my-game # run the original, write the cases
node bin/rea-games.mjs verify my-game --port web
node bin/rea-games.mjs pack all # gzip the cases for git
Needs Node 22. Browser games also need Playwright with Chromium (npm install --no-save playwright && npx playwright install chromium); for a Playwright install outside the repository, point PLAYWRIGHT_PATH at its playwright folder (export PLAYWRIGHT_PATH=/usr/local/lib/node_modules/playwright before the record command). The Rust ports need cargo, the Godot one a Godot 4.4 binary (REA_GODOT=/path/to/godot), the Unity one the .NET 10 SDK (dotnet; the Unity editor is only needed to play the scene).
| Target | Status |
|---|---|
| Web (canvas, one HTML file, mobile friendly) | every game (2048, Dino, Canvas Bird, Blocks, Bricks, Paddles, Mines), verified |
| Rust / Bevy | 2048, Dino, Canvas Bird and Blocks as Bevy projects (dino-core logic verified through dino-runner; the Bevy window itself compiles and ran 25 s under Xvfb, never played) |
| Godot 4.4 (GDScript) | 2048, Dino, Canvas Bird and Blocks, verified: a headless runner passes every case. A playable scene (ports/godot/main.tscn) loads and takes input in a headless smoke test; its look has not been checked |
| Unity (C#) | 2048, verified: a dotnet runner compiles the Unity scene's own rules file and passes every case. The Unity 6 scene (ports/unity) was built for Windows and played with the keyboard; the win and game-over overlays were not seen on screen |
| Capacitor (wrap the web build for iOS/Android) | not started; Capacitor wraps a web build, so it builds |