architecture-advisor
БесплатноБез исполняемых скриптовНе проверенArchitecture selection for new or restructured .NET solutions: asks about domain, team and compliance, then recommends modular slices (default), vertical…
от codewithmukesh★ 858 звёзд на GitHubОб этом скилле
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.
The Architecture Questionnaire
Before recommending an architecture, ask questions across these 6 categories. Not every question applies to every project; skip irrelevant ones.
Category 1: Domain Complexity
| # | Question | Low Signal | High Signal |
|---|---|---|---|
| 1 | How many distinct business entities does the system manage? | < 10 entities | 20+ entities with relationships |
| 2 | Do business rules involve multiple entities interacting? | Rules are per-entity CRUD | Complex invariants across entity groups |
| 3 | Are there business workflows with multiple steps? | Simple request, response | Sagas, approval chains, state machines |
| 4 | Do domain experts use specialized vocabulary? | Generic terms (create, update) | Ubiquitous language (underwrite, adjudicate) |
Category 2: Team & Organization
| # | Question | Low Signal | High Signal |
|---|---|---|---|
| 5 | How large is the development team? | 1-3 developers | 8+ developers, multiple teams |
| 6 | Do different teams own different parts of the system? | Single team owns everything | Teams aligned to business domains |
| 7 | What is the team's experience level with .NET? | Junior or mixed | Senior, experienced with patterns |
Category 3: System Lifetime & Scale
| # | Question | Low Signal | High Signal |
|---|---|---|---|
| 8 | Expected system lifetime? | < 2 years, MVP/prototype | 5+ years, long-lived product |
| 9 | How many concurrent users or requests per second? | < 100 RPS | 1000+ RPS, variable load |
| 10 | Will the system need to scale independently by feature area? | Uniform load | Hot spots need independent scaling |
Category 4: Regulatory & Compliance
| # | Question | Low Signal | High Signal |
|---|---|---|---|
| 11 | Are there audit trail or compliance requirements? | Basic logging sufficient | Full audit trail, SOX/HIPAA/PCI |
| 12 | Do different parts of the system have different security boundaries? | Single auth boundary | Multi-tenant, data isolation |
Category 5: Existing Codebase
| # | Question | Low Signal | High Signal |
|---|---|---|---|
| 13 | Is this greenfield or brownfield? | Greenfield, starting fresh | Brownfield, migrating from legacy |
| 14 | Are there existing architectural patterns the team follows? | No established patterns | Strong conventions in place |
Category 6: Integration Complexity
| # | Question | Low Signal | High Signal |
|---|---|---|---|
| 15 | How many external systems does this integrate with? | 0-2 simple APIs | 5+ systems with complex contracts |
| 16 | Are there event-driven or async communication needs? | Synchronous request/response | Event sourcing, pub/sub, eventual consistency |
Recommendation
Map answers to an architecture. Say which signals drove the pick and what would change it.
| Profile |
Установить architecture-advisor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл architecture-advisor?
Architecture selection for new or restructured .NET solutions: asks about domain, team and compliance, then recommends modular slices (default), vertical slice, Clean Architecture or DDD. Use for "which architecture", "new solution", "restructure", "DDD", "project structure", "tech stack". Do NOT use for adding features to a modular-slices codebase (modular-slices), scaffolding (scaffold), or CLAUDE.md (dotnet-init).
Как установить скилл architecture-advisor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл architecture-advisor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic