ASP.NET Core apps
Guides the agent through current ASP.NET Core practice: choosing Blazor, Razor Pages, MVC or Minimal APIs, Program.cs and middleware order, auth, EF Core, tests and upgrades to .NET 10. Use when building, reviewing or upgrading an ASP.NET Core app.
aspnet-core- Author
- OpenAI
- Source
- openai/skills/skills/.curated/aspnet-core @ 49f948f
- License
- Apache-2.0
About this skill
What it does
The skill gives the agent a map of current ASP.NET Core practice and tells it to read only the part the task needs. It first confirms the target framework, SDK and app model. For a new app it opens stack-selection.md, a matrix of Blazor Web App, Razor Pages, MVC, Minimal APIs, controller APIs, SignalR and gRPC with the matching dotnet new template. Then program-and-pipeline.md for Program.cs, DI lifetimes and a ten-step middleware order, and exactly one app-model file. Cross-cutting files cover EF Core and IHttpClientFactory, Identity and authorization, SignalR, gRPC and hosted services, and integration tests with WebApplicationFactory<Program>. versioning-and-upgrades.md lists breaking changes for the moves to ASP.NET Core 8, 9 and 10.
The defaults are dated March 2026: .NET 10 for new work, ASP.NET Core 11 as preview, WebApplicationBuilder instead of Startup, built-in ProblemDetails, OpenAPI, rate limiting and Identity before third-party packages, and no switching an app to another model without a reason. When a task says "latest", the agent checks Microsoft Learn instead of trusting memory.
When to use it, and when not
Use it to start, extend, review or upgrade an ASP.NET Core app, especially when choosing an app model or fixing middleware order.
It does not cover other .NET work such as desktop apps, and its version advice stops at March 2026.
How to run it
The install command below puts the whole folder in place: SKILL.md, thirteen reference files, the logo, the Codex metadata file and the licence. No API keys; the .NET SDK is needed for dotnet new and the tests. The agent picks the skill up when ASP.NET Core comes up; to call it yourself:
- Claude Code:
/aspnet-core, or ask for the skill by name. - Codex:
$aspnet-core. - Cursor: type
/in the Agent chat and pickaspnet-core.
Example: /aspnet-core Add a Minimal API for orders to this Razor Pages app, with authorization policies and integration tests.
The Codex metadata labels the skill "Windows only", though the references also cover Kestrel behind Nginx on Linux. OpenAI has marked openai/skills deprecated; our copy is pinned to a commit there, and as of November 2026 openai/plugins has no newer version of this skill.
How it differs from similar skills
Nothing else in the catalog covers .NET web development. Security best-practice review from the same pack has references only for Python, JavaScript/TypeScript and Go, so for ASP.NET Core this skill's security-and-identity.md is the guidance you get. API and interface design adds framework-neutral rules for HTTP contracts, errors and pagination.
Install
Run one command — it saves SKILL.md and the files it uses into your agent's skills folder. Claude Code and Codex pick up a new skill without a restart; if it does not show up, restart the agent.
curl -fsSL --create-dirs -o ~/.claude/skills/aspnet-core/SKILL.md https://anymodel.org/en/skills/openai/aspnet-core/SKILL.md -o ~/.claude/skills/aspnet-core/LICENSE.txt https://anymodel.org/en/skills/openai/aspnet-core/LICENSE.txt -o ~/.claude/skills/aspnet-core/agents/openai.yaml https://anymodel.org/en/skills/openai/aspnet-core/agents/openai.yaml -o ~/.claude/skills/aspnet-core/assets/dotnet-logo.png https://anymodel.org/en/skills/openai/aspnet-core/assets/dotnet-logo.png -o ~/.claude/skills/aspnet-core/references/_sections.md https://anymodel.org/en/skills/openai/aspnet-core/references/_sections.md -o ~/.claude/skills/aspnet-core/references/apis-minimal-and-controllers.md https://anymodel.org/en/skills/openai/aspnet-core/references/apis-minimal-and-controllers.md -o ~/.claude/skills/aspnet-core/references/data-state-and-services.md https://anymodel.org/en/skills/openai/aspnet-core/references/data-state-and-services.md -o ~/.claude/skills/aspnet-core/references/program-and-pipeline.md https://anymodel.org/en/skills/openai/aspnet-core/references/program-and-pipeline.md -o ~/.claude/skills/aspnet-core/references/realtime-grpc-and-background-work.md https://anymodel.org/en/skills/openai/aspnet-core/references/realtime-grpc-and-background-work.md -o ~/.claude/skills/aspnet-core/references/security-and-identity.md https://anymodel.org/en/skills/openai/aspnet-core/references/security-and-identity.md -o ~/.claude/skills/aspnet-core/references/source-map.md https://anymodel.org/en/skills/openai/aspnet-core/references/source-map.md -o ~/.claude/skills/aspnet-core/references/stack-selection.md https://anymodel.org/en/skills/openai/aspnet-core/references/stack-selection.md -o ~/.claude/skills/aspnet-core/references/testing-performance-and-operations.md https://anymodel.org/en/skills/openai/aspnet-core/references/testing-performance-and-operations.md -o ~/.claude/skills/aspnet-core/references/ui-blazor.md https://anymodel.org/en/skills/openai/aspnet-core/references/ui-blazor.md -o ~/.claude/skills/aspnet-core/references/ui-mvc.md https://anymodel.org/en/skills/openai/aspnet-core/references/ui-mvc.md -o ~/.claude/skills/aspnet-core/references/ui-razor-pages.md https://anymodel.org/en/skills/openai/aspnet-core/references/ui-razor-pages.md -o ~/.claude/skills/aspnet-core/references/versioning-and-upgrades.md https://anymodel.org/en/skills/openai/aspnet-core/references/versioning-and-upgrades.md
curl -fsSL --create-dirs -o ~/.agents/skills/aspnet-core/SKILL.md https://anymodel.org/en/skills/openai/aspnet-core/SKILL.md -o ~/.agents/skills/aspnet-core/LICENSE.txt https://anymodel.org/en/skills/openai/aspnet-core/LICENSE.txt -o ~/.agents/skills/aspnet-core/agents/openai.yaml https://anymodel.org/en/skills/openai/aspnet-core/agents/openai.yaml -o ~/.agents/skills/aspnet-core/assets/dotnet-logo.png https://anymodel.org/en/skills/openai/aspnet-core/assets/dotnet-logo.png -o ~/.agents/skills/aspnet-core/references/_sections.md https://anymodel.org/en/skills/openai/aspnet-core/references/_sections.md -o ~/.agents/skills/aspnet-core/references/apis-minimal-and-controllers.md https://anymodel.org/en/skills/openai/aspnet-core/references/apis-minimal-and-controllers.md -o ~/.agents/skills/aspnet-core/references/data-state-and-services.md https://anymodel.org/en/skills/openai/aspnet-core/references/data-state-and-services.md -o ~/.agents/skills/aspnet-core/references/program-and-pipeline.md https://anymodel.org/en/skills/openai/aspnet-core/references/program-and-pipeline.md -o ~/.agents/skills/aspnet-core/references/realtime-grpc-and-background-work.md https://anymodel.org/en/skills/openai/aspnet-core/references/realtime-grpc-and-background-work.md -o ~/.agents/skills/aspnet-core/references/security-and-identity.md https://anymodel.org/en/skills/openai/aspnet-core/references/security-and-identity.md -o ~/.agents/skills/aspnet-core/references/source-map.md https://anymodel.org/en/skills/openai/aspnet-core/references/source-map.md -o ~/.agents/skills/aspnet-core/references/stack-selection.md https://anymodel.org/en/skills/openai/aspnet-core/references/stack-selection.md -o ~/.agents/skills/aspnet-core/references/testing-performance-and-operations.md https://anymodel.org/en/skills/openai/aspnet-core/references/testing-performance-and-operations.md -o ~/.agents/skills/aspnet-core/references/ui-blazor.md https://anymodel.org/en/skills/openai/aspnet-core/references/ui-blazor.md -o ~/.agents/skills/aspnet-core/references/ui-mvc.md https://anymodel.org/en/skills/openai/aspnet-core/references/ui-mvc.md -o ~/.agents/skills/aspnet-core/references/ui-razor-pages.md https://anymodel.org/en/skills/openai/aspnet-core/references/ui-razor-pages.md -o ~/.agents/skills/aspnet-core/references/versioning-and-upgrades.md https://anymodel.org/en/skills/openai/aspnet-core/references/versioning-and-upgrades.md
foreach ($f in 'SKILL.md','LICENSE.txt','agents/openai.yaml','assets/dotnet-logo.png','references/_sections.md','references/apis-minimal-and-controllers.md','references/data-state-and-services.md','references/program-and-pipeline.md','references/realtime-grpc-and-background-work.md','references/security-and-identity.md','references/source-map.md','references/stack-selection.md','references/testing-performance-and-operations.md','references/ui-blazor.md','references/ui-mvc.md','references/ui-razor-pages.md','references/versioning-and-upgrades.md') { $p = Join-Path "$HOME\.claude\skills\aspnet-core" $f; New-Item -ItemType Directory -Force (Split-Path $p) | Out-Null; Invoke-WebRequest "https://anymodel.org/en/skills/openai/aspnet-core/$f" -UseBasicParsing -OutFile $p }foreach ($f in 'SKILL.md','LICENSE.txt','agents/openai.yaml','assets/dotnet-logo.png','references/_sections.md','references/apis-minimal-and-controllers.md','references/data-state-and-services.md','references/program-and-pipeline.md','references/realtime-grpc-and-background-work.md','references/security-and-identity.md','references/source-map.md','references/stack-selection.md','references/testing-performance-and-operations.md','references/ui-blazor.md','references/ui-mvc.md','references/ui-razor-pages.md','references/versioning-and-upgrades.md') { $p = Join-Path "$HOME\.agents\skills\aspnet-core" $f; New-Item -ItemType Directory -Force (Split-Path $p) | Out-Null; Invoke-WebRequest "https://anymodel.org/en/skills/openai/aspnet-core/$f" -UseBasicParsing -OutFile $p }Any other agent: save the file into its skills folder, or give it the link to the file: https://anymodel.org/en/skills/openai/aspnet-core/SKILL.md
SKILL.md
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.
- Open references/stack-selection.md first for new apps or major refactors.
- Open references/program-and-pipeline.md next for
Program.cs, DI, configuration, middleware, routing, logging, and static assets. - Open exactly one primary app-model reference:
- Add cross-cutting references only as needed:
- Open references/versioning-and-upgrades.md before introducing new platform APIs into an older solution or when migrating between major versions.
- 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
WebApplicationBuilderandWebApplication. Avoid olderStartupandWebHostpatterns 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.
Reference Guide
- references/_sections.md: Quick index and reading order.
- references/stack-selection.md: Choose the right ASP.NET Core application model and template.
- references/program-and-pipeline.md: Structure
Program.cs, services, middleware, routing, configuration, logging, and static assets. - references/ui-blazor.md: Build Blazor Web Apps, choose render modes, and use components, forms, and JS interop correctly.
- references/ui-razor-pages.md: Build page-focused server-rendered apps with handlers, model binding, and conventions.
- references/ui-mvc.md: Build controller/view applications with clear separation of concerns.
- references/apis-minimal-and-controllers.md: Build HTTP APIs with Minimal APIs or controllers, including validation and response patterns.
- references/data-state-and-services.md: Use EF Core,
DbContext, options,IHttpClientFactory, session, temp data, and app state responsibly. - references/security-and-identity.md: Apply authentication, authorization, Identity, secrets, data protection, CORS, CSRF, and HTTPS guidance.
- references/realtime-grpc-and-background-work.md: Use SignalR, gRPC, and hosted services.
- references/testing-performance-and-operations.md: Add integration tests, browser tests, caching, compression, health checks, rate limits, and deployment concerns.
- references/versioning-and-upgrades.md: Handle target frameworks, breaking changes, obsolete APIs, and migrations.
- 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 newtemplate 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.
Connect through AnyModel API
This skill runs on whatever model your agent uses. Point Claude Code, Codex or Cursor at AnyModel to run it on Claude, GPT, Gemini and more with one key — pay per token, no subscription.
AnyModel