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. 逆向任何游戏,用任意引擎重写,并逐帧证明重写版玩起来完全一样。
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/erkamyaman/rea-gamesGuides for using ai agents skills like rea-games.
See how rea-games compares with popular alternatives.
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 frames: web, Godot and Rust (Bevy) ports |
| Canvas Bird | giotiskl/Canvas-Bird, MIT | play it | 30 cases, 68,409 frames: web, Godot and Rust (Bevy) ports |
| Blocks (falling blocks) | jakesgordon/javascript-tetris, MIT | play it | 36 cases, 104,208 frames: web, Godot and Rust (Bevy) ports |
| Bricks (brick breaking) | jakesgordon/javascript-breakout, MIT | play it | 37 cases, 209,600 steps: web port |
| Paddles (two-paddle ball game) | jakesgordon/javascript-pong, MIT | play it | 19 cases, 198,300 steps: 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#.$ node bin/rea-games.mjs verify all
2048 / web => 19/19 cases identical, 24044 inputs
2048 / bevy => 19/19 cases identical, 24044 inputs
2048 / godot => 19/19 cases identical, 24044 inputs
canvas-bird / web => 30/30 cases identical, 68409 inputs
canvas-bird / godot => 30/30 cases identical, 68409 inputs
canvas-bird / bevy => 30/30 cases identical, 68409 inputs
dino / web => 29/29 cases identical, 63000 inputs
dino / godot => 29/29 cases identical, 63000 inputs
dino / bevy => 29/29 cases identical, 63000 inputs
blocks / web => 36/36 cases identical, 104208 inputs
blocks / godot => 36/36 cases identical, 104208 inputs
blocks / bevy => 36/36 cases identical, 104208 inputs
bricks / web => 37/37 cases identical, 209600 inputs
paddles / web => 19/19 cases identical, 198300 inputs
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
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; the Rust ports need cargo, the Godot one a Godot 4.4 binary (REA_GODOT=/path/to/godot).
| Target | Status |
|---|---|
| Web (canvas, one HTML file, mobile friendly) | every game (2048, Dino, Canvas Bird, Blocks, Bricks, Paddles), 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 all 19 cases. A playable scene (ports/godot/main.tscn) loads and takes input in a headless smoke test; its look has not been checked |
| Unity (C#) | not started |
| Capacitor (wrap the web build for iOS/Android) | not started; Capacitor wraps a web build, so it builds on the web ports |
A port counts as verified only when verify runs it through its runner. Ports that are not verified are labelled as such.
Rebuilding behavior from a recording is clean-room work. Originals are included only where their licence allows it, unmodified, with their licence (NOTICE). Rebuilds use no art, sound, names or code from the originals. If you add a game, check its licence first and do not use a trademarked name.
GAME.md lists the gaps (for Dino: few crashes into the flying obstacle; for Canvas Bird: few hits on the bottom pipe).Details: docs/STATUS.md · DECISIONS.md · docs/pitfalls.md · NOTICE
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 107 GitHub stars.
rea-games's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
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. SkillsLLM 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!