unity-vrc-udon-sharp

unity-vrc-udon-sharp is a skill for Claude Code from niaka3dayo/agent-skills-vrc-udon. It costs 184 tokens per session (9,177 once invoked), scanned A, original, MIT.

A guide for writing, reviewing, debugging, and migrating UdonSharp code, which is C# code used to control objects in VRChat worlds. It targets VRChat SDK 3.10.4 and explains the limits of VRChat's Udon runtime.

In plain words
What is it for?
Use it to build or fix UdonSharp scripts and UdonBehaviour components, especially code involving network messages, player permissions, ownership, or synchronized runtime state.
Why use it?
It helps avoid code that looks valid in ordinary C# but fails or behaves silently in VRChat. It also addresses multiplayer problems such as changing shared data without ownership or forgetting to send updates to other players.

Skill for Claude Code

Written for Claude Code: PostToolUse hook event.

Part of the vrc-udon-skills plugin — 2 skills shipped together

Good fit Use it to build or fix UdonSharp scripts and UdonBehaviour components, especially code involving network messages, player permissions, ownership, or synchronized runtime state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/niaka3dayo/agent-skills-vrc-udon/unity-vrc-udon-sharp
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 niaka3dayo/agent-skills-vrc-udon --skill unity-vrc-udon-sharp
Clone the repo
git clone --depth 1 https://github.com/niaka3dayo/agent-skills-vrc-udon

Made for: Claude Code.

Or install vrc-udon-skills, the plugin that ships this one along with the rest of its 2 skills.

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-vrc-udon-sharp

README.md
[![agentmods](https://agentmods.dev/badge/skills/niaka3dayo/agent-skills-vrc-udon/unity-vrc-udon-sharp/github.svg)](https://agentmods.dev/skills/niaka3dayo/agent-skills-vrc-udon/unity-vrc-udon-sharp)
Your own site
<a href="https://agentmods.dev/skills/niaka3dayo/agent-skills-vrc-udon/unity-vrc-udon-sharp"><img src="https://agentmods.dev/badge/skills/niaka3dayo/agent-skills-vrc-udon/unity-vrc-udon-sharp/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-vrc-udon-sharp

Your own site · 80×15
<a href="https://agentmods.dev/skills/niaka3dayo/agent-skills-vrc-udon/unity-vrc-udon-sharp"><img src="https://agentmods.dev/badge/skills/niaka3dayo/agent-skills-vrc-udon/unity-vrc-udon-sharp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 184 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,177 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. Third-party audits
  • Socket pass 20 May 2026
  • Snyk warn 20 May 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 101
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
How audits are shown
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.00184 $0.09177
Opus 5 $0.00092 $0.04588
Sonnet 5 $0.00037 $0.01835
Haiku 4.5 $0.00018 $0.00918

Measured 7d ago against content hash 4c2b92d97b5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

unity-vrc-udon-sharp 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 7d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (hooks/validate-udonsharp.ps1, hooks/validate-udonsharp.sh), 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.

skills/unity-vrc-udon-sharp/SKILL.md · 347 lines

How it starts

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

UdonSharp Skill

Why This Skill Matters

UdonSharp looks like regular Unity C# scripting — until you hit its hidden walls. Many standard C# features (List<T>, async/await, try/catch, LINQ, generics) silently fail or refuse to compile in code that runs in the Udon runtime. Editor-evaluated field initializers are a separate context: they can use some ordinary C# features to generate a final value that Udon can hold. Networking is even more treacherous: modifying a synced variable without ownership produces no error — it just does nothing. Forgetting RequestSerialization means your state changes never leave your machine. Standard single-player local testing gives zero signal about these networking bugs because there is only one player.

Every rule in this skill exists because UdonSharp's default behavior is to fail silently. Read the Rules before generating any code.

Before Writing Network Code

Four architectural decisions that must be made before choosing sync modes or writing any synced variable. Changing them mid-implementation typically requires a full rewrite:

  • Who owns this state? One owner writes; all others read. If two players can both write (e.g., a shared toggle), you need an ownership transfer protocol — writes without ownership are silently discarded.
  • When does ownership transfer? On grab? Interact? Game event? OnPlayerLeft? Networking.SetOwner is locally immediate on the calling client — Networking.IsOwner(gameObject) is true synchronously after the call, and writing [UdonSynced] fields plus RequestSerialization() immediately afterwards is safe under an IsOwner guard. Concurrent SetOwner calls from multiple clients are resolved by network arrival order — there is no client-side arbitration, so accept that the loser's write is overwritten.
  • What do late joiners see? State set only by one-time events (SendCustomNetworkEvent) is invisible to late joiners. Late-joiner-visible state must live in [UdonSynced] variables, which are delivered automatically via OnDeserialization; no manual RequestSerialization() on join is needed.
  • What if the owner leaves mid-session? VRChat automatically transfers ownership to a remaining player (selection rule is not publicly documented), and OnOwnershipTransferred fires on all clients. Synced variables are preserved, so state is not frozen; decide upfront whether to keep the current value, reset to a known default, or re-apply/re-broadcast derived state in OnOwnershipTransferred.

Read the full file on GitHub · 347 lines

Files

What ships with it

49 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. 7d ago Changed · +3 lines · +12 tokens per session 4c2b92d97b5d
  2. 12d ago First seen · 344 lines · 172 tokens per session scan A 5ceafd959c24

Subscribe to this mod's changes

unity-vrc-udon-sharp is a skill published in the GitHub repository niaka3dayo/agent-skills-vrc-udon (299 stars, last pushed 6d ago), licensed MIT. It adds 184 tokens to every session and 9,177 once invoked, about $0.0009 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 skills, from other repositories

neo4j-driver-dotnet-skill

Neo4j .NET Driver v6 — IDriver lifecycle, DI registration (singleton), ExecutableQuery fluent API, ExecuteReadAsync/ExecuteWriteAsync managed transactions, IResultCursor (FetchAsync/ ToListAsync), record value access (.Get /As ), null safety, UNWIND batching, temporal types, await using, EagerResult, object mapping…

neo4j-contrib/neo4j-skills · 187 tokens

unity-csharp-architecture-and-ecs

Architectural patterns, Data-Oriented Technology Stack (DOTS), Unity ECS, Burst Compiler, C# Job System, memory management, zero-allocation C# patterns, and frame-budget optimization for high-performance Unity game development.

hamzabellouch/agent-skills · 54 tokens

godot-gdscript-patterns

Enterprise architecture patterns for Godot Engine 4.x using GDScript and C#, Node tree composition, Custom Resources, Signal Bus patterns, Direct Server APIs (PhysicsServer, RenderingServer), memory management, and performance profiling.

hamzabellouch/agent-skills · 53 tokens

avalonia-viewmodels-zafiro

Optimal ViewModel and Wizard creation patterns for Avalonia using Zafiro and ReactiveUI.

agent-skills-hub/agent-skills-hub · 26 tokens

csharp-pro

Write modern C# code with advanced features like records, pattern matching, and async/await. Optimizes .NET applications, implements enterprise patterns, and ensures comprehensive testing. Use PROACTIVELY for C# refactoring, performance optimization, or complex .NET solutions.

agent-skills-hub/agent-skills-hub · 58 tokens

reflection-method-call

Call a C# method by reflection — including private methods. Requires a method schema obtained via 'reflection-method-find'. Supports static methods, instance methods (with optional target deserialization), and main-thread / off-thread execution.

IvanMurzak/Unity-MCP · 48 tokens