dotnet-backend

Automate ASP.NET Core Web API backend setup with repositories, unit of work, and JWT authentication.

Updated Nov 30, 2025
One-click install
npx skills add https://github.com/gabrielsan90/FacturacionV2 --skill dotnet-backend-gabrielsan90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-backend
Source: https://github.com/gabrielsan90/FacturacionV2/tree/main/.claude/skills/dotnet-backend
Command: npx skills add https://github.com/gabrielsan90/FacturacionV2 --skill dotnet-backend-gabrielsan90

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implement REST API development for .NET backends using ASP.NET Core Web API, with structured data access and authentication patterns to streamline endpoint creation and maintain clean architecture.

Core Features & Use Cases

  • Repository pattern with a generic repository for data access
  • Unit of Work to coordinate multiple repositories
  • Controllers with API routing and [Authorize] attributes
  • JWT authentication setup and DI configuration in Program.cs
  • EF Core data context setup and scaffolding guidance
  • Clear guidelines for service registration, logging, and error handling

Quick Start

Start the Backend project and verify the API endpoints and JWT-protected routes are functioning.

Frequently Asked Questions about dotnet-backend

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

FAQPage Schema
How do I structure an ASP.NET Core Web API with the repository pattern and unit of work?

Implementing the repository pattern and unit of work in an ASP.NET Core Web API involves using a generic repository for data access and a unit of work class to coordinate operations, registering both via dependency injection in Program.cs for clean architecture.

What is the best way to configure JWT authentication in an ASP.NET Core backend?

Configuring JWT authentication in an ASP.NET Core backend involves setting up security middleware and token validation parameters in Program.cs, then applying [Authorize] attributes to API controllers to restrict access to protected routes.

How do I set up EF Core data context scaffolding for a .NET backend?

Setting up an EF Core data context for a .NET backend involves defining the DbContext class, configuring database connection strings, and registering the context for dependency injection to enable async data access patterns.

Does ASP.NET Core dependency injection support async data access patterns?

Yes, ASP.NET Core dependency injection fully supports async data access patterns by allowing you to register and inject asynchronous repositories and unit of work instances directly into your API controllers and services.

How do I secure API endpoints in an ASP.NET Core Web API project?

Securing API endpoints in an ASP.NET Core Web API project is achieved by configuring JWT authentication in Program.cs and decorating your API controllers or specific routing actions with the [Authorize] attribute.