r2xsql
Open executables or saved radare2 projects for analysis with the r2xsql SQL plugin. Use for fresh headless analysis, restoring saved analysis, tandem with an…
от radareorg★ 23 звезды на GitHub
Установить r2xsql в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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 useaaaor-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.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл r2xsql?
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.
Как установить скилл r2xsql?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл r2xsql запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…