What problem does it solve?
Helps developers manage the complexity of Angular dependency injection, including provider configuration, service scope, token usage, and migration to modern injection patterns so applications remain maintainable and testable.
Core Features & Use Cases
- Provider configuration guidance: Advice on providedIn strategies, factory providers, multi providers, and hierarchical injectors to control service scope and lifecycle.
- Modern injection patterns: Recommendations for using inject() over constructor injection, Optional/SkipSelf options, and InjectionToken usage for non-class dependencies.
- Use Case: Convert legacy constructor-injected services to functional inject() patterns during a codebase migration while preserving provider scope and singleton semantics.
Quick Start
Use the angular-di skill to review a component or service and recommend provider scopes, InjectionToken usage, and inject() conversions for safer, testable DI.