Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Reviews and generates .NET/C# code following Microsoft conventions and modern patterns. Use when reviewing C# files, writing .NET code, refactoring, or when user mentions "C#", ".NET", "dotnet", "csharp", or asks about naming conventions in .NET projects.
.claude/skills/aiskillstore-reviewing-dotnet-code/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 148% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 31% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 31% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 49% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 52% | 0% |
Apply Microsoft's .NET coding conventions and modern C# patterns when reviewing or generating code.
| Element | Style | Example | |---------|-------|---------| | Classes, Records | PascalCase | CustomerService, OrderRecord | | Interfaces | IPascalCase | IRepository, IDisposable | | Methods | PascalCase | GetCustomer(), ValidateOrder() | | Properties | PascalCase | FirstName, IsActive | | Public Fields | PascalCase | MaxRetryCount | | Parameters | camelCase | customerId, orderDate | | Local Variables | camelCase | itemCount, isValid | | Private Fields | _camelCase | _connectionString, _logger | | Constants | PascalCase | DefaultTimeout, MaxItems | | Enums | PascalCase (singular) | Color.Red, Status.Active | | Async Methods | PascalCaseAsync | GetCustomerAsync() |
Always use language keywords over framework types:
csharp// Correct string name; int count; bool isActive; // Avoid String name; Int32 count; Boolean isActive;
csharp// File-scoped namespaces namespace MyApp.Services; // Target-typed new List<Customer> customers = new(); // Collection expressions string[] items = ["one", "two", "three"]; // Primary constructors public class Service(ILogger logger, IRepository repo); // Records for immutable data public record CustomerDto(string Name, string Email); // Raw string literals var json = """ { "name": "test" } """;
Scan for naming violations:
Async suffixLook for outdated patterns:
String instead of stringnew List<T>() instead of new() or []?. or ??Flag async anti-patterns:
async void (except event handlers).Result or .Wait() blocking callsConfigureAwait(false) in librariesVerify exception patterns:
Exception instead of specific typesusing for disposablesIdentify LINQ opportunities:
Select/Where/Any.ToList())Read REFERENCE.md when:
Read EXAMPLES.md when:
csharp// async void (except event handlers) public async void ProcessData() { } // Blocking on async var result = GetDataAsync().Result; task.Wait(); // Empty catch try { } catch { } // Catching base Exception catch (Exception ex) { }
csharp// Hungarian notation int iCount; // use: count string strName; // use: name // Screaming caps const int MAX_SIZE = 100; // use: MaxSize // System types String name; // use: string
csharpnamespace MyApp.Services; public class CustomerService( ILogger<CustomerService> logger, ICustomerRepository repository) { public async Task<Customer?> GetByIdAsync( int id, CancellationToken cancellationToken = default) { logger.LogDebug("Getting customer {Id}", id); return await repository.FindByIdAsync(id, cancellationToken); } }
csharpnamespace MyApp.Models; public record CustomerDto( int Id, string Name, string Email, DateOnly CreatedDate);
csharpnamespace MyApp.Abstractions; public interface ICustomerRepository { Task<Customer?> FindByIdAsync(int id, CancellationToken ct = default); Task<IReadOnlyList<Customer>> GetAllAsync(CancellationToken ct = default); Task AddAsync(Customer customer, CancellationToken ct = default); }
If project has .editorconfig, defer to those rules for style preferences. Check before suggesting style changes.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 9,452 | 9,439 | -0% | 1 | 1 | 0% | 1,596 | 2,098 | +31% | 0 | 0 | — |
case-02 | fail→pass | 9,878 | 8,782 | -11% | 1 | 1 | 0% | 770 | 1,909 | +148% | 0 | 0 | — |
case-03 | pass→pass | 13,145 | 8,153 | -38% | 1 | 1 | 0% | 1,351 | 1,773 | +31% | 0 | 0 | — |
case-04 | pass→pass | 9,011 | 5,696 | -37% | 1 | 1 | 0% | 1,442 | 2,152 | +49% | 0 | 0 | — |
case-05 | pass→pass | 9,103 | 11,298 | +24% | 1 | 1 | 0% | 1,520 | 2,315 | +52% | 0 | 0 | — |
case-06 | pass→pass | 2,918 | 3,169 | +9% | 1 | 1 | 0% | 472 | 1,712 | +263% | 0 | 0 | — |
case-07 | pass→pass | 11,059 | 14,332 | +30% | 1 | 1 | 0% | 1,812 | 2,792 | +54% | 0 | 0 | — |
case-08 | pass→pass | 15,853 | 7,354 | -54% | 1 | 1 | 0% | 1,754 | 2,434 | +39% | 0 | 0 | — |
case-09 | pass→pass | 6,336 | 8,291 | +31% | 1 | 1 | 0% | 1,015 | 1,781 | +75% | 0 | 0 | — |
case-23 | pass→pass | 15,176 | 10,611 | -30% | 1 | 1 | 0% | 1,808 | 3,056 | +69% | 0 | 0 | — |
case-10 | pass→pass | 7,137 | 2,851 | -60% | 1 | 1 | 0% | 331 | 1,561 | +372% | 0 | 0 | — |
case-11 | pass→pass | 3,024 | 2,459 | -19% | 1 | 1 | 0% | 493 | 1,622 | +229% | 0 | 0 | — |
case-12 | pass→pass | 12,889 | 10,569 | -18% | 1 | 1 | 0% | 1,138 | 2,171 | +91% | 0 | 0 | — |
case-13 | pass→pass | 11,372 | 10,986 | -3% | 1 | 1 | 0% | 1,912 | 2,308 | +21% | 0 | 0 | — |
case-14 | pass→pass | 7,870 | 7,939 | +1% | 1 | 1 | 0% | 1,263 | 2,446 | +94% | 0 | 0 | — |
case-15 | pass→pass | 4,853 | 7,270 | +50% | 1 | 1 | 0% | 813 | 1,584 | +95% | 0 | 0 | — |
case-16 | pass→pass | 10,860 | 4,440 | -59% | 1 | 1 | 0% | 980 | 1,940 | +98% | 0 | 0 | — |
case-17 | pass→pass | 10,139 | 4,245 | -58% | 1 | 1 | 0% | 1,725 | 1,893 | +10% | 0 | 0 | — |
case-18 | pass→pass | 5,112 | 9,781 | +91% | 1 | 1 | 0% | 992 | 2,220 | +124% | 0 | 0 | — |
case-19 | pass→pass | 10,117 | 3,269 | -68% | 1 | 1 | 0% | 889 | 1,778 | +100% | 0 | 0 | — |
case-20 | pass→pass | 19,334 | 11,921 | -38% | 1 | 1 | 0% | 1,716 | 2,467 | +44% | 0 | 0 | — |
case-21 | pass→pass | 11,471 | 9,404 | -18% | 1 | 1 | 0% | 1,145 | 2,006 | +75% | 0 | 0 | — |
case-22 | pass→pass | 14,854 | 8,984 | -40% | 1 | 1 | 0% | 1,730 | 2,686 | +55% | 0 | 0 | — |
case-24 | pass→pass | 15,522 | 13,854 | -11% | 1 | 1 | 0% | 2,028 | 2,968 | +46% | 0 | 0 | — |
case-25 | pass→pass | 11,442 | 5,870 | -49% | 1 | 1 | 0% | 1,279 | 2,306 | +80% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 25 cases were attempted. The headline lift of +4 percentage points is the difference between those two pass rates over the 25 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.