api-controller-generator

Generate RESTful API controllers with MediatR integration, API versioning, and authorization.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/hiiamsky/multi-agent-dev-team --skill api-controller-generator-hiiamsky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-controller-generator
Source: https://github.com/hiiamsky/multi-agent-dev-team/tree/main/.github/skills/dotnet-api-controller
Command: npx skills add https://github.com/hiiamsky/multi-agent-dev-team --skill api-controller-generator-hiiamsky

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the generation of RESTful API controllers and DTOs that adhere to MediatR integration, API versioning, and role-based authorization, reducing boilerplate and ensuring consistency.

Core Features & Use Cases

  • MediatR integration for commands and queries
  • API versioning via URL segments
  • Authorization and role-based access control
  • Consistent response formats and DTO separation
  • Use Case: scaffold a new feature's API surface with minimal boilerplate

Quick Start

Generate a complete CRUD API controller scaffold for a feature using the project's naming conventions.

Frequently Asked Questions about api-controller-generator

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

FAQPage Schema
How do I generate .NET API controllers with MediatR integration?

To generate .NET API controllers with MediatR integration, use this Skill to scaffold RESTful endpoints that depend on ISender, support CancellationToken, and enforce proper routing across Clean Architecture boundaries. It automates command and query boilerplate.

What is the best way to scaffold clean architecture API controllers for .NET 8?

Scaffolding clean architecture API controllers for .NET 8 is best done by generating code that separates DTOs, applies API versioning via URL segments, and enforces role-based authorization, ensuring consistent response formats and reduced boilerplate across application boundaries.

Can I use this to generate role-based authorization and API versioning for my controllers?

Yes, you can generate role-based authorization and API versioning for controllers. The Skill applies authorization patterns and implements API versioning through URL segments, ensuring proper access control and version routing for your generated RESTful API endpoints.

Does this Skill support generating DTOs and consistent response formats for .NET projects?

Yes, this Skill supports generating DTOs and consistent response formats for .NET projects. It separates DTOs from domain models and enforces proper routing and status codes, ensuring consistent response structures across your generated API surface.

How do I add a new feature API surface without writing boilerplate controller code?

To add a new feature API surface without boilerplate, use this Skill to generate a complete CRUD API controller scaffold. It applies your project naming conventions, integrates MediatR, and structures commands and queries across API, application, and infrastructure boundaries.