Unity Template Generator

Generates Unity C# script templates with placeholder substitution and coding conventions.

95|11|Updated Oct 13, 2025
One-click install
npx skills add https://github.com/Dev-GOM/claude-code-marketplace --skill unity-template-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Unity Template Generator
Source: https://github.com/Dev-GOM/claude-code-marketplace/tree/main/plugins/unity-dev-toolkit/skills/unity-template-generator
Command: npx skills add https://github.com/Dev-GOM/claude-code-marketplace --skill unity-template-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Starting new Unity C# scripts from scratch can be repetitive and prone to missing best practices. This Skill automates the generation of production-ready script templates (MonoBehaviour, ScriptableObject, Editor, tests), ensuring consistency, performance, and adherence to Unity conventions from day one.

Core Features & Use Cases

  • Diverse Template Library: Generates templates for MonoBehaviour, ScriptableObject, Editor scripts (UGUI/UI Toolkit), and NUnit/PlayMode tests.
  • Best Practice Integration: All templates include Unity coding conventions, performance patterns (e.g., component caching), and code organization (#region).
  • Customizable Placeholders: Uses placeholders for class names, namespaces, and descriptions for easy customization.
  • Use Case: A developer needs to create a new EnemyAI MonoBehaviour script. Instead of manually typing out the basic structure, they can ask Claude to "Generate a MonoBehaviour script template for EnemyAI." The Skill will create a file with the correct class structure, lifecycle methods, and best practice comments, ready for implementation.

Quick Start

Ask Claude to generate a new Unity script

"Generate a MonoBehaviour script template named 'PlayerMovement'." "Create a ScriptableObject template for 'GameSettings'." "Generate an Editor Window script using UI Toolkit named 'LevelEditorWindow'."

Frequently Asked Questions about Unity Template Generator

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

FAQPage Schema
How do I generate Unity C# script templates quickly?

Generate production-ready C# script templates by requesting a specific template type—MonoBehaviour, ScriptableObject, Editor, or test—with your desired class name. The Skill creates fully structured scripts with Unity conventions, lifecycle methods, performance patterns like component caching, and best-practice comments ready for implementation.

What best practices are included in generated Unity scripts?

Generated templates enforce Unity coding conventions including [SerializeField] attributes, PascalCase naming, XML documentation, component caching to avoid GetComponent in Update loops, null checks, OnValidate methods, Gizmos, region directives, and consistent code organization following industry standards.

Can I customize class names and namespaces in generated templates?

Yes. Generated templates use customizable placeholders for {{CLASS_NAME}}, {{NAMESPACE}}, {{DESCRIPTION}}, {{MENU_PATH}}, and {{FILE_NAME}}, allowing you to personalize scripts for your project structure and naming conventions without manual editing.

What types of Unity scripts can be generated?

The Skill generates four template categories: MonoBehaviour scripts for game logic, ScriptableObject templates for data management, Editor scripts for UGUI and UI Toolkit custom tools, and NUnit and PlayMode test templates for automated testing.

How do generated templates prevent common Unity performance issues?

Templates implement performance patterns such as caching component references to eliminate repeated GetComponent calls in Update loops, enabling efficient runtime behavior and adherence to Unity optimization best practices from the start.