unity-csharp-editing

Edit, search, and refactor Unity C# scripts using a compact code index.

32|6|Updated Sep 6, 2025
One-click install
npx skills add https://github.com/akiojin/unity-mcp-server --skill unity-csharp-editing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-csharp-editing
Source: https://github.com/akiojin/unity-mcp-server/tree/main/.claude/skills/unity-csharp-editing
Command: npx skills add https://github.com/akiojin/unity-mcp-server --skill unity-csharp-editing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill focuses on efficient editing, searching, and refactoring of Unity C# scripts, supporting a TDD cycle, symbol navigation, and structured edits to keep codebases healthy and scalable.

Core Features & Use Cases

  • Code indexing & symbol navigation: Quick lookup of symbols, definitions, and references.
  • Reading & editing workflows: Read portions of files, apply lightweight edits (snippets) or full structured changes.
  • TDD-oriented patterns: Contract-first tests and safe refactors with precise diffs.

Quick Start

Initialize the index, list symbols in a script, and perform a small replacement within 80 characters to illustrate the workflow.

Frequently Asked Questions about unity-csharp-editing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search for symbols and references in Unity C# scripts?

Symbol navigation searches your Unity codebase by looking up definitions and all references to classes, methods, and variables. Build an index of your scripts, then use find_symbol and find_refs operations to instantly locate where any symbol is defined or used across your project.

Can I refactor Unity C# code with precise diffs and safety checks?

Structured edits apply refactoring changes with exact diffs, reducing risk of unintended modifications. The Skill supports edit_snippet for lightweight replacements and edit_structured for full-scale refactors, both backed by code indexing to ensure accuracy across your codebase.

How do I set up a test-driven development workflow for Unity scripts?

Contract-first testing starts with test definitions before implementation. Initialize the code index, write tests as specifications, then use guided edit operations to implement methods and classes. The Skill maintains the index as you edit, keeping symbol references current for safe TDD cycles.

What's required before I can start editing and searching Unity C# files?

Initialize a code index by reading your Unity project's Assets and package directories. Index construction scans C# scripts and builds a compact 5x output reference table, enabling fast symbol lookup and read operations on your indexed codebase.

Does this work with large Unity projects across multiple scripts and packages?

Index-based editing scales to multi-file projects across Assets and related packages. The compact index enables rapid navigation and editing across your entire codebase without re-parsing each time, making it suitable for ongoing refactoring and maintenance workflows.

Can I apply small text replacements within my Unity scripts?

Edit_snippet operations handle lightweight replacements—changes under 80 characters—with pinpoint accuracy. Combined with symbol navigation, snippet edits let you quickly fix references, rename fields, or update method calls without rewriting entire files.

Related Skills