Borrowing it
Nothing to install: this file belongs to Signal-Loop/UnityCodeMCPServer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Signal-Loop/UnityCodeMCPServer/main/.agents/skills/executing-csharp-scripts-in-unity-editor/SKILL.mdgit clone --depth 1 https://github.com/Signal-Loop/UnityCodeMCPServerWrote 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.
[](https://agentmods.dev/skills/signal-loop/unitycodemcpserver/executing-csharp-scripts-in-unity-editor)<a href="https://agentmods.dev/skills/signal-loop/unitycodemcpserver/executing-csharp-scripts-in-unity-editor"><img src="https://agentmods.dev/badge/skills/signal-loop/unitycodemcpserver/executing-csharp-scripts-in-unity-editor/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.
<a href="https://agentmods.dev/skills/signal-loop/unitycodemcpserver/executing-csharp-scripts-in-unity-editor"><img src="https://agentmods.dev/badge/skills/signal-loop/unitycodemcpserver/executing-csharp-scripts-in-unity-editor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to medium
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 →
- medium Prompt Injection · line 25 Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
- medium Prompt Injection · line 198 Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00095 | $0.03461 |
| Opus 5.5 | $0.00038 | $0.01384 |
| Sonnet 5.5 | $0.00019 | $0.00692 |
| Haiku 4.5 | $0.00010 | $0.00346 |
Grade A, and why
executing-csharp-scripts-in-unity-editor 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 310 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Executing C# Scripts in Unity Editor
Table of Contents
- Available Tools
- Core Principles
- Forbidden Patterns
- Usage Workflow
- Debugging Loop
- Favourite Scripts
- Script Context and APIs
- Common Scripting Patterns
Available Tools
This skill coordinates three tools within one workflow. Use the tool that matches the task, and combine them when the task crosses from source edits to Editor automation or test verification.
| Tool | Purpose | When to Use |
|---|---|---|
execute_csharp_script_in_unity_editor |
Executes C# code in the live Unity Editor (Roslyn) | Modifying scenes, GameObjects, Components, Prefabs, ScriptableObjects, or running Editor automation. Script output and logs are returned directly in the tool result. |
read_unity_console_logs |
Reads recent entries from the Unity Editor Console | Before executing an Editor script or Unity test when the task depends on compiled C# code. Also useful when debugging unexpected Editor state. |
run_unity_tests |
Runs EditMode or PlayMode Unity tests via TestRunnerApi | After editing C# source files to verify logic correctness. Do not use it for ad-hoc code execution, and do not run it solely because an Editor script was executed. |
Execute C# Script Tool Contract
Use execute_csharp_script_in_unity_editor for live Unity Editor work:
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.
- 2mo ago First seen · 310 lines · 95 tokens per session scan A 196e65ee8bdd
executing-csharp-scripts-in-unity-editor is a skill published in the GitHub repository Signal-Loop/UnityCodeMCPServer (20 stars, last pushed 2mo ago), licensed MIT. It adds 95 tokens to every session and 3,461 once invoked, about $0.0004 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-30.
executing-csharp-scripts-in-unity-editor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| executing-csharp-scripts-in-unity-editorSignal-Loop/UnityCodeMCPServer | Skill | 20 | 2mo ago | MIT | A | 95 | Claude Code, Codex |
| steam-mcpsandraschi/steam-mcp | Skill | 3 | today | MIT | A | 0 | Claude Code, Codex |
| weppy-roblox-game-presentation-guidehope1026/weppy-roblox-mcp | Skill | 74 | 5d ago | none | A | 57 | Claude Code, Codex |
| weppy-roblox-game-feel-guidehope1026/weppy-roblox-mcp | Skill | 74 | 5d ago | none | A | 65 | Claude Code, Codex |
| weppy-roblox-environment-guidehope1026/weppy-roblox-mcp | Skill | 74 | 5d ago | none | A | 52 | Claude Code, Codex |
| weppy-roblox-mcp-guidehope1026/weppy-roblox-mcp | Skill | 74 | 5d ago | none | A | 53 | Claude Code, Codex |
| weppy-roblox-sync-guidehope1026/weppy-roblox-mcp | Skill | 74 | 5d ago | none | A | 54 | Claude Code, Codex |