vertical-slice

Guide .NET application design with Vertical Slice Architecture feature folders.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/Maj3D10/Training-Platform --skill vertical-slice-maj3d10
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vertical-slice
Source: https://github.com/Maj3D10/Training-Platform/tree/main/.agent/skills/vertical-slice
Command: npx skills add https://github.com/Maj3D10/Training-Platform --skill vertical-slice-maj3d10

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vertical Slice Architecture (VSA) prevents your .NET codebase from degrading into layer-based, hard-to-follow structures by keeping each feature self-contained and co-located.

Core Features & Use Cases

  • Feature-first organization: Place request/response, validation, endpoint mapping, and handler logic together within a single feature folder.
  • Low cross-feature coupling: Avoid direct feature-to-feature calls and centralize shared concerns in Common/ or Shared/ locations.
  • Multiple handler patterns: Support Mediator (source-generated), Wolverine conventions, or raw handler classes depending on your team and stack.
  • Handler-centered workflow: Keep each handler focused on one unit of work instead of accumulating god-handlers or service layers.

Quick Start

Load the vertical-slice skill when you want to structure a .NET web application around feature folders and handler-based endpoints instead of controllers/services/repositories.

Frequently Asked Questions about vertical-slice

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is vertical slice architecture in .NET and what problem does it solve?

Vertical slice architecture is a .NET design pattern that organizes features into self-contained folders, preventing codebase degradation into hard-to-follow, layer-based structures by co-locating request, response, and handler logic together.

How do I structure feature folders using vertical slice architecture in .NET?

Structure feature folders by co-locating request, response, validation, endpoint mapping, and handler logic within a single feature directory, minimizing cross-feature coupling by centralizing shared concerns in Common or Shared locations.

Can I use Wolverine or Mediator instead of controllers and services for .NET endpoints?

Yes, you can replace traditional controllers and service layers with Wolverine conventions, source-generated Mediator patterns, or raw handler classes, keeping each handler focused on a single unit of work per use case.

How do I avoid cross-feature coupling when applying vertical slice architecture?

Avoid cross-feature coupling by grouping endpoints per feature and forbidding direct feature-to-feature calls, centralizing shared code and common domain logic in dedicated Common or Shared folders.

What is the best way to add validation and pipeline behaviors to a vertical slice handler?

The best way to add validation is through optional pipeline behavior patterns applied around handler-per-use-case structures, ensuring request validation logic executes cleanly within the feature slice.