agentleFS
buzzer-rebuzzer-re/Rikugan/skills/generic-re/SKILL.md

generic-re

Skill715 starsChanged 6 days agoMITView on GitHub

General-purpose binary analysis — understand functionality, architecture, and behavior

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
  1. Distinctive:

    Start at the function of interest (or entry if exploring)

    line 15
  2. Very specific:

    Use xrefs_to and xrefs_from to trace data and code references

    line 17
  3. Distinctive:

    Use xref tools BEFORE decompiling for exploration — they're cheaper:

    line 22
  4. Distinctive:

    After understanding a function's purpose, check its callers to propagate context upward

    line 26
  5. Very specific:

    Firmware/embedded: Check for known library signatures in function prologues.

    line 41
  6. Distinctive:

    Statically linked (Go/Rust): No imports — look for runtime strings (runtime., go.itab, panicked at).

    line 43
  7. Distinctive:

    Before renaming, form a hypothesis from: decompiled code + xrefs + string references

    line 47
  8. Distinctive:

    After renaming a batch: re-decompile to verify the renamed code reads correctly

    line 49
  9. Very specific:

    Use set_comment and set_function_comment to document non-obvious logic

    line 50

≈ “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

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

  1. get_binary_info — format, architecture, size, function count
  2. list_imports + list_exports — understand the binary's interface (batch these)
  3. Start at the function of interest (or entry if exploring)
  4. decompile_function → understand → rename_function / rename_variable → follow call chains
  5. Use xrefs_to and xrefs_from to trace data and code references
  6. 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:

  1. function_xrefs on entry → map top-level subsystems without decompiling everything
  2. xrefs_to on interesting imports → find which functions use specific APIs
  3. Decompile only the nodes you actually need to understand
  4. 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_comment and set_function_comment to 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

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.