Community코딩 & 개발github.com

reverse-engineering

게임이 실제로 어떻게 동작하는지 분석하여 모드가 게임을 후킹할 수 있도록 합니다. .NET/Mono(ILSpy), IL2CPP(Cpp2IL, Il2CppDumper), Java(Vineflower) 및 네이티브 코드(Ghidra, IDA, MCP 서버)를 디컴파일하고; 데이터와 에셋 포맷을 덤프하며; 바이너리 파일 포맷을 리버스 엔지니어링하고 라운드 트립으로 검증하며; 라이브 메모리(Cheat Engine, Frida, x64dbg)를 읽고; 렌더 패스(RenderDoc)를 찾습니다. 모드가 게임 내부를 필요로 할 때 사용하세요.

reverse-engineering란 무엇인가요?

이 스킬은 게임 모드 개발을 위한 포괄적인 리버스 엔지니어링 워크플로우를 제공합니다. 주요 기능으로는 (1) 디컴파일러와 MCP 서버를 통한 관리형 .NET, IL2CPP, Java, 네이티브 C/C++ 코드 분석, (2) 다양한 게임 엔진(Unity, Unreal, Bethesda 등)의 데이터 및 에셋 포맷 처리, (3) Cheat Engine, Frida, x64dbg를 활용한 실시간 메모리 분석, (4) RenderDoc을 통한 그래픽스 파이프라인 분석, (5) 바이너리 파일 포맷 역분석 및 라운드 트립 검증 방법론을 포함합니다. 이 스킬은 여러 도구와 MCP 서버를 조합하여 작동하며, GhidraMCP, ILSpy-MCP, frida-mcp 등의 서버를 통해 AI 에이전트가 디컴파일, 함수 이름 변경, 타입 추론, 크로스 레퍼런스 추적 등의 작업을 수행할 수 있게 합니다. 또한 MODLOG.md에 발견한 정보를 체계적으로 기록하고, 검증된 단계를 거쳐 정확성을 높이는 방법론을 강조합니다. Unity, Unreal, Minecraft 등 다양한 게임 엔진과 플랫폼을 지원하며, 모든 분석 결과물은 모드 저장소 외부에 보관하고 안티 치트 게임에는 디버거를 부착하지 않는 등 안전 수칙을 포함합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/rehan-remade/universal-modder/tree/main/skills/reverse-engineering

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

모드를 위한 리버스 엔지니어링

규칙 제로: 실제를 읽고, 추측하지 마세요. 디컴파일된 코드, 실제 데이터, 라이브 메모리 뷰 또는 GPU 캡처가 명세입니다. 작업하면서 배운 내용을 MODLOG.md에 기록하세요(이름, ID, 오프셋, 포맷 등).

디컴파일된 출력물과 추출된 에셋은 모두 모드 저장소 밖(예: ~/<game>-decomp/)에 보관하고 절대 게시하지 마세요. 싱글 플레이어, 오프라인 또는 사용자가 실행하는 서버만 해당합니다. 안티 치트가 있는 게임에는 디버거나 스캐너를 절대 부착하지 마세요(skills/mod-any-game/references/safety.md 참조).

코드 종류에 따라 도구 선택하기(um scan이 알려줍니다)

관리형 .NET(XNA/FNA, Unity Mono, 대부분의 인디 C#)

  • dotnet tool install -g ilspycmd를 실행한 후 ilspycmd -p -o ~/<game>-decomp <Game>.exe(또는 Assembly-CSharp.dll)를 실행합니다. 그러면 grep 가능한 전체 C# 프로젝트가 생성됩니다.
  • dnSpyEx: 디버거로 단계별 실행, 중단점 설정, 메서드 편집.
  • MCP: ILSpy-MCP / dnspy-mcp를 사용하면 에이전트가 타입과 메서드를 직접 쿼리할 수 있습니다.

Unity IL2CPP

  • Cpp2IL(또는 Il2CppDumper)을 GameAssembly.dll + global-metadata.dat에 실행하면 타입, 필드, 메서드 시그니처와 주소, 그리고 ILSpy용 더미 DLL이 생성됩니다.
  • 메서드 본문은 네이티브입니다: GameAssembly.dll을 Ghidra/IDA에 로드하고 생성된 스크립트를 적용하여 함수 이름을 지정하세요.
  • 실시간: UnityExplorer 또는 il2cpp-frida-mcp.

Java(Minecraft, Slay the Spire 등) Vineflower / CFR / Recaf. Minecraft의 경우 Loom genSources를 Mojang 매핑과 함께 사용하세요.

네이티브 C/C++(커스텀 엔진, 언리얼 게임 코드, 콘솔 재컴파일)

  • Ghidra(무료) 또는 IDA를 MCP를 통해 구동하여 에이전트가 디컴파일, 이름 변경, 타입 재지정 및 크로스 레퍼런스 추적을 할 수 있습니다:
    • Ghidra: GhidraMCP(LaurieWired), pyghidra-mcp(헤드리스, 실행 스크립트 도구 포함, 코드 중심 도구가 수백 개의 작은 도구보다 우수함), ReVa.
    • IDA: 공식 Hex-Rays IDA MCP(IDA 9.4+ Pro/Home; "코드 모드"는 IDAPython 실행), 또는 ida-pro-mcp.
    • Binary Ninja와 radare2도 MCP 서버를 제공합니다.
  • 워크플로우:
    1. 문자열, 그 다음 크로스 레퍼런스, 그 다음 함수.
    2. 이해한 모든 것에 이름과 타입을 지정하세요. 이름 변경은 읽기 쉬운 프로그램으로 축적됩니다.
    3. 추측에 의존하기 전에 아래의 동적 방법으로 확인하세요. 에이전트는 잘못 식별할 수 있습니다.
  • 언리얼: 먼저 리플렉션 데이터를 덤프하세요(UE4SS dumper 또는 Dumper-7). 그러면 대부분의 게임플레이 클래스와 프로퍼티가 자동으로 이름이 지정됩니다.

동적/실시간

  • Cheat Engine: 값 스캔 → "이 주소에 쓰는 것을 찾기" → 구조체 → 소유자. CheatEngine MCP 서버가 있습니다.
  • x64dbg: 중단점 및 트레이싱(x64dbg-mcp; 127.0.0.1에 바인드하세요, 일부는 기본값이 0.0.0.0입니다).
  • Frida(frida-mcp, frida-game-hacking-mcp): JavaScript로 함수를 후킹하고 인수를 로깅합니다.
  • ReClass.NET: 라이브 메모리에서 구조체를 재구성합니다.

그래픽스

  • RenderDoc(renderdoc-mcp)는 프레임을 캡처하여 모든 드로우, 렌더 타겟, 상수 버퍼(뷰/프로젝션 매트릭스) 및 뎁스 버퍼를 보여줍니다.
  • 이것이 지오메트리나 이펙트를 주입할 위치(매시업 모드)와 스프라이트 아틀라스를 보유한 텍스처를 찾는 방법입니다.

데이터 파일 및 에셋 포맷

먼저 커뮤니티 도구를 사용하세요:

  • Unity: UABEA, AssetRipper
  • 언리얼: FModel, UAssetGUI
    • 완전히 압축된 UE3 .upk(UELib에 Exports=0으로 표시됨): Gildor의 decompress(UE Viewer에서)로 복사본을 압축 풀거나, LZO 패키지의 경우 unpack_upk.py를 사용하세요.
  • Bethesda: xEdit, BSArch
  • GameMaker: UndertaleModTool
  • Genie: genieutils
  • Source: VRF, Crowbar
  • FromSoft: WitchyBND, Smithbox
  • Godot: GDRE Tools

포맷을 직접 리버스하기 전에 커뮤니티 아카이브를 검색하세요. 2000년대와 2010년대의 대부분의 게임 포맷은 이미 연구되었습니다:

포맷 지식과 도구를 얻기 위해 사용하되, 기원(베타, 유출된 SDK)과 관계없이 게임 파일, 유출된 코드, SDK 또는 라이선스 키를 다운로드하지 마세요.

문서화되지 않은 포맷의 경우:

  1. 여러 개의 일반 파일을 수집하세요. 크기를 비교하고, 헤더를 16진수 덤프하세요(xxd | head). 매직 넘버, 카운트, 오프셋 및 고정 크기 레코드 테이블을 찾으세요.
  2. 헤더, 그 다음 프레임/레코드 레이아웃, 그 다음 압축에 대한 가설을 세우세요. 모든 일반 파일을 오류 없이 파싱하여 확인하세요.
  3. 보거나 볼 수 있는 것으로 디코딩하는 리더(PNG, JSON)를 작성하고 실제로 확인하세요.
  4. 라이터를 작성하고 라운드 트립으로 증명하세요: 디코딩 → 인코딩 → 디코딩하여 원본과 비교하세요. AoE2 SLD 스프라이트 라이터는 일반 기사도를 0.9/255 평균 오차로 라운드 트립했을 때만 승인되었습니다(examples/aoe2-de-civ/sld.py).
  5. 그런 다음에만 새 파일을 작성하세요. 배치 변환 전에 하나의 에셋으로 게임에서 테스트하세요.

오라클로 만들기

  • 이식한 엔진 로직(시뮬레이터, 트레이너, 재구현용): 게임에서 실제 트레이스(틱당 위치, 속도)를 기록하고 이식된 코드에서 재생하여 비교하세요. Terraria의 Eye of Cthulhu 작업에서 Eye의 속도는 이식된 코드가 프레임 t+1에 적용된 액션을 사용했을 때 99.9% 일치했습니다. Float32 상수도 중요했습니다(0.2f ≠ 0.2). 남은 불일치는 숨겨진 버프(Happy!, x1.21 이동 속도)로 추적되었습니다. 재생은 코드를 읽는 것만으로는 놓칠 수 있는 것을 찾아냅니다.
  • 긴 RE 실행의 경우:
    • 저널 파일;
    • 작고 검증된 단계;
    • 문제당 시도 횟수 제한(약 3번 동일한 실패 후 접근 방식 변경);
    • 확인된 모든 사실을 커밋하세요.

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

asset-pipeline

Turn generated or hand-made art into exactly what a game engine loads. Covers sprite cutout, trim and nearest-neighbour fitting to frame sizes, pixelation to a palette, sprite sheets and strips, player/team-colour masks, seamless textures, and rendering a 3D model into sprite frames from the game

fal-assets

Generate game assets with fal (fal.ai) through the fal MCP server, the `um fal` CLI (REST) or `fal api`. Covers sprites and icons with transparent backgrounds, consistent variants and animation frames, pixel art, seamless textures, PBR material maps, image-to-3D models, remeshing, auto-rigging, sound effects, music, voice lines, and trailer or cutscene video. Use whenever a mod needs new art, audio or 3D models, or the user mentions fal, generating sprites, textures, models, SFX or music for a game.

game-automation

Launch, see and drive a real game so an agent can test its own mods. Covers launching via Steam or the exe, windowed mode at a fixed size, screenshots of the game window (GPU-safe capture), clicking and typing into menus, holding keys, relative mouse, crash-reporter cleanup, killing by PID, reading logs, scripted test scenes, and an in-game JSON bridge that lets an agent observe and act. Windows-first (also from WSL), with notes for Linux and macOS. Use when a mod must be verified in game, when navigating menus automatically, or when building a repeatable test or demo scene.

game-recon

Figure out how a specific installed game can be modded, before writing any mod code. Covers where it

game-research-websearch

Research a game, engine or modding technique on the open web with archive-aware, rate-limit-safe searches — Wayback Machine/archive.today for dead forums (XeNTaX, Zenhax, old threads), GitHub code/repo search, Nexus/Steam Workshop/Thunderstore APIs, Reddit JSON, YouTube transcripts, plus archive snapshots as evidence. Use when starting work on a game (

mashup-mods

Build cross-game mashups and total conversions, the

mod-any-game

Mod a PC game the user owns, taking an idea to working in the real game and recorded. It covers new items, weapons, enemies, bosses, units, civilizations, mechanics, art, sound, VR and cross-game mashups. Use when the user wants to mod, extend, hack on, reverse engineer or mash up a game (

port-a-mod

Port an existing mod to a newer game version or another mod loader while keeping its behaviour, values and quirks. Typical cases are an old Forge 1.7.10 or 1.12 Minecraft mod moving to modern Fabric or NeoForge, a Skyrim LE plugin moving to SE/AE, or a tModLoader 1.3 mod moving to 1.4. It covers pinning one source version, a private decompiled reference, an adaptation matrix, extracting the mod

publish-mod

Package and release a finished game mod. Covers the pre-release lint (no game files, decompiled code or leaked keys), README and install steps, credits and AI disclosure, versioning, where to upload (Nexus Mods, Steam Workshop, Thunderstore, mod.io, GitHub releases), and the post with a video. Use when the user wants to ship, share, upload, release or post a mod.

share-field-notes

Search and contribute to the shared AI-modding knowledge base, where field notes record how specific games were modded, decompiled or reverse-engineered (exact versions, route, engine facts, verification, gotchas). Use before starting work on a game (

showcase-video

Record and cut a short showcase video of a game mod, or a compilation of clips, ready to post on X/YouTube. Records the game window with only the game

관련 스킬