dotnet-validation-patterns
CommunityMaster .NET built-in validation.
Authorrudironsoni
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you implement robust data validation in your .NET applications using built-in features, ensuring data integrity and preventing invalid states without relying on external libraries for common scenarios.
Core Features & Use Cases
- Declarative Validation: Leverage DataAnnotations for property-level checks like
[Required],[Range], and[StringLength]. - Cross-Property Validation: Implement
IValidatableObjectfor complex rules spanning multiple properties within a single object. - Options Validation: Securely validate application configuration using
IValidateOptions<T>at startup. - Custom Attributes: Create reusable, domain-specific validation logic.
- Use Case: Validate a user registration form, ensuring all required fields are present, email formats are correct, and password complexity rules are met before processing.
Quick Start
Use the dotnet-validation-patterns skill to generate C# code demonstrating how to validate a CreateProductRequest model using DataAnnotations.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: dotnet-validation-patterns Download link: https://github.com/rudironsoni/dotnet-agent-harness/archive/main.zip#dotnet-validation-patterns 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 223,000+ vetted skills library on demand.