reverse-engineering
Skill này làm gì
Skill này giải thích cách giải mã và nghiên cứu code, file dữ liệu và bộ nhớ của game để mod có thể kết nối với chúng. Nó dành cho modder cần cấu trúc bên trong thật của game thay vì phỏng đoán.
Khi nào nên dùng
- ✓Khi một mod cần tên hàm nội bộ hoặc bố cục dữ liệu của game.
- ✓Khi bạn muốn giải mã một game .NET, Unity hoặc Java để đọc code của nó.
- ✓Khi bạn cần tìm ra một định dạng file không có tài liệu từ một game.
Liên kết skill
https://github.com/rehan-remade/universal-modder/blob/main/.agents/skills/reverse-engineering/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Giải mã code game Unity này để tôi tìm được hàm xử lý cú nhảy của người chơi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chọn đúng công cụ cho từng loại code, chẳng hạn ILSpy cho .NET hoặc Ghidra cho chương trình native, nghiên cứu kết quả, và ghi lại tên, ID và định dạng vào một nhật ký khi làm.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Reverse engineering for mods
Rule zero: read the real thing, don't guess. Decompiled code, the actual data, a live memory view or a
GPU capture is the spec. Write what you learn into MODLOG.md (names, IDs, offsets, formats) as you go.
Keep all decompiled output and extracted assets outside the mod repo (e.g. ~/<game>-decomp/) and never
publish them. Single-player, offline or servers the user runs. Never attach debuggers or scanners to games
with anti-cheat (see skills/mod-any-game/references/safety.md).
Pick the tool by what the code is (um scan tells you)
If REA (Reverse Engineer Anything, npx rea-agents setup) is connected as an MCP
server, start there: one server covers native binaries (through an existing Ghidra, IDA or Hopper install), .NET
assemblies and JavaScript/Electron apps, and its answers come with the evidence behind them. The tools below are
the fallback, and the way to go deeper.
Managed .NET (XNA/FNA, Unity Mono, most indie C#)
dotnet tool install -g ilspycmd, thenilspycmd -p -o ~/<game>-decomp <Game>.exe(orAssembly-CSharp.dll). This gives a full C# project you can grep.- dnSpyEx: step through with a debugger, set breakpoints, edit methods.
- MCP: ILSpy-MCP / dnspy-mcp let an agent query types and methods directly.
Unity IL2CPP
- Cpp2IL (or Il2CppDumper) on
GameAssembly.dll+global-metadata.datgives types, fields, method signatures and addresses, plus dummy DLLs for ILSpy. - Method bodies are native: load
GameAssembly.dllin Ghidra/IDA and apply the generated script to name functions. - Live: UnityExplorer, or
il2cpp-frida-mcp.
Java (Minecraft, Slay the Spire...)
Vineflower / CFR / Recaf. For Minecraft, use Loom genSources with Mojang mappings.
Blitz3D (.bb games; SCP: Containment Breach's source is public): the game is a module inside the exe
that Ghidra can't see. Use the blitz3d-decomp skill (B3DDecomp, runtime behaviour for ports, animated
.b3d models).
Native C/C++ (custom engines, Unreal game code, console recomps)
- Ghidra (free) or IDA, driven through MCP so the agent can decompile, rename, retype and follow
cross-references:
- Ghidra: GhidraMCP (LaurieWired), pyghidra-mcp (headless, with a run-script tool; code-capable tools beat hundreds of tiny ones), ReVa.
- IDA: the official Hex-Rays IDA MCP (IDA 9.4+ Pro/Home; "code mode" runs IDAPython), or ida-pro-mcp.
- Binary Ninja and radare2 have MCP servers too.
- Workflow:
- Strings, then cross-references, then the function.
- Name and type everything you understand. Renames accumulate into a readable program.
- Confirm dynamically (below) before building on a guess. Agents can confidently misidentify things.
- Unreal: dump the reflection data first (UE4SS dumper or Dumper-7); it names most gameplay classes and properties for free.
Dynamic / live
- Cheat Engine: value scans → "find out what writes to this address" → struct → owner. CheatEngine MCP servers exist.
- x64dbg: breakpoints and tracing (x64dbg-mcp; bind it to 127.0.0.1, since some default to 0.0.0.0).
- Frida (frida-mcp, frida-game-hacking-mcp): hook functions from JavaScript, log arguments.
- ReClass.NET rebuilds structs from live memory.
Graphics
- RenderDoc (renderdoc-mcp) captures a frame and shows every draw, the render targets, the constant buffers (view/projection matrices) and the depth buffer.
- That's how you find where to inject geometry or effects (mashup-mods), and which texture holds a sprite atlas.
Data files and asset formats
Use the community tool first:
- Unity: UABEA, AssetRipper
- Unreal: FModel, UAssetGUI
- Fully compressed UE3
.upk(UELib showsExports=0): unpack a copy with Gildor'sdecompress(from UE Viewer), or, for LZO packages, withunpack_upk.py.
- Fully compressed UE3
- Bethesda: xEdit, BSArch
- GameMaker: UndertaleModTool
- Genie: genieutils
- Source: VRF, Crowbar
- FromSoft: WitchyBND, Smithbox
- Godot: GDRE Tools
Before reversing a format yourself, search the community archives. Most game formats from the 2000s and 2010s were worked out there:
- XeNTaX (closed in 2023): the forum, wiki and attachments are on archive.org, with a [public backup on GitHub](https://githu
Câu hỏi thường gặp
Skill có hoạt động với game có chống gian lận không?
Không. Skill yêu cầu không gắn debugger hay trình quét vào game có chống gian lận.
Các file đã trích xuất được giữ ở đâu?
Bên ngoài thư mục dự án mod và không bao giờ được đăng tải.
Một định dạng file được chứng minh như thế nào?
Skill gợi ý một bài kiểm tra vòng khứ hồi, trong đó dữ liệu được đọc rồi ghi ngược lại để cho thấy định dạng đã được hiểu đúng.
Chi tiết
Mô tả gốc của tác giả
Read how a game actually works so a mod can hook it. Decompile .NET/Mono (ILSpy), IL2CPP (Cpp2IL, Il2CppDumper), Java (Vineflower) and native code (Ghidra, IDA, via MCP servers); dump data and asset formats; reverse-engineer a binary file format and prove it with a round trip; read live memory (Cheat Engine, Frida, x64dbg); find render passes (RenderDoc). Use when a mod needs game internals, e.g. "how does the boss AI work", "find the damage function", "what format is this .sld/.pak/.dat", "where is the player position in memory".
Độ phổ biến
- Sao GitHub
- 9.3k
- Vị trí xếp hạng
- #12292
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
asset-pipeline
9.3kGiúp agent của bạn chuyển tác phẩm tạo ra hoặc vẽ tay thành đúng kích thước, khung hình, bảng màu và định dạng mà game engine tải được.
blitz3d-decomp
9.3kGiúp agent của bạn giải mã một game Blitz3D thành source code dễ đọc và lên kế hoạch port sang engine khác, giữ game gốc làm tài liệu tham chiếu.
fal-assets
9.3kGiúp agent của bạn tạo tác phẩm, hiệu ứng âm thanh, nhạc và mô hình 3D cho game bằng fal.ai, từ sprite và texture đến lời thoại và video.
game-automation
9.3kGiúp agent của bạn chạy một game thật, chụp ảnh màn hình, nhấp chuột và gõ phím trong menu, rồi đọc log, để kiểm thử các mod game của chính nó.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.