architecture-patterns

Review .NET code against architectural patterns and conventions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jamesbondev/ai-dotfiles --skill architecture-patterns-jamesbondev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-patterns
Source: https://github.com/jamesbondev/ai-dotfiles/tree/main/.github/skills/architecture-patterns
Command: npx skills add https://github.com/jamesbondev/ai-dotfiles --skill architecture-patterns-jamesbondev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides clear guidance and a review checklist for understanding and implementing various architectural patterns in .NET applications, ensuring consistency and adherence to established conventions.

Core Features & Use Cases

  • Pattern Reference: Detailed explanations of Vertical Slice, Clean Architecture, CQRS, and N-Tier patterns.
  • Review Checklist: A structured set of questions to verify compliance with chosen architectural patterns.
  • Use Case: When evaluating a new .NET project's structure or reviewing an existing one, use this Skill to ensure the chosen architecture (e.g., Clean Architecture) is correctly applied, with business logic in the domain layer and dependencies flowing correctly.

Quick Start

Review the code against the architecture documented in .planning/CONVENTIONS.md.

Frequently Asked Questions about architecture-patterns

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

FAQPage Schema
What are the main .NET architecture patterns for structuring a new project?

You should choose Clean Architecture when strict separation of concerns is critical, placing business logic in the domain layer with dependencies flowing inward. Alternatively, Vertical Slice organizes code by feature rather than technical layers, which can reduce cross-cutting dependencies for smaller .NET applications.

How do I review .NET code for Clean Architecture compliance and correct dependency flow?

You can review .NET code for pattern compliance using a structured checklist that verifies business logic placement in the domain layer, ensures dependencies flow correctly, and validates adherence to documented conventions in .planning/CONVENTIONS.md.

What is the difference between Vertical Slice and Clean Architecture in .NET applications?

Vertical Slice organizes .NET code by feature rather than technical layers, reducing cross-cutting dependencies. Clean Architecture enforces strict layering with business logic in the domain layer and dependencies flowing inward, prioritizing separation of concerns over feature encapsulation.

When should I use the CQRS pattern in a .NET project?

You should use the CQRS pattern in a .NET project when you need to separate read and write operations for improved scalability and performance. This Skill provides reference material to help you evaluate if CQRS fits your application's architectural requirements and complexity.

How do I ensure my .NET project adheres to documented architectural conventions?

To ensure your .NET project adheres to documented architectural conventions, review your code against the guidelines in .planning/CONVENTIONS.md. This Skill provides a structured checklist to verify pattern compliance, separation of concerns, and resilience during code reviews.