Agent skill

Unity Csharp Reference

by akiojin in akiojin/unity-cli

Browse Unity Technologies' official UnityCsReference C source as a read-only local cache.

MITAuto-check passedGame Development

Install Unity Csharp Reference

skills CLI
$ npx skills add akiojin/unity-cli --skill unity-csharp-reference -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install akiojin/unity-cli unity-csharp-reference --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/akiojin/unity-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude-plugin/plugins/unity-cli/skills/unity-csharp-reference .claude/skills/unity-csharp-reference && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
unity-csharp-reference
GitHub stars
107
Token cost
~1.5k tokens
SKILL.md length
591 words
Files
6 (incl. references)
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

Browse Unity Technologies' official UnityCsReference C source as a read-only local cache.

  • Works in 5 steps: Run the runtime checklist in… → Populate the cache for the project's… → Use unity-cli reference grep for… → …
  • The user asks about the exact signature
  • SKILL.md covers Use When, Do Not Use When, Preferred Flow and Examples, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Unity Csharp Reference is an agent skill from akiojin/unity-cli. Browse Unity Technologies' official UnityCsReference C source as a read-only local cache. Use when the user asks about the exact signature, behavior, or internal implementation of a Unity API, when comparing API differences between Unity versions, or when validating LLM-suggested Unity code against the canonical source. Do not use for editing project code (use unity-csharp-edit). Do not use for project-local script reading (use unity-csharp-navigate).

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/embed-search-playbook.md`, `references/fetch-and-cache.md` and `references/runtime-checklist.md`).

It sits in Game Development. It works with C#. The repository describes itself as: Rust CLI for Unity Editor automation over Unity TCP protocol. The licence is MIT.

When your agent uses it

  • The user asks about the exact signature
  • Internal implementation of a Unity API
  • Comparing API differences between Unity versions
  • Validating LLM-suggested Unity code against the canonical source

Example prompts

  • “/unity-csharp-reference”

Requirements

  • Pre-approved tools (allowed-tools): Bash(unity-cli:*), Read, Grep, Glob

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Run the runtime checklist in runtime-checklist.md before the first fetch in a new environment.
  2. Populate the cache for the project's Unity version with unity-cli reference fetch --accept-license (one-time per version).
  3. Use unity-cli reference grep for line-level pattern lookups with optional context, or unity-cli reference search for filtered file hits.
  4. Open the candidate file with unity-cli reference view --start-line N --max-lines M to read the relevant span.
  5. Confirm the signature or behavior, then hand off to unity-csharp-navigate for project sources or unity-csharp-edit for writes.

What it can do on your machine

Read from SKILL.md and the folder at commit 7f45d7a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(unity-cli:*)
    • Read
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Unity Csharp Reference loads about 1.5k tokens when it runs, and up to ~5.8k if it reads all its reference files. Until then it costs about 121 tokens; SKILL.md has 591 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~121
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from akiojin/unity-cli at commit 7f45d7a, republished under its MIT licence (© akiojin). 591 words, ~1,492 tokens.

Download SKILL.mdSave it as .claude/skills/unity-csharp-reference/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
unity-csharp-reference
description
Browse Unity Technologies' official UnityCsReference C# source as a read-only local cache. Use when the user asks about the exact signature, behavior, or internal implementation of a Unity API, when comparing API differences between Unity versions, or when validating LLM-suggested Unity code against the canonical source. Do not use for editing project code (use `unity-csharp-edit`). Do not use for project-local script reading (use `unity-csharp-navigate`).
allowed-tools
Bash(unity-cli:*), Read, Grep, Glob
metadata.author
akiojin
metadata.version
0.1.0
metadata.category
code
metadata.triggers
reference, unity-api, signature, unity-source, version-diff
metadata.siblings
unity-csharp-navigate, unity-csharp-edit, unity-scene-inspect

Unity C# Reference

With --output json, results use {success, command, data, errors, warnings}. Check the exit status and envelope success first; tool-result fields in this skill are relative to data. Read failure codes from errors[0].code; see unity-cli-usage for exit-code recovery.

Browse Unity Technologies' official UnityCsReference C# source as a read-only local cache. This skill is the sibling of unity-csharp-navigate (project sources) and unity-csharp-edit (writes). Hand off as soon as the request implies project-level reading or a write.

Use When

  • The user asks about the exact signature, attributes, or behavior of a Unity API such as UnityEngine.Animator.Play or UnityEditor.AssetDatabase.Refresh.
  • The user wants to read the internal implementation of a Unity type to predict performance characteristics or side effects.
  • The user compares API differences between Unity versions (LTS vs Tech release branches).
  • The user wants to validate an LLM-suggested Unity script against the canonical Unity source.

Do Not Use When

  • The user wants to read project-local scripts; use unity-csharp-navigate.
  • The user wants to write or refactor C# code; use unity-csharp-edit.
  • The user wants Unity scene state, packages, or assets; use the matching scene, asset, or editor skill family.

Preferred Flow

  1. Run the runtime checklist in runtime-checklist.md before the first fetch in a new environment.
  2. Populate the cache for the project's Unity version with unity-cli reference fetch --accept-license (one-time per version).
  3. Use unity-cli reference grep for line-level pattern lookups with optional context, or unity-cli reference search for filtered file hits.
  4. Open the candidate file with unity-cli reference view --start-line N --max-lines M to read the relevant span.
  5. Confirm the signature or behavior, then hand off to unity-csharp-navigate for project sources or unity-csharp-edit for writes.
bash
unity-cli reference fetch --accept-license
unity-cli reference status --output json
unity-cli reference find-symbol --name Animator --kind class
unity-cli reference grep "class Animator " --context 3
unity-cli reference view Runtime/Export/Animation/Animator.bindings.cs --start-line 100 --max-lines 60
unity-cli reference diff --from 2022.3.10f1 --to 2023.2.20f1 --symbol UnityEngine.Animator
unity-cli reference resolve-symbol-at Assets/Scripts/Player.cs --line 42 --column 18
unity-cli reference embed-build --version 2023.2.20f1
unity-cli reference embed-search --query "animator state callback" --version 2023.2.20f1
unity-cli reference clean --keep 1 --dry-run

Use reference find-symbol first when you already know the type name (class / interface / struct / enum). It is backed by an on-disk index per Unity version (~/.unity/cache/UnityCsReference/<version>/.unity-cli-index/symbols.json) and is faster than grep for repeated lookups. Drop back to grep for free-text patterns or member-level matches.

Use reference diff to compare two cached Unity versions. The default symbol-only mode (--symbol <fqn>) returns a single before/after pair, and the opt-in path mode (--path <subpath> [--max-symbols N]) lists added / removed / changed type definitions in a directory.

Show full SKILL.md (233 more words)Show less

Use reference resolve-symbol-at <project-rel-path> --line <n> --column <m> when the user is on a specific cursor position in a project file (Assets/... or Packages/...) and wants to see the canonical Unity reference for the type under the cursor. The tool is a thin wrapper: it reads the project file, extracts the identifier at the cursor, and feeds it through reference find-symbol + reference view for each cached version.

Use reference embed-build + reference embed-search --query "..." for semantic / natural-language lookup when the user has a concept ("animator state callback") instead of an exact symbol name. The first call downloads the BGE-Small-EN ONNX model (~130MB, cached under the platform-default fastembed cache) and writes a per-version .unity-cli-index/embeddings.bin. Subsequent embed-search calls only run a single query embedding and a linear cosine scan over that file, so they stay fast. The result is sorted by score (cosine similarity, higher is closer); find-symbol and grep remain the right tools when the exact symbol name is already known.

Examples

  • "Show me how Unity implements Animator.Play so I can predict whether it allocates."
  • "Compare UnityWebRequest.Get between Unity 2022.3 and Unity 6 staging."
  • "Confirm the exact signature of EditorApplication.delayCall before I wire it into the build pipeline."

References

  • runtime-checklist.md: runtime prerequisites and license acceptance before the first fetch.
  • fetch-and-cache.md: reference fetch, status, and clean command details and branch mapping per Unity version.
  • symbol-lookup-playbook.md: the canonical reference → navigate → edit workflow when validating LLM-suggested Unity code.

© akiojin, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in .claude-plugin/plugins/unity-cli/skills/unity-csharp-reference of akiojin/unity-cli.

  • SKILL.md
  • references/embed-search-playbook.md
  • references/fetch-and-cache.md
  • references/runtime-checklist.md
  • references/symbol-lookup-playbook.md
  • references/version-diff-playbook.md

Open the folder on GitHubat commit 7f45d7a

Compare with similar skills

Unity Csharp Reference next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Unity Csharp Reference compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Unity Csharp Reference this skillakiojin/unity-cli107—~1.5kAutomated safety check: PassMIT
Uloop Execute Dynamic CodeCyberAgentGameEntertainment/NovaShader1.6k1 repos~1.9kAutomated safety check: PassMIT
Locus Unity BridgeMisaka-Mikoto-Tech/agent-skills275—~4kAutomated safety check: PassMIT
Validate GsdkPlayFab/gsdk170—~645Automated safety check: PassApache-2.0
Aibridge Development WorkflowFlameskyDexive/Legends-Of-Heroes929—~790Automated safety check: PassMIT
Unity PluginTomLeeLive/openclaw-unity-plugin107—~5.1kAutomated safety check: PassApache-2.0

Similar skills

  • Uloop Execute Dynamic Code

    CyberAgentGameEntertainment/NovaShader

    Execute C with Unity APIs when existing uloop tools cannot inspect or edit enough.

    1.6k GitHub starsUsed in 1 repo~1.9k tokens
    Game DevelopmentAuto-check passed
  • Locus Unity Bridge

    Misaka-Mikoto-Tech/agent-skills

    A skill your agent uses when an agent needs to inspect or control a real Unity Editor through Locus, especially when Unity MCP is unavailable, named-pipe discovery is needed, C must be executed, or…

    275 GitHub stars~4k tokensUpdated 16 days ago
    Game DevelopmentAuto-check passed
  • Validate Gsdk

    PlayFab/gsdk

    Validates PlayFab Game Server SDK (GSDK) integrations in game server projects.

    170 GitHub stars~645 tokensUpdated 3 days ago
    Game DevelopmentAuto-check passed
  • Aibridge Development Workflow

    FlameskyDexive/Legends-Of-Heroes

    AIBridge/Unity 项目的标准开发工作流。Use when creating, modifying, fixing, refactoring, or validating C code, Unity assets, prefabs, editor tools, package structure, tests, AGENTS.md, or local Skills.

    929 GitHub stars~790 tokensUpdated 16 days ago
    Game DevelopmentAuto-check passed
  • Unity Plugin

    TomLeeLive/openclaw-unity-plugin

    Control Unity Editor via OpenClaw Unity Plugin. An agent skill from TomLeeLive/openclaw-unity-plugin.

    107 GitHub stars~5.1k tokensUpdated 29 days ago
    Game DevelopmentAuto-check passed
  • Godot 2D Essentials

    jame581/GodotPrompter

    Covers Godot 4.3+ 2D systems with GDScript and C# examples: canvas layers, draw order, TileMaps, parallax, lights and shadows, particles and custom drawing.

    795 GitHub stars~2.3k tokensUpdated yesterday
    Game DevelopmentAuto-check passed

More from akiojin/unity-cli

All 28 skills in this repo
  • Gh PR

    akiojin/unity-cli

    Create or update GitHub Pull Requests with the gh CLI, including deciding whether to create a new PR or only push based on existing PR merge status.

    107 GitHub stars~2.7k tokensUpdated 2 days ago
    Auto-check passed
  • Gh Skills Sync

    akiojin/unity-cli

    Sync the gh- automation skills from the upstream skills repository into Codex and project skill directories.

    107 GitHub stars~680 tokensUpdated 2 days ago
    Auto-check: notes
  • Unity 2D Sprite Tilemap

    akiojin/unity-cli

    Build and verify a 2D sprite and Tilemap scene with unity-cli.

    107 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed
  • Unity Addressables

    akiojin/unity-cli

    Manage Unity Addressables groups and content with unity-cli.

    107 GitHub stars~700 tokensUpdated 2 days ago
    Auto-check passed
  • Unity Asset Management

    akiojin/unity-cli

    Manage Unity assets and import metadata with unity-cli. An agent skill from akiojin/unity-cli.

    107 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check passed
  • Unity Audio Setup

    akiojin/unity-cli

    Configure Unity audio with unity-cli. An agent skill from akiojin/unity-cli.

    107 GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Unity Csharp Reference

What does Unity Csharp Reference do?

Browse Unity Technologies' official UnityCsReference C source as a read-only local cache. Unity Csharp Reference is an agent skill from akiojin/unity-cli. Browse Unity Technologies' official UnityCsReference C source as a read-only local cache.

When should I use Unity Csharp Reference?

Unity Csharp Reference fits situations like: the user asks about the exact signature; internal implementation of a Unity API; comparing API differences between Unity versions; validating LLM-suggested Unity code against the canonical source.

How do I install Unity Csharp Reference in Claude Code?

Run `npx skills add akiojin/unity-cli --skill unity-csharp-reference -a claude-code`. Or copy the skill folder (.claude-plugin/plugins/unity-cli/skills/unity-csharp-reference in akiojin/unity-cli) into .claude/skills/unity-csharp-reference in your project. Claude Code loads it when a task matches its description.

How do I install Unity Csharp Reference in Codex?

Run `npx skills add akiojin/unity-cli --skill unity-csharp-reference -a codex`. Or copy the skill folder (.claude-plugin/plugins/unity-cli/skills/unity-csharp-reference in akiojin/unity-cli) into .agents/skills/unity-csharp-reference in your project. Codex loads it when a task matches its description.

Can I use Unity Csharp Reference in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add akiojin/unity-cli --skill unity-csharp-reference -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/unity-csharp-reference, .gemini/skills/unity-csharp-reference, .github/skills/unity-csharp-reference and .opencode/skills/unity-csharp-reference in your project.

What does Unity Csharp Reference need to run?

SKILL.md names no scripts, command-line tools or credentials: Unity Csharp Reference is instructions for the agent only. Its frontmatter pre-approves these tools: Bash(unity-cli:*), Read, Grep, Glob.

Does Unity Csharp Reference access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Unity Csharp Reference safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Unity Csharp Reference use?

Unity Csharp Reference is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Unity Csharp Reference use?

About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.3k tokens, read only when the agent opens those files.

What are the alternatives to Unity Csharp Reference?

Skills that share tags, products or a category with Unity Csharp Reference: Uloop Execute Dynamic Code (CyberAgentGameEntertainment/NovaShader, 1.6k stars), Locus Unity Bridge (Misaka-Mikoto-Tech/agent-skills, 275 stars), Validate Gsdk (PlayFab/gsdk, 170 stars) and Aibridge Development Workflow (FlameskyDexive/Legends-Of-Heroes, 929 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Unity Csharp Reference?

akiojin (a GitHub user) maintains it in akiojin/unity-cli, which has 107 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 5, 2026.

Source: akiojin/unity-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.