maui-dependency-injection
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFE
Full Analysis
- Standard Service Registration: The skill guides the agent on registering services, ViewModels, and Pages using the standard
Microsoft.Extensions.DependencyInjectionframework, which is the established way to manage dependencies in .NET applications. - Reference to Official Documentation: The skill references official Microsoft Learn documentation for further context on MAUI fundamentals and .NET dependency injection. These are recognized, well-known resources for developers.
- Platform-Specific Implementations: It includes instructions on handling platform-specific service registrations using standard C# preprocessor directives (
#ifblocks), ensuring correct behavior across different target platforms like Android, iOS, and Windows. - Guidance on Service Lifetimes: The skill provides clear instructions on selecting appropriate lifetimes (Singleton, Transient, Scoped) for different components to help developers avoid common architectural pitfalls like stale data or incorrect scope management.
Audit Metadata