unity-script

Automate Unity C# script creation, editing, and refactoring with compile diagnostics.

6|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/dyCuong03/unity-agent-team --skill unity-script-dycuong03
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-script
Source: https://github.com/dyCuong03/unity-agent-team/tree/main/.claude/skills/unity-skills/skills/script
Command: npx skills add https://github.com/dyCuong03/unity-agent-team --skill unity-script-dycuong03

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction of creating, editing, and maintaining Unity C# scripts by handling file operations and helping you verify results through compile diagnostics and Domain Reload awareness.

Core Features & Use Cases

  • Batch-first script creation: Create 2+ scripts in one call while minimizing Domain Reload churn.
  • Safe script CRUD: Create, read, replace (find-and-replace), append, rename, move, and delete Unity scripts using well-defined inputs and outputs.
  • Compile feedback visibility: Retrieve compile diagnostics for a specific script after Unity recompiles, including handling transient unavailability during Domain Reload.

Quick Start

Create multiple Unity C# scripts in one batch and then check compilation errors for any script that fails.

Frequently Asked Questions about unity-script

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

FAQPage Schema
How do I batch create Unity C# scripts and avoid triggering multiple Domain Reloads?

Batch-first Unity C# script creation generates multiple MonoBehaviour or ScriptableObject files in a single call, minimizing Domain Reload churn. You provide multiple script definitions, and the operation processes them together to prevent sequential recompilation overhead.

What is the best way to refactor and move Unity scripts across Assets folders?

Refactoring Unity scripts involves safe file operations that rename, move, or replace C# scripts across Assets folders. You specify the target path and new naming convention, and the process handles the file relocation while preserving the script structure.

How can I retrieve compile diagnostics for a Unity C# script after recompilation?

Compile feedback visibility retrieves Unity compile diagnostics for a specific script after recompilation completes. It handles transient unavailability during Domain Reload by waiting for Unity to finish, then surfacing compile errors for the target script.

Does Unity script generation support appending code to existing MonoBehaviour files?

Unity script editing supports safe append operations on existing C# files. You provide the target script and the code block to append, and the operation inserts the new code while maintaining the MonoBehaviour class structure.

What happens to compile feedback during Unity Domain Reload?

During Domain Reload, compile diagnostics are transiently unavailable while Unity recompiles. The compile feedback interface accounts for this state, waiting for Domain Reload to complete before retrieving accurate compile errors for the requested script.

Can I delete and replace Unity C# scripts using find-and-replace operations?

Safe script CRUD operations support replacing Unity C# scripts through find-and-replace logic, as well as deleting them entirely. You define the search string and replacement code, and the operation safely modifies the existing script file.