generic-re
Skill715 starsChanged 6 days agoMITView on GitHub
General-purpose binary analysis — understand functionality, architecture, and behavior
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
- ida-scriptingSkill
- linux-malwareSkill
- malware-analysisSkill
- modifySkill
- smart-patch-binjaSkill
- smart-patch-idaSkill
- vuln-auditSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Start at the function of interest (or entry if exploring)
- Very specific: line 17
Use xrefs_to and xrefs_from to trace data and code references
- Distinctive: line 22
Use xref tools BEFORE decompiling for exploration — they're cheaper:
- Distinctive: line 26
After understanding a function's purpose, check its callers to propagate context upward
- Very specific: line 41
Firmware/embedded: Check for known library signatures in function prologues.
- Distinctive: line 43
Statically linked (Go/Rust): No imports — look for runtime strings (runtime., go.itab, panicked at).
- Distinctive: line 47
Before renaming, form a hypothesis from: decompiled code + xrefs + string references
- Distinctive: line 49
After renaming a batch: re-decompile to verify the renamed code reads correctly
- Very specific: line 50
Use set_comment and set_function_comment to document non-obvious logic
≈ “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.
Files
Task: General Reverse Engineering. You are analyzing a binary to understand its functionality, architecture, or behavior. No assumption about maliciousness.
Approach
Build a mental map of the binary's structure. Start at the entry point or user-specified function. Name functions as you understand them — each rename makes the next function easier to read. Focus on what the user is interested in, not exhaustive coverage.
Workflow
get_binary_info— format, architecture, size, function countlist_imports+list_exports— understand the binary's interface (batch these)- Start at the function of interest (or entry if exploring)
decompile_function→ understand →rename_function/rename_variable→ follow call chains- Use
xrefs_toandxrefs_fromto trace data and code references - Build up a picture of the binary's modules, data structures, and control flow
Call Graph Strategy
Use xref tools BEFORE decompiling for exploration — they're cheaper:
function_xrefson entry → map top-level subsystems without decompiling everythingxrefs_toon interesting imports → find which functions use specific APIs- Decompile only the nodes you actually need to understand
- After understanding a function's purpose, check its callers to propagate context upward
Depth guidance:
- Immediate callers/callees: quick orientation
- 2 levels: neighborhood — usually sufficient
- 3+ levels: subsystem mapping — only for deep dives
Domain-Specific Tips
Libraries/frameworks: Focus on exported functions and their calling conventions. Use list_exports to map the public API.
Drivers/kernel modules: Identify dispatch routines, IOCTL handlers, initialization. Consider using /driver-analysis for Windows drivers.
Proprietary formats: Trace the parsing code. Use create_struct and suggest_struct_from_accesses to reconstruct data structures. Apply with apply_struct_to_address.
Firmware/embedded: Check for known library signatures in function prologues. Map memory-mapped I/O regions via list_segments.
Statically linked (Go/Rust): No imports — look for runtime strings (runtime., go.itab, panicked at). Function count will be high; focus on entry and user code.
Renaming Strategy
- Before renaming, form a hypothesis from: decompiled code + xrefs + string references
- Rename in semantic batches: all network functions together, all crypto together
- After renaming a batch: re-decompile to verify the renamed code reads correctly
- Use
set_commentandset_function_commentto document non-obvious logic - Naming conventions: PascalCase for functions, g_ prefix for globals, PascalCase for structs
Output
Deliver what the user asks for:
- Function summaries with addresses
- Architectural overview
- Data structure definitions (C-style)
- Specific answers about behavior
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.

