ida-scripting

ida-scripting is a skill for Claude Code, Codex from buzzer-re/Rikugan. It costs 16 tokens per session (2,970 once invoked), scanned A, original, MIT.

A scripting helper for IDA Pro, a tool used to examine compiled programs when their original source code is unavailable. It helps write and run IDAPython, IDA's Python scripting interface.

In plain words
What is it for?
Use it to write IDAPython scripts, automate analysis tasks, modify program information, and inspect compiled code.
Why use it?
It removes repetitive manual work when analyzing functions, data, names, references, and program structure in IDA.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to write IDAPython scripts, automate analysis tasks, modify program information, and inspect compiled code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/buzzer-re/rikugan/ida-scripting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add buzzer-re/Rikugan --skill ida-scripting
Clone the repo
git clone --depth 1 https://github.com/buzzer-re/Rikugan

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ida-scripting

README.md
[![agentmods](https://agentmods.dev/badge/skills/buzzer-re/rikugan/ida-scripting/github.svg)](https://agentmods.dev/skills/buzzer-re/rikugan/ida-scripting)
Your own site
<a href="https://agentmods.dev/skills/buzzer-re/rikugan/ida-scripting"><img src="https://agentmods.dev/badge/skills/buzzer-re/rikugan/ida-scripting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ida-scripting

Your own site · 80×15
<a href="https://agentmods.dev/skills/buzzer-re/rikugan/ida-scripting"><img src="https://agentmods.dev/badge/skills/buzzer-re/rikugan/ida-scripting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,970 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.02970
Opus 5.5 $0.00006 $0.01188
Sonnet 5.5 $0.00003 $0.00594
Haiku 4.5 $0.00002 $0.00297

Measured 7d ago against content hash 1450d6d3570e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ida-scripting scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Process execution (subprocess, os.system, etc.) is blocked. Static analysis only.
skills/ida-scripting/SKILL.md · 287 lines

How it starts

The opening of the file, as written. The whole thing — 287 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Task: Help the user write IDAPython scripts. You have execute_python which runs code with all ida_* modules, idaapi, idautils, and idc pre-loaded.

Before starting, read skill://ida-scripting/references/api-reference.md with the read tool: it is the full API reference.

Guidelines

  • Use print() for all output — it's captured and returned to you.
  • Prefer the IDAPython API over raw tool calls when the task requires iteration, filtering, or complex logic that a single tool can't express.
  • Always handle None / BADADDR returns (e.g., ida_funcs.get_func() returns None if no function).
  • Use ida_auto.auto_wait() after bulk modifications to let auto-analysis settle.
  • For large outputs, summarize or paginate — don't dump thousands of lines.
  • Call ida_hexrays.mark_cfunc_dirty(ea) before re-decompiling a function you've modified.
  • IDA 9+ removed ida_struct and ida_enum — use ida_typeinf for all type operations.

Environment

The execute_python tool provides:

  • idaapi, idautils, idc — high-level wrappers
  • ida_funcs, ida_name, ida_bytes, ida_segment, ida_typeinf, ida_nalt, ida_xref, ida_kernwin, ida_hexrays, ida_lines, ida_search, ida_ida, ida_entry, ida_frame, ida_auto, ida_gdl, ida_netnode — low-level modules
  • Full Python stdlib (except subprocess/os.exec — blocked for safety)
  • BADADDR is available via idaapi.BADADDR

Quick Reference

Reading Data

val = ida_bytes.get_byte(ea)            # uint8
val = ida_bytes.get_dword(ea)           # uint32
val = ida_bytes.get_qword(ea)           # uint64
raw = ida_bytes.get_bytes(ea, size)     # bytes
s = ida_bytes.get_strlit_contents(ea, -1, ida_nalt.STRTYPE_C)

Functions

for func_ea in idautils.Functions():
    name = idc.get_func_name(func_ea)

func = ida_funcs.get_func(ea)           # func_t or None
# func.start_ea, func.end_ea, func.flags
idc.add_func(ea)                        # create function
ida_name.set_name(ea, "new_name", ida_name.SN_CHECK)

Read the full file on GitHub · 287 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · -1 lines 1450d6d3570e
  2. 3mo ago First seen · 288 lines · 16 tokens per session scan A 7bd8c68219cc

Subscribe to this mod's changes

ida-scripting is a skill published in the GitHub repository buzzer-re/Rikugan (716 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 2,970 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ida-scripting compared with skills from other repositories

ida-scripting next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ida-scriptingbuzzer-re/RikuganSkill716todayMITA16Claude Code, Codex
developing-with-streamlitstreamlit/streamlitSkill47ktodayApache-2.0A146Claude Code
eveComposioHQ/composioSkill31ktodayMITA47Claude Code, Codex
plugin-architecture-patternsxberg-io/xbergSkill9.7ktodayMITA15Claude Code
test-corpusxberg-io/xbergSkill9.7ktodayMITA15Claude Code, Codex
typescript-testingComposioHQ/composioSkill31ktodayMITA92Claude Code, Codex
cli-e2eComposioHQ/composioSkill31ktodayMITA62Claude Code, Codex