mixin-writing

Community

Craft compatible Minecraft mixins via MixinExtras.

Authormuon-rw
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Writing SpongePowered Mixins for Minecraft mods frequently causes cross-mod compatibility conflicts, fragile bytecode targeting that breaks across game versions, and runtime errors from incorrect injector usage or missing best practices.

Core Features & Use Cases

  • Chainable Injector Guidance: Prioritizes MixinExtras injectors over vanilla non-chaining patterns to ensure multiple mods can safely target the same method without silent conflicts.
  • Precise Targeting Support: Provides clear rules for choosing between standard @At injection points and MixinExtras @Expression annotations to eliminate fragile ordinal-based or offset-based targeting.
  • Comprehensive Best Practice Coverage: Includes guidance for local variable capture, value sharing between handlers, accessor/invoker patterns, interface injection, and common pitfall avoidance for all mixin development scenarios.
  • Use Case Example: A mod developer writing a mixin to modify entity fall behavior can use this skill to select the correct @ModifyExpressionValue injector with an @Expression targeting the fall distance check, ensuring compatibility with other mods that modify the same entity tick method.

Quick Start

Use the mixin-writing skill to review your existing mixin for the entity damage method and recommend the most compatible MixinExtras injector and targeting approach for your modification.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: mixin-writing
Download link: https://github.com/muon-rw/MixinMCP/archive/main.zip#mixin-writing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.