radareorg/radare2-skills/r2xsql
Claude Code and agent skill by radareorg/radare2-skills
- community
Checking that the SKILL.md file is still in the repository.
Open executables or saved radare2 projects for analysis with the r2xsql SQL plugin. Use for fresh headless analysis, restoring saved analysis, tandem with an interactive r2 CLI, text interface or iaito GUI, functions, strings, disassembly, decompilation, annotations, saving, and follow-up questions. Respect requests to use IDA or Ghidra instead.
Install
npx vskill@latest install radareorg/radare2-skills/r2xsqlSKILL.md
Read connect before attaching or starting a host. The user asks in natural language; you manage radare2 and issue SQL over its native HTTP server using curl. Installed r2xsql loads automatically; explicit L requires a plugin file, not the name r2xsql. Discover r2 or radare2 from PATH or the installation supplied by the user, and verify the loaded plugin.
Choose the session from the user's intent and known context:
- Existing endpoint / tandem: attach to the human's interactive CLI,
visual/panels text interface or iaito GUI host, verify its binary identity and reuse the open analysis. Do not launch another interactive host.
- Fresh executable: start native r2 as a background OS process, analyze
once with aaa, then serve with -e http.port=PORT -c '=h' inside that process.
- Saved project: restore with
-p PROJECTbefore serving; the project stores the
binary path. Use the matching native loader for a standalone binary container. Do not use aaa or -A. Keep the original executable available.
- Follow-up: reuse the matching live PID/endpoint. Retain a mapping of
session name, binary, project, endpoint and process ownership; several hosts may be used from one coding session.
Use quoted sqlj bodies with curl POST /cmd/ and check both the top-level and per-statement success/error fields. Use SQL for analysis and annotations; native r2 commands on the same endpoint handle server/project lifecycle. Do not introduce Python query/session wrappers or build tooling for analysis.
Read only the relevant domain skill:
- disassembly: functions, instructions and CFGs.
- decompiler: runtime-gated pseudocode; identify the
backend and check uncertain pseudocode against assembly.
- xrefs: callers, callees and references.
- data / grep: strings, bytes and names.
- analysis: triage across tables.
- annotations: requested renames, comments and saves.
- re-source: deeper recovery and type refinement.
On “save the database/project”, preserve the current analysis with native Ps, normally to the absolute <binary-path>.r2 beside the executable unless the user chooses another location. Verify the saved artifact and report its location. There is no SQL save_database() in this build. Saving does not stop the host; keep it running for follow-ups. On an explicit shutdown request, save if requested, verify first, then stop only the intended agent-owned headless host. In tandem mode stop the server without closing the user's interactive host.
On the command line, an uninstalled matching plugin can be loaded with -i PLUGIN_FILE; L PLUGIN_FILE is the interactive-console equivalent. Native projects support binary serialization and script compatibility; -i SCRIPT interprets an explicit command-script export.
The session guide contains launch, curl, save/restore and shutdown details. User-facing installation and UI handoff instructions belong in the README, not solely in these skills.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingr2xsql/r2xsql/SKILL.md
Popularity
- 7-day trend score
- 0
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/r2xsql)