What problem does it solve?
This Skill enforces consistent coding practices in C# projects, ensuring maintainability and reducing boilerplate code by providing standardized patterns for mapping, service implementation, exception handling, and constants.
Core Features & Use Cases
- Static AutoMapper Profiles: Generates standard AutoMapper profiles for DTOs and entities.
- Service Layer Pattern: Implements the Unit of Work pattern for service classes, abstracting repository access.
- Exception Handling: Defines custom exception types with appropriate HTTP status codes and error code prefixes.
- Constants Definition: Provides templates for defining constants, especially for cache keys.
- Use Case: When creating a new feature that involves user management, use this Skill to generate the necessary mapping profiles, service interfaces and implementations, and define relevant exceptions and constants according to project conventions.
Quick Start
Use the code-patterns skill to implement the static mapper pattern for the 'Product' entity.