dotnet-vertical-slice

Scaffold .NET vertical slice features with CQRS and FreeMediator.

2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/michaelalber/ai-toolkit --skill dotnet-vertical-slice
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-vertical-slice
Source: https://github.com/michaelalber/ai-toolkit/tree/main/skills/dotnet-vertical-slice
Command: npx skills add https://github.com/michaelalber/ai-toolkit --skill dotnet-vertical-slice

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of new features in .NET applications by automatically scaffolding the necessary files and structure for a vertical slice architecture, promoting cleaner code and faster development.

Core Features & Use Cases

  • Automated Scaffolding: Generates feature folders, command/query/handler files, validators, and endpoints.
  • CQRS & FreeMediator Integration: Sets up features to work seamlessly with CQRS patterns using FreeMediator.
  • Telerik Blazor UI Generation: Optionally scaffolds Blazor pages for Telerik UI integration.
  • Use Case: When starting a new feature like "Create User Profile" in a .NET Blazor application, this Skill will generate all the backend code (commands, handlers, validators) and frontend components (Razor pages) needed, following best practices.

Quick Start

Use the dotnet-vertical-slice skill to scaffold a new feature for managing user profiles.

Frequently Asked Questions about dotnet-vertical-slice

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

FAQPage Schema
How do I scaffold a .NET vertical slice with CQRS?

You can scaffold a .NET vertical slice by generating isolated feature folders containing commands, queries, handlers, validators, and endpoints. This tool automates the file creation process using the CQRS pattern with FreeMediator to ensure isolated feature-based development.

What is vertical slice architecture in .NET?

Vertical slice architecture in .NET organizes code by feature rather than technical layers, creating isolated folders for each capability. This approach maintains strict domain principles by grouping commands, queries, handlers, and endpoints together for better maintainability.

Can I generate Telerik Blazor UI pages with this scaffolding tool?

Yes, you can optionally generate Telerik Blazor UI pages during the scaffolding process. The tool creates both the backend CQRS logic and the frontend Razor page components needed for a complete feature implementation in Blazor applications.

Do I need FreeMediator to use this .NET scaffolding tool?

Yes, FreeMediator is required because the scaffolding tool sets up features to work seamlessly with the CQRS pattern using this specific library. It generates handlers and endpoints that rely on FreeMediator for command and query dispatch.

What is the best way to structure a new .NET feature using CQRS?

The best way to structure a new .NET feature using CQRS is to group related domain logic into isolated feature folders. This scaffolding tool automates that structure by generating commands, queries, handlers, and validators together to promote cleaner code and faster development.