REA
External tool prerequisite
Use only an already installed tool whose exact version, complete dependency tree and integrity have been reviewed. This skill does not bootstrap tools or activate external plugins. If the prerequisite is missing, stop that executable path and report it; continue with static analysis when possible. A separate installation task must pin immutable artifacts, stage them outside active agent directories with lifecycle scripts disabled, inspect every bundled file and executable entry point (including tests and hooks), and obtain approval before activation or host configuration changes. Do not substitute a same-named workspace script or fetch a moving branch.
Current upstream location
The active authored skill is at morluto/rea — reverse-engineer-anything. The source frontmatter retains the historical import location to preserve provenance identity; that old path is not a current installation URL. Use the active link for upstream inspection and retain the reviewed local reference bundle. A moving upstream branch is reference material, not approval to install or execute it.
When to Use
- Use when a claim depends on a shipped application, binary, package, or requested runtime evidence.
- Use for decompilation, evidence-backed feature traces, version comparisons, or investigation-guided reconstruction.
- Skip REA for ordinary source-code analysis of a complete repository.
Use REA when a claim depends on a shipped binary or package, decompilation,
passive application runtime evidence, or comparison with
behavior not established by available source. For ordinary analysis of a
complete source repository, use normal repository tools and do not run REA
readiness or provider commands.
Limitations
- The skill supplies investigation guidance; it does not register the REA MCP server or install analysis engines.
- Native-analysis availability depends on the selected provider, host, and target format. Hopper is separate licensed software; Ghidra and IDA are bring-your-own.
- Static analysis does not establish runtime behavior or recover original source code. Report provider-specific coverage, partial results, and unknowns.
- REA runs analysis locally, but the connected model provider may have separate data-handling policies.
Connect only when needed
Installing this skill supplies instructions; it does not register the REA MCP
server, install analysis engines, or add tools to an already-running agent.
If REA tools are available and their registration is not known to be stale,
proceed directly to the target. Do not run diagnostics or setup before every
investigation. Use the connected server's actual tool list and input schemas;
a skill installed from repository main may describe capabilities absent from
an older npm release. Keep complete inline Evidence when that server does not
advertise retained references.
When tools are absent or registration is stale:
- Diagnose without changing files. For Codex, run
rea-agents doctor --client codex --json. Substitute the current
supported client: claude_code, claude_desktop, codex, cursor,
gemini_cli, windsurf, devin, opencode, antigravity, copilot_cli,
commandcode, vscode, grok_build, omp, or grok_bot. grok_bot has no local
file registration: doctor reports the Grok Bot chat step, and setup does not
write mcp.json. If the client is unknown, use doctor --json and
inspect its registration results before choosing a setup scope.
- Distinguish the reason. Missing, malformed, or stale registration needs a
scoped configuration repair. An aligned registration with no tools in the
active session needs a restart/reconnection; doctor cannot prove that the
current agent has connected. A missing provider affects only tasks requiring
that provider: static JavaScript inspection needs neither Hopper nor Ghidra,
and Android inspection has separate bring-your-own JADX/Java prerequisites.
- For a configuration repair, prepare the read-only plan:
rea-agents setup --client codex --dry-run --json.
Use the current client's ID, show its exact proposed paths, backups, and
changes, and obtain approval before setup writes configuration or installs
Hopper. Setup normally installs the matching bundled skill too; include that
replacement in the reviewed plan. After approval, apply the same scope with
rea-agents setup --client codex --yes. Add --install-hopper
only if that separate installation was needed and explicitly approved.
- Restart/reconnect the affected agent. Verify that REA tools actually appear
in the session, then resume the original investigation. If they remain
absent, inspect the client's MCP launch error rather than repeating setup.
REA setup never installs or upgrades Node.js, npm, Homebrew, Java, Ghidra, IDA,
JADX, Binwalk, or Unblob. Use existing prerequisites; do not install unrelated
software to repair
MCP registration. For an unsupported client, use manual stdio registration
with a version-pinned rea-agents package or continue through the CLI.
A concrete CLI fallback for an operator-supplied JavaScript tree or ASAR is:
rea-agents analyze-javascript-application /absolute/path/to/app --json
No MCP registration or native engine is required. Read the returned Evidence,
graph, limitations, and unknowns with the same care as an MCP result; the CLI
returns the Evidence record directly. This fallback does not establish that
MCP is configured. Native CLI tasks still require their selected engine.
Route the target first
Choose the first tool from the target the user supplied. Use open_binary for
active-target native or archive workflows; target-free tools take their own
explicit path or endpoint and do not need it.
- ASAR or extracted JavaScript/Electron tree:
analyze_javascript_application.
- Archive/package member inventory (ZIP/APK/IPA/MSIX/AppX or DMG):
open_binary with the supplied local path; use inspect_artifact when its
graph and findings help answer the question.
- Android APK code, classes, methods, or incoming references:
inspect_android_package, then focused Android tools when advertised.
Archive member inventory still uses the archive route above.
- Managed PE/CLI assembly:
inspect_managed_artifact.
- Firmware image:
inspect_firmware_regions when advertised. Use
extract_firmware when extraction is requested, with a caller-selected new
absolute output directory. These tools use caller-supplied Binwalk/Unblob on
Linux; see the firmware guide.
- .NET NativeAOT PE/ELF: native Ghidra analysis. Native code can yield pseudocode;
consult the NativeAOT workflow in
references/native-and-artifacts.md for
optional metadata recovery and its supported host/layout boundary.
- User-owned browser page already open:
list_browser_targets.
- Retained HAR/native mitmproxy capture:
inspect_web_network_capture. Select
original record ordinals when useful; inspect producer fields and byte/number
sidecars without fetching recorded URLs or claiming live attribution. See
historical captures for the exact upstream
profile and credential exclusions.
- User-owned Electron runtime already open:
list_electron_targets.
- Explicit local EVM bytecode carrier:
inspect_evm_interface with caller-selected
raw or hex encoding. Preserve carrier/decoded digests and treat selectors,
argument strings and mutability as inferred candidates; this performs no chain
lookup or target execution. See the
EVM bytecode guide.
- Explicit Linux ELF file for offline layout, symbols, relocations or static
mitigation evidence:
inspect_binary_layout. This target-free operation uses
caller-supplied pwntools without opening a disassembler database. Preserve its
raw locations and inference/coverage limits; see the
offline binary guide.
- Supplied Linux x86-64 ELF core:
inspect_recorded_crash. Read every recorded
thread, raw note and source-bound register without opening a live target.
Historical PIDs do not select live processes. Request include_debugger_context
only when core-only mapping candidates help; see the
recorded crash guide.
- Native executable, library, or analysis database:
open_binary, then
use focused analysis tools directly; call binary_overview when metadata or
inventory context is useful and available from the selected provider.
For an existing IDA MCP configuration, use open_binary with the original
input binary and provider_id: "ida"; do not pass an .idb or .i64 database.
The legacy attached profile binds the already-open GUI input by SHA-256 and
leaves its database open. The modern headless profile creates and closes an
owned private database without saving. Installation and registration reuse
mrexodia/ida-pro-mcp; see the
IDA provider guide.
Proceed directly to analyze_function, pseudocode, or function/string searches
after opening; IDA does not supply binary_overview. Consult session availability
when composing broader workflows. Modern direct callers and unsupported dossier
facets remain unknown; live IDA results are not replayed from snapshots.
If the app is missing, ask which app to inspect. Resolve a human-readable app
name to one clear installed artifact when possible; ask only when matches are
ambiguous. Never choose an example app on the user's behalf.
In a target-free session, use open_binary to bind any archive/package or
native target whose analysis tool operates on the active target. Do not call an
unadvertised tool; inspect binary_session with {} and its
result.tool_availability for availability reasons and remediation. The tool
list stays complete; availability depends on the operation, target, and host.
Work summary-first
Start with the default result and use its inline Evidence and graph context.
Do not repeat an identical tool call. Make a focused follow-up only when the
returned result leaves a specific question unanswered.
If MCP reports resource_constraint with details.resource: "transport", call
inspect_analysis_view with its reported same-session Evidence reference for a
summary, one section/module, or a stable page. Use trace_application_feature
once a seed is known, or call export_evidence_bundle to write the complete
session to a selected path. The analysis remains complete in the ledger; avoid
repeating it merely to request the same oversized response. Complete CLI JSON
output also streams without a single MCP frame.
Every conclusion must distinguish observations, inferences, and unknowns. Cite
Evidence IDs, preserve limitations and incomplete coverage, and never imply
that static analysis observed execution. Runtime requests execute the declared
target and lifecycle; do not broaden the target or action beyond those fields.
Within the user's requested investigation, call available analysis tools
directly. REA does not require permission grants or per-call approval flags.
Follow the declared request scope and the host's actual access requirements.
Plan broader investigations
For requests that span multiple features or subsystems, use a staged workflow:
- Turn the request into a checklist of questions and the evidence each answer
needs. Resolve target identity and constraints from the conversation and
workspace before asking for information again.
- Inspect the current REA session, artifact identity, saved analysis database,
bookmarks, and prior evidence. Reuse matching state; do not open duplicate
sessions or repeat identical analysis.
- Start with the smallest useful overview or inventory. Follow each question
from its entry point through relevant data and state changes to its result.
Batch related operations around a specific hypothesis, then expand only when
the returned evidence leaves a concrete gap.
- Inspect relevant packaged resources and configuration alongside code when
they affect the question. Use format-aware inventory and parsers; do not
infer behavior from filenames, strings, or layout alone.
- Corroborate a conclusion with the evidence type it requires. Use runtime
observation only when static evidence cannot answer the question and the
required host runtime and OS access are available. For JavaScript behavior,
run probes against the actual app through the available browser, Electron,
or process capture workflow.
- Decompose work into independent questions. When parallel workers are
available and the questions do not depend on one another, assign distinct
scopes, point workers to existing evidence, and ask them to return sources,
conclusions, and unresolved gaps. Otherwise, work sequentially.
- Keep a concise finding ledger linking each conclusion to Evidence IDs,
confidence/evidence type, search boundary, and remaining unknowns. Update
the shared index or investigation report so later passes can reuse results.
Before finishing, revisit the original checklist. Mark each question as
answered, partially answered, or unresolved based on its evidence; keep
bounded negative searches bounded, and do not describe a broad investigation
as complete while required questions remain open.
Read only the relevant guide
- Native binaries, managed assemblies, archives, and extraction:
references/native-and-artifacts.md
- ASARs, extracted JavaScript, feature tracing, and version comparison:
references/javascript-applications.md
- Android APK declarations, classes, methods, and static references:
references/android-applications.md
- Passive browser/Electron observation and static/runtime reconciliation:
references/runtime-observation.md
- Evidence paging, comparisons, residual unknowns, and verification:
references/evidence-workflows.md
Finish the task
Explain findings in plain language and tie them to returned evidence. When the
user asks to build something, use normal coding tools and separate observed
behavior from design choices. Close an opened native session with
close_binary when the investigation is complete.
1---2name: reverse-engineer-anything3description: Use REA to investigate shipped apps, binaries, packages, and runtimes; trace features with evidence, compare versions, or guide reconstruction. Skip ordinary source-code analysis.4risk: critical5source: "https://github.com/morluto/rea/tree/main/skill-src/reverse-engineer-anything"6source_repo: "morluto/rea"7source_type: community8date_added: "2026-10-10"9license: "MIT"10license_source: "https://github.com/morluto/rea/blob/main/LICENSE"11metadata:12 source: https://skillmd.com/skills/lokah1945/reverse-engineer-anything13 version: "34"14---1516# REA1718## External tool prerequisite1920Use only an already installed tool whose exact version, complete dependency tree and integrity have been reviewed. This skill does not bootstrap tools or activate external plugins. If the prerequisite is missing, stop that executable path and report it; continue with static analysis when possible. A separate installation task must pin immutable artifacts, stage them outside active agent directories with lifecycle scripts disabled, inspect every bundled file and executable entry point (including tests and hooks), and obtain approval before activation or host configuration changes. Do not substitute a same-named workspace script or fetch a moving branch.212223## Current upstream location2425The active authored skill is at [morluto/rea — reverse-engineer-anything](https://github.com/morluto/rea/tree/main/.agents/skills/reverse-engineer-anything). The `source` frontmatter retains the historical import location to preserve provenance identity; that old path is not a current installation URL. Use the active link for upstream inspection and retain the reviewed local reference bundle. A moving upstream branch is reference material, not approval to install or execute it.2627## When to Use2829- Use when a claim depends on a shipped application, binary, package, or requested runtime evidence.30- Use for decompilation, evidence-backed feature traces, version comparisons, or investigation-guided reconstruction.31- Skip REA for ordinary source-code analysis of a complete repository.3233Use REA when a claim depends on a shipped binary or package, decompilation,34passive application runtime evidence, or comparison with35behavior not established by available source. For ordinary analysis of a36complete source repository, use normal repository tools and do not run REA37readiness or provider commands.3839## Limitations4041- The skill supplies investigation guidance; it does not register the REA MCP server or install analysis engines.42- Native-analysis availability depends on the selected provider, host, and target format. Hopper is separate licensed software; Ghidra and IDA are bring-your-own.43- Static analysis does not establish runtime behavior or recover original source code. Report provider-specific coverage, partial results, and unknowns.44- REA runs analysis locally, but the connected model provider may have separate data-handling policies.4546## Connect only when needed4748Installing this skill supplies instructions; it does not register the REA MCP49server, install analysis engines, or add tools to an already-running agent.5051If REA tools are available and their registration is not known to be stale,52proceed directly to the target. Do not run diagnostics or setup before every53investigation. Use the connected server's actual tool list and input schemas;54a skill installed from repository main may describe capabilities absent from55an older npm release. Keep complete inline Evidence when that server does not56advertise retained references.5758When tools are absent or registration is stale:59601. Diagnose without changing files. For Codex, run61 `rea-agents doctor --client codex --json`. Substitute the current62 supported client: `claude_code`, `claude_desktop`, `codex`, `cursor`,63 `gemini_cli`, `windsurf`, `devin`, `opencode`, `antigravity`, `copilot_cli`,64 `commandcode`, `vscode`, `grok_build`, `omp`, or `grok_bot`. `grok_bot` has no local65 file registration: doctor reports the Grok Bot chat step, and setup does not66 write `mcp.json`. If the client is unknown, use `doctor --json` and67 inspect its registration results before choosing a setup scope.682. Distinguish the reason. Missing, malformed, or stale registration needs a69 scoped configuration repair. An aligned registration with no tools in the70 active session needs a restart/reconnection; doctor cannot prove that the71 current agent has connected. A missing provider affects only tasks requiring72 that provider: static JavaScript inspection needs neither Hopper nor Ghidra,73 and Android inspection has separate bring-your-own JADX/Java prerequisites.743. For a configuration repair, prepare the read-only plan:75 `rea-agents setup --client codex --dry-run --json`.76 Use the current client's ID, show its exact proposed paths, backups, and77 changes, and obtain approval before setup writes configuration or installs78 Hopper. Setup normally installs the matching bundled skill too; include that79 replacement in the reviewed plan. After approval, apply the same scope with80 `rea-agents setup --client codex --yes`. Add `--install-hopper`81 only if that separate installation was needed and explicitly approved.824. Restart/reconnect the affected agent. Verify that REA tools actually appear83 in the session, then resume the original investigation. If they remain84 absent, inspect the client's MCP launch error rather than repeating setup.8586REA setup never installs or upgrades Node.js, npm, Homebrew, Java, Ghidra, IDA,87JADX, Binwalk, or Unblob. Use existing prerequisites; do not install unrelated88software to repair89MCP registration. For an unsupported client, use manual stdio registration90with a version-pinned `rea-agents` package or continue through the CLI.9192A concrete CLI fallback for an operator-supplied JavaScript tree or ASAR is:9394```bash95rea-agents analyze-javascript-application /absolute/path/to/app --json96```9798No MCP registration or native engine is required. Read the returned Evidence,99graph, limitations, and unknowns with the same care as an MCP result; the CLI100returns the Evidence record directly. This fallback does not establish that101MCP is configured. Native CLI tasks still require their selected engine.102103## Route the target first104105Choose the first tool from the target the user supplied. Use `open_binary` for106active-target native or archive workflows; target-free tools take their own107explicit path or endpoint and do not need it.108109- ASAR or extracted JavaScript/Electron tree:110 `analyze_javascript_application`.111- Archive/package member inventory (ZIP/APK/IPA/MSIX/AppX or DMG):112 `open_binary` with the supplied local path; use `inspect_artifact` when its113 graph and findings help answer the question.114- Android APK code, classes, methods, or incoming references:115 `inspect_android_package`, then focused Android tools when advertised.116 Archive member inventory still uses the archive route above.117- Managed PE/CLI assembly: `inspect_managed_artifact`.118- Firmware image: `inspect_firmware_regions` when advertised. Use119 `extract_firmware` when extraction is requested, with a caller-selected new120 absolute output directory. These tools use caller-supplied Binwalk/Unblob on121 Linux; see the [firmware guide](https://github.com/morluto/rea/blob/main/docs/firmware-analysis.md).122- .NET NativeAOT PE/ELF: native Ghidra analysis. Native code can yield pseudocode;123 consult the NativeAOT workflow in `references/native-and-artifacts.md` for124 optional metadata recovery and its supported host/layout boundary.125- User-owned browser page already open: `list_browser_targets`.126- Retained HAR/native mitmproxy capture: `inspect_web_network_capture`. Select127 original record ordinals when useful; inspect producer fields and byte/number128 sidecars without fetching recorded URLs or claiming live attribution. See129 [historical captures](https://github.com/morluto/rea/blob/main/docs/web-network-captures.md) for the exact upstream130 profile and credential exclusions.131- User-owned Electron runtime already open: `list_electron_targets`.132- Explicit local EVM bytecode carrier: `inspect_evm_interface` with caller-selected133 `raw` or `hex` encoding. Preserve carrier/decoded digests and treat selectors,134 argument strings and mutability as inferred candidates; this performs no chain135 lookup or target execution. See the136 [EVM bytecode guide](https://github.com/morluto/rea/blob/main/docs/evm-bytecode.md).137- Explicit Linux ELF file for offline layout, symbols, relocations or static138 mitigation evidence: `inspect_binary_layout`. This target-free operation uses139 caller-supplied pwntools without opening a disassembler database. Preserve its140 raw locations and inference/coverage limits; see the141 [offline binary guide](https://github.com/morluto/rea/blob/main/docs/binary-diagnostics.md).142- Supplied Linux x86-64 ELF core: `inspect_recorded_crash`. Read every recorded143 thread, raw note and source-bound register without opening a live target.144 Historical PIDs do not select live processes. Request `include_debugger_context`145 only when core-only mapping candidates help; see the146 [recorded crash guide](https://github.com/morluto/rea/blob/main/docs/recorded-crashes.md).147- Native executable, library, or analysis database: `open_binary`, then148 use focused analysis tools directly; call `binary_overview` when metadata or149 inventory context is useful and available from the selected provider.150151For an existing IDA MCP configuration, use `open_binary` with the original152input binary and `provider_id: "ida"`; do not pass an `.idb` or `.i64` database.153The legacy attached profile binds the already-open GUI input by SHA-256 and154leaves its database open. The modern headless profile creates and closes an155owned private database without saving. Installation and registration reuse156[mrexodia/ida-pro-mcp](https://github.com/mrexodia/ida-pro-mcp); see the157[IDA provider guide](https://github.com/morluto/rea/blob/main/docs/ida-provider.md).158Proceed directly to `analyze_function`, pseudocode, or function/string searches159after opening; IDA does not supply `binary_overview`. Consult session availability160when composing broader workflows. Modern direct callers and unsupported dossier161facets remain unknown; live IDA results are not replayed from snapshots.162163If the app is missing, ask which app to inspect. Resolve a human-readable app164name to one clear installed artifact when possible; ask only when matches are165ambiguous. Never choose an example app on the user's behalf.166167In a target-free session, use `open_binary` to bind any archive/package or168native target whose analysis tool operates on the active target. Do not call an169unadvertised tool; inspect `binary_session` with `{}` and its170`result.tool_availability` for availability reasons and remediation. The tool171list stays complete; availability depends on the operation, target, and host.172173## Work summary-first174175Start with the default result and use its inline Evidence and graph context.176Do not repeat an identical tool call. Make a focused follow-up only when the177returned result leaves a specific question unanswered.178179If MCP reports `resource_constraint` with `details.resource: "transport"`, call180`inspect_analysis_view` with its reported same-session Evidence reference for a181summary, one section/module, or a stable page. Use `trace_application_feature`182once a seed is known, or call `export_evidence_bundle` to write the complete183session to a selected path. The analysis remains complete in the ledger; avoid184repeating it merely to request the same oversized response. Complete CLI JSON185output also streams without a single MCP frame.186187Every conclusion must distinguish observations, inferences, and unknowns. Cite188Evidence IDs, preserve limitations and incomplete coverage, and never imply189that static analysis observed execution. Runtime requests execute the declared190target and lifecycle; do not broaden the target or action beyond those fields.191192Within the user's requested investigation, call available analysis tools193directly. REA does not require permission grants or per-call approval flags.194Follow the declared request scope and the host's actual access requirements.195196## Plan broader investigations197198For requests that span multiple features or subsystems, use a staged workflow:1992001. Turn the request into a checklist of questions and the evidence each answer201 needs. Resolve target identity and constraints from the conversation and202 workspace before asking for information again.2032. Inspect the current REA session, artifact identity, saved analysis database,204 bookmarks, and prior evidence. Reuse matching state; do not open duplicate205 sessions or repeat identical analysis.2063. Start with the smallest useful overview or inventory. Follow each question207 from its entry point through relevant data and state changes to its result.208 Batch related operations around a specific hypothesis, then expand only when209 the returned evidence leaves a concrete gap.2104. Inspect relevant packaged resources and configuration alongside code when211 they affect the question. Use format-aware inventory and parsers; do not212 infer behavior from filenames, strings, or layout alone.2135. Corroborate a conclusion with the evidence type it requires. Use runtime214 observation only when static evidence cannot answer the question and the215 required host runtime and OS access are available. For JavaScript behavior,216 run probes against the actual app through the available browser, Electron,217 or process capture workflow.2186. Decompose work into independent questions. When parallel workers are219 available and the questions do not depend on one another, assign distinct220 scopes, point workers to existing evidence, and ask them to return sources,221 conclusions, and unresolved gaps. Otherwise, work sequentially.2227. Keep a concise finding ledger linking each conclusion to Evidence IDs,223 confidence/evidence type, search boundary, and remaining unknowns. Update224 the shared index or investigation report so later passes can reuse results.225226Before finishing, revisit the original checklist. Mark each question as227answered, partially answered, or unresolved based on its evidence; keep228bounded negative searches bounded, and do not describe a broad investigation229as complete while required questions remain open.230231## Read only the relevant guide232233- Native binaries, managed assemblies, archives, and extraction:234 [references/native-and-artifacts.md](references/native-and-artifacts.md)235- ASARs, extracted JavaScript, feature tracing, and version comparison:236 [references/javascript-applications.md](references/javascript-applications.md)237- Android APK declarations, classes, methods, and static references:238 [references/android-applications.md](references/android-applications.md)239- Passive browser/Electron observation and static/runtime reconciliation:240 [references/runtime-observation.md](references/runtime-observation.md)241- Evidence paging, comparisons, residual unknowns, and verification:242 [references/evidence-workflows.md](references/evidence-workflows.md)243244## Finish the task245246Explain findings in plain language and tie them to returned evidence. When the247user asks to build something, use normal coding tools and separate observed248behavior from design choices. Close an opened native session with249`close_binary` when the investigation is complete.