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

Written for no agent in particular: nothing here depends on one.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/code-onigiri/mc-modding-skill/minecraft-mixin
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for minecraft-mixin

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00111 $0.01200
Opus 5.5 $0.00044 $0.00480
Sonnet 5.5 $0.00022 $0.00240
Haiku 4.5 $0.00011 $0.00120

Measured 1mo ago against content hash 01827cd6d7cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 4mo ago), licensed MIT. It adds 111 tokens to every session and 1,200 once invoked, about $0.0004 per session on Opus 5.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

setup-fabric

Step 1 of 4 of the Minecraft Java MCP setup. Install Minecraft Java Edition with the Fabric loader — either a single-player client or a headless dedicated server — as the foundation the MCP mod runs inside. Use when the user wants to set up Minecraft Java for AI/MCP control from scratch, or asks how to get Fabric…

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

setup-mod

Step 2 of 4 of the Minecraft Java MCP setup. Download the minecraft-java MCP mod jar and its matching Fabric API jar and install both into the Minecraft mods folder. Use when the user has Minecraft Java with the Fabric loader ready and needs the MCP mod and Fabric API installed.

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

survey-research

Researches real-world buildings, cities, landmarks, vehicles, and mechanisms so they can be represented faithfully as Minecraft structures. Use when a build request references a real or historical thing and the exec-plan or exec-blueprint skill needs accurate proportions, layouts, materials, or details. Part of the…

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

setup-server

Step 3 of 4 of the Minecraft Java MCP setup. Configure the MCP mod's config.json (host, port, auth, tool categories), launch Minecraft or the dedicated server, verify the embedded MCP server is listening on /healthz, and capture the bearer token for remote setups. Use when the user has the MCP mod and Fabric API…

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

setup-connect

Step 4 of 4 of the Minecraft Java MCP setup. Register the running minecraft-java MCP server (the Fabric mod) with Claude (Claude Code or Claude Desktop) so the Java world tools become available, then verify the connection with a live test call. Use when the user has the MCP server running and needs to connect Claude…

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

minecraft-modpack-server

Host modded Minecraft servers (CurseForge, Modrinth).

NousResearch/hermes-agent · 19 tokens