This skill generates production-ready Unity C# script templates (MonoBehaviour, ScriptableObject, Editor, tests) following Unity conventions and best practices.
npx playbooks add skill dev-gom/claude-code-marketplace --skill unity-template-generator
Assists with generating production-ready Unity C# script templates that follow best practices and Unity conventions.
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](../unity-ui-selector/SKILL.md)).
Test Script - NUnit/PlayMode tests with Setup/TearDown, [UnityTest], performance tests, and Arrange-Act-Assert pattern.
All templates include:
[SerializeField], PascalCase, XML docs)Placeholders: {{CLASS_NAME}}, {{NAMESPACE}}, {{DESCRIPTION}}, {{MENU_PATH}}, {{FILE_NAME}}
See [template-reference.md](template-reference.md) for detailed customization options.
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
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.