All skills
openai avatar

/aspnet-core

@c207989 official
by openaiopenai/skills28k stars
1,891

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.

Use this Skill: https://skilld.dev/gh/openai/skills/aspnet-core

This session only. Nothing lands on disk.

referencestesting-performance-and-operations.md

≈675 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Testing, Performance, And Operations

Primary docs:

Testing Strategy

Use layered testing instead of relying on one style:

  • unit tests for pure services and business logic
  • integration tests for request pipeline, DI, database, auth, and framework wiring
  • browser tests for end-to-end user flows

Integration Tests

Use Microsoft.AspNetCore.Mvc.Testing and WebApplicationFactory<Program> for integration tests.

Guidance from the official docs:

  • use a test host and HttpClient
  • replace services with test doubles when needed
  • control redirects when asserting auth behavior
  • handle antiforgery correctly for form posts
  • prefer SQLite in-memory over the EF Core in-memory provider for more realistic database tests

For SPA or browser-driven scenarios, Microsoft recommends browser automation such as Playwright for .NET.

Performance Defaults

Reach for built-in features before custom optimization layers:

  • output caching
  • response caching where appropriate
  • response compression
  • HTTP request timeouts
  • rate limiting
  • static file handling

General performance guidance:

  • measure first
  • keep database and network round trips visible
  • reduce payload size
  • use streaming or pagination when data is large
  • keep synchronous blocking out of hot paths

Health Checks And Observability

Add health checks for dependencies that matter operationally.

Use separate checks or tags when you need:

  • liveness
  • readiness
  • dependency-specific health surfaces

Also ensure:

  • structured logs
  • request tracing where applicable
  • metrics for critical paths such as auth, API latency, and background work

Hosting And Deployment

Typical deployment flow:

  1. dotnet publish
  2. deploy the publish output
  3. run behind a process manager
  4. place a reverse proxy in front when the environment requires it

Know the deployment environment:

  • IIS or Windows Service on Windows
  • Kestrel plus Nginx or another reverse proxy on Linux
  • container hosting when the platform expects it

Behind proxies or load balancers:

  • configure forwarded headers
  • validate scheme, host, and remote IP behavior
  • test auth redirects and callback URLs in the deployed topology

Operational Safeguards

  • add health checks for databases and critical external services
  • fail fast on invalid configuration where possible
  • keep secrets out of publish artifacts
  • verify data-protection key persistence in multi-instance deployments

Source: SKILL.md on GitHub

1 warning17d5 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill provides a comprehensive set of guidelines and reference materials for ASP.NET Core development, emphasizing security best practices and official architectural patterns. It does not contain any malicious patterns or unauthorized operations.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    6/16 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at c207989. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Activeupdated 7 months ago
  • Testing
  • aspnet-core
  • dotnet
  • csharp
  • blazor
  • razor-pages
  • mvc
  • minimal-apis
  • ef-core
  • signalr
  • grpc
  • authentication

README badge

README badge for openai/skills/aspnet-core

Instructs Claude on ASP.NET Core application models (Blazor Web Apps, Razor Pages, MVC, Minimal APIs), host and pipeline setup, dependency injection, configuration, authentication, testing, and deployment using current Microsoft documentation. Use for building or refactoring .NET web applications and deciding between framework patterns.

Generated from the current SKILL.md.

Does this skill cover Blazor, Razor Pages, MVC, and Minimal APIs?
Yes. The skill includes dedicated references for each application model (Blazor Web Apps, Razor Pages, MVC, and Minimal/controller-based APIs) and guides you to load only the one you need for your task.
What .NET versions does this skill target?
The skill defaults to .NET 10 / ASP.NET Core 10 for new production work as of March 2026, but adapts to older pinned versions and handles migrations between major versions via the versioning-and-upgrades reference.
Does this skill use third-party libraries or stick to built-in ASP.NET Core features?
The skill prefers built-in features (DI, options, logging, ProblemDetails, OpenAPI, health checks, rate limiting, Identity) before introducing third-party infrastructure.
Can this skill help with authentication, authorization, and data access?
Yes. Cross-cutting references cover security/identity, EF Core, DbContext, and state management, loaded on-demand based on your specific task.
Does this skill guide upgrades from older ASP.NET Core versions?
Yes. The versioning-and-upgrades reference specifically handles breaking changes, obsolete APIs, and migrations between major versions.

Generated from the current SKILL.md. These answers refresh after source changes.