unity-game-architecture

Provide Unity architecture decision patterns and scaffold code for service access and communication.

24|5|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/Nice-Wolf-Studio/unity-claude-skills --skill unity-game-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-game-architecture
Source: https://github.com/Nice-Wolf-Studio/unity-claude-skills/tree/main/skills/unity-game-architecture
Command: npx skills add https://github.com/Nice-Wolf-Studio/unity-claude-skills --skill unity-game-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses common Unity architectural pitfalls by providing decision patterns for structuring game systems, managing dependencies, and facilitating communication between different parts of your game.

Core Features & Use Cases

  • Service Access Patterns: Choose between Singleton, Service Locator, and Dependency Injection (DI) based on project needs.
  • Class Design: Guidance on when to use MonoBehaviour versus plain C# classes.
  • Communication: Strategies for event handling, including C# events, ScriptableObject channels, and static event buses.
  • Use Case: You're starting a new Unity project and need to decide how your core systems (like audio, input, and save managers) will interact. This Skill helps you select the most appropriate pattern (e.g., Service Locator for testability) and provides scaffold code.

Quick Start

Use the unity-game-architecture skill to understand the trade-offs between Service Locator and Singleton patterns for global service access.

Frequently Asked Questions about unity-game-architecture

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

FAQPage Schema
How do I structure a Unity game architecture to avoid a God MonoBehaviour?

Structure your Unity game architecture using component composition to break down God MonoBehaviours. This Skill provides decision patterns and scaffold code for splitting monolithic scripts into manageable, focused systems to improve project maintainability.

What's the best way to manage dependencies in Unity: Singleton, Service Locator, or Dependency Injection?

The best way to manage dependencies depends on project needs; this Skill helps you choose between Singleton, Service Locator, and Dependency Injection. It provides scaffold code and trade-off analysis to ensure testable inter-system communication.

How do I handle communication between Unity game systems without excessive singletons?

Handle communication between Unity game systems using event channels, C# events, or static event buses instead of excessive singletons. This Skill offers strategies to decouple system interactions and prevent anti-patterns.

When should I use plain C# classes versus MonoBehaviour for class design in Unity?

Use plain C# classes versus MonoBehaviour based on whether the system requires Unity's lifecycle hooks or scene presence. This Skill provides decision patterns for class design to ensure your architecture remains robust and performant.

Does this Unity architecture guidance support Unity 6.3 LTS development?

Yes, this Unity architecture guidance fully supports Unity 6.3 LTS development. It provides scaffold code and architectural decision patterns specifically tailored for structuring robust game systems within the Unity 6.3 LTS environment.

Why use a Service Locator pattern for global service access in Unity?

Use a Service Locator pattern for global service access in Unity to improve testability and reduce tight coupling compared to traditional Singletons. This Skill explains the trade-offs and provides scaffold code to implement it effectively.