One-click install
npx skills add https://github.com/shahdanish/vibepos --skill vertical-slice-shahdanish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vertical-slice
Source: https://github.com/shahdanish/vibepos/tree/main/skills/vertical-slice
Command: npx skills add https://github.com/shahdanish/vibepos --skill vertical-slice-shahdanish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vertical Slice Architecture reduces the friction of feature development by keeping each use case self-contained, so developers stop bouncing between layers and files while implementing a single endpoint.

Core Features & Use Cases

  • Feature-first organization: Places endpoint, request/response, validation, and handler logic together inside a single vertical slice (e.g., Features/Orders/CreateOrder.cs) rather than splitting by technical layers.
  • Low coupling between features: Prevents cross-feature direct references by using Common/ or Shared/ for cross-cutting logic, keeping changes localized.
  • Handler-per-unit-of-work: Ensures each handler performs one clear operation, improving maintainability and making behavior easier to test and evolve.
  • Multiple handler styles: Supports mediator-style handlers with pipeline behaviors, Wolverine convention-based handlers, and raw handler classes with manual endpoint wiring.

Quick Start

Ask the AI to restructure your .NET API into a Features/ folder using vertical slices with one operation per file and handlers wired to the corresponding endpoints.

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?

Vertical slice architecture organizes .NET applications by feature folders, colocating endpoints, requests, responses, validation, and handlers together. This keeps each use case self-contained, reducing the need to bounce across technical layers when implementing an API endpoint.

How do I restructure an existing .NET API into feature folders?

To restructure a .NET API into feature folders, group each use case into a vertical slice like `Features/Orders/CreateOrder.cs`. Assign one handler per unit of work, minimize cross-feature coupling, and move shared logic to a `Common/` or `Shared/` directory.

Does vertical slice architecture work with the mediator pattern and Wolverine?

Vertical slice architecture works with the mediator pattern, Wolverine convention-based handlers, and raw handler classes. It supports wiring mediator-style pipelines or relying on Wolverine conventions to connect handlers to their corresponding API endpoints.

Why use vertical slices instead of traditional layered architecture?

Vertical slices reduce friction by keeping each feature's endpoint, handler, and validation localized in one folder. Unlike traditional layered architecture, this prevents bouncing between multiple files and directories, allowing features to evolve independently with low cross-feature coupling.

How do I handle shared logic and cross-cutting concerns in vertical slices?

To handle shared logic in vertical slices, place cross-cutting concerns and common utilities inside a `Common/` or `Shared/` directory. This prevents direct cross-feature references, keeping changes localized to the specific feature folder while maintaining low coupling.