What problem does it solve?
This Skill ensures that C# code adheres to established project conventions, improving code quality, maintainability, and consistency across the codebase.
Core Features & Use Cases
- Naming Standards: Enforces consistent naming for fields, methods, variables, and types.
- Async Patterns: Guides the correct implementation of asynchronous operations, including
CancellationToken usage.
- Structured Logging: Promotes the use of structured logging with message templates and scopes for better observability.
- Nullability: Ensures proper handling of nullable reference types.
- Formatting: Aligns code with project-specific style and formatting rules.
- Use Case: When writing new C# classes or reviewing pull requests, use this Skill to automatically check for adherence to naming conventions, proper async patterns, and structured logging practices.
Quick Start
Apply the dotnet-conventions skill to ensure the C# code follows project standards for naming, async patterns, and logging.