burgyn-dotnet-vertical-slice-architecture
Installation
SKILL.md
Vertical Slice Architecture
Overview
This skill defines the Vertical Slice Architecture pattern implementation for .NET projects using Minimal APIs. Organize code by features (vertical slices) rather than technical layers, where each feature contains all code from endpoint to database.
Architecture Overview
Vertical Slice Architecture organizes code by feature rather than by technical layers. Instead of separating concerns into horizontal layers (UI, business logic, data access), each vertical slice contains all code for a specific feature from endpoint to database.
Benefits:
- Self-contained features that are easier to understand
- Reduced indirection and object transformation overhead
- Features are independently testable
- Easier to maintain and scale
Contrast with N-Tier Architecture:
- Traditional N-Tier: Single feature scattered across multiple folders/projects
- Vertical Slice: All code for a feature lives together