dependency-injection
Installation
SKILL.md
Dependency Injection
Use this skill to make dependencies explicit, replaceable, and composable without obscuring the runtime graph.
Intent Router
| Need | Load |
|---|---|
| composition roots, lifetimes, dependency inversion, container tradeoffs, and review checklist | references/di-guide.md |
| examples for .net, angular, fastapi/python, javascript/typescript, c++, c, and rust-style composition | references/platform-examples.md |
Quick Start
- Start by identifying what a unit truly depends on to do its work.
- Prefer constructor or parameter injection for required dependencies.
- Keep object graph construction near the application's entry point.
- Match service lifetime to ownership, mutability, and resource scope.
- Use containers as assembly tools, not as ambient global registries.