script-update-or-create
Installation
SKILL.md
Script / Update or Create
Updates or creates script file with the provided C# code. Does AssetDatabase.Refresh() at the end. Provides compilation error details if the code has syntax errors. Use 'script-read' tool to read existing script files first.
Inputs
filePath— required.cspath.content— C# source. MUST passScriptUtils.IsValidCSharpSyntax.requestId— required for the processing/delivered-later contract.
Behavior
Creates any missing parent directories, writes the file, then calls AssetDatabase.Refresh and schedules a post-compilation notification so the final response is delivered after Unity finishes the recompile.