Claude Code and Codex plugin packaging for bnsql — a live SQL interface to Binary Ninja databases.
- Binary Ninja installed with
BN_INSTALL_DIRset (or Binary Ninja's install dir onPATH) - bnsql from Releases placed on
PATH(or next tobinaryninja.exe) - Verify:
bnsql -h
/plugin marketplace add 0xeb/bnsql-skillsUse the plugin packaging, not a flat copy into ~/.codex/skills. The plugin path preserves the bnsql namespace so generic skill names like xrefs, data, and types do not collide with other skills.
- Clone this repo anywhere temporary:
git clone https://github.com/0xeb/bnsql-skills- Copy the plugin directory into your home plugins folder:
mkdir -p ~/plugins
cp -R bnsql-skills/plugins/bnsql ~/plugins/- Create or update
~/.agents/plugins/marketplace.jsonso it contains:
{
"name": "bnsql-tools",
"interface": {
"displayName": "BNSQL"
},
"plugins": [
{
"name": "bnsql",
"source": {
"source": "local",
"path": "./plugins/bnsql"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Reverse Engineering"
}
]
}- Restart Codex.
The Codex plugin manifest lives at plugins/bnsql/.codex-plugin/plugin.json, and the skills live under plugins/bnsql/skills/.
If you want to test directly from a checkout, keep the repo where it is and use the bundled marketplace file at .agents/plugins/marketplace.json. Codex should resolve ./plugins/bnsql relative to the repo root.
SKILL.mdis the canonical skill contract and remains the source of truth.- Per-skill Codex UI metadata lives in each skill's optional
agents/openai.yamland does not replaceSKILL.md. - Codex plugin packaging lives alongside the Claude packaging so this repo can support both without renaming the underlying skills.
| Skill | Description | When to Use |
|---|---|---|
connect |
Connection, CLI, HTTP, MCP, routing index | Starting a session, CLI options, HTTP/MCP server, pragmas |
disassembly |
Functions, segments, instructions, blocks | Querying disassembly, instruction analysis |
data |
Strings, bytes, binary pattern search (search_bytes) |
String search, byte access, binary pattern search |
xrefs |
Cross-references and imports | Caller/callee analysis (callers/callees views), import queries |
decompiler |
HLIL decompiler reference | Decompilation, HLIL variables, function calls |
annotations |
Edit and annotate decompilation | Comments, renames, type application, explicit save |
types |
Type system mechanics | Structs, enums, typedefs, function signatures |
functions |
SQL functions reference | Look up any bnsql SQL function signature |
analysis |
Analysis workflows and scenarios | Security audits, library detection, advanced SQL patterns |
- The supported Codex path is plugin-based installation. Flat installs into
~/.codex/skillsare possible, but only if you manually rename every skill with abnsql-prefix to avoid collisions. - The plugin-based layout keeps the repo's natural
bnsqlownership model intact.
Elias Bachaalany (@0xeb)
This project and all its contents — including skill definitions, reference documentation, and configuration files — are licensed under the MIT License.