vertical-slice-organization

Organize .NET CritterCab services into vertical slices with feature-oriented folders.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/erikshafer/CritterCab --skill vertical-slice-organization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vertical-slice-organization
Source: https://github.com/erikshafer/CritterCab/tree/main/docs/skills/vertical-slice-organization
Command: npx skills add https://github.com/erikshafer/CritterCab --skill vertical-slice-organization

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers organize their CritterCab services effectively by providing guidelines for file and folder structure, ensuring clarity and maintainability.

Core Features & Use Cases

  • Feature-Oriented Folders: Organizes folders by business capabilities, not technical layers.
  • Single-File Commands: Combines command, validator, and handler into one file for better understanding and maintenance.
  • Domain Event Management: Specifies how to structure domain events and their subscription handlers.
  • Shared Types: Guidelines for sharing types across multiple slices within the same service.
  • Avoiding Technical Folders: Encourages developers to avoid traditional technical folder structures.

Quick Start

Organize your new feature within a CritterCab service using the principles outlined in this skill.

Frequently Asked Questions about vertical-slice-organization

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

FAQPage Schema
How do I organize .NET service folders using vertical slice architecture?

Vertical slice architecture organizes .NET service folders by business capabilities instead of technical layers. This approach groups related functionality into feature-oriented folders, avoiding traditional technical directories to improve clarity and maintainability.

What is the best way to structure domain events in a Critter Stack service?

Structuring domain events in a Critter Stack service requires specific guidelines for organizing event files and their subscription handlers. The vertical slice approach keeps domain events aligned within their feature slice to maintain a clear and maintainable file structure.

Should I combine command handlers and validators in a single file?

Combining command handlers and validators in a single file is recommended for vertical slice organization. This single-file command approach groups the command, validator, and handler together, providing better understanding and easier maintenance within the feature slice.

How do I manage shared types across multiple vertical slices?

Managing shared types across multiple vertical slices within the same service involves following specific guidelines for shared type organization. This ensures types are accessible across feature slices without breaking the vertical slice architecture boundaries.

Can I use vertical slice architecture with Wolverine and Marten .NET libraries?

Vertical slice architecture applies to .NET-based services using the Critter Stack, which specifically includes Wolverine, Marten, and Polecat libraries. These libraries work within the feature-oriented folder structure to maintain clear service organization.

Why avoid traditional technical folder structures in domain-driven design?

Avoiding traditional technical folder structures in domain-driven design prevents splitting related features across disparate technical layers. Organizing by business capability instead keeps commands, handlers, and domain events cohesive within a single feature slice for better maintainability.