/gameframe:re-reafrom gameframe
Explains when to use REA (Reverse Engineer Anything MCP server) vs. GameFrame's Ghidra export for binary inspection. Covers APK, IPA, .NET, Electron, browser targets with Ghidra decompilation and runtime observation.
Ships in gameframe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
REA (https://github.com/morluto/rea) is an MCP server that gives the agent reverse-engineering
tools and records every result as Evidence with an ID, coverage and limits. Its own skill,
reverse-engineer-anything, documents each tool in detail: install it with REA's setup
(re-setup) and read it before a large REA investigation. This skill says how REA fits into
the playbook's loop. REA is opt-in for each project. Enable it with ./gameframe mcp --enable rea;
the project launcher uses the pinned rea-agents 6.7.0 and reads local overrides from .env.
Use REA's tools (mcp__rea__* in Claude Code) when | Use GameFrame's Ghidra export (re-ghidra) when |
|---|---|
| The target is not a plain native binary: an APK/IPA, a .NET assembly, an Electron app or ASAR, a browser page, firmware, an archive | You need to search the whole program as text, many times (grep is instant) |
You want a quick, cited answer about one function: open_binary then analyze_function, procedure_callers, xrefs | You trace a system across hundreds of functions over several sessions |
You need a call path between two functions (build_call_path, trace_call_path) | You need decomp_query.py with your labels applied |
You need runtime evidence from a running browser or Electron app (observe_web_session, capture_browser_scenario) | You emulate functions (re-emulate): REA does not replace the Unicorn harness |
You compare two versions of an application (compare_application_versions, find_changed_behavior) | |
| A finding must carry a citable Evidence ID in a report |
They agree because both read the same binary through Ghidra; addresses match. Use both: REA for targeted questions and evidence, the export for broad search.
open_binary with the path;
an archive or package → open_binary then inspect_artifact; .NET → inspect_managed_artifact;
Android → inspect_android_package; extracted JavaScript or ASAR →
analyze_javascript_application; Windows resources and icons → inspect_pe_resources.binary_overview when available), then ask focused questions:
search_strings, search_procedures, analyze_function, procedure_callers,
procedure_callees, xrefs, procedure_pseudo_code.set_address_name and set_comment keep labels in
REA's database; also copy each label into labels/names.tsv so GameFrame's tools see it.close_binary when done.REA can provide a focused Ghidra session when a question needs one native function or its exact
instructions. Check binary_session first. In analysis_provider_candidates, confirm that
ghidra is available and note the reported Ghidra and Java versions. An available candidate is
not yet the selected provider and does not prove that a particular target can be analyzed.
Open the exact executable with open_binary(path=..., provider_id="ghidra"). Record its reported
format, architecture and SHA-256. Ghidra completes its default analysis before REA serves
function results. Then use analyze_function(procedure="0x...") for the function identity and
body, pseudocode, assembly, calls, references, strings and control-flow blocks. Its Evidence
record carries coverage and limitations; keep the evidence ID with the finding.
For arithmetic, calling-convention or register questions, read every instruction with
read_function_instructions(procedure="0x...") or use procedure_assembly. Check the relevant
instructions against the decompiler's claims. REA is useful for a focused trace; use GameFrame's
Ghidra export for repeated whole-program searches and the emulator for measured behavior.
Before closing, use export_evidence_bundle(path=...) when the evidence must persist. The
provider's imported program and project are temporary; closing the session removes them. Store
target-derived evidence under an ignored analysis directory, never in tracked files.
./gameframe run rea_session (tools/rea/rea_session.py) starts its own REA from the project's
.mcp.json, so a script uses the same version as the agent:
./gameframe run rea_session fn game/GAME.EXE 0x401a30 0x401b00 # labels from labels/, a summary each
./gameframe run rea_session snapshot game/GAME.EXE --file analysis/notes/hot.txt
./gameframe run rea_session labels game/GAME.EXE # set_addresses_names input, in chunks
fn gives REA the labels from labels/names.tsv, names-from-port.tsv and library.tsv,
writes each dossier to analysis/rea/fn/, and prints its size, what refers to it, its callees
and its memory effects. The first question of a session waits for Ghidra (about 50 s for a 2 MB
binary). A saved snapshot answers only the questions asked before, and any rename makes its
answers stale, so snapshot renames nothing and fn --snapshot-only skips the renames. The
know-how entry context-rea-sessions-and-snapshots has the measured times.
tools/rea/mcp_client.py is the small client underneath, for other providers too.
inspect_analysis_view instead.No REA tools in the session (no mcp__rea__* in Claude Code) means the MCP server is not enabled
or did not start. If REA would help, enable it with ./gameframe mcp --enable rea, then restart
the agent session. Follow re-setup section 3 to install it. Meanwhile, continue with GameFrame's own tools: Ghidra export,
decomp_query.py, ghidra-run.sh and the emulator cover native binaries completely.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
reverse-engineering, binary-analysis, ghidra, rea-agents, forensics
16 skills in this plugin
/re-browseBuild and grow a resource viewer for a game - first the catalogue (tools/formats/catalog.py, a static HTML page and JSON manifest of every file, its kind, entropy, hex and what the Python decoders make of it, with pictures), then the project's own viewer app on the port's readers (pictures, palettes, sound, 3D models, text, hex; native and browser; a file output mode for agents). Use at the start of a project, right after the inventory, and after every new decoder, so the person and the agent can check decoded content by looking at it./re-cleanroomRun a source-visible specification and source-blind implementation workflow when a project wants independent reimplementation from a neutral behavior contract./re-emulatenpx claudepluginhub tanepiper/game-frame --plugin gameframeOther plugins' skills for the same job