radareorg/radare2-skills/decompiler
Claude Code and agent skill by radareorg/radare2-skills
- community
Checking that the SKILL.md file is still in the repository.
Get pseudocode for radare2 functions via r2xsql. Use when asked for a higher-level view of a function than raw disassembly. Runtime-gated by an installed decompiler plugin (r2ghidra / r2dec / built-in pdc).
Install
npx vskill@latest install radareorg/radare2-skills/decompilerSKILL.md
When to use
Pick this skill when the user wants readable pseudocode for a function (or wants to grep across pseudocode for many functions). For raw assembly use the disassembly skill.
Runtime gating
The pseudocode table is only registered if a decompiler is available. At session bootstrap r2xsql probes in this order:
| probe | provided by | r2xsql command | |
|---|---|---|---|
pdg? | r2ghidra (recommended) | pdg @ <addr> | |
pdd? | r2dec | pdd @ <addr> | |
pdc? | r2 built-in | pdc @ <addr> |
The first probe that succeeds wins. The pseudocode table is registered only when a decompiler is detected, so check for it:
If no decompiler is installed, SELECT … FROM pseudocode returns no such table: pseudocode. Install r2ghidra via:
Tables
| table | columns | |
|---|---|---|
pseudocode | func_addr, text |
Always filter by func_addr — decompiling every function in a binary on demand is prohibitively slow. The table uses filter_eq pushdown on func_addr, so a single-function query is one r2 command, not a full enumeration.
Common queries
Caveats
- Different decompilers produce wildly different output — never write
brittle string-matching against pseudocode for downstream parsing.
- Identify the available backend when reporting pseudocode. Built-in
pdc
is an approximate pseudodecompiler; inferred signatures and return values can be misleading. Check uncertain semantics against instructions, such as mov al, 1, which writes only AL rather than the complete RAX register.
- Decompilation is slow; the table doesn't cache across sessions.
Reopen with -p NAME to keep the analysis warm, but the pseudocode itself is re-rendered per query.
- Some functions decompile to a comment like
// Not yet implemented
for thunks, leaf functions, or anything r2's analysis can't handle.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingr2xsql/decompiler/SKILL.md
Popularity
- Repository stars
- 24
- Repository forks
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/radareorg/radare2-skills/decompiler)