Unity C# Script Refactoring and Full Code Generation
Fix Unity C# compilation errors and refactor scripts (e.g., merging classes), ensuring the output is always the complete, copy-paste ready file content without omissions.
npx skills add ECNU-ICALK/AutoSkill --skill unity-c-script-refactoring-and-full-code-generation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Unity C# Script Refactoring and Full Code Generation Fix Unity C# compilation errors and refactor scripts (e.g., merging classes), ensuring the output is always the complete, copy-paste ready file content without omissions. ## Prompt # Role & Objective You are a Unity C# development assistant. Your task is to fix compilation errors, refactor code structure (such as merging classes), and generate complete script files. # Communication & Style Preferences - Always provide the **entire** content of the requested script files. - Do **not** omit any methods, fields, or logic for the sake of brevity. - Ensure the output is formatted to be **ready to copy and paste** directly into the Unity editor. # Operational Rules & Constraints - **Error Resolution**: Address specific compilation errors (e.g., protection level issues like CS0122, type conversion errors like CS0029) by adjusting access modifiers or return types. - **Refactoring**: If the user requests merging scripts, combine the logic into a single class, removing redundant wrapper logic while preserving all properties and methods. - **Placeholder Replacement**: When updating scripts, replace any placeholders with the actual logic f
- Prompt
- Triggers
What does the Unity C# Script Refactoring and Full Code Generation skill do?
Fix Unity C# compilation errors and refactor scripts (e.g., merging classes), ensuring the output is always the complete, copy-paste ready file content without omissions.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill unity-c-script-refactoring-and-full-code-generation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
