api-controller-generator

Generate standardized C# WebAPI controllers with routing and dependency injection scaffolding.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kongliuli/VibeSkills --skill api-controller-generator-kongliuli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-controller-generator
Source: https://github.com/kongliuli/VibeSkills/tree/main/Skills/C%23/webapi-mvc/api-controller-generator
Command: npx skills add https://github.com/kongliuli/VibeSkills --skill api-controller-generator-kongliuli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the generation and configuration of API controllers for C# WebAPI projects, ensuring consistent structure, routing, and return patterns.

Core Features & Use Cases

  • Automated Controller Generation: scaffolds Controllers, DI setup, and basic CRUD actions.
  • Routing & Attributes: applies Route and Http* attributes, supports versioned routing.
  • Parameter Binding: demonstrates standard [FromQuery], [FromBody], etc.
  • File Upload Handling: includes samples for single/multiple uploads and form-data.
  • Use Case: Rapidly scaffold controllers for user management or resource APIs in new projects.

Quick Start

Use the api-controller-generator skill to scaffold a UsersController with basic CRUD actions and routing configured.

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 an ASP.NET Core API controller with routing and CRUD actions?

To generate an ASP.NET Core API controller, this skill scaffolds standardized C# WebAPI controllers with routing, action signatures, and dependency injection. It applies Route and Http* attributes, creating basic CRUD actions ready for integration into new projects.

What is the best way to scaffold parameter binding for file uploads in C# WebAPI?

For scaffolding parameter binding for file uploads in C# WebAPI, this skill generates samples for single and multiple file uploads. It configures form-data handling and demonstrates standard binding strategies like [FromQuery] and [FromBody] for controller actions.

Does this API controller generator support versioned routing for ASP.NET Core projects?

Yes, this API controller generator supports versioned routing for ASP.NET Core projects. It applies Route and Http* attributes during controller generation, ensuring consistent structure and routing patterns across your WebAPI actions without minimal business logic.

Can I automate dependency injection scaffolding when creating C# WebAPI controllers?

You can automate dependency injection scaffolding when creating C# WebAPI controllers using this skill. It generates standardized controllers with DI setup and basic CRUD actions, enforcing consistent Action return types for rapid resource API development.

How do I configure HttpGet attributes and consistent return types for WebAPI controllers?

To configure HttpGet attributes and consistent return types, this skill applies template-driven patterns during controller generation. It enforces consistent Action return types and configures routing attributes for standardized C# WebAPI controllers.