Il2cpp To Csharp logo

Il2cpp To Csharp

Community
MetaMikuAI
il2cpp-to-csharp

Reconstruct plausible C# from Unity IL2CPP binaries with either the IDA Pro MCP backend or the Ghidra backend, using matching Il2CppDumper metadata. Use for method VA/RVA/name analysis, string literal resolution, vtable mapping, switch/enum recovery, compiler-generated lambdas, LINQ, coroutine or async state machines, and IL2CPP runtime-helper cleanup. Pick exactly one backend based on the environment that is actually available and follow only that backend's instructions. Do not use for Mono/.NET assemblies, generic native decompilation, or exploit development.

Overview

PublisherMetaMikuAI
Repositoryil2cpp-to-csharp-skill
Skill nameil2cpp-to-csharp
Stars
41
Forks
6
Bundled files
27
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 27 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by MetaMikuAI on GitHub. Read the source before you install it.

Installation

Install the Il2cpp To Csharp AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/MetaMikuAI/il2cpp-to-csharp-skill/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MetaMikuAI/il2cpp-to-csharp-skill.git \
  .claude/skills/il2cpp-to-csharp
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Il2cpp To Csharp in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Il2cpp To Csharp on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Il2cpp To Csharp is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

IL2CPP to C# Source Restoration

Reconstruct readable C# from Unity IL2CPP binaries, one method at a time. This skill ships two independent backends that consume the same Il2CppDumper artifacts (script.json, stringliteral.json, DummyDll / dump.cs) and produce the same kind of output.

1. Pick a Mode — do this first

  • Task mode — the user wants C# reconstructed from a concrete binary or method. Ask the user which backend to use, then read that backend's workflow completely and follow exactly one backend. The two backends are self-contained: never mix their instructions, tool rules, or docs.
  • Reference mode — the user only wants to consult this skill (no backend chosen yet, no binary at hand), for example "how does this skill resolve string literals / lambdas / state machines?". Skip backend selection and read the topic doc for that construct directly from the trigger table in section 3. Either backend's version of a topic doc may be read; both document the same constructs with their own tooling (IDA docs are more consolidated, Ghidra docs are split finer).

2. Shared Rules (apply to both backends)

  • Treat complete decompiler C as the primary evidence. If output is truncated, incomplete, or fails, obtain the full body before reconstructing; never fill missing regions from context.
  • Never invent string literals, names, conditions, enum labels, or branches. Confirm everything against dump metadata and stub projects.
  • Preserve all metadata attributes ([Token], [Address], [FieldOffset], [CompilerGenerated], …) from any supplied stub.
  • Restore one method at a time; process multiple VAs sequentially and return each result before continuing.
  • Report unresolved details explicitly instead of guessing.

3. Doc Trigger Table

Every row is a direct link to a doc in this skill. Read the doc before restoring or answering about that construct — when a trigger fires, that read is mandatory, not optional. Backend workflows repeat some of these pointers in context; this table is the routing source of truth. In task mode, stay within the backend you picked.

IDA backend

Entry (task mode): read ida/workflow.md completely before analyzing a method.

TriggerRead before restoring
StringLiteral_N in the pseudo-Cida/strings.md
__c / __9__N_M / b__ / DisplayClassN_M / <Outer>g__ helpersida/compiler-patterns.md
LINQ chains (Select / Where / ToArray / Aggregate / …)ida/compiler-patterns.md
MoveNext, iterator, async / UniTask state machineida/compiler-patterns.md and ida/ida-quirks.md
Unlabeled sub_xxx call that may be IL2CPP machineryida/helpers.md
vtable._N slot callsida/workflow.md (Vtable Call Resolution)
Field-offset noise (BYTE4(Instance[40].monitor), LOBYTE(...), …)ida/ida-quirks.md
Truncated or failed decompile, suspected ICF foldingida/workflow.md and ida/ida-usage.md
IDA MCP tool choice, prohibited tools, timeoutsida/ida-usage.md

Ghidra backend

Entry (task mode): read ghidra/workflow.md completely before analyzing a method.

TriggerRead before restoring
First-time project creation, image import, symbol applicationghidra/ghidra-setup.md
Query wrapper usage, batch syntax, address coordinates, query failuresghidra/ghidra-query.md
StringLiteral_Nghidra/strings.md
Concatenation, string.Format, boxing, interpolation loweringghidra/string-formatting.md
__c / b__ / DisplayClass / g__ helpersghidra/lambdas-closures.md
LINQ or shared generic bodiesghidra/linq-generics.md
Iterator / boolean MoveNext state machineghidra/coroutines.md
Awaiter / Task / UniTask state machineghidra/async.md
Unlabeled FUN_... that may be IL2CPP machineryghidra/helpers.md, then ghidra/runtime-memory.md or ghidra/runtime-exceptions.md
Address drift, thunks, ICF labels, offcuts, decompiler type problemsghidra/ghidra-quirks.md

4. Scripts

  • Shared tools, run from the skill root's scripts/ directory: lookup_strings.py (StringLiteral_N / RVA / VA to string), field_offset.py (object / Fields offset arithmetic), query_script_json.py (Il2CppDumper method records).
  • Ghidra wrapper scripts live under ghidra/scripts/ — ghidra_query.py, GhidraQuery.java, ApplyIl2CppSymbols.java — and run from within ghidra/.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Il2cpp To Csharp AI skill do?

Reconstruct plausible C# from Unity IL2CPP binaries with either the IDA Pro MCP backend or the Ghidra backend, using matching Il2CppDumper metadata. Use for method VA/RVA/name analysis, string literal resolution, vtable mapping, switch/enum recovery, compiler-generated lambdas, LINQ, coroutine or async state machines, and IL2CPP runtime-helper cleanup. Pick exactly one backend based on the environment that is actually available and follow only that backend's instructions. Do not use for Mono/.NET assemblies, generic native decompilation, or exploit development.

Why use Il2cpp To Csharp on TypingMind?

Because you install it once and use it with any model. Il2cpp To Csharp is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Il2cpp To Csharp in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/MetaMikuAI/il2cpp-to-csharp-skill/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Il2cpp To Csharp?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Il2cpp To Csharp?

As many as you like. As long as a model supports skills, you can use Il2cpp To Csharp with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Il2cpp To Csharp AI skill free?

Yes. It is published on GitHub by MetaMikuAI under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇