Architecture Advisor logo

Architecture Advisor

Organization
codewithmukesh
architecture-advisor

Architecture selection advisor for .NET applications. Asks structured questions about domain complexity, team size, system lifetime, compliance, and integration needs, then recommends the best-fit architecture: Vertical Slice, Clean Architecture, DDD + Clean Architecture, or Modular Monolith. Load this skill when the user asks "which architecture", "choose architecture", "set up project", "new project", "architecture decision", "restructure", or "how should I organize". Always load BEFORE any architecture-specific skill.

Overview

Publishercodewithmukesh
Repositorydotnet-claude-kit
Skill namearchitecture-advisor
Stars
721
Forks
170
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by codewithmukesh on GitHub. Read the source before you install it.

Installation

Install the Architecture Advisor AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/codewithmukesh/dotnet-claude-kit.git /tmp/dotnet-claude-kit
mkdir -p .claude/skills
cp -r /tmp/dotnet-claude-kit/skills/architecture-advisor .claude/skills/architecture-advisor
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Architecture Advisor in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Architecture Advisor on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Architecture Advisor is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Architecture Advisor

Core Principles

  1. Ask before recommending — Never prescribe an architecture without understanding the project. Run the questionnaire first to gather context about domain, team, lifetime, and constraints.
  2. Right-size the architecture — The best architecture is the simplest one that handles the project's actual complexity. CRUD apps do not need DDD. Startups do not need Clean Architecture. Match complexity to real requirements, not aspirations.
  3. Architecture is not permanent — Every architecture has an evolution path. Start simple and add structure when complexity demands it. Document the decision so the team knows when to evolve.
  4. Four supported architectures — dotnet-claude-kit provides first-class patterns for Vertical Slice Architecture (VSA), Clean Architecture (CA), DDD + Clean Architecture, and Modular Monolith. Each has specific strengths and trade-offs.

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

#QuestionLow SignalHigh Signal
1How many distinct business entities does the system manage?< 10 entities20+ entities with relationships
2Do business rules involve multiple entities interacting?Rules are per-entity CRUDComplex invariants across entity groups
3Are there business workflows with multiple steps?Simple request → responseSagas, approval chains, state machines
4Do domain experts use specialized vocabulary?Generic terms (create, update)Ubiquitous language (underwrite, adjudicate)

Category 2: Team & Organization

#QuestionLow SignalHigh Signal
5How large is the development team?1-3 developers8+ developers, multiple teams
6Do different teams own different parts of the system?Single team owns everythingTeams aligned to business domains
7What is the team's experience level with .NET?Junior or mixedSenior, experienced with patterns

Category 3: System Lifetime & Scale

#QuestionLow SignalHigh Signal
8Expected system lifetime?< 2 years, MVP/prototype5+ years, long-lived product
9How many concurrent users or requests per second?< 100 RPS1000+ RPS, variable load
10Will the system need to scale independently by feature area?Uniform loadHot spots need independent scaling

Category 4: Regulatory & Compliance

#QuestionLow SignalHigh Signal
11Are there audit trail or compliance requirements?Basic logging sufficientFull audit trail, SOX/HIPAA/PCI
12Do different parts of the system have different security boundaries?Single auth boundaryMulti-tenant, data isolation

Category 5: Existing Codebase

#QuestionLow SignalHigh Signal
13Is this greenfield or brownfield?Greenfield, starting freshBrownfield, migrating from legacy
14Are there existing architectural patterns the team follows?No established patternsStrong conventions in place

Category 6: Integration Complexity

#QuestionLow SignalHigh Signal
15How many external systems does this integrate with?0-2 simple APIs5+ systems with complex contracts
16Are there event-driven or async communication needs?Synchronous request/responseEvent sourcing, pub/sub, eventual consistency

Decision Matrix

Map questionnaire answers to architecture recommendations:

ProfileRecommended ArchitectureWhy
Low domain complexity, small team, short lifetimeVertical Slice ArchitectureMinimal ceremony, fast feature delivery, easy to understand
Low-medium domain complexity, any team size, API-focusedVertical Slice ArchitectureFeature cohesion, one file per operation, natural fit for minimal APIs
Medium domain complexity, medium team, long lifetimeClean ArchitectureEnforced boundaries via project references, testable domain, clear dependency direction
High domain complexity, specialized vocabulary, complex invariantsDDD + Clean ArchitectureAggregates protect invariants, value objects model domain concepts, domain events decouple side effects
Multiple bounded contexts, team-per-domain, independent deployment potentialModular MonolithModule isolation, independent data stores, evolution path to microservices
Brownfield with existing layered architectureClean ArchitectureFamiliar to teams coming from N-tier, preserves layer separation with better dependency direction

When Signals Conflict

If signals point to different architectures:

  1. Default to simpler — When in doubt, start with VSA and evolve
  2. Domain complexity wins — High domain complexity overrides team size and lifetime signals
  3. Team familiarity matters — A team experienced with CA will be more productive with CA than learning VSA, even if VSA is technically simpler
  4. Compliance drives structure — Regulatory requirements often force stricter boundaries (CA or DDD)

Patterns

Vertical Slice Architecture (VSA)

Organize by feature, not by layer. Each operation is a self-contained slice.

src/MyApp.Api/
  Features/
    Orders/CreateOrder.cs    # Request + Handler + Response + Endpoint
    Orders/GetOrder.cs
  Common/
    Behaviors/ValidationBehavior.cs
    Persistence/AppDbContext.cs

Best for: CRUD-heavy apps, APIs, MVPs, small-medium teams, short-medium lifetime. Load skill: vertical-slice

Clean Architecture (CA)

Concentric layers with dependency inversion. Domain at the center, infrastructure at the edge.

src/
  MyApp.Domain/              # Entities, interfaces, domain logic
  MyApp.Application/         # Use cases, DTOs, validation
  MyApp.Infrastructure/      # EF Core, external services
  MyApp.Api/                 # Endpoints, middleware

Best for: Medium complexity, long-lived systems, teams familiar with layered patterns. Load skill: clean-architecture

DDD + Clean Architecture

Clean Architecture with tactical DDD patterns: aggregates, value objects, domain events.

src/
  MyApp.Domain/              # Aggregates, value objects, domain events, domain services
  MyApp.Application/         # Use cases orchestrating aggregates
  MyApp.Infrastructure/      # Persistence, external service adapters
  MyApp.Api/                 # Thin endpoints

Best for: Complex domains, specialized vocabulary, strict invariants, experienced teams. Load skill: ddd + clean-architecture

Modular Monolith

Independent modules in a single deployable unit, each with its own architecture internally.

src/
  MyApp.Host/                # Wires modules together
  Modules/
    Orders/                  # Own features, own DbContext, own architecture
    Catalog/                 # Can use VSA, CA, or DDD internally
  MyApp.Shared/              # Integration event contracts only

Best for: Multiple bounded contexts, team-per-domain, future microservices extraction. Load template: modular-monolith

Evolution Paths

Architecture is not a one-time decision. Systems evolve. Here are the common migration paths:

FromToTriggerHow
VSACADomain logic growing beyond handlersExtract Domain + Application layers, keep features as use cases
VSAModular MonolithMultiple bounded contexts emergingGroup features into modules, add module boundaries
CADDD + CAInvariants becoming complex, primitive obsessionIntroduce aggregates, value objects, domain events
MonolithModular MonolithTeams stepping on each other, shared database couplingSplit into modules with own DbContexts and schemas
Modular MonolithMicroservicesIndependent scaling needs, independent deploymentExtract modules into separate deployable services

Anti-patterns

Picking Clean Architecture for a CRUD App

// BAD — 4 projects, 6+ files per feature for simple CRUD
src/MyApp.Domain/Entities/Product.cs
src/MyApp.Application/Products/CreateProduct/CreateProductCommand.cs
src/MyApp.Application/Products/CreateProduct/CreateProductHandler.cs
src/MyApp.Application/Products/CreateProduct/CreateProductValidator.cs
src/MyApp.Infrastructure/Persistence/ProductRepository.cs
src/MyApp.Api/Endpoints/ProductEndpoints.cs

// GOOD — VSA: 1 file for a simple CRUD feature
src/MyApp.Api/Features/Products/CreateProduct.cs

DDD Everywhere

// BAD — value objects and aggregates for a settings table
public class UserSettings : AggregateRoot  // overkill
{
    public ThemeName Theme { get; private set; }  // value object for "dark"/"light"?
    public void ChangeTheme(ThemeName theme) { /* domain event? really? */ }
}

// GOOD — simple entity for simple data
public class UserSettings
{
    public Guid UserId { get; init; }
    public string Theme { get; set; } = "light";
}

Premature Microservices

// BAD — splitting into 5 microservices on day one with 2 developers
OrderService (own repo, own DB, own CI/CD)
CatalogService (own repo, own DB, own CI/CD)
IdentityService (own repo, own DB, own CI/CD)
NotificationService (own repo, own DB, own CI/CD)
GatewayService (own repo, own CI/CD)

// GOOD — start as a modular monolith, extract when you have evidence
src/
  Modules/Orders/
  Modules/Catalog/
  Modules/Identity/
  Modules/Notifications/

Skipping the Questionnaire

// BAD — "I always use Clean Architecture"
User: "Set up a new project for a todo app"
Agent: *immediately scaffolds 4-project CA solution*

// GOOD — ask first, then recommend
User: "Set up a new project for a todo app"
Agent: "Let me ask a few questions about your project to recommend the best architecture..."
Agent: *runs questionnaire, recommends VSA for low-complexity app*

Decision Guide

ScenarioRecommendation
New project, unknown requirementsRun the questionnaire
Simple CRUD API, 1-3 developersVSA
Medium complexity, long-lived, experienced teamClean Architecture
Complex domain, specialized vocabularyDDD + Clean Architecture
Multiple bounded contexts, multiple teamsModular Monolith
Existing N-tier codebase, needs modernizationClean Architecture (familiar migration)
MVP / startup, speed is priorityVSA
Regulatory / compliance-heavyClean Architecture or DDD (enforced boundaries)
Will need independent scaling laterModular Monolith (extraction-ready)

Frequently asked questions

What does the Architecture Advisor AI skill do?

Architecture selection advisor for .NET applications. Asks structured questions about domain complexity, team size, system lifetime, compliance, and integration needs, then recommends the best-fit architecture: Vertical Slice, Clean Architecture, DDD + Clean Architecture, or Modular Monolith. Load this skill when the user asks "which architecture", "choose architecture", "set up project", "new project", "architecture decision", "restructure", or "how should I organize". Always load BEFORE any architecture-specific skill.

Why use Architecture Advisor on TypingMind?

Because you install it once and use it with any model. Architecture Advisor is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Architecture Advisor in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/codewithmukesh/dotnet-claude-kit/tree/main/skills/architecture-advisor. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Architecture Advisor?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Architecture Advisor?

As many as you like. As long as a model supports skills, you can use Architecture Advisor with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Architecture Advisor AI skill free?

Yes. It is published on GitHub by codewithmukesh under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇