1---2name: dotnet3description: Primary router skill for broad .NET work. Classify the repo by app model and cross-cutting concern first, then switch to the narrowest matching .NET skill instead of staying at a generic layer.4---56# .NET Router Skill78## Trigger On910- the user asks for general `.NET` help without naming a narrower framework or tool11- implementing, debugging, reviewing, or refactoring C# or `.NET` code in a repo with multiple app models or frameworks12- deciding which `.NET` skill should own a task before editing code13- tasks that combine platform work with testing, quality, architecture, setup, or migration decisions1415## Workflow16171. Detect the real stack first:18 - target frameworks and SDK version19 - `LangVersion`20 - project SDKs and workload hints21 - hosting model and app entry points22 - test framework and runner23 - analyzers, formatters, coverage, and CI quality gates242. Route to the narrowest platform skill as soon as the stack is known:25 - Web: `dotnet-aspnet-core`, `dotnet-minimal-apis`, `dotnet-web-api`, `dotnet-blazor`, `dotnet-signalr`, `dotnet-grpc`26 - Cloud and hosting: `dotnet-aspire`, `dotnet-azure-functions`, `dotnet-worker-services`27 - Desktop and client: `dotnet-maui`, `dotnet-wpf`, `dotnet-winforms`, `dotnet-winui`28 - Data and distributed: `dotnet-entity-framework-core`, `dotnet-entity-framework6`, `dotnet-orleans`29 - AI and agentic: `dotnet-semantic-kernel`, `dotnet-microsoft-extensions-ai`, `dotnet-microsoft-agent-framework`, `dotnet-mlnet`, `dotnet-mixed-reality`30 - Legacy: `dotnet-legacy-aspnet`, `dotnet-wcf`, `dotnet-workflow-foundation`313. Route cross-cutting work to the companion skill instead of keeping it inside generic `.NET` advice:32 - project bootstrap or repo shape: `dotnet-project-setup`, `dotnet-architecture`33 - frontend asset analysis in mixed `.NET` plus Node repos: `dotnet-eslint`, `dotnet-stylelint`, `dotnet-htmlhint`, `dotnet-webhint`, `dotnet-biome`, `dotnet-sonarjs`, `dotnet-metalint`, `dotnet-chous`34 - code review: `dotnet-code-review`35 - language features: `dotnet-modern-csharp`36 - testing: `dotnet-tunit`, `dotnet-xunit`, `dotnet-mstest`37 - format, analyzers, coverage, and CI: `dotnet-format`, `dotnet-code-analysis`, `dotnet-quality-ci`, `dotnet-coverlet`, `dotnet-reportgenerator`38 - maintainability and architecture rules: `dotnet-complexity`, `dotnet-netarchtest`, `dotnet-archunitnet`394. If more than one specialized skill applies, prefer the one closest to the user-visible behavior first, then pull in the quality or tooling skill second.405. Do not stop at this skill once a narrower match exists. This skill should classify and hand off, not become a generic dumping ground.416. After code changes, validate with the repository's actual build, test, and quality workflow instead of generic `.NET` commands.4243## Routing Heuristics4445- If the repo contains `Microsoft.NET.Sdk.Web`, start from a web skill, not generic `.NET`.46- If the repo contains Blazor, Razor Components, or `.razor` pages, prefer `dotnet-blazor`.47- If the repo contains `package.json`, frontend lint configs, or browser-facing asset pipelines inside the `.NET` solution, prefer the dedicated frontend analysis skills instead of generic `.NET`.48- If the repo contains Orleans grains or silo hosting, prefer `dotnet-orleans`.49- If the repo is mostly analyzers, CI, or coverage work, prefer the quality skill directly.50- If the user asks about “which skill should I use?”, answer with the narrowest matching skill and explain why in one short sentence.51- If no narrower skill matches, keep the work here and stay explicit about the missing specialization.5253## Deliver5455- the correct specialized skill choice for the task56- repo-compatible code or documentation changes that stay aligned with the detected stack57- validation evidence that matches the real project runner and quality toolchain5859## Validate6061- the chosen downstream skill actually exists in the catalog62- platform assumptions match project SDKs, packages, and workloads63- generic guidance has been replaced by framework-specific guidance whenever possible64- runner-specific commands are not mixed incorrectly65- language or runtime features are only used when the repo supports them6667## Documentation6869### References7071- [`references/routing.md`](references/routing.md) - Decision tree for routing tasks to specialized .NET skills, including app model classification and cross-cutting concern handling.72- [`references/detection.md`](references/detection.md) - Project detection patterns for identifying SDK types, target frameworks, workloads, language versions, and app models.