script-read

script-read is a skill for Claude Code from IvanMurzak/Unity-MCP. It costs 49 tokens per session (648 once invoked), scanned A, original, Apache-2.0.

A tool for reading the contents of a C# script file, either entirely or as a selected range of lines. It returns the code as text.

In plain words
What is it for?
Use it to review Unity scripts, examine a specific section, or read code before updating or deleting it.
Why use it?
It helps you inspect an existing script before changing it, without opening the file manually or reading more lines than needed.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to review Unity scripts, examine a specific section, or read…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ivanmurzak/unity-mcp/script-read
About the project

Unity-MCP connects AI coding agents to the Unity game engine through MCP, letting them work with the Unity Editor and running games. It is used by game developers to generate code, automate development and testing, debug projects, and add AI-driven behavior to games. The catalogue entries provide skills, instructions, an MCP integration, and settings for operating this workflow.

IvanMurzak/Unity-MCP · 4,177 stars · on GitHub · ai-game.dev

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 IvanMurzak/Unity-MCP --skill script-read
Clone the repo
git clone --depth 1 https://github.com/IvanMurzak/Unity-MCP

Made for: Claude Code.

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 script-read

README.md
[![agentmods](https://agentmods.dev/badge/skills/ivanmurzak/unity-mcp/script-read.svg)](https://agentmods.dev/skills/ivanmurzak/unity-mcp/script-read)
Your own site
<a href="https://agentmods.dev/skills/ivanmurzak/unity-mcp/script-read"><img src="https://agentmods.dev/badge/skills/ivanmurzak/unity-mcp/script-read.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 648 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.00049 $0.00648
Opus 5 $0.00024 $0.00324
Sonnet 5 $0.00010 $0.00130
Haiku 4.5 $0.00005 $0.00065

Measured 3d ago against content hash 569168e8638e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

script-read 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 3d 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.

Unity-MCP-Plugin/.claude/skills/script-read/SKILL.md · 96 lines

How it starts

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

Script / Read

Reads the content of a script file and returns it as a string. Use 'script-update-or-create' tool to update or create script files.

Inputs

  • filePath — required .cs path. Throws if missing on disk.
  • lineFrom (default 1, 1-based) — start line; clamped into valid range.
  • lineTo (default -1 = end-of-file, 1-based) — inclusive end line; clamped into valid range.

Behavior

Reads the file with File.ReadAllLines and slices [lineFrom..lineTo] (inclusive). The slice indices are clamped — passing out-of-range lineFrom/lineTo is forgiving (read returns at-most the whole file).

How to Call

unity-mcp-cli run-tool script-read --input '{
  "filePath": "string_value",
  "lineFrom": 0,
  "lineTo": 0
}'

For complex input (multi-line strings, code), save the JSON to a file and use:

unity-mcp-cli run-tool script-read --input-file args.json

Or pipe via stdin (recommended):

unity-mcp-cli run-tool script-read --input-file - <<'EOF'
{"param": "value"}
EOF

Troubleshooting

If unity-mcp-cli is not found, either install it globally (npm install -g unity-mcp-cli) or use npx unity-mcp-cli instead. Read the /unity-initial-setup skill for detailed installation instructions.

Input

Name Type Required Description
filePath string Yes The path to the file. Sample: "Assets/Scripts/MyScript.cs".
lineFrom integer No The line number to start reading from (1-based).
lineTo integer No The line number to stop reading at (1-based, -1 for all lines).

Input JSON Schema

{
  "type": "object",
  "properties": {
    "filePath": {
      "type": "string"
    },
    "lineFrom": {
      "type": "integer"
    },
    "lineTo": {
      "type": "integer"
    }
  },
  "required": [
    "filePath"
  ]
}

Output

Output JSON Schema

{
  "type": "object",
  "properties": {
    "result": {
      "type": "string"
    }
  },
  "required": [
    "result"
  ]
}

Read the full file on GitHub · 96 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. 3d ago First seen · 96 lines · 49 tokens per session scan A 569168e8638e

Subscribe to this mod's changes

script-read is a skill published in the GitHub repository IvanMurzak/Unity-MCP (4,177 stars, last pushed 2d ago), licensed Apache-2.0. It adds 49 tokens to every session and 648 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-09-03.

Related

Other skills, from other repositories

gdextension

Use when building native extensions for Godot — godot-cpp (C++) or gdext (Rust), binding classes, building, and GDScript/C# interop.

jame581/GodotPrompter · 38 tokens

fantasy-net

This guide applies to development and code review for Fantasy / Fantasy.Net / Fantasy.Unity written in C#. Use it when a task involves Fantasy server code or Unity client code using Fantasy, ECS entities/components/systems, scenes and subscenes, FTask, network handlers/messages/protocols, Address or Roaming routing…

qq362946/Fantasy · 157 tokens

sbox

Use when writing or modifying code for s&box, sbox, the Facepunch sandbox engine, or any Source 2 game project in C#. Triggers on mentions of s&box, sbox, sandbox game, Facepunch engine, Source 2 game, .sbproj, .razor with PanelComponent, @inherits PanelComponent, Sandbox.Component, GameObject + Components.Get …

gavogavogavo/claude-sbox · 197 tokens

unity-csharp

A set of practical guidelines for writing Unity game scripts in C#. Unity is a game engine, and these rules cover its update loop, object lifetime, memory cleanup, coroutines, and editable data.

Wade-DevCode/awesome-coding-skills-cn · 28 tokens

Calcul de chemin d'escalade 3D sur mesh

Génère un algorithme en C# pour Unity permettant de calculer un chemin d'escalade sur un mesh 3D (montagne/falaise) entre deux points, en utilisant une projection sur plan et des raycasts pour assurer un chemin droit et praticable.

ECNU-ICALK/AutoSkill · 71 tokens

Unity Shader Graph Artist

Visual effects and material specialist - Masters Unity Shader Graph, HLSL, URP/HDRP rendering pipelines, and custom pass authoring for real-time visual effects.

GetSkill-Agent/getskill-skills · 39 tokens