dotnet-code-validation

Validate C# code against .editorconfig rules and DDD architectural patterns.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/AndresJQCode/template-net-core-9-DDD --skill dotnet-code-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-code-validation
Source: https://github.com/AndresJQCode/template-net-core-9-DDD/tree/main/.claude/skills/dotnet-code-validation
Command: npx skills add https://github.com/AndresJQCode/template-net-core-9-DDD --skill dotnet-code-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures C# code adheres to project-specific quality standards, naming conventions, and established design patterns, leading to more maintainable and robust software.

Core Features & Use Cases

  • Code Style Enforcement: Guarantees adherence to .editorconfig rules for indentation, modifiers, and formatting.
  • Pattern Compliance: Validates correct implementation of DDD, CQRS, and other architectural patterns across different project layers.
  • Naming Conventions: Enforces consistent and meaningful naming for classes, methods, and variables based on domain language and project standards.
  • Use Case: When generating new C# code for a domain entity, this Skill will ensure it follows immutability rules, has private setters, and uses domain-specific terminology for methods.

Quick Start

Review the provided C# code snippet to ensure it adheres to the .NET 9 DDD template's coding standards and patterns.

Frequently Asked Questions about dotnet-code-validation

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

FAQPage Schema
How do I enforce C# code quality and DDD patterns across different project layers?

To enforce C# code quality and DDD patterns, you validate code against project `.editorconfig` rules, ensuring correct separation across Domain, Application, Infrastructure, and API layers. This guarantees adherence to naming conventions and architectural standards.

What is the best way to validate CQRS separation and FluentValidation usage in my codebase?

Validating CQRS separation and FluentValidation usage involves checking that commands and queries remain distinct and that validation logic is correctly applied. This ensures your C# code maintains clean architectural boundaries and robust input validation.

How do I ensure my C# domain entities follow immutability rules and use private setters?

To ensure C# domain entities follow immutability rules, you enforce the use of private setters and validate that methods use domain-specific terminology. This maintains strict Domain-Driven Design principles and consistent entity behavior.

Can I use this to check adherence to .editorconfig formatting and specific C# style preferences?

Yes, you can use this to check adherence to `.editorconfig` formatting and specific C# style preferences. It validates indentation, modifiers, and formatting rules to guarantee consistent code style across your software project.

What are the limitations of automated coding standards validation for .NET projects?

A limitation of automated coding standards validation is that it primarily checks structural and stylistic compliance, such as `.editorconfig` rules and DDD patterns. It cannot fully evaluate broader architectural context or subjective domain logic design decisions.