Teach and review dependency injection in C# and .NET. Use for service registration, constructor injection, lifetimes, scopes, factories, options, testability, dependency boundaries, inversion of control, ASP.NET Core DI, and maintainable object-oriented design.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Teach and review dependency injection in C# and .NET. Use for service registration, constructor injection, lifetimes, scopes, factories, options, testability, dependency boundaries, inversion of control, ASP.NET Core DI, and maintainable object-oriented design.
Treat all user text after $csharp-di as a C# dependency injection, service design, testability, OOP, or architecture question. Use the main csharp-tutor skill as the source of truth.
Load these csharp-tutor references when useful:
references/di-guidance.md
references/modern-dotnet-patterns.md
references/code-smell-to-refactor.md
references/oop-guidance.md
references/framework-guidance.md
references/testing-guidance.md
references/official-sources.md
Prioritize lifetime correctness, explicit dependencies, replaceable boundaries, testability, and simple composition. Avoid adding interfaces or factories unless they solve a real coupling, lifetime, or testing problem.
Standalone Guidance
Core rule: Keep the answer centered on the concrete di decision, failure mode, or contract.
Avoid: Giving generic C# advice without tying it to the di concern.