razor-dotnet10

Build .NET 10 Razor Pages, MVC, and API endpoints with Dapper and SQL Server.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/scopweb/scp-skills --skill razor-dotnet10
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: razor-dotnet10
Source: https://github.com/scopweb/scp-skills/tree/main/razor-dotnet10
Command: npx skills add https://github.com/scopweb/scp-skills --skill razor-dotnet10

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Razor Pages, MVC, and API projects often suffer from fragmented patterns across UI, endpoints, and data access. This skill consolidates best practices for authentication, routing, and data access using Dapper with SQL Server and Identity, ensuring consistent, secure, and high-quality ASP.NET Core apps.

Core Features & Use Cases

  • Establishes a cohesive architecture for Razor Pages, MVC controllers, and API endpoints with Cookie and JWT authentication.
  • Enforces safe Dapper data access using CommandDefinition, cancellation tokens, and parameterized queries against SQL Server.
  • Enforces Identity as the user store with EF Core for identity tables, while business data remains in Dapper.

Quick Start

Create a new .NET 10 project, wire up Razor Pages, MVC, and API endpoints with Cookie and JWT authentication, and implement a sample PageModel that uses Dapper to read from a SQL Server table.

Frequently Asked Questions about razor-dotnet10

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

FAQPage Schema
How do I combine Dapper and EF Core for Identity in .NET 10 Razor Pages?

Use EF Core for ASP.NET Core Identity tables while routing business data access through Dapper. This .NET 10 pattern uses CommandDefinition with CancellationToken against SQL Server, keeping authentication data isolated from operational queries.

What is the best way to set up Cookie and JWT authentication in a .NET 10 MVC project?

The best way to set up dual authentication in .NET 10 is configuring minimal middleware pipelines for Cookie and JWT. This ensures consistent security patterns across MVC controllers, Razor Pages, and API endpoints within the same application.

How do I enforce type-safe API responses with Dapper in ASP.NET Core?

Enforce type-safe API responses by using Dapper with parameterized queries and CommandDefinition. This .NET 10 pattern guarantees deterministic database access and safe cancellation token propagation for your API endpoints.

Does this .NET 10 Razor Pages skill work with OpenAPI and Scalar documentation?

Yes, the skill provides guidance for OpenAPI and Scalar-style documentation. It integrates these documentation tools with your .NET 10 API endpoints to ensure consistent, type-safe API responses and clear endpoint descriptions.

Can I use minimal middleware pipelines for both UI and API endpoints in .NET 10?

Yes, you can establish a cohesive architecture using minimal middleware pipelines. This .NET 10 pattern supports routing for Razor Pages, MVC controllers, and API endpoints simultaneously, applying both Cookie and JWT authentication consistently.

Why use Dapper instead of EF Core for SQL Server data access in .NET 10 APIs?

Use Dapper for high-performance, deterministic SQL Server data access using parameterized queries and CommandDefinition. EF Core is reserved solely for managing Identity tables, preventing business data queries from bloating the ORM context.