Command Palette

Search for a command to run...

Назад к скиллам
скилл № 68513

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от 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 PROJECT before 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.

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить r2xsql с