unimanage-backend

Develop .NET backend APIs with Clean Architecture, CQRS, and MediatR patterns.

Updated Feb 27, 2025
One-click install
npx skills add https://github.com/tchiphuong/UniManage --skill unimanage-backend
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unimanage-backend
Source: https://github.com/tchiphuong/UniManage/tree/main/backend/.agent/skills/unimanage-backend
Command: npx skills add https://github.com/tchiphuong/UniManage --skill unimanage-backend

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the development of robust .NET backend APIs by enforcing a strict CQRS architecture, utility-first approach, and standardized response formats, reducing boilerplate code and ensuring consistency.

Core Features & Use Cases

  • API Development: Build RESTful APIs using ASP.NET Core, MediatR, and Dapper.
  • CQRS Implementation: Structure applications using Commands and Queries for clear separation of concerns.
  • Database Operations: Interact with SQL Server using Dapper and leverage provided database utilities for transactions and querying.
  • Use Case: When creating a new user endpoint, use this skill to generate the necessary Controller, Command, Validator, and Handler, ensuring adherence to all UniManage backend standards.

Quick Start

Use the unimanage-backend skill to create a new user registration API endpoint.

Frequently Asked Questions about unimanage-backend

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

FAQPage Schema
How do I build a .NET backend API using CQRS and MediatR?

To build a .NET backend API using CQRS and MediatR, this Skill generates the necessary Controllers, Commands, Queries, Validators, and Handlers, enforcing strict separation of concerns and Clean Architecture. It standardizes RESTful API URL patterns, HTTP methods, and response structures.

What is the best way to structure .NET API endpoints with Clean Architecture?

The best way to structure .NET API endpoints with Clean Architecture is using a utility-first approach with predefined helpers for validation, response formatting, and database operations. This Skill enforces those standards, reducing boilerplate code and ensuring architectural consistency across RESTful endpoints.

How do I implement Dapper data access with SQL Server in a CQRS pattern?

To implement Dapper data access with SQL Server in a CQRS pattern, this Skill provides predefined database utilities for querying and handling transactions. It leverages Dapper within the MediatR handler pipeline to cleanly separate read queries from write commands.

Does this approach generate boilerplate code for RESTful API response formatting?

Yes, this approach generates boilerplate code for RESTful API response formatting by enforcing a utility-first approach with predefined helpers. It automatically handles standardized response structures for both single resources and paginated lists, ensuring consistent API outputs.

Can I use this Skill to generate validation logic for ASP.NET Core endpoints?

Yes, you can use this Skill to generate validation logic for ASP.NET Core endpoints. When creating an endpoint, it produces the necessary Validator components alongside the Command and Handler, ensuring all incoming requests are validated according to the predefined backend standards.

When should I use CQRS with MediatR instead of a standard CRUD controller in .NET?

You should use CQRS with MediatR instead of a standard CRUD controller in .NET when you need clear separation of concerns for complex read and write operations. This approach reduces boilerplate, enforces standardized response formatting, and maintains strict Clean Architecture boundaries via utility-first helpers.