harmony

Teach HarmonyLib patching methods for .NET C# code in Kitten Space Agency modding.

13|1|Updated Jun 12, 2026
One-click install
npx skills add https://github.com/meow-sci/gatOS --skill harmony-meow-sci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harmony
Source: https://github.com/meow-sci/gatOS/tree/main/.claude/skills/harmony
Command: npx skills add https://github.com/meow-sci/gatOS --skill harmony-meow-sci

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires HarmonyLib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill equips you with the knowledge and best practices to effectively use HarmonyLib for runtime patching of .NET C# code, enhancing modding and customization capabilities.

Core Features & Use Cases

  • HarmonyLib Best Practices: Learn how to leverage HarmonyLib for precise and clean code patching.
  • KSA Modding Patterns: Understand the conventions used in KSA modding with HarmonyLib.
  • Reference Guide: Access a comprehensive reference guide for HarmonyLib's full feature set.

Quick Start

Use the harmony skill to learn about HarmonyLib patching patterns and KSA modding practices.

Frequently Asked Questions about harmony

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is HarmonyLib used for in C# modding?

HarmonyLib is used for runtime patching of .NET C# code, allowing you to modify application behavior without altering original source files. It enables dynamic injection of custom logic into existing methods.

How do I use prefix and postfix patches with HarmonyLib?

HarmonyLib uses prefix and postfix patches to intercept target methods. Prefix patches run before the original method to modify inputs or skip execution, while postfix patches run after to alter the return value.

Does this guide cover transpilers for C# code patching?

Yes, the guide covers transpilers alongside prefix and postfix patches. Transpilers allow you to directly manipulate the IL code instructions of a method for highly precise and complex runtime modifications.

Can I use HarmonyLib for Kitten Space Agency modding?

Yes, this guide specifically focuses on Kitten Space Agency (KSA) modding patterns. It provides the conventions and best practices required to safely apply HarmonyLib patches for KSA customization.

What are the best practices for safe runtime patching in .NET?

Safe runtime patching requires following best practices such as using precise patch targeting, avoiding conflicting modifications, and properly handling transpiler IL manipulation to ensure application stability.

When should I use a transpiler instead of a prefix patch?

Use a transpiler when you need to modify the internal IL instructions of a method, rather than using a prefix patch which is sufficient for simply intercepting, skipping, or altering method parameters and return values.