smithery/Dev-GOM

Unity Template Generator

Generates production-ready C# script templates (MonoBehaviour, ScriptableObject, Editor, tests). Use when creating new scripts or setting up project structure.

Installation

$ npx skills add smithery/Dev-GOM --skill unity-template-generator

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/Dev-GOM · top by installs.

npx skills add smithery/Dev-GOM

Browse all from smithery/Dev-GOM

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsWrite, Read, Glob

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,264 B
  • docs SUMMARY.md 191 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

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](../unity-ui-selector/SKILL.md)).

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: {{CLASSNAME}}, {{NAMESPACE}}, {{DESCRIPTION}}, {{MENUPATH}}, {{FILE_NAME}}

See [template-reference.md](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