Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add wshaddix/dotnet-skills --skill dotnet-architecture-patterns -a claude-code
Open on GitHub

What 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 MapGroup pattern
  • 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-code

2Manually: put the files in place

~/.claude/skills/dotnet-architecture-patterns/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/dotnet-architecture-patterns/

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.

Similar skills

All skills for Backend and APIs →
dotnet-backend-patterns Seth Hobson dotnet-backend-patterns — a skill for C# and .NET development: patterns for async code, dependency injection, Entity Framework Core, caching, and testing. Use when building backend APIs, MCP servers, or reviewing C# code. CX Codex +1 19,076installs dotnet-core-expert https://github.com/Jeffallan dotnet-core-expert — a skill for Claude Code, Codex, Cursor and other agents that drives .NET 8 development under clean architecture rules. Covers minimal APIs, CQRS with MediatR, Entity Framework Core, JWT auth, and AOT compilation. CX Codex +1 5,100installs dotnet-architecture-good-practices official github dotnet-architecture-good-practices is a GitHub Copilot rule for DDD, SOLID, and .NET design. It applies to C#, project, Program.cs, and Razor files. CX Codex +1 ★ 41,430repo stars dotnet-patterns affaan-m dotnet-patterns is a Claude Code skill that sets C# and ASP.NET Core conventions for AI coding agents generating or refactoring code, covering dependency injection, async/await, and error handling. CX Codex +1 6,300installs dotnet-inspect richlander dotnet-inspect — a skill for Claude Code and Codex that inspects compiled .NET assemblies, IL, and metadata. It retrieves exact API signatures, package dependency trees, and breaking changes. CX Codex +1 516installs dotnet-inspect-compatibility richlander dotnet-inspect-compatibility — a skill for Claude Code, Codex, Cursor and other agents that compares .NET library versions across public API, implementation and static analysis. CX Codex +1 412installs

From the same set24

The whole set →
dotnet-csharp-code-smells dotnet-csharp-code-smells — a C# review skill: the agent catches leaked IDisposable, misused async and DI, suppressed warnings and other anti-patterns while it plans, writes or reviews code. CX Codex +1 180installs dotnet-security-owasp dotnet-security-owasp flags OWASP Top 10 vulnerabilities in .NET solutions and guides safe coding. Useful for reviewing ASP.NET Core endpoints and data queries. CX Codex +1 175installs dotnet-api-security dotnet-api-security is a Claude Code skill that handles authentication and authorization in ASP.NET Core APIs. CX Codex +1 169installs dotnet-csharp-async-patterns dotnet-csharp-async-patterns teaches AI agents proper C# async patterns, stopping common blunders like .Result deadlocks, unhandled fire-and-forget tasks, and dropped cancellation tokens. CX Codex +1 136installs dotnet-csharp-dependency-injection dotnet-csharp-dependency-injection guides Microsoft DI in .NET, from service lifetimes and keyed registrations to decoration and hosted workers. CX Codex +1 125installs bootstrap5-ui bootstrap5-ui provides Bootstrap 5.3 layout patterns and component snippets for HTML and ASP.NET Core Razor views. CX Codex +1 122installs dotnet-performance-patterns dotnet-performance-patterns is a Claude Code skill for .NET 8+ architecture patterns that reduce allocations using Span, Memory, and ArrayPool. CX Codex +1 122installs Razor Pages Patterns The Razor Pages Patterns skill gives the agent a fixed set of rules for ASP.NET Core Razor Pages: page layout, PageModel design, binding and validation, form security. Fits projects on .NET 8+ with Razor Pages as the UI. CX Codex +1 121installs

Project sponsors

Companies that keep this analytics open