Csharp rules

From softspark/ai-toolkit · View interactive version

Csharp rules is an AI agent skill from the GitHub repository softspark/ai-toolkit. C#/.NET coding rules: style, patterns, security, testing. Triggers: .cs, .csproj, .sln, ASP.NET, ASP.NET Core, EF Core, LINQ, NUnit, xUnit, dotnet.

How to use this skill

Skill file

C#/.NET Rules

These rules come from app/rules/csharp/ in ai-toolkit. They cover

the project's standards for coding style, frameworks, patterns,

security, and testing in C#/.NET. Apply them when writing or

reviewing C#/.NET code.

C# Coding Style

Naming

Nullable Reference Types

Records and Types

Pattern Matching

Async/Await

File Organization

Formatting

C# Frameworks

ASP.NET Core

Entity Framework Core

Blazor

SignalR

MassTransit / Messaging

Logging

Configuration

Health Checks

C# Patterns

Error Handling

Async Patterns

Dependency Injection

LINQ

Disposable Pattern

Mediator / CQRS

Value Objects

Anti-Patterns

C# Security

Input Validation

SQL Injection

Authentication

Authorization

CSRF and XSS

Data Protection

Secrets Management

Dependency Security

C# Testing

Framework

File Naming

Structure

Assertions (FluentAssertions)

Mocking (NSubstitute)

Integration Testing

Test Data

Best Practices

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.