What problem does it solve?
Reverse engineering tasks often outgrow the fixed set of structured MCP tools that ReVa exposes, forcing analysts to either make many slow round-trips or give up on custom analysis. This Skill lets an assistant write, run, save, and edit Python (PyGhidra) scripts directly inside the live Ghidra session, unlocking the full Ghidra Java API for custom analysis passes.
Core Features & Use Cases
- Inline script execution: Send one-shot Python code to the
run-script tool with pre-bound Ghidra globals like currentProgram, toAddr, and getFunctionAt, with captured stdout/stderr and cooperative timeout handling.
- Script lifecycle management: Use
list-scripts, read-script, write-script, and edit-script to discover, persist, and iterate on reusable .py scripts in Ghidra's registered script directories.
- Deep API references: Bundled cheat-sheets cover the Flat API, decompiler internals (HighFunction, Varnode, PcodeOp), JPype interop pitfalls, and copy-pasteable recipes for xrefs, batch renames, struct definition, emulation, and data-flow tracing.
- Use Case: Ask the assistant to find every callsite of
WinExec and trace which constant is passed as its first argument; it writes an inline PyGhidra script that decompiles callers, walks PCode def-use chains, and returns structured JSON results.
Quick Start
Ask the assistant to run a PyGhidra script against the current program, for example to list all functions larger than 4096 bytes with their entry points.