Guidance for configuring dependency injection in .NET MAUI apps — service registration in MauiProgram.cs, lifetime selection (Singleton / Transient / Scoped), constructor injection, Shell navigation auto-resolution, platform-specific registrations, and testability patterns.
Install
npx skills add dotnet/skills --skill maui-dependency-injectionnpx skills add dotnet/skills --skill maui-dependency-injection -a claude-code -gnpx skills add dotnet/skills --skill maui-dependency-injection -a codex -ggemini skills install https://github.com/dotnet/skills.git --path plugins/dotnet-maui/skills/maui-dependency-injectiongh skill install dotnet/skills maui-dependency-injectiongit clone --depth 1 https://github.com/dotnet/skills /tmp/dotnet__skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/dotnet__skills/plugins/dotnet-maui/skills/maui-dependency-injection ~/.claude/skills/maui-dependency-injection # Claude Code
cp -R /tmp/dotnet__skills/plugins/dotnet-maui/skills/maui-dependency-injection ~/.agents/skills/maui-dependency-injection # Codex, Cursor, Gemini CLI, Copilot, OpenCode