mediator-reference
OfficialImplement FSH CQRS with the right Mediator interfaces.
Software Engineering#interfaces#cqrs#valueTask#aspnet#mediator#module-registration#mediator-source-generator
Authorfullstackhero
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents compile-time and runtime errors caused by confusing FSH’s Mediator source-generator CQRS interfaces with MediatR, and it clarifies the exact handler/registration contracts you must follow.
Core Features & Use Cases
- Use the correct CQRS interfaces: Commands and queries use
ICommand<TResponse>/IQuery<TResponse>and handlers useICommandHandler<,>/IQueryHandler<,>(not MediatR’sIRequest<>patterns). - Implement handlers correctly: Handler methods must return
ValueTask<T>and follow the expected parameter naming conventions and coding style. - Register new modules in the Mediator scan lists: Ensures the source generator scans the right Contracts and runtime assemblies by updating both required host Program entry points.
- Common error diagnosis: Explains typical symptoms (missing interfaces, wrong
TaskvsValueTask, handlers not being invoked) and maps them to fixes.
Quick Start
Use the mediator-reference skill as your checklist when adding a new module so your command/query contracts, handler signatures, and Mediator assembly registration match FSH’s source-generator expectations.
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: mediator-reference Download link: https://github.com/fullstackhero/dotnet-starter-kit/archive/main.zip#mediator-reference 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.