singleton-patterns-config-and-access

Community

Guarantee world-unique config via singletons.

AuthordyCuong03
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you model world-unique DOTS data safely so every system can access it fast without first-frame races or accidental duplicates.

Core Features & Use Cases

  • O(1) singleton access with SystemAPI.GetSingleton<T>() for read-only consumers that need fast, unambiguous config or registries.
  • Hard gating for bake readiness using state.RequireForUpdate<T>() so systems don’t run before the singleton entity exists.
  • Safe producer/consumer writes using SystemAPI.GetSingletonRW<T>() for systems that snapshot or update singleton state once per frame, typically for input state.
  • Bake-time correctness guidance ensuring exactly one Baker produces each singleton type and explaining how scene merge collisions happen.

Quick Start

Ask your agent to refactor a DOTS config/registry system so the config is implemented as a baked singleton component with state.RequireForUpdate<T>() and then accessed by readers using SystemAPI.GetSingleton<T>().

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: singleton-patterns-config-and-access
Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#singleton-patterns-config-and-access

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 471,000+ vetted skills library on demand.