Unity Template Generator
FreeNo executable scriptsNot checkedGenerates production-ready C# script templates (MonoBehaviour, ScriptableObject, Editor, tests). Use when creating new scripts or setting up project structure.
About this skill
Unity Template Generator
Assists with generating production-ready Unity C# script templates that follow best practices and Unity conventions.
Available Templates
MonoBehaviour - GameObject components with lifecycle methods, serialized fields, component caching, and Gizmo helpers.
ScriptableObject - Data assets with [CreateAssetMenu], validation, encapsulation, and clone methods.
Editor Script - Custom inspectors or windows. Asks for UGUI vs UI Toolkit preference (see unity-ui-selector).
Test Script - NUnit/PlayMode tests with Setup/TearDown, [UnityTest], performance tests, and Arrange-Act-Assert pattern.
Template Features
All templates include:
- Unity coding conventions (
[SerializeField], PascalCase, XML docs) - Performance patterns (component caching, no GetComponent in Update)
- Code organization (#region directives, consistent ordering)
- Safety features (null checks, OnValidate, Gizmos)
Placeholders: {{CLASS_NAME}}, {{NAMESPACE}}, {{DESCRIPTION}}, {{MENU_PATH}}, {{FILE_NAME}}
See template-reference.md for detailed customization options.
When to Use vs Other Components
Use this Skill when: Discussing template options, understanding template features, or getting guidance on script structure
Use @unity-scripter agent when: Writing custom scripts with specific requirements or implementing complex Unity features
Use @unity-refactor agent when: Improving existing scripts or restructuring code for better maintainability
Use /unity:new-script command when: Actually generating script files from templates with specific parameters
Use /unity:setup-test command when: Setting up complete test environments with test scripts
Related Skills
- unity-script-validator: Validates generated scripts
- unity-ui-selector: Helps choose UI system for Editor scripts
- unity-uitoolkit: Assists with UI Toolkit implementation when generating Editor scripts
Install Unity Template Generator in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
WriteReadGlobFAQ
What does the Unity Template Generator skill do?
Generates production-ready C# script templates (MonoBehaviour, ScriptableObject, Editor, tests). Use when creating new scripts or setting up project structure.
How do I install the Unity Template Generator skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the Unity Template Generator skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic