mediatr-handlers
CommunityCreate robust MediatR command and query handlers
AuthorFaysilAlshareef
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill codifies patterns and best practices for implementing MediatR request handlers, notification handlers, and dispatching so handlers are consistent, testable, and aligned with CQRS principles.
Core Features & Use Cases
- Handler patterns: guidance for commands, queries, void commands, and notifications with recommended class shapes and naming conventions.
- Integration practices: how to use repositories, UnitOfWork, DbContext for read/write separation, and how to register handlers with AddMediatR.
- Use case: implement a CreateOrderCommand that persists an order, returns the new Id, logs activity, and publishes notifications for side effects.
Quick Start
Implement a CreateOrderCommand and its IRequestHandler that uses IOrderRepository and IUnitOfWork to persist a new order and return the created order Id.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mediatr-handlers Download link: https://github.com/FaysilAlshareef/dotnet-ai-kit/archive/main.zip#mediatr-handlers Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.