minecraft-mixin

minecraft-mixin is a skill for Claude Code, Codex from code-onigiri/mc-modding-skill. It costs 111 tokens per session (1,200 once invoked), scanned A, original, MIT.

A guide for changing existing Minecraft classes with Mixin, a system for inserting or replacing code in Minecraft, Forge, NeoForge, or other mods. It covers setup, annotations, compatibility, conflicts, and troubleshooting for Minecraft 1.20.1 Forge and 1.21.1 NeoForge.

In plain words
What is it for?
Use it to inject code, access fields or methods, alter constructors, work with other mods, configure Mixin files, and diagnose errors such as failed Mixin application or missing classes.
Why use it?
It helps modify game or mod behaviour while reducing startup crashes and conflicts with other mods. It also explains configuration details that can otherwise prevent Mixins from loading.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/code-onigiri/mc-modding-skill/minecraft-mixin
Any agent
npx skills add code-onigiri/mc-modding-skill --skill minecraft-mixin
Clone the repo
git clone --depth 1 https://github.com/code-onigiri/mc-modding-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for minecraft-mixin

README.md
[![agentmods](https://agentmods.dev/badge/skills/code-onigiri/mc-modding-skill/minecraft-mixin.svg)](https://agentmods.dev/skills/code-onigiri/mc-modding-skill/minecraft-mixin)
Your own site
<a href="https://agentmods.dev/skills/code-onigiri/mc-modding-skill/minecraft-mixin"><img src="https://agentmods.dev/badge/skills/code-onigiri/mc-modding-skill/minecraft-mixin.svg" alt="Measured on agentmods" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,200 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00111 $0.01200
Opus 5 $0.00056 $0.00600
Sonnet 5 $0.00022 $0.00240
Haiku 4.5 $0.00011 $0.00120

Measured 5d ago against content hash 01827cd6d7cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

minecraft-mixin scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agent/skills/minecraft-mixin/SKILL.md · 54 lines

What it actually says

概要

Mixin は既存クラスの動作を変更する強力なツール。Forge/NeoForge に同梱済み(追加依存不要)。

✅ やるべきこと(優先順位順)

  1. @Inject を最優先 — 元のコードを破壊しない。他Modとの競合が最も少ない。
  2. @Unique を徹底 — Mixin内で追加するフィールド・メソッドには必ず付与。名前衝突を防ぐ。
  3. Interface Mixin(@Accessor/@Invoker)は安全 — 元のコードを書き換えない。競合リスク極低。
  4. Constructorへの@InjectはTAIL/RETURNのみ可能 — HEADや他位置への注入は不可。
  5. Compatibility Level: Forge 1.20.1 → JAVA_17, NeoForge 1.21.1 → JAVA_21
  6. 他Modのクラスに注入する際は@Pseudoを必ず付与 — クラスが存在しない場合のクラッシュを防ぐ。
  7. 開発時は locals = LocalCapture.CAPTURE_FAILHARD — 即座にエラー検知。リリース時は CAPTURE_FAILSOFT に切替。

❌ やってはいけないこと

  1. @Overwrite / @Redirect は極力避ける — 同じ箇所を他Modも書き換えると互換性破壊。どうしても必要な場合のみ priority で順序制御。
  2. @Shadow したフィールドに final を付けない@Final @Mutable @Shadow を使うこと。Mixinコンパイル時にエラーになる。
  3. method = "target()V" のシグネチャを間違えない — 戻り値・引数・修飾子は必ず正確に記述。間違えると Mixin apply failed で起動時クラッシュ。
  4. CallbackInfoReturnableのジェネリクス型を間違えない — 戻り値の型と一致しないと注入失敗。
  5. Mixin Configの package と実際のパッケージを一致させる — 不一致は ClassNotFoundException の原因。
  6. mods.toml / neoforge.mods.toml[[mixins]] を忘れない — 忘れるとMixinが一切適用されない。
  7. build.gradle の jar manifest に MixinConfigs を含める — ないと配布用jarでMixinが読み込まれない。
  8. run引数に -mixin.config=mixins.<modid>.json を含める — ないと開発環境でもMixinが読み込まれない。

開発ワークフロー

  • 1. build.gradle にMixin設定追加(jar manifestの MixinConfigs、run引数の -mixin.config=mixins.<modid>.json
  • 2. mods.toml / neoforge.mods.toml[[mixins]] 追加
  • 3. src/main/resources/mixins.<modid>.json 作成(Mixin Config)
  • 4. Mixinクラスを src/main/java/.../mixin/ に作成
  • 5. ターゲットメソッドのシグネチャを確認(obf/name/mapping)
  • 6. runClient で動作確認。Mixin apply failed が出たらシグネチャ見直し

詳細リファレンス

トピック ファイル 読むタイミング
セットアップ(build.gradle, mods.toml, mixin config) references/SETUP.md 最初に1回
Injector一覧(@Inject, @Redirect, @Overwrite, @ModifyArg/Args/Variable...) references/INJECTORS.md コード挿入・変更が必要な際
Helper/Utility(@Shadow, @Accessor, @Invoker, @Unique, @Slice, @Pseudo, @Dynamic) references/HELPERS.md フィールドアクセス・命名・競合回避
Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 54 lines · 111 tokens per session scan A 01827cd6d7cb

Subscribe to this mod's changes

minecraft-mixin is a skill published in the GitHub repository code-onigiri/mc-modding-skill (2 stars, last pushed 2mo ago), licensed MIT. It adds 111 tokens to every session and 1,200 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

exec-inspect

Verifies a Minecraft Java Edition build in-world after each phase — checks the plan was carried out as specified, that the result fits the world cleanly (no dangling edges, blocked paths, or unintended overrides), and proposes concrete course corrections. Use after every major phase of executing a build plan, as the…

chapmanjw/minecraft-java-fabric-claude-plugin · 79 tokens

exec-plan

Captures build requirements for a Minecraft Java Edition world, interviews the user to resolve ambiguity, and produces a detailed, fully-resolved build plan that a small model can execute mechanically. Use when starting a new Minecraft build or feature, or when a build request must be turned into a concrete plan…

chapmanjw/minecraft-java-fabric-claude-plugin · 74 tokens

exec-worker

Executes a detailed Minecraft build plan step by step — placing, filling, cloning blocks and stamping structures exactly as specified, with no redesign or improvisation. Use to carry out a plan.toon produced by exec-plan once it is detailed enough to follow mechanically. Part of the minecraft-builder workflow.

chapmanjw/minecraft-java-fabric-claude-plugin · 62 tokens

system-redstone

Designs, plans, and verifies complex redstone and mechanical contraptions in a live Minecraft Java Edition world — item sorters, hidden and piston doors, automatic farms, mob-spawner collectors, minecart networks and roller coasters, water and bubble elevators, note-block music, traps, and decorative machines.…

chapmanjw/minecraft-java-fabric-claude-plugin · 132 tokens

design-city

Designs and blueprints whole cities and city districts in a live Minecraft Java Edition world — real-world replicas (modern and historical), pop-culture replicas, and original cities. Plans the urban fabric — district zoning, street hierarchy, transit, walls, and reused vernacular building modules — and defers every…

chapmanjw/minecraft-java-fabric-claude-plugin · 121 tokens

exec-blueprint

Turns a Minecraft build plan into named, reusable structure definitions saved inside the world, so build elements can be placed, copied, and iterated later without any external state. Use after planning, to create or update the structure library for a build. Part of the minecraft-builder workflow.

chapmanjw/minecraft-java-fabric-claude-plugin · 60 tokens