Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes...
npx skills add 404kidwiz/claude-supercode-skills --skill "dotnet-core-expert"
Install specific skill from multi-skill repository
# Description
.NET 8 cross-platform specialist with expertise in MAUI, EF Core, and modern C# development. Use when building cross-platform .NET apps, working with .NET MAUI, or developing applications for multiple operating systems.
# SKILL.md
name: dotnet-core-expert
description: .NET 8 cross-platform specialist with expertise in MAUI, EF Core, and modern C# development. Use when building cross-platform .NET apps, working with .NET MAUI, or developing applications for multiple operating systems.
.NET Core Expert
Purpose
Provides expertise in cross-platform .NET development, including .NET MAUI for mobile/desktop, cross-platform console applications, and cloud-native .NET services. Covers .NET 8 features and cross-platform deployment.
When to Use
- Building cross-platform .NET applications
- Developing with .NET MAUI (mobile/desktop)
- Creating cross-platform console tools
- Deploying .NET to Linux containers
- Building cloud-native .NET services
- Cross-platform file and process handling
- Using .NET Native AOT compilation
Quick Start
Invoke this skill when:
- Building cross-platform .NET applications
- Developing with .NET MAUI
- Creating cross-platform console tools
- Deploying .NET to Linux containers
- Using .NET Native AOT compilation
Do NOT invoke when:
- Windows-only WPF/WinForms (use windows-app-developer)
- Legacy .NET Framework (use dotnet-framework-4.8-expert)
- Web APIs specifically (use csharp-developer)
- Azure infrastructure (use azure-infra-engineer)
Decision Framework
Cross-Platform UI:
โโโ Mobile + Desktop โ .NET MAUI
โโโ Desktop only โ Avalonia or MAUI
โโโ Web โ Blazor
โโโ Console โ Cross-platform console app
Deployment Target:
โโโ Linux containers โ Self-contained, Alpine
โโโ Windows service โ Worker service
โโโ macOS app โ .NET MAUI or Avalonia
โโโ Single file โ Publish single-file
โโโ Fast startup โ Native AOT
Core Workflows
1. .NET MAUI App Setup
- Create MAUI project from template
- Configure target platforms
- Set up MVVM architecture
- Implement platform-specific code
- Add handlers for native features
- Configure app lifecycle
- Test on each platform
2. Cross-Platform Deployment
- Configure RuntimeIdentifiers
- Choose self-contained or framework-dependent
- Set up trimming if needed
- Handle platform-specific paths
- Package for each platform
- Test on target OS
3. Native AOT Compilation
- Enable PublishAot in project
- Review AOT compatibility
- Handle reflection limitations
- Test trimmed application
- Verify startup performance
- Deploy optimized binary
Best Practices
- Use Path.Combine for cross-platform paths
- Check RuntimeInformation.IsOSPlatform
- Use conditional compilation sparingly
- Test on all target platforms
- Use cross-platform abstractions
- Handle line endings properly
Anti-Patterns
| Anti-Pattern | Problem | Correct Approach |
|---|---|---|
| Windows paths | Breaks on Linux/Mac | Use Path.Combine |
| P/Invoke everywhere | Platform-specific | Use cross-platform APIs |
| Ignoring case sensitivity | Fails on Linux | Consistent casing |
| Untested on targets | Runtime failures | CI for each platform |
| Heavy reflection with AOT | Trimming breaks app | Use source generators |
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.