modify
Skill715 starsChanged 5 days agoMITView on GitHub
Modify binary behavior using natural language — explore, plan, patch, save
3 other projects use a version of this.
Adopted by
Most recently taken up by
- pleb/grafttheir own version, first seen Nov 22, 2026
- CraftOS-dev/Agent-Apptheir own version, first seen Nov 8, 2026
- IvanGomezMartinez/MatStudyLabtheir own version, first seen Aug 11, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- CraftOS-dev/Agent-App★ 14same name
- pleb/graft★ 9same name
- IvanGomezMartinez/MatStudyLab★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- webpage/llms.txtllms.txt
- binja-scriptingSkill
- ctfSkill
- deobfuscationSkill
- driver-analysisSkill
- generic-reSkill
- ida-scriptingSkill
- linux-malwareSkill
- malware-analysisSkill
- smart-patch-binjaSkill
- smart-patch-idaSkill
- vuln-auditSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 9 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Use get_il for detailed intermediate representation when needed
- Distinctive: line 36
When you have identified ALL locations that need to change, finish your turn with a summary of your findings and no further tool calls.
- Very specific: line 37
If you're stuck or the binary is too complex, use ask_user to get hints
- Distinctive: line 38
Don't transition too early — make sure you understand the full picture
- Distinctive: line 42
When you transition to the PLAN phase, you will receive a synthesis prompt with your accumulated findings.
- Distinctive: line 60
IDA Pro: read skill://smart-patch-ida with the read tool
- Distinctive: line 61
Binary Ninja: read skill://smart-patch-binja with the read tool
- Distinctive: line 66
After each patch, you MUST call:
- Distinctive: line 74
Never exceed original instruction boundaries
- Distinctive: line 76
Always backup before patching
- Distinctive: line 77
Always verify after patching
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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, sizelist_imports+list_exports— what APIs does the binary use?search_stringswith 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_toto find which functions reference them - From import hits, use
xrefs_toto find call sites search_functionsfor 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_functionon 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_ilfor 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, finish your turn with a summary of your findings and no further tool calls; the plugin then moves to the plan phase
- If you're stuck or the binary is too complex, use
ask_userto get hints - Don't transition too early — make sure you understand the full picture
Phase 2: Planning Guidelines
When you transition to the PLAN phase, you will receive a synthesis prompt with your accumulated findings. Create a numbered plan where each step specifies:
- Exact address to modify (hex)
- Current behavior at that address (what the code does now)
- Desired behavior (what it should do after the patch)
- Patch strategy (which bytes/instructions to change, new values)
Be precise. The plan will be shown to the user for approval before execution.
Example format:
1. Change snake initial length constant at 0x401248 from 3 to 6 (mov eax, 3 -> mov eax, 6)
2. Double score increment at 0x4015C2: change `add [score], 10` to `add [score], 20`Phase 3: Execution
The agent host determines which patching skill to use:
- IDA Pro: read skill://smart-patch-ida with the read tool
- Binary Ninja: read skill://smart-patch-binja with the read tool
The host is visible in the system prompt context. Read the correct skill at the start of Phase 3, then follow its workflow for each planned change.
After each patch, you MUST call:
exploration_report(category="patch_result", address=..., summary="...", original_hex="...", new_hex="...")This is required for the Phase 4 save gate to know what was applied.
Safety Rules
- Never exceed original instruction boundaries
- NOP-pad if new instructions are shorter
- Always backup before patching
- Always verify after patching
- Revert on failure (write back original bytes)
- Minimal changes only — patch the fewest bytes possible
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
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.

