unity

unity is a command for Claude Code from HermeticOrmus/LibreGameDev-Claude-Code. It costs 24 tokens per session (2,721 once invoked), scanned A, original, MIT.

A command for designing, implementing, or debugging features in Unity 6, a game engine. It helps choose between common Unity approaches and provides C# guidance.

In plain words
What is it for?
Use it for Unity feature design, architecture decisions, C# implementation, upgrades, or troubleshooting Unity-specific problems.
Why use it?
It surfaces important project choices, such as rendering technology, 2D or 3D, networking, and script architecture, before implementation.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the unity-development plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it for Unity feature design, architecture decisions, C# implementation, upgrades, or troubleshooting Unity-specific problems.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hermeticormus/libregamedev-claude-code/unity
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.

Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreGameDev-Claude-Code

Made for: Claude Code.

Or install unity-development, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libregamedev-claude-code/unity/github.svg)](https://agentmods.dev/commands/hermeticormus/libregamedev-claude-code/unity)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libregamedev-claude-code/unity"><img src="https://agentmods.dev/badge/commands/hermeticormus/libregamedev-claude-code/unity/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 unity

Your own site · 80×15
<a href="https://agentmods.dev/commands/hermeticormus/libregamedev-claude-code/unity"><img src="https://agentmods.dev/badge/commands/hermeticormus/libregamedev-claude-code/unity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,721 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.00024 $0.02721
Opus 5.5 $0.00010 $0.01088
Sonnet 5.5 $0.00005 $0.00544
Haiku 4.5 $0.00002 $0.00272

Measured 27d ago against content hash 213108375e6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unity 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 27d 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.

plugins/unity-development/commands/unity.md · 315 lines

How it starts

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

Unity 6 design and implementation

You are a unity-engineer agent with deep Unity 6 expertise. Help the user design or implement a Unity feature with proper idiomatic patterns and the right architectural forks.

Context

The user is working on a Unity 6 game (or upgrading an older Unity project). They need: architecture decision, C# implementation, Unity-specific refactoring, or debug for a Unity-specific scenario.

Requirements

$ARGUMENTS

Instructions

1. Clarify the architectural forks if not stated

If the user said "I'm starting a Unity project" without specifying:

  • Render Pipeline: URP (default recommendation), HDRP (high-end 3D), Built-in (only if maintaining old project)
  • 2D or 3D: changes Render Pipeline, asset patterns, input handling
  • MonoBehaviour or DOTS: default MonoBehaviour unless they have a specific entity-count or determinism need
  • Single or multiplayer: changes networking layer recommendation
  • Platform target: PC + console + mobile + WebGL each have different gotchas

If the feature is small and the project is established, skip clarification and proceed.

2. Make architectural decisions explicitly

Don't sneak architectural choices into code. Call them out:

Architecture decisions:
- Render Pipeline: URP (recommended for 2D + most projects)
- Update model: MonoBehaviour (entity count < 1000; DOTS would be premature)
- Asset management: Addressables (modern Unity recommendation)
- Input: New Input System (Player Input component pattern)
- Networking: Not applicable (single-player)

3. Design the GameObject hierarchy

Common patterns:

2D platformer player:

Player (GameObject)
├─ Sprite Renderer + SpriteAnimator
├─ Rigidbody2D (kinematic for direct control)
├─ Collider2D (BoxCollider2D or CapsuleCollider2D)
├─ PlayerInput (component)
└─ PlayerController.cs (your script)

3D third-person character:

Player (GameObject)
├─ Mesh Renderer + AnimatorController
├─ CharacterController (component)
├─ PlayerInput
├─ Camera (child, or use Cinemachine Virtual Camera elsewhere)
└─ PlayerController.cs

Read the full file on GitHub · 315 lines

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. 27d ago Changed · +93 lines · +24 tokens per session 213108375e6e
  2. 1mo ago First seen · 222 lines · 0 tokens per session scan A 3beea814367c

Subscribe to this mod's changes

unity is a command published in the GitHub repository HermeticOrmus/LibreGameDev-Claude-Code (5 stars, last pushed 27d ago), licensed MIT. It adds 24 tokens to every session and 2,721 once invoked, about $0.0001 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 commands, from other repositories

scripts

Commands for creating C# script files, attaching MonoBehaviours to GameObjects, and reading/writing serialized fields. Writing a .cs file does not make its type available — Unity must import and compile it (a domain reload) first. The flow is: createscript → recompile → poll recompilestatus (until completed/uptodate)…

Alex-Rachel/TEngine · 0 tokens

animation

Author animation assets: AnimationClips (and their float curves), AnimatorControllers (parameters, layers, states, transitions), and Timeline assets. Create commands write under the authoring root and follow the shared confirm/dryrun convention.

Alex-Rachel/TEngine · 0 tokens

build-and-compilation

These commands drive the build/compile/test dev loop, plus build configuration: triggering Player builds and reading the resulting BuildReport, switching the active build target, enumerating targets, reading/writing EditorUserBuildSettings, and listing Build Profiles. Several commands are asynchronous: trigger the…

Alex-Rachel/TEngine · 0 tokens

project-settings

Read and change a representative slice of Unity's project-wide settings (Audio, Graphics, Input, Physics, Player, Quality, Tags & Layers, Time). get commands read a group's current values into a ProjectSettingsResponse; set commands mutate them through the shared confirm/dryrun convention, so confirm=true is required…

Alex-Rachel/TEngine · 0 tokens

assets-and-files

Commands for creating, importing, moving, copying, renaming, deleting and finding project assets, plus folder and text-file operations. Every agent-supplied path is funnelled through the authoring-root sandbox (it rejects ../ and out-of-project writes); destructive or overwriting operations require confirm=true and…

Alex-Rachel/TEngine · 0 tokens

gameobjects-and-components

Commands for creating GameObjects, querying the scene hierarchy, mutating the core GameObject/Transform surface, and adding/removing components and editing their serialized properties. Scene mutations are wrapped in Unity's Undo system (so a multi-step action reverts as one collapsible step) and are blocked during…

Alex-Rachel/TEngine · 0 tokens