service-locator-pattern

Community

Decouple services with a lightweight registry.

Authornlelouche
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a simple, type-safe way to manage and access services across your Unity project, reducing direct dependencies and improving code organization without the overhead of a full DI container.

Core Features & Use Cases

  • Centralized Service Registry: A single point for registering and resolving service interfaces.
  • Decoupling: Consumers depend on interfaces, not concrete implementations.
  • Use Case: Easily access your IAudioService or ISaveService from any MonoBehaviour without needing direct references passed through the inspector.

Quick Start

Implement the Service Locator pattern by defining interfaces, concrete services, a bootstrapper for registration, and resolving services in consumer Awake() methods.

Dependency Matrix

Required Modules

None required

Components

scriptsreferencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: service-locator-pattern
Download link: https://github.com/nlelouche/Unity-SkillForge/archive/main.zip#service-locator-pattern

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.