CleenUI · AI agent skills

API Builder skill

Scaffolds ASP.NET Core 8 controllers, services, and the Dapper data-access calls that wire to your stored procs.

The API Builder skill is the backend counterpart to the frontend Builder. When a developer says "add an /admin/category/restore endpoint," the skill generates the controller method, the service-layer call, the Dapper invocation, the auth + RBAC attribute wrappers, and the route registration — following CleenUI's exact ASP.NET Core 8 conventions across the 524-endpoint surface.

It knows the 14-module folder structure, the per-module API base (e.g., /admin/notify-template/*), the validation idiom, the response shape conventions, and where impersonation + row-level access checks belong. Output looks like it was written by someone who's been in the codebase for years.

What the skill does

  • Generate a controller method following CleenUI's request/response shape conventions.
  • Wire the service-layer abstraction and the Dapper stored-procedure call.
  • Apply the correct auth attribute (admin / user / public) based on the path prefix.
  • Register the endpoint in the appropriate module's controller class.
  • Emit the OpenAPI summary + parameter docs so Swagger UI picks it up.
⚡ Already in an AI editor?

Set up CleenUI in your tool.

To use the API Builder skill in practice, register CleenUI in your AI editor — five-minute setup per tool, guides below.