fluent-validation

Generate FluentValidation validators for .NET commands and queries.

69|13|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/ronnythedev/dotnet-clean-architecture-skills --skill fluent-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fluent-validation
Source: https://github.com/ronnythedev/dotnet-clean-architecture-skills/tree/main/sample/POS/.claude/skills/11-fluent-validation
Command: npx skills add https://github.com/ronnythedev/dotnet-clean-architecture-skills --skill fluent-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill generates FluentValidation validators for commands and queries in .NET applications.

Core Features & Use Cases

  • Inline validators: Build validators directly next to command/query types for fast iteration.
  • Reusable validators: Extract common rules into shared validators for consistency.
  • Async and nested validation: Support for async checks and nested/collection validation, with DI integration.

Quick Start

Use the fluent-validation skill to scaffold a CreateUserCommandValidator for a sample command.

Frequently Asked Questions about fluent-validation

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

FAQPage Schema
How do I generate FluentValidation validators for CQRS commands in .NET?

You can generate FluentValidation validators for .NET commands and queries by scaffolding them directly in the application layer. This skill targets CQRS-style architectures to rapidly create validators for Create and Update workflows.

Can I create reusable FluentValidation rules for nested objects?

Yes, you can extract common rules into reusable shared validators for consistency. The generated validators also support nested objects and collection validation to handle complex command structures.

Does this FluentValidation scaffolding work with MediatR and dependency injection?

Yes, the generated validators integrate directly with MediatR and FluentValidation DI extensions. This ensures your async checks and validation rules are properly wired into the .NET application pipeline.

What is the difference between inline and reusable validators for .NET commands?

Inline validators are built directly next to command and query types for fast iteration during development. Reusable validators extract shared rules into separate classes to enforce consistency across multiple .NET workflows.

How do I add async validation checks to a CreateUserCommand validator?

You can scaffold a CreateUserCommandValidator with support for async checks. This enables the validator to perform asynchronous database or service calls during command validation in your .NET application.

Related Skills