agentleFS
EitaPreulaJholEitaPreulaJhol/ida_mcp/skills/ida/SKILL.md

ida

Skill3 starsChanged 16 days agoMITView on GitHub

Connect to IDA Pro through the ida_mcp plugin and reverse engineer the open binary with lazy-loaded tools. Use this whenever the user wants to analyze, decompile, trace, annotate, debug, or signature-scan a binary currently open in IDA Pro, or says \"/ida\". Starts with a 16-tool triage profile and escalates (readonly, full, unsafe, debugger) only as needed.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 2 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the MCP client was configured with a fixed URL, state which step you need and ask the user to reconnect with the suffix (or reconfigure).

    line 43
  2. Very specific:

    Call server_health(). If it fails, the IDA plugin is not serving: tell the user to open IDA Pro with a binary and confirm the [ida-mcp] …

    line 51
  3. Very specific:

    If a tool call errors with requires extension or requires unsafe mode or is not in profile, treat it as a routing signal: map it to the …

    line 55
  4. Very specific:

    Call survey_binary() FIRST (detail_level="minimal" on huge binaries).

    line 61
  5. Very specific:

    Do not call list_funcs/list_imports separately for triage.

    line 64
  6. Very specific:

    No session? Use hook tracers instead: install_idb_hook(), install_hexrays_hook(), read with get_hook_info(), clean with remove_hooks().

    line 99
  7. Very specific:

    Write re/summary.md (overview), re/analysis.md (per-function), re/findings.md (passwords, algorithms, vulnerabilities).

    line 105
  8. Very specific:

    Never hand-compute number bases: Use int_convert for any conversion.

    line 111
  9. Distinctive:

    Derive, don't assume: Every claim needs decompilation, xref, or data-flow evidence behind it.

    line 112
  10. Very specific:

    Pace IDA calls — IDA has ONE main thread: Every tool (and every execute_script) runs on it.

    line 120
  11. Very specific:

    NOT conclude IDA is down: wait 15–30s, check server_health (or ida_status in pi), then continue with a SMALLER call.

    line 128

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hard rule: IDA has one main thread. Issue one tool call at a time and wait for its result. Do not fan out parallel tool calls or put multiple tools/call requests in the same turn. If your client has parallel tool use enabled, turn it off for this endpoint. The server serializes concurrent calls through a bounded queue; parallel requests only add queue wait.

What I do

I connect to IDA Pro lazily: verify the bridge is up, triage with a minimal toolset, then progressively unlock more tools (profiles → unsafe → debugger) only when the task demands it. I never preload all 247 tools into context — most MCP clients cap tool slots, and a 16-tool triage set keeps small models on-task.

Trigger

Activate when the user types /ida, mentions analyzing a binary in IDA Pro, or asks about a binary/driver that is open in IDA. Ask ONE clarifying question only if it is unclear whether write tools (?unsafe=true) are available — otherwise assume read-only and escalate later.

Endpoint ladder (escalate top-down, stop at the first that suffices)

StepEndpoint suffixTools visibleUse when
1?profile=triage16 (health, survey, list, decompile, xrefs)Always start here
2?profile=readonly187 (all safe reads)Triage is insufficient
3(no profile)187 (same safe set, no profile filter)Rarely needed: identical to readonly, just unfiltered
4?unsafe=true+ renames, comments, types, patches, scriptsAnnotating / modifying the IDB
5?unsafe=true&ext=dbg+ 19 debugger toolsLive debugging session

If the MCP client was configured with a fixed URL, state which step you need and ask the user to reconnect with the suffix (or reconfigure). Never request step 4–5 "just in case" — justify each escalation in one sentence.

Methodology

0. Connect (verify the bridge)

  • Call server_health(). If it fails, the IDA plugin is not serving: tell the user to open IDA Pro with a binary and confirm the [ida-mcp] listening on http://127.0.0.1:13337/mcp message in the IDA output window, then retry. Do NOT proceed to analysis without health ok.
  • If a tool call errors with requires extension or requires unsafe mode or is not in profile, treat it as a routing signal: map it to the ladder row above and escalate (asking the user when it crosses step 3→4).

1. Triage (one call)

  • Call survey_binary() FIRST (detail_level="minimal" on huge binaries). It returns metadata, top strings/functions by xref count, imports by category (crypto/network/file_io/process/registry), and call-graph summary. Do not call list_funcs/list_imports separately for triage.

2. Understand (per function of interest)

  • analyze_function(address) — capped pseudocode + strings, constants, callers, callees, comments, blocks in one call. Prefer over chaining.
  • decompile_function(address) — full uncapped pseudocode when needed (capped at 2000 lines with a notice).
  • func_query(...) / entity_query(kind, ...) — find functions, globals, strings, imports by glob/regex/size without dumping thousands of rows.
  • trace_data_flow(address, direction="backward") — multi-hop xref BFS from a string, constant, or global. callgraph(roots) for call structure.

3. Go deeper (readonly profile)

  • get_bytes / get_int / get_cstring for data; read_struct with a known type; get_operand_info / get_disassembly_text for instructions.
  • make_signature(addresses) for byte patterns; find_xref_signatures for data/string references; xrefs_to_field for struct fields.
  • get_microcode / get_flowchart / force_recompile for decompiler views (recompile after type changes, never re-call decompile hoping for refresh).

4. Annotate (unsafe only)

  • set_name (canonical rename), set_comment, set_type + declare_type, diff_before_after to verify a rename/type/comment improved readability.
  • idb_save() before any patching session; patch_bytes/patch_asm for bytes, execute_script for batch work.

5. Debug (unsafe + ext=dbg only)

  • dbg_start() (configured debugger required — never retry-loop; ask the user to configure IDA on failure), dbg_bps/dbg_add_bp, dbg_continue/dbg_step_into/dbg_step_over, dbg_regs/dbg_stacktrace/ dbg_read. Session must be suspended for inspection tools.
  • No session? Use hook tracers instead: install_idb_hook(), install_hexrays_hook(), read with get_hook_info(), clean with remove_hooks().

6. Report

  • Write re/summary.md (overview), re/analysis.md (per-function), re/findings.md (passwords, algorithms, vulnerabilities). Hex addresses (0x401000) throughout, with the tool that produced each claim.

Critical rules

  • Never hand-compute number bases. Use int_convert for any conversion.
  • Derive, don't assume. Every claim needs decompilation, xref, or data-flow evidence behind it.
  • Addresses and symbols are interchangeable ("main", "0x401000").
  • decompile_function/get_disassembly return plain text; every other tool returns a JSON string.
  • Do not brute-force. Static analysis + execute_script only.
  • Respect the ladder. A step-4/5 tool failing means the endpoint lacks the flag — explain and ask, don't work around it.
  • Pace IDA calls — IDA has ONE main thread. Every tool (and every execute_script) runs on it; while a call runs the IDA UI is frozen and the server queues other calls (bounded) and returns Server busy only when the queue is full. One IDA call at a time, never parallel fan-out. Keep each call short (well under the 60s tool timeout): prefer paginated tools (limit/offset, filters) over one giant call, and split scripts into batches.
  • Timeout / Server busy / no answer ≠ offline. It means the previous call is still holding the main thread. Do NOT re-run the same call and do NOT conclude IDA is down: wait 15–30s, check server_health (or ida_status in pi), then continue with a SMALLER call. Only report IDA as offline on connection refused after it has been idle.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.