be-create-controller

Generate .NET Core Web API controllers with CRUD, search, and authentication scaffolding.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/bmslabs/bmlabs-projects-templates --skill be-create-controller
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: be-create-controller
Source: https://github.com/bmslabs/bmlabs-projects-templates/tree/main/api-dotnet/.github/skills/be-create-controller
Command: npx skills add https://github.com/bmslabs/bmlabs-projects-templates --skill be-create-controller

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers rapidly scaffold production-ready .NET Core Web API controllers that follow project conventions, ensuring consistent DI, error handling, Swagger documentation, and security patterns.

Core Features & Use Cases

  • Generates ControllerBase-based controllers with standard attributes, constructor DI, and XML documentation for Swagger.
  • Implements common endpoints and patterns (GetById, Search with paging, Upsert) for typical entities, plus authentication scaffolding.
  • Suitable for creating new API endpoints, file APIs, or business operation web endpoints across .NET Core applications.

Quick Start

Indica el nombre del controller a crear, por ejemplo 'ProductoController'.

Frequently Asked Questions about be-create-controller

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

FAQPage Schema
How do I generate a .NET Core Web API controller with dependency injection and Swagger?

To generate a .NET Core Web API controller with dependency injection and Swagger, provide the controller name. The skill scaffolds a ControllerBase class with constructor DI, ILogger, and XML documentation for Swagger.

What is the best way to scaffold CRUD and search endpoints for a .NET Web API?

The best way to scaffold CRUD and search endpoints for a .NET Web API is using this skill. It creates GetById, Search with paging, and Upsert endpoints, applying standard ApiController attributes and consistent error handling.

Does the generated .NET API controller include authentication scaffolding?

Yes, the generated .NET API controller includes authentication scaffolding. It applies the [Authorize] attribute to the ControllerBase-based endpoints, ensuring secure access patterns across various application scenarios.

Can I use this to create a production-ready .NET API controller with consistent error handling?

Yes, you can use this to create a production-ready .NET API controller with consistent error handling. It enforces standard patterns, returning appropriate HTTP status codes across typical API project entities.

How do I add paging to a search endpoint in a dotnet controller?

To add paging to a search endpoint in a dotnet controller, this skill implements a Search pattern with paging automatically. It scaffolds the endpoint logic within the generated controller, applying standard API conventions.

What dependencies are required to auto-create .NET Core controllers?

No specific dependencies are required to auto-create .NET Core controllers. The skill generates the code structure internally, applying dependency injection via constructor with ILogger and services for your application.