| name | neo-dotnet |
| description | Use this skill when the user asks broad .NET questions or the project contains .sln/.csproj files and the exact ASP.NET/EF/C# subdomain is not yet clear. Detect the SDK/project shape, run or recommend .NET CLI commands, and route to Minimal APIs, Web API, MVC, Tag Helper, EF Core, or C# skills when appropriate.
|
| compatibility | Supports .NET 6.0 and above. Requires .NET SDK installed on the local machine. |
| metadata | {"version":"1.0.0","category":"Framework"} |
.NET Core Routing Skill
Overview
This skill serves as the unified entry point for the .NET development environment. It ensures the system environment meets the requirements for modern .NET development, and has the capability to analyze user requirements, generate corresponding command-line operations, and route to the appropriate domain expert skills.
Core Responsibilities (Perceive & Act)
-
Environment Detection and Version Validation
- Run
dotnet --version to check the currently installed SDK version.
- Mandatory requirement: Only .NET 6 or higher is supported. If a version lower than .NET 6 is detected, prompt the user to upgrade.
-
Execute Appropriate .NET CLI
- Provide or execute modern CLI commands based on the detected version and project state.
- Examples:
- Build and run:
dotnet build, dotnet run
- Test:
dotnet test
- Package management:
dotnet add package, dotnet tool restore
-
Requirement Analysis and Dynamic Skill Routing
- Determine the involved domain based on the user's specific problem or project architecture.
- If the user's task falls into the following specific domains, prepare to use or recommend the corresponding sub-skill:
neo-dotnet-minimal-apis: When the requirement is for lightweight routing development, high-performance microservices, and Controllers are not used.
neo-dotnet-webapi: When the requirement is for traditional RESTful API development following the controller pattern.
neo-dotnet-mvc: When the requirement involves Server-Side Rendering (SSR), Razor views, and ViewModels.
neo-dotnet-tag-helper: When the requirement is for developing custom Razor Tag Helpers using pure C# (without CSHTML), focusing on reusable UI components and logic.
neo-dotnet-ef-core: When the requirement involves database migrations, Linq query optimization, or model mapping.
Usage Guidelines
When this skill is triggered, please prioritize checking the SDK environment, then answer the user's .NET-related questions. If the problem is found to belong to one of the four professional domains mentioned above, proactively suggest and prepare to delegate it to the corresponding expert skill for processing.
Documentation
Official References