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 optionreferences/clean-architecture.md: Domain, Application, Infrastructure, Api;IAppDbContext; use cases; endpoints returning TypedResults unionsreferences/ddd.md: aggregates, value objects, strongly-typed IDs, domain events, domain services; usable inside a modular-slices modulereferences/project-structure.md: solution layout,Directory.Build.props,Directory.Packages.props,.slnx,global.json,.editorconfig, analyzers, tech-stack defaults
Core Principles
- 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.
- 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.
- 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.
- 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:
IEndpointper feature,TypedResultsunions,DbContextused directly, no repository over EF Core, no MediatR. - Package versions are never typed from memory. Use
dotnet add package <name>for third-party packages; pinMicrosoft.*and EF Core to the newest 10.0.x on net10.0, because an unversioned add now resolves 11.x.