mediatorlite-core

Manages MediatorLite .NET core runtime components including DI registration, dispatch, diagnostics, and validation.

4|1|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/behl1anmol/MediatorLite --skill mediatorlite-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mediatorlite-core
Source: https://github.com/behl1anmol/MediatorLite/tree/main/.cursor/skills/mediatorlite-core
Command: npx skills add https://github.com/behl1anmol/MediatorLite --skill mediatorlite-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the guesswork of working with MediatorLite's core runtime components, including dependency injection registration, dispatch logic, diagnostics, and validation pipelines, so you don't have to reverse-engineer source-generated code to make safe, supported changes.

Core Features & Use Cases

  • DI Registration Management: Add or tweak AddMediatorLite() service registrations, and understand how the ThrowingMediator diagnostic fallback works when no source-generated mediator is present.
  • Dispatch & Validation Logic: Work with the generated SourceGeneratedMediator's zero-reflection typed-switch dispatch, adjust ValidationBehavior error aggregation, or modify DataAnnotationsValidator behavior.
  • Diagnostics Configuration: Update OpenTelemetry activity tags, activity names, and DiagnosticListener events to match your observability stack's requirements.
  • Use Case: If you need to modify how MediatorLite registers its core services, adjust validation error handling, or update tracing metadata for production monitoring, this Skill provides the exact context and guardrails to avoid breaking the library's compile-time invariants.

Quick Start

Use the mediatorlite-core skill to update the MediatorLite activity tag names to align with your organization's observability naming standards.

Frequently Asked Questions about mediatorlite-core

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

FAQPage Schema
How do I modify AddMediatorLite dependency injection registrations without breaking source generation?

To modify AddMediatorLite dependency injection registrations safely, you adjust the DI extensions while preserving zero-reflection dispatch and compile-time behavior ordering invariants, ensuring you never alter generated code.

Why does my MediatorLite dispatch fail when no source-generated mediator is present?

When no source-generated mediator is present, the ThrowingMediator diagnostic fallback activates, intentionally throwing errors to highlight missing source generation outputs rather than silently failing.

How do I update OpenTelemetry activity tags and DiagnosticListener events for MediatorLite?

You update OpenTelemetry activity tags and DiagnosticListener events by modifying the diagnostics subsystem to align activity names and tags with your observability stack requirements, without touching generated dispatch code.

Can I adjust ValidationBehavior error aggregation in MediatorLite v2?

Yes, you can adjust ValidationBehavior error aggregation and DataAnnotationsValidator behavior by modifying validation pipeline configurations, provided you maintain compile-time behavior ordering invariants required by the source-generation-first architecture.

What are the limitations of modifying MediatorLite's zero-reflection dispatch logic?

The primary limitation is that you cannot modify the generated typed-switch dispatch code directly; all changes must flow through supported DI extensions and validation subsystems to avoid breaking compile-time invariants.