.NET / C# Patterns

Enforce .NET/C# coding standards and best practices in projects.

Updated Mar 21, 2026
One-click install
npx skills add https://github.com/dbrijesh/raep --skill net-c-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: .NET / C# Patterns
Source: https://github.com/dbrijesh/raep/tree/main/templates/skills/dotnet-patterns
Command: npx skills add https://github.com/dbrijesh/raep --skill net-c-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that your .NET/C# code adheres to the best practices and coding standards, improving maintainability and reducing bugs.

Core Features & Use Cases

  • Project Structure: Enforces a feature-based folder organization and separation of concerns.
  • Coding Standards: Implements C# coding standards, including use of records, var, pattern matching, and async/await.
  • Dependency Injection: Guides the use of dependency injection for services, ensuring best practices are followed.
  • ASP.NET Core: Provides specific guidelines for ASP.NET Core, including validation, error handling, and Entity Framework Core usage.
  • Performance: Offers best practices for performance, such as caching, streaming, and profiling.

Quick Start

Run the dotnet-cs-skill to analyze your .NET project and ensure adherence to best practices.

Frequently Asked Questions about .NET / C# Patterns

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

FAQPage Schema
What are the best practices for .NET project structure and coding standards?

Best practices for .NET project structure involve organizing folders by feature and separating concerns. Coding standards include using records, var, pattern matching, and async/await to maintain clean and maintainable C# codebases.

How do I set up dependency injection in ASP.NET Core services?

Dependency injection in ASP.NET Core services should follow specific guidelines to ensure loose coupling and testability. The Skill guides registering and resolving services to enforce proper dependency injection usage across your .NET project.

Does this Skill cover Entity Framework Core and ASP.NET Core error handling?

Yes, this Skill covers ASP.NET Core specifics including Entity Framework Core usage, validation, and error handling. It provides targeted guidelines to ensure your web application adheres to established .NET coding standards.

What's the best way to optimize C# and .NET application performance?

To optimize .NET application performance, follow best practices such as implementing caching, utilizing streaming for large data, and profiling your code. These techniques help maintain efficient and responsive C# applications.

Can I use this to enforce C# coding standards across an existing codebase?

Yes, you can run the dotnet-cs-skill to analyze your existing .NET project and ensure it adheres to established coding standards, project structure guidelines, and best practices for clean code.