dotnet-architecture-patterns — .NET skill for Claude Code
dotnet-architecture-patterns guides scalable .NET Minimal API architecture using vertical slices, route groups, endpoint filters, and structured error handling.
no license 125 installs ★ 92 updated 2026-02-27
npx skills add wshaddix/dotnet-skills --skill dotnet-architecture-patterns -a claude-codeWhat dotnet-architecture-patterns does
This skill guides the AI assistant to structure .NET applications around vertical slices instead of generic technical layers. Each feature folder encapsulates its own endpoint, input contract, validator, and execution handler, preventing cross-domain coupling across development teams.
It establishes clean Minimal API conventions using MapGroup routing, custom IEndpointFilter implementations, and explicit middleware ordering. Error workflows rely on RFC 9457 Problem Details and typed Result<T> records rather than throwing exceptions for business validation failures.
Detailed dependency injection registrations and async pipeline mechanics are intentionally outside this skill's scope, meaning service lifetimes require separate reference patterns.
What it helps with
- Structure .NET Minimal APIs using vertical slice architecture
- Group endpoints cleanly using the
MapGrouppattern - Add validation filters using
IEndpointFilter - Implement RFC 9457 Problem Details and typed Result responses
Example prompts for the agent
- Organize the order creation feature into a vertical slice with its own handler and endpoint
- Set up endpoint filters to validate incoming requests on this route group
- Refactor domain failure handling from exceptions to the Result pattern
How to install dotnet-architecture-patterns
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-architecture-patterns -a claude-code2Manually: put the files in place
~/.claude/skills/dotnet-architecture-patterns/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/dotnet-architecture-patterns/
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-architecture-patterns -a codex2Manually: put the files in place
.agents/skills/dotnet-architecture-patterns/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-architecture-patterns -a cursor2Manually: put the files in place
.cursor/skills/dotnet-architecture-patterns/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install wshaddix/dotnet-skills skills/dotnet-architecture-patterns2Manually: put the files in place
.github/skills/dotnet-architecture-patterns/SKILL.md1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-architecture-patterns -a gemini-cli2Platform CLI
gemini skills install https://github.com/wshaddix/dotnet-skills --path skills/dotnet-architecture-patternsManually: put the files in place
.devin/skills/dotnet-architecture-patterns/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-architecture-patterns -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about dotnet-architecture-patterns
How to install dotnet-architecture-patterns in Claude Code?
Run npx skills add wshaddix/dotnet-skills --skill dotnet-architecture-patterns -a claude-code in your terminal.
What does dotnet-architecture-patterns cover?
It outlines feature-first directory layouts, route grouping for Minimal APIs, request filtering, and standard error handling patterns.
Does this skill cover dependency injection setups?
DI container mechanics, service lifetimes, and testing setups are excluded from this specific guide.