What problem does it solve?
Vertical Slice Architecture (VSA) prevents your .NET codebase from becoming a tangled web of Controllers, Services, and Repositories by organizing everything around a single feature’s workflow.
Core Features & Use Cases
- Feature-first structure: Keeps request/response, endpoint, and handler colocated under a single feature folder for clean ownership and fast navigation.
- Low coupling between features: Encourages shared logic to live in
Common/ or Shared/ rather than direct cross-feature calls.
- Handler as the unit of work: Improves clarity and testability by ensuring each handler does one focused job.
- Multiple implementation patterns: Supports source-generated mediator handlers, Wolverine convention-based handlers, or raw handler classes without extra dependencies.
- Endpoint grouping: Works with
IEndpointGroup to consistently wire feature endpoints, tags, and response metadata.
Quick Start
Load the vertical-slice skill when starting a new .NET API and you want each feature folder to contain the endpoint, handler, request, response, and validation as a single vertical slice.