Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web Apps, Razor Pages, MVC, Minimal APIs, controller-based Web APIs, SignalR, gRPC, middleware, dependency injection, configuration, authentication, authorization, testing, performance, deployment, or ASP.NET Core upgrades.
Written by OpenAI and published in openai/skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.
ASP.NET Core
Overview
Choose the right ASP.NET Core application model, compose the host and request pipeline correctly, and implement features in the framework style Microsoft documents today.
Load the smallest set of references that fits the task. Do not load every reference by default.
Workflow
Confirm the target framework, SDK, and current app model.
Use references/source-map.md when you need the Microsoft Learn section that corresponds to a task not already covered by the focused references.
Default Operating Assumptions
Prefer the latest stable ASP.NET Core and .NET unless the repository or user request pins an older target.
As of March 2026, prefer .NET 10 / ASP.NET Core 10 for new production work. Treat ASP.NET Core 11 as preview unless the user explicitly asks for preview features.
Prefer WebApplicationBuilder and WebApplication. Avoid older Startup and WebHost patterns unless the codebase already uses them or the task is migration.
Prefer built-in DI, options/configuration, logging, ProblemDetails, OpenAPI, health checks, rate limiting, output caching, and Identity before adding third-party infrastructure.
Keep feature slices cohesive so the page, component, endpoint, controller, validation, service, data access, and tests are easy to trace.
Respect the existing app model. Do not rewrite Razor Pages to MVC or controllers to Minimal APIs without a clear reason.
references/source-map.md: Map the official ASP.NET Core documentation tree to the references in this skill.
Execution Notes
When generating new code, start from the correct dotnet new template and keep the generated structure recognizable.
When editing an existing solution, follow the solution's conventions first and use these references to avoid framework misuse or outdated patterns.
When a task mentions "latest", verify the feature on Microsoft Learn or the ASP.NET Core docs repo before relying on memory.
When aspnet-core runs
Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /aspnet-core in Claude Code or $aspnet-core in Codex.
The description says when to use it:
Use when working on Blazor Web Apps, Razor Pages, MVC, Minimal APIs, controller-based Web APIs, SignalR, gRPC, middleware, dependency injection, configuration, authentication, authorization, testing, performance, deployment, or ASP.NET…
Install aspnet-core
Claude Code
Copy the aspnet-core folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if aspnet-core does not appear.
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for aspnet-core and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
Files
aspnet-core ships 17 files, 51.9 KB in total. Select a file to load it from GitHub.