npx skills add ...
npx skills add codewithmukesh/dotnet-claude-kit --skill scaffold
Architecture-aware feature scaffolding for .NET 10 projects. Detects the project's architecture (VSA, Clean Architecture, DDD, Modular Monolith) and generates complete feature slices with all required layers: endpoint, handler, validator, DTOs, EF configuration, and integration tests — with the completeness checklist and per-architecture code templates every generated feature must satisfy. Use when: "scaffold", "create feature", "add feature", "new endpoint", "generate", "add entity", "scaffold a module", "add module", or when customizing generation templates or defining what a complete feature slice includes.
npx skills add codewithmukesh/dotnet-claude-kit --skill scaffold
Generates a complete feature with all required files based on the project's architecture. Never generates half a feature — every scaffold includes the endpoint, handler, validation, DTOs, EF configuration, and at least one integration test as a single unit, written in modern C# 14 (primary constructors, collection expressions, records, sealed handlers, TypedResults).
Supported architectures (file placement maps and code shape templates live in
references/architecture-patterns.md):
Features//plan has produced an approved planUse the architecture-advisor skill to determine the project's architecture:
Confirm with the user before generating (skip anything the plan already answers):
Use the convention-learner skill and MCP tools to check:
*Handler, *Service, *Endpoint, *Command, *Query)*Tests, *IntegrationTests)Match what exists. Do not impose new conventions on an established codebase.
Generate every file the architecture requires, following the templates in
references/architecture-patterns.md:
The reference also covers the shared shapes every architecture reuses
(endpoint group, validator, entity + IEntityTypeConfiguration<T> pair,
test fixture) and the anti-patterns to avoid.
Every scaffolded feature MUST include ALL nine items. Do not skip any:
IEndpointGroup file with a route group; never wired in Program.cssealed, primary constructor, one per operation.AddEndpointFilter<ValidationFilter<T>>() on mutating endpointsIEntityTypeConfiguration<T>; no data annotations on entitiesWebApplicationFactory + Testcontainers, DI replacement via services.RemoveAll<DbContextOptions<T>>().WithName(), .WithSummary(), .Produces<T>(), .ProducesValidationProblem(), .ProducesProblem(404)Result<T>; endpoints map success → TypedResults, failure → ToProblemDetails()Also verify supporting infrastructure — scaffold it if missing: list endpoints
get bounded pagination (page/pageSize, max 50), Program.cs has
app.UseExceptionHandler(), and appsettings.json has a connection string.
Prove the scaffold works before reporting done:
If the build or tests fail, fix and re-run before presenting results.
dotnet-init — Initialize the project and CLAUDE.md before scaffolding featuresvertical-slice — The VSA patterns the VSA scaffold followsclean-architecture — Layering rules behind the CA scaffoldddd — Aggregate and domain-event patterns behind the DDD scaffoldproject-structure — Where files belong in each architectureUser: /scaffold a Product Catalog feature with CRUD operations
Claude: Detected architecture: Vertical Slice Architecture
Created files:
src/Features/Products/CreateProduct.cs -- Command + handler + validator
src/Features/Products/GetProduct.cs -- Query by ID + handler
src/Features/Products/ListProducts.cs -- Paginated list + handler
src/Features/Products/UpdateProduct.cs -- Command + handler + validator
src/Features/Products/DeleteProduct.cs -- Command + handler
src/Features/Products/ProductEndpoints.cs -- IEndpointGroup, OpenAPI metadata
src/Features/Products/ProductConfig.cs -- EF Core configuration
tests/Features/Products/CreateProductTests.cs
tests/Features/Products/GetProductTests.cs
tests/Features/Products/ListProductsTests.cs
Checklist: 9/9 | Build: PASS | Tests: PASS
All files follow your existing conventions (sealed handlers,
primary constructors, TypedResults return types).