dotnet-di
OfficialMaster .NET Dependency Injection
AuthorObjective-Arts
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers understand and implement robust Dependency Injection (DI) patterns in .NET, leading to more testable, maintainable, and loosely coupled code.
Core Features & Use Cases
- Core Principles: Explains constructor injection, service lifetimes, and the Composition Root.
- Anti-Patterns: Identifies and provides solutions for common DI pitfalls like Service Locator and Captive Dependencies.
- Testing: Demonstrates how to effectively unit and integration test DI-enabled applications.
- Use Case: A developer struggling with complex object wiring and unit testing in their ASP.NET Core application can use this Skill to refactor their code following best practices.
Quick Start
Review the core principles of constructor injection and service lifetimes for .NET applications.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: dotnet-di Download link: https://github.com/Objective-Arts/lens/archive/main.zip#dotnet-di 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.