dependency-injection-review
CommunityValidate DryIoc DI patterns.
System Documentation
What problem does it solve?
This Skill audits code for strict adherence to the game engine's Dependency Injection (DI) architecture using DryIoc. It ensures all services use constructor injection, identifies and flags static singleton violations, validates service registration patterns, and helps resolve complex issues like circular dependencies, leading to a more maintainable and testable codebase.
Core Features & Use Cases
- Constructor Injection Validation: Verifies that all dependencies are injected via constructors, not properties or service locators.
- Static Singleton Detection: Identifies and flags forbidden static singletons, enforcing the "DI-first" principle.
- Service Lifetime Guidelines: Provides best practices for
Singletonvs.Transientservice registration inProgram.cs. - Circular Dependency Resolution: Offers strategies (events, shared dependencies) to break circular dependencies.
- Use Case: When reviewing a new feature module, use this Skill to ensure that all new services are correctly registered in DryIoc, use constructor injection, and do not introduce any static singletons or circular dependencies that could destabilize the application.
Quick Start
Review the AnimationSystem class for proper constructor injection and ensure its dependencies are correctly registered as singletons in Program.cs.
Dependency Matrix
Required Modules
None requiredComponents
💻 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: dependency-injection-review Download link: https://github.com/kateusz/GameEngine/archive/main.zip#dependency-injection-review Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.