Skip to content
D

dependency-injection

Dependency injection patterns for .NET 10

by codewithmukeshFree

#8547in AI Skills
0In stores

Description

This agent skill guides an AI coding agent through dependency injection in .NET 10. It covers service lifetimes, keyed services, the decorat…

Highlights

  • Constructor injection with primary constructors
  • Rules for matching service lifetimes
  • Keyed services for strategy-style selection
  • Decorator and factory patterns

Ratings & Reviews

No ratings yet

Be the first to rate dependency-injection.

People also visit

D

dotnet-patterns

Idiomatic C# and .NET patterns, conventions, dependency injection, async/await

AI Skills
Get
D

dotnet-backend-patterns

Production-grade C#/.NET patterns for APIs, MCP servers

AI Skills
Get
C

configuration

Configuration patterns for .NET 10 applications

AI Skills
Get
D

dotnet-10-csharp-14

Building .NET 10 or C# 14 applications

AI Skills
Get
M

maui-dependency-injection

Guidance for configuring dependency injection in .NET MAUI apps

AI Skills
Get
D

dotnet-core-expert

Building .NET 8 applications

AI Skills
Get

dependency-injection FAQ

What does the dependency-injection skill cover?

Service lifetimes, keyed services, the decorator pattern, the factory pattern and common DI pitfalls in .NET 10.

What is the most common DI bug it warns about?

A singleton depending on a scoped or transient service. The skill says lifetimes must be matched carefully.

When should keyed services be used?

When you need to register and resolve multiple implementations of the same interface; they replace manual factory patterns in .NET 8+.

How do I install it?

Run: npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill dependency-injection

What were the security audit results?

On skills.sh: Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.

What are the best dependency-injection alternatives?

Popular alternatives to dependency-injection include dotnet-patterns, dotnet-backend-patterns and configuration. See all dependency-injection alternatives

Developer Stuff

Badges