dependency-injection-patterns
✓Organize DI registrations using IServiceCollection extension methods. Group related services into composable Add* methods for clean Program.cs and reusable configuration in tests.
Installation
SKILL.md
Convention: {Feature}ServiceCollectionExtensions.cs next to the feature's services.
| Add{Feature}Services() | General feature registration | | Add{Feature}() | Short form when unambiguous | | Configure{Feature}() | When primarily setting options | | Use{Feature}() | Middleware (on IApplicationBuilder) |
See akka/hosting-actor-patterns skill for complete Akka.Hosting patterns.
Organize DI registrations using IServiceCollection extension methods. Group related services into composable Add* methods for clean Program.cs and reusable configuration in tests. Source: aaronontheweb/dotnet-skills.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/aaronontheweb/dotnet-skills --skill dependency-injection-patterns- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-05
- Updated
- 2026-02-18
Quick answers
What is dependency-injection-patterns?
Organize DI registrations using IServiceCollection extension methods. Group related services into composable Add* methods for clean Program.cs and reusable configuration in tests. Source: aaronontheweb/dotnet-skills.
How do I install dependency-injection-patterns?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/aaronontheweb/dotnet-skills --skill dependency-injection-patterns Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/aaronontheweb/dotnet-skills
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-05