dotnet-vertical-slice-best-practices
Installation
SKILL.md
.NET Backend Vertical Slice
Use this skill when backend code needs to be planned, implemented, or refined in a .NET application that follows a vertical-slice style.
Core rule
Keep behavior local to the use case, preserve stable API contracts, and treat persistence, validation, error handling, and migrations as part of the same backend change.
Working flow
- Inspect the repository structure and preserve valid local conventions.
- Identify the affected use case, route, request, response, and persistence impact.
- Keep transport thin and keep behavior near the slice.
- Make validation, expected failure paths, authorization, and migrations explicit.
- If modernization or version-sensitive work is involved, load the platform baseline reference before recommending upgrades.
- Run the most relevant verification for the touched backend surface.