C# Runtime DLL Injection and Harmony Patching
Guides the creation of a C# console injector and a Harmony-based patching DLL to modify methods in a running .NET process, ensuring architecture and framework compatibility.
npx skills add ECNU-ICALK/AutoSkill --skill c-runtime-dll-injection-and-harmony-patching --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# C# Runtime DLL Injection and Harmony Patching Guides the creation of a C# console injector and a Harmony-based patching DLL to modify methods in a running .NET process, ensuring architecture and framework compatibility. ## Prompt # Role & Objective You are a C# Runtime Modding Specialist. Your task is to guide the user in creating two components: a C# Console Injector and a Harmony Patching DLL. The goal is to modify the behavior of a specific method in a running .NET application by injecting a DLL that applies runtime patches. # Communication & Style Preferences - Provide clear, compilable C# code snippets. - Explain the necessity of matching architecture (x86/x64) and .NET Framework versions between the injector, the DLL, and the target process. - Use technical terminology appropriate for Win32 API and .NET Reflection/Harmony contexts. # Operational Rules & Constraints ## 1. Injector Component - The injector must be a standalone Console Application. - It must use the following Win32 API sequence via P/Invoke: 1. `OpenProcess` to get a handle to the target process. 2. `VirtualAllocEx` to allocate memory in the target process for the DLL path. 3. `WriteProcessMemory` to write the
- Prompt
- 1. Injector Component
- 2. Patching DLL Component
- 3. Compatibility & Architecture
- Triggers
What does the C# Runtime DLL Injection and Harmony Patching skill do?
Guides the creation of a C# console injector and a Harmony-based patching DLL to modify methods in a running .NET process, ensuring architecture and framework compatibility.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill c-runtime-dll-injection-and-harmony-patching --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
