unity-compile-fixer

unity-compile-fixer is a skill for Claude Code, Codex from Dev-GOM/claude-code-marketplace. It costs 61 tokens per session (1,474 once invoked), scanned A, original, Apache-2.0.

A Unity development helper that reads C# errors from VSCode and suggests fixes using common Unity error patterns.

In plain words
What is it for?
Use it to diagnose Unity scripts that do not compile, investigate CS error codes, review suggested fixes, and handle related .meta-file conflicts.
Why use it?
It turns compiler diagnostics into proposed solutions and can account for version-control conflicts involving Unity metadata files.

Skill for Claude CodeCodex

Part of the unity-dev-toolkit plugin — 7 skills, 3 commands, 4 agents shipped together

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/dev-gom/claude-code-marketplace/unity-compile-fixer
Any agent
npx skills add Dev-GOM/claude-code-marketplace --skill unity-compile-fixer
Clone the repo
git clone --depth 1 https://github.com/Dev-GOM/claude-code-marketplace

Made for: Claude Code, Codex.

Or install unity-dev-toolkit, the plugin that ships this one along with the rest of its 7 skills, 3 commands, 4 agents.

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 unity-compile-fixer

README.md
[![agentmods](https://agentmods.dev/badge/skills/dev-gom/claude-code-marketplace/unity-compile-fixer.svg)](https://agentmods.dev/skills/dev-gom/claude-code-marketplace/unity-compile-fixer)
Your own site
<a href="https://agentmods.dev/skills/dev-gom/claude-code-marketplace/unity-compile-fixer"><img src="https://agentmods.dev/badge/skills/dev-gom/claude-code-marketplace/unity-compile-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,474 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.00061 $0.01474
Opus 5 $0.00030 $0.00737
Sonnet 5 $0.00012 $0.00295
Haiku 4.5 $0.00006 $0.00147

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

Security

Grade A, and why

unity-compile-fixer 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/analyze-diagnostics.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/unity-dev-toolkit/skills/unity-compile-fixer/SKILL.md · 194 lines

How it starts

The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Unity Compile Fixer

Overview

This skill enables automatic detection and resolution of Unity C# compilation errors by leveraging VSCode's diagnostic system. It collects real-time errors from the OmniSharp C# language server, analyzes error patterns against a curated database of common Unity issues, and proposes context-aware solutions for user approval before applying fixes.

When to Use This Skill

Use this skill when:

  • Unity projects report C# compilation errors in VSCode
  • Need to diagnose the root cause of Unity compiler errors (CS* error codes)
  • Want automated fix suggestions for common Unity scripting issues
  • Working with Unity projects that have version control integration (Git, Unity Collaborate, Plastic SCM)
  • Need to handle Unity .meta file conflicts

Example user requests:

  • "Check Unity compilation errors and help me fix them"
  • "My Unity project has compiler errors, can you diagnose and fix?"
  • "Unity scripts are not compiling, what's wrong?"
  • "Fix the C# errors in my Unity project"

Workflow

Follow this workflow when the skill is invoked:

1. Detect Compilation Errors

Use the mcp__ide__getDiagnostics tool to collect errors from VSCode:

// Collect all project diagnostics
mcp__ide__getDiagnostics()

// Or target specific Unity script files
mcp__ide__getDiagnostics({ uri: "file:///path/to/PlayerController.cs" })

Filter the diagnostics to focus on Unity-relevant errors:

  • Severity: Only process errors with severity: "Error" (ignore warnings)
  • Source: Only process source: "csharp" (OmniSharp C# diagnostics)
  • Error Codes: Focus on CS* compiler error codes (e.g., CS0246, CS0029, CS1061)

2. Analyze Error Patterns

For each detected error:

  1. Extract error information:

    • File path and line number from uri and range
    • Error code from message (e.g., "CS0246")
    • Full error message text
  2. Match against error pattern database:

    • Load references/error-patterns.json
    • Find the error code entry (e.g., CS0246)
    • Retrieve common causes and solutions

Read the full file on GitHub · 194 lines

Files

What ships with it

2 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. 4d ago First seen · 194 lines · 61 tokens per session scan A b9f328efc03a

Subscribe to this mod's changes

unity-compile-fixer is a skill published in the GitHub repository Dev-GOM/claude-code-marketplace (97 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 61 tokens to every session and 1,474 once invoked, about $0.0003 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-30.