vertical-slice

Organize code by feature into vertical slices with endpoints, handlers, and validation.

640|145|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill vertical-slice
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vertical-slice
Source: https://github.com/codewithmukesh/dotnet-claude-kit/tree/main/skills/vertical-slice
Command: npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill vertical-slice

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vertical Slice Architecture (VSA) organizes code by feature rather than by layer, enabling endpoints, handlers, and validation to live together in cohesive, self-contained slices.

Core Features & Use Cases

  • Feature-focused organization: each feature contains its endpoint, handler, request/response types, and validation in a single place.
  • Reduced cross-feature coupling: shared concerns live in Common/ or Shared/ directories.
  • Simple, scalable structure: supports one-file-per-feature patterns and scalable module boundaries.

Quick Start

Create a feature folder with an endpoint and handler in one file and wire it into your app startup.

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 C#?

Vertical slice architecture organizes code by feature rather than by layer, grouping endpoints, handlers, and validation into cohesive, self-contained units within feature folders.

How do I structure endpoints and handlers using feature folders?

Structure endpoints and handlers by placing them in dedicated feature folders, adopting a one-file-per-feature or per-operation pattern to encapsulate request, response, and validation logic together.

Where should shared concerns go in vertical slice architecture?

Shared concerns in vertical slice architecture should reside in Common/ or Shared/ directories to reduce cross-feature coupling while keeping individual feature slices isolated.

Does vertical slice architecture work for adding new features to existing projects?

Yes, vertical slice architecture applies to both projects adopting VSA initially and existing projects adding new features, emphasizing scalable module boundaries and minimal cross-feature coupling.

Vertical slice architecture vs layered architecture for C# projects?

Vertical slice architecture groups code by feature into self-contained slices, whereas layered architecture organizes by technical function, making vertical slices better for reducing cross-feature coupling.

When should I not use vertical slice architecture?

Avoid vertical slice architecture if your project requires heavy cross-feature data sharing, as its design emphasizes isolated feature folders and shared concerns centralized in Common/ directories.