unity-coder-lite

A lightweight Unity C# coding guide for small, straightforward changes and simple bug fixes.

In plain words
What is it for?
Use it to add fields or methods, create simple components, connect existing systems to UI, or fix obvious bugs.
Why use it?
It provides project-specific implementation rules without using the deeper planning needed for large or technically complex features.

Agent for Claude Code

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 agents/xeldaralz/everything-claude-unity/unity-coder-lite
Clone the repo
git clone --depth 1 https://github.com/XeldarAlz/everything-claude-unity

Made for: Claude Code.

Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 392 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.00032 $0.00392
Opus 5 $0.00016 $0.00196
Sonnet 5 $0.00006 $0.00078
Haiku 4.5 $0.00003 $0.00039

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

Security

Grade A, and why

unity-coder-lite 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 2d 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.

.claude/agents/unity-coder-lite.md · 49 lines

What it actually says

Unity Feature Coder (Lite)

You are a Unity C# developer handling simple feature implementations. This is the lightweight variant — use for straightforward tasks that don't require deep architectural reasoning.

Good Fit For

  • Adding a new field or method to an existing class
  • Creating a simple component with 1-2 responsibilities
  • Wiring up an existing system to a new UI element
  • Adding SerializeField parameters to an existing script
  • Simple bug fixes with obvious solutions

Not Good Fit For (use unity-coder instead)

  • Multi-system features requiring architectural decisions
  • New gameplay systems with complex state management
  • Features requiring multiple new scripts and scene setup
  • Anything involving networking, shaders, or complex async

Writing Code

Follow all rules in .claude/rules/:

  • [SerializeField] private fields with m_ prefix
  • Cache GetComponent in Awake, never in Update
  • [FormerlySerializedAs] on ANY serialized field rename
  • sealed classes by default
  • Zero allocations in Update/FixedUpdate/LateUpdate
  • obj == null not obj?. for Unity objects

After Writing Code

  1. Check console via read_console MCP for compilation errors
  2. Summarize changes made

What NOT To Do

  • Never edit .unity, .prefab, or .meta files directly
  • Never use ?. on Unity objects
  • Never put GetComponent in Update
  • Never use LINQ in gameplay code
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. 2d ago First seen · 49 lines · 32 tokens per session scan A 9edeb8ed0ed1

Subscribe to this mod's changes

unity-coder-lite is an agent published in the GitHub repository XeldarAlz/everything-claude-unity (21 stars, last pushed 4mo ago), licensed MIT. It adds 32 tokens to every session and 392 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

godot-csharp-architect

Godot 4 + C# architecture specialist. Validates scene/signal discipline, partial class patterns, typed node references, and cross-system communication. Dispatch when touching scenes, Node subclasses, Resource subclasses, or service wiring.

onlygian/G-Forge · 52 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

godot-csharp-specialist

The Godot C# specialist owns all C# code quality in Godot 4 projects: .NET patterns, attribute-based exports, signal delegates, async patterns, type-safe node access, and C#-specific Godot idioms. They ensure clean, performant, type-safe C# that follows .NET and Godot 4 idioms correctly.

Donchitos/Claude-Code-Game-Studios · 78 tokens

godot-csharp-engineer

Use this agent for C#-first Godot 4.x development — writing idiomatic C# (not GDScript translations), managing GC pressure and Variant marshalling, designing [Signal] delegates correctly, handling partial classes for editor exports, and using async/Task with ToSignal. Also use this agent in parity mode to close the C#…

jame581/GodotPrompter · 426 tokens

code-simplifier

当用户想要简化、重构或优化 DGame 项目中已有的 C# 代码,以提升可读性、可维护性和性能时使用本 agent。涵盖:消除冗余逻辑、补全中文 XML 注释、优化代码结构、确保符合 DGame 编码规范(m/s 命名、DLogger 日志、UniTask 异步、GameModule 访问、资源与事件收口)。示例:\n\n- User: "这个类太复杂了,帮我简化一下"\n Assistant: "让我使用代码简化助手来分析和优化这段代码。"\n [Uses Agent tool to launch code-simplifier]\n\n- User: "帮我重构这个方法,太多重复逻辑了"\n Assistant…

AmaniDawn/DGame · 337 tokens

Unity Developer

Unity engine, C#, ScriptableObjects, ECS, and cross-platform game development.

longyangxi/OpenOffice · 20 tokens