architecture-advisor

Installation
SKILL.md

Architecture Advisor

Ask first, then recommend. Modular slices (a modular monolith of vertical slices, ADR-008) is the starting point for business applications; the questionnaire confirms it or finds the signals that point elsewhere. Details for each alternative live in references/ and load on demand:

  • references/vertical-slice.md: single-project VSA, discovery code, the Mediator option
  • references/clean-architecture.md: Domain, Application, Infrastructure, Api; IAppDbContext; use cases; endpoints returning TypedResults unions
  • references/ddd.md: aggregates, value objects, strongly-typed IDs, domain events, domain services; usable inside a modular-slices module
  • references/project-structure.md: solution layout, Directory.Build.props, Directory.Packages.props, .slnx, global.json, .editorconfig, analyzers, tech-stack defaults

Core Principles

  1. Start from the default, then test it. For a business application, recommend modular slices and run the questionnaire to confirm. Never prescribe without asking, and never override an existing codebase's conventions.
  2. Right-size the architecture. The simplest structure that handles the real complexity wins. CRUD apps do not need DDD; a startup does not need Clean Architecture. Match structure to requirements, not aspirations.
  3. Architecture is not permanent. Every option has an evolution path (table below). Start simple, add structure when complexity demands it, and record the decision so the team knows when to move.
  4. One default, three alternatives. Modular slices is the default. Single-project VSA, Clean Architecture and DDD stay fully supported. All of them share the kit's conventions: IEndpoint per feature, TypedResults unions, DbContext used directly, no repository over EF Core, no MediatR.
  5. Package versions are never typed from memory. Use dotnet add package <name> for third-party packages; pin Microsoft.* and EF Core to the newest 10.0.x on net10.0, because an unversioned add now resolves 11.x.

The Architecture Questionnaire

Installs
4.2K
GitHub Stars
853
First Seen
Mar 13, 2026