aspnet-core

Implement, review, and modernize ASP.NET Core web applications and host pipelines.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ForeverWorld/curdx-ralph --skill aspnet-core-foreverworld
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aspnet-core
Source: https://github.com/ForeverWorld/curdx-ralph/tree/main/skills/aspnet-core
Command: npx skills add https://github.com/ForeverWorld/curdx-ralph --skill aspnet-core-foreverworld

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provide clear, up-to-date guidance and actionable patterns for building, reviewing, refactoring, and upgrading ASP.NET Core applications so teams avoid outdated patterns, security misconfigurations, and brittle startup shapes.

Core Features & Use Cases

  • App model selection & scaffolding: Help choose between Blazor, Razor Pages, MVC, Minimal APIs, controllers, SignalR, or gRPC and start from the correct template and hosting model.
  • Host, DI, and pipeline composition: Ensure Program.cs, middleware ordering, DI lifetimes, configuration, and routing follow current Microsoft guidance to prevent common runtime and security bugs.
  • Cross-cutting concerns & upgrades: Provide focused references for data access, security/Identity, testing, performance, deployment, and version migration so teams can safely upgrade frameworks or introduce new platform APIs.
  • Use Case: Migrate an older WebHost/Startup app to the modern WebApplicationBuilder hosting model, preserving behavior while updating middleware order, DI registrations, and tests.

Quick Start

Create a new ASP.NET Core web application targeting net10.0 using WebApplicationBuilder, add JWT authentication, register an EF Core DbContext, and scaffold a minimal API endpoint for users.

Frequently Asked Questions about aspnet-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate an ASP.NET Core Startup.cs app to the WebApplicationBuilder hosting model?

To migrate an ASP.NET Core app to WebApplicationBuilder, move configuration, DI registrations, and middleware from Startup.cs into Program.cs, preserving behavior while updating middleware order and service lifetimes to match current Microsoft guidance.

What is the correct middleware ordering for ASP.NET Core request pipelines?

Correct ASP.NET Core middleware ordering places exception handling first, followed by HSTS, HTTPS redirection, static files, routing, authentication, authorization, endpoints, ensuring security defaults and routing function properly.

How do I add JWT authentication and EF Core to a Minimal API in ASP.NET Core?

Add JWT authentication and EF Core to a Minimal API by registering authentication services and a DbContext in Program.cs, then applying authentication middleware and scaffolding endpoint routes with authorization.

Should I use Blazor, Razor Pages, MVC, or Minimal APIs for my ASP.NET Core app?

Choose Blazor for interactive client UI, Razor Pages for page-focused forms, MVC for structured separation, or Minimal APIs for lightweight APIs, selecting based on app complexity and rendering requirements.

Does ASP.NET Core support SignalR and gRPC for real-time communication?

ASP.NET Core supports both SignalR and gRPC, allowing implementation of real-time communication and high-performance RPC services within the same host and request pipeline configuration.

Why are my dependency injection lifetimes causing issues in ASP.NET Core?

Dependency injection lifetimes cause issues when scoped services are captured by singletons or middleware, creating captive dependencies; correct DI registrations in Program.cs to match service lifetime expectations.