Binary Modification

Binary Modification is a skill for Claude Code, Codex from buzzer-re/Rikugan. It costs 17 tokens per session (917 once invoked), scanned A, original, MIT.

A workflow for changing the behavior of a compiled program from a natural-language request. It explores the binary, identifies relevant functions and instructions, then applies and saves a minimal patch.

In plain words
What is it for?
Use it to inspect executables, find code related to a requested behavior, and patch that behavior with binary-analysis tools.
Why use it?
It gives binary changes a traceable investigation and verification process before modifying the file.

Skill for Claude CodeCodex

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

Good fit Use it to inspect executables, find code related to a requested behavior, and patch that behavior with binary-analysis tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/buzzer-re/rikugan/modify
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 modify
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 Binary Modification

README.md
[![agentmods](https://agentmods.dev/badge/skills/buzzer-re/rikugan/modify/github.svg)](https://agentmods.dev/skills/buzzer-re/rikugan/modify)
Your own site
<a href="https://agentmods.dev/skills/buzzer-re/rikugan/modify"><img src="https://agentmods.dev/badge/skills/buzzer-re/rikugan/modify/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 Binary Modification

Your own site · 80×15
<a href="https://agentmods.dev/skills/buzzer-re/rikugan/modify"><img src="https://agentmods.dev/badge/skills/buzzer-re/rikugan/modify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 917 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00017 $0.00917
Opus 5.5 $0.00007 $0.00367
Sonnet 5.5 $0.00003 $0.00183
Haiku 4.5 $0.00002 $0.00092

Measured 1mo ago against content hash 505eb37b75e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Binary Modification scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rikugan/skills/builtins/modify/SKILL.md · 83 lines

How it starts

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

Task: Modify the binary's behavior based on the user's natural language description. You will autonomously explore the binary to understand it, formulate a concrete plan, and apply minimal patches.

Phase 1: Exploration Strategy

Your goal is to build enough understanding of the binary to know WHERE and HOW to make the requested change. Use exploration_report to log every significant finding.

Step 1: Orientation (1-2 turns)

  • get_binary_info — architecture, format, size
  • list_imports + list_exports — what APIs does the binary use?
  • search_strings / list_strings_filter with keywords from the user's request
    • For a game mod request mentioning "snake", search for: "snake", "score", "point", "length", "size", "spawn", "init", "level", "life", "speed"
    • Cast a wide net with goal-relevant keywords

Step 2: Targeted Search (2-5 turns)

  • From string hits, use xrefs_to to find which functions reference them
  • From import hits, use xrefs_to to find call sites
  • search_functions for names containing relevant keywords
  • Build a shortlist of candidate functions
  • Log each candidate with exploration_report(category="function_purpose")

Step 3: Deep Dive (3-10 turns)

  • decompile_function on the most promising candidates
  • Trace data flow: where does the target value come from? Where is it used?
  • Identify exact instructions and constants that control the behavior
  • Use get_il for detailed intermediate representation when needed
  • Form concrete hypotheses and log with exploration_report(category="hypothesis")
    • Example: "Changing the constant 3 at 0x401248 to 6 would double the snake's initial length"
    • Example: "Multiplying the score increment at 0x4015C2 by 2 would double points"

Step 4: Transition Decision

  • When you have identified ALL locations that need to change, call phase_transition(to_phase="plan")
  • If you're stuck or the binary is too complex, use ask_user to get hints
  • Don't transition too early — make sure you understand the full picture

Read the full file on GitHub · 83 lines

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. 1mo ago First seen · 83 lines · 17 tokens per session scan A 505eb37b75e9

Subscribe to this mod's changes

Binary Modification is a skill published in the GitHub repository buzzer-re/Rikugan (690 stars, last pushed 8d ago), licensed MIT. It adds 17 tokens to every session and 917 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

create-patch

Create or continue an authorized Morphe Android patch from an APK and requested change. Use when the user wants the complete workflow: APK reconnaissance, decompilation, target discovery, smali verification, patch implementation, and local validation.

Paresh-Maheshwari/morphe-ai · 0 tokens

validate-patch

Build, list, and locally apply Morphe patches to verify registration and fingerprint matching. Use after patch source exists or when diagnosing build and match failures.

Paresh-Maheshwari/morphe-ai · 34 tokens

find-patch-targets

Find Morphe patch targets in decompiled Android source and verify each target against exact smali bytecode. Use after decompiled source and smali exist.

Paresh-Maheshwari/morphe-ai · 0 tokens

write-patch

Implement an approved Morphe patch design from smali-verified findings. Use only after target evidence exists and the user has approved the proposed source changes.

Paresh-Maheshwari/morphe-ai · 34 tokens

python-large-file-patch-{{AGENT_NAME_LOWER}}

How to patch large Python files in the {{AGENTNAME}} codebase. Covers the dual-file layout (runtime /.{{AGENTNAMELOWER}}/agent/ vs source /.{{AGENTNAMELOWER}}/source/{{AGENTNAMELOWER}}-agent/), diagnose-fallback when direct patch fails, and the copy-sync protocol to keep both copies aligned.

humanerd-drew/opencode-drewgent · 89 tokens

patch-diff-analyzer

Specialized in reverse-engineering compiled binaries (JARs, DLLs). Use this when the user asks to compare versions, find security fixes, or analyze binary patches.

zebbern/termstack · 41 tokens