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.

CodingPack: OpenAI skills61 linesaspnet-core
Author
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 pick aspnet-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.

Claude Code — macOS, Linux
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
Codex, Cursor — macOS, Linux
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
Claude Code — Windows PowerShell
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 }
Codex, Cursor — Windows PowerShell
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

Raw

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

  1. Confirm the target framework, SDK, and current app model.
  2. Open references/stack-selection.md first for new apps or major refactors.
  3. Open references/program-and-pipeline.md next for Program.cs, DI, configuration, middleware, routing, logging, and static assets.
  4. Open exactly one primary app-model reference:
  5. Add cross-cutting references only as needed:
  6. Open references/versioning-and-upgrades.md before introducing new platform APIs into an older solution or when migrating between major versions.
  7. 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.

Reference Guide

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.

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.

More from the pack OpenAI skills

ChatGPT Apps SDK

Builds ChatGPT apps on the Apps SDK: reads current OpenAI docs first, picks an app archetype, plans MCP tools, adapts an official example or scaffolds a Node server and widget, then tests in Developer Mode. Use when building or fixing an app inside ChatGPT.

CLI creator from API docs

Builds a durable CLI from API docs, an OpenAPI spec, curls or a script: JSON output, doctor and dry-run commands, safe auth, installed on PATH and paired with a companion skill. Use when an agent keeps hitting the same service through ad hoc calls.

Define a measurable goal

Turns a fuzzy intention into one measurable goal with a validator, scope and stop condition, then registers it via get_goal and create_goal. Use before goal-backed or long-running agent work, when "done" needs a number or a check.

Address GitHub PR comments

Fetches all comments, reviews and inline threads on the current branch's GitHub PR with a gh GraphQL script, numbers them and fixes only the ones you pick. Use when a PR has review comments to work through and you want to choose which get changed.

Fix failing GitHub Actions checks

Finds failing GitHub Actions checks on a PR with gh, pulls the logs, extracts the failure snippet and drafts a fix plan, changing code only after approval. Use when a PR's CI is red and you want the cause and a plan before any edit.

Jupyter notebooks

Creates and tidies Jupyter notebooks for experiments or tutorials from bundled templates via a stdlib script, with structure patterns and a run-top-to-bottom checklist. Use when starting a notebook or turning a messy one into something others can rerun.

Linear issues and projects

Works with Linear issues, projects and cycles through Linear's MCP server in a fixed order: setup, scope, read, then write, with sample workflows for triage, sprints and releases. Use when an agent should read or update Linear as part of a task.

Deploy to Netlify

Deploys the current project to Netlify with `npx netlify`: checks the login, links the folder to a site by Git remote or creates one, builds locally and returns a preview or production URL. Use when you want to publish a site to Netlify from your machine.

Browser automation with Playwright CLI

Drives a real browser from the terminal with playwright-cli: snapshots give element refs for clicks and typing, plus screenshots, console, network and traces, with no test files written. Use when a task needs a browser clicked through step by step.

Deploy to Render

Deploys an app to Render from a Git repo: writes and validates a render.yaml Blueprint with services, databases and secrets, or creates one service through the Render MCP server, then checks status and logs. Use when an app needs hosting on Render.

Security best-practice review

Checks Python, JavaScript/TypeScript and Go code against bundled security specs for ten frameworks, writes a report by severity with line numbers and fixes one finding at a time. Use when you explicitly ask for a security best-practice review.

Repository threat model

Writes a repository-grounded threat model: trust boundaries, assets, attacker capabilities and ranked abuse paths with mitigations, asking you to confirm key assumptions before the final file. Use when you explicitly ask to threat model a codebase.

Sentry issues and events

Reads Sentry issues and events through the sentry CLI without changing anything: recent production errors, issue and event details, AI root-cause summaries, with PII redacted. Use when you ask what is failing in production according to Sentry.

Deploy to Vercel

Deploys a project to Vercel, as a preview unless told otherwise, through the Vercel CLI or, without an account, a bundled script that uploads the folder and returns a preview link and a claim link. Use when you want a shareable deployment link fast.

Figma MCP design context

Reads Figma frames through the Figma MCP server in a fixed order (design context, metadata, screenshot) and rebuilds them with the project's components and tokens; also covers server setup in Codex. Use when connecting Figma MCP or coding from a frame link.

Figma use_figma prerequisite

Sets the rules an agent must load before every use_figma call that runs Plugin API JavaScript in a Figma file: return values, page resets, colours, fonts, node IDs, small validated steps. Use when creating or editing anything inside a Figma file.

Implement a Figma design in code

Implements a Figma frame or component as code in your repo with 1:1 visual parity: fetches context and a screenshot, maps the output to project tokens and components, then runs a validation checklist. Use when a Figma link must become production UI.

Generate a Figma design from an app

Builds or updates a full screen in Figma from code or a description, section by section, using the file's published components, variables and styles instead of hardcoded values. Use when a page from your app should exist as a Figma screen.

Figma design system from a codebase

Builds a Figma design system library from a codebase in five supervised phases: discovery, variables and styles, page structure, components one by one, QA. Use when a product needs a Figma library that matches its code tokens and components.

Figma Code Connect components

Links published Figma components to the code components that implement them via Code Connect: finds unmapped ones, matches them in the codebase, maps only what the user approves. Use when a Figma library and its code both exist but are not linked.

Figma design system rules

Writes project rules for turning Figma designs into code into CLAUDE.md, AGENTS.md or a Cursor rules file, based on Figma's rule template and an analysis of the codebase. Use when setting up an agent for regular Figma-to-code work in a repo.

Create a new Figma file

Creates a blank Figma design file or FigJam board in your drafts, resolving the plan through whoami, and returns the file key and URL. Use when the next Figma step needs a fresh file to write into.