uw-dependency-injection

Centralize your metadata.

40|6|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/devdavv/unity-ai-workflow --skill uw-dependency-injection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uw-dependency-injection
Source: https://github.com/devdavv/unity-ai-workflow/tree/main/.claude/skills/uw-dependency-injection
Command: npx skills add https://github.com/devdavv/unity-ai-workflow --skill uw-dependency-injection

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Dependency injection enables decoupled, testable Unity components by wiring services through an inversion-of-control container (Reflex) instead of direct new-ing.

Core Features & Use Cases

  • DI-first architecture with per-feature installers and container bindings.
  • Cross-feature communication via Commands to avoid direct cross-references.
  • Support for constructor injection, interface-based binding, and scoped lifetimes.

Quick Start

Install Reflex, create a feature Installer to bind interfaces to implementations, and wire dependencies across features.

Frequently Asked Questions about uw-dependency-injection

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

FAQPage Schema
How do I decouple Unity components using dependency injection?

Decoupling Unity components via dependency injection uses a container like Reflex to wire services through inversion-of-control instead of direct instantiation, creating testable code.

What is a DI-first architecture in Unity?

A DI-first architecture in Unity uses per-feature installers and container bindings to manage dependencies, enabling cross-feature communication via Commands to avoid direct cross-references.

How do I set up Reflex for dependency injection in a Unity project?

To set up Reflex, install the framework, create a feature Installer to bind interfaces to implementations, and wire dependencies across features using constructor injection and scoped lifetimes.

When should I use a DI-first architecture for my Unity project?

Use a DI-first architecture for medium to large Unity projects needing cross-feature coordination, scalable bindings, and testable code, requiring a ProjectConfig.yaml with architecture_pattern set to di-first.

How do I handle cross-feature communication in Unity without direct references?

Handle cross-feature communication in Unity without direct references by using Commands within a DI-first architecture, allowing features to interact through bound interfaces rather than tight coupling.

Does this dependency injection approach require specific Unity project configurations?

Yes, this DI-first approach requires a ProjectConfig.yaml with architecture_pattern set to di-first, Reflex as the DI framework, and adherence to specific naming conventions and coding standards.