.agent/skills/dotnet-architecture-patterns/SKILL.md
Designs ASP.NET Core architecture -- vertical slices, pipelines, caching, errors.
npx skillsauth add rudironsoni/dotnet-harness-plugin dotnet-architecture-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Modern architecture patterns for .NET applications. Covers practical approaches to organizing minimal APIs at scale, vertical slice architecture, request pipeline composition, validation strategies, caching, error handling, and idempotency/outbox patterns.
Cross-references: [skill:dotnet-csharp-dependency-injection] for service registration and lifetimes, [skill:dotnet-csharp-async-patterns] for async pipeline patterns, [skill:dotnet-csharp-configuration] for Options pattern in configuration, [skill:dotnet-solid-principles] for SOLID/DRY design principles governing class and interface design.
For detailed code examples (vertical slices, minimal API organization, pipeline composition, error handling, caching,
idempotency, outbox), see examples.md in this skill directory.
IResult subtypes
(e.g., IValueHttpResult). Non-value results like Results.NoContent() or Results.Accepted() would be left
permanently stuck in the in-progress state.GetOrCreateAsync -- Do NOT use separate get-then-set patterns
with HybridCache; use the factory overload so the library serializes concurrent requests for the same key.BeginTransactionAsync to wrap
both writes atomically.DbContext across concurrent requests -- DbContext is not thread-safe. Each request must resolve
its own scoped instance from DI. Using a singleton or static DbContext causes data corruption under concurrency.Architecture patterns in this skill are grounded in publicly available content from:
Note: This skill applies publicly documented guidance. It does not represent or speak for the named sources. MediatR is a commercial product for commercial use; the patterns here are demonstrated with built-in .NET mechanisms.
tools
Rulesync CLI tool documentation - unified AI rule file management for various AI coding tools
tools
Authors xUnit v3 tests -- Facts, Theories, fixtures, parallelism, IAsyncLifetime.
documentation
Writes XML doc comments. Tags, inheritdoc, GenerateDocumentationFile, warning suppression.
tools
Builds WPF on .NET 8+. Host builder, MVVM Toolkit, Fluent theme, performance, modern C# patterns.