script-update-or-create

Create or update Unity C# scripts and refresh AssetDatabase.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/lightvu25/Echoes --skill script-update-or-create-lightvu25
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: script-update-or-create
Source: https://github.com/lightvu25/Echoes/tree/main/SKILLS/script-update-or-create
Command: npx skills add https://github.com/lightvu25/Echoes --skill script-update-or-create-lightvu25

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Updates or creates a Unity C# script file with automatic AssetDatabase.Refresh() and clear compilation error reporting, reducing iteration time during Unity development.

Core Features & Use Cases

  • Update or create scripts at a given path with built-in validation and immediate AssetDatabase.Refresh().
  • Return detailed syntax error feedback when compilation fails to help quick debugging.
  • Use when automating script provisioning from external tools or AI-driven code generation in Unity projects.

Quick Start

Create or update a Unity C# script at the specified path and let AssetDatabase.Refresh run, reporting any compilation errors.

Frequently Asked Questions about script-update-or-create

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

FAQPage Schema
How do I automatically create or update a Unity C# script and trigger AssetDatabase.Refresh?

To automate Unity C# script creation or updates with AssetDatabase.Refresh, provide a target file path and script content. The tool writes the file and immediately calls AssetDatabase.Refresh to make the new script visible in the Unity Editor.

Can I see compilation errors when automatically generating Unity C# scripts?

Yes, you can see compilation errors when generating Unity C# scripts. After creating or updating the script and running AssetDatabase.Refresh, the tool returns detailed syntax error feedback to help you debug and apply rapid fixes.

What is the best way to automate bulk script updates in a Unity project?

The best way to automate bulk script updates in Unity is to use an automated provisioning tool that writes C# files to specified paths and triggers AssetDatabase.Refresh, ensuring immediate validation and syntax error reporting for each file.

Does this automated script provisioning work with AI-driven code generation in Unity?

Yes, automated script provisioning works with AI-driven code generation in Unity. You can pass AI-generated C# code to the tool, which writes it to a file path, refreshes the AssetDatabase, and reports any compilation errors for validation.

Why do I need to run AssetDatabase.Refresh after creating a Unity C# script?

You need to run AssetDatabase.Refresh after creating a Unity C# script so the Unity Editor recognizes the new or updated file. This ensures the script is imported, compiled, and checked for syntax errors immediately.