/dotnet-agent-kit:scaffoldfrom dotnet Agent Kit
Architecture-aware scaffolding for .NET 10: generates complete feature slices (endpoint, handler, validator, tests) or new modules matching existing conventions. Use for 'scaffold', 'add feature', 'new endpoint', 'add entity', 'new module'.
Ships in dotnet Agent Kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generates a complete feature, or a new module, with every file it needs. It never generates half a feature: the endpoint, handler, request, validator, response, EF configuration and integration tests come as one unit, in modern C# 14 (primary constructors, collection expressions, records, sealed internal classes, TypedResults).
The default shape is modular slices (ADR-008, modular-slices skill). Other architectures are supported when the codebase already uses them. File placement maps and code templates live in references/architecture-patterns.md:
src/Modules/<Module>/<Module>/Features/<VerbPhrase>/, one class per fileFeatures/, without modules/spec has produced an approved plansrc/Modules/<Name>/<Name> and <Name>.Contracts projects, IModule classes: modular slicesFeatures/ folders and no modules: single-project VSAarchitecture-advisor recommended something elseIf it is ambiguous, ask rather than guess. Load the matching skill (modular-slices, or architecture-advisor for single-project VSA, Clean Architecture, DDD).
Confirm before generating (skip what the plan already answers):
PlaceOrder, CancelOrder, ListOrders)Use the instinct-system skill and Roslyn MCP tools (find_symbol, get_file_outline) on one existing feature folder:
*Endpoint, *Handler, *Request, *RequestValidator, *Response)Problems.* codes, or an existing Result<T>){Module}Api.cs)Match what exists. Do not bring the default conventions into a codebase that uses different ones.
A feature (default): in Features/<VerbPhrase>/ create
<VerbPhrase>Endpoint.cs: internal sealed, implements IEndpoint, relative route, .RequirePermission(...), .WithName(), .WithSummary(), injects the handler<VerbPhrase>Handler.cs: internal sealed, implements IHandler, primary constructor with the module DbContext and TimeProvider, HandleAsync returning a Results<...> union<VerbPhrase>Request.cs and <Noun>Response.cs: public sealed record (shared responses go in Features/Common/)<VerbPhrase>RequestValidator.cs: internal sealed, rules with meaningtests/<Module>.Tests/Features/<VerbPhrase>/<VerbPhrase>Tests.csA new module: create <Module> and <Module>.Contracts projects, <Module>Module : IModule, <Module>Permissions, <Module>DbContext : ModuleDbContext, add builder.AddModule<<Module>Module>() to the Api, Worker and Migrator hosts, add the projects to the .slnx, add a test project, and create the first migration.
If the Modularity building blocks are missing, scaffold them first from skills/modular-slices/references/building-blocks.md.
Every scaffolded feature must satisfy all of these:
IEndpoint per feature, discovered automatically; nothing added to Program.cs or the module class.RequirePermission(...) or an explicit .AllowAnonymous() on every endpointinternal sealed, implements IHandler, returns a TypedResults union; no mediator, no repositoryProblems.NotFound() / Conflict(code, ...) / RuleBroken(code, ...) with <module>.<reason> codes; never bare stringspublic; everything else internal; anything other modules need goes in <Module>.ContractsIEntityTypeConfiguration<T>; reads use AsNoTracking() and projections; lists are paged (page size capped at 50)db.Publish(evt, clock) before SaveChangesAsyncvalidation-failed), each business rule code, and cross-tenant 404 for tenant-owned dataFor single-project VSA the same list applies minus the Contracts and module items. For Clean Architecture or DDD codebases, follow their error and dispatch conventions (for example Result<T> with Mediator) but keep the endpoint, validation, data, cancellation and test items.
dotnet build --no-restore
dotnet test --no-build --filter "FullyQualifiedName~{FeatureName}"
dotnet test --no-build --filter "FullyQualifiedName~Architecture"
If the build or tests fail, fix and re-run before presenting results. The architecture tests catch a public handler or a reference to another module's implementation.
User: /scaffold cancelling an order
Claude: Detected architecture: modular slices (src/Modules/Orders). Feature goes in Orders.
Created files:
src/Modules/Orders/Orders/Features/CancelOrder/CancelOrderEndpoint.cs
src/Modules/Orders/Orders/Features/CancelOrder/CancelOrderHandler.cs
src/Modules/Orders/Orders/Features/CancelOrder/CancelOrderRequest.cs
src/Modules/Orders/Orders/Features/CancelOrder/CancelOrderRequestValidator.cs
src/Modules/Orders/Orders.Contracts/OrderCancelled.cs -- event for Billing
tests/Orders.Tests/Features/CancelOrder/CancelOrderTests.cs
Handler returns Results<Ok<OrderResponse>, ProblemHttpResult>
Error codes: orders.cannot-cancel (409)
Tests: success, 403 without orders.manage, 400 empty reason, 409 shipped order, 404 other tenant
Checklist: 10/10 | Build: PASS | Tests: 5/5 PASS | Architecture tests: PASS
modular-slices: the default architecture and its building blocksarchitecture-advisor: single-project slices, Clean Architecture and DDD referencesdotnet-init: set up the project and CLAUDE.md before scaffoldingtdd: write the feature's tests first, then scaffold to make them passWhat SKILL.md sets; muted values are Claude Code's defaults
37 skills in this plugin
/api-hardeningProduction hardening for ASP.NET Core 10 APIs: HSTS, forwarded headers behind a proxy (KnownIPNetworks), strict CORS, body and upload limits, security headers, no detailed errors. Use for "HSTS", "forwarded headers", "behind nginx", "CORS", "request size limit", "security headers", "harden for production". Do NOT use for auth (use authentication) or throttling (use rate-limiting).
/architecture-advisorArchitecture 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).
/aspireAspire (17.x, requires .NET 10) orchestration: AppHost, service defaults, resource configuration, service discovery, dashboard. Use for "Aspire", "AppHost", "service defaults", "service discovery", "AddDotnetProject", "AddProject", "WithReference", "aspire run". Do NOT use for Dockerfiles or container images (use docker), CI/CD pipelines (use ci-cd), or OpenTelemetry SDK setup (use opentelemetry).
/authenticationAuthentication and authorization for ASP.NET Core: JWT bearer, OpenID Connect, ASP.NET Identity, policies, role and claim-based authorization, API keys, cookie auth. Use for "JWT", "OIDC", "Identity", "claims", "roles", "RequireAuthorization", "API key". Do NOT use for endpoint design (use minimal-api), security schemes in API docs (use openapi), secrets and options binding (use configuration), or which rows a user may see (use resource-authorization).
/build-fixAutonomous loop that drives a broken .NET build or failing tests to green, with bounded iterations and retry guards (build, parse, fix, rebuild; test-fix variant). Use for "fix the build", "make it compile", "fix failing tests", "keep going until it works", "auto-fix". Do NOT use for cleanup of code that already builds (use de-sloppify), writing new tests (use testing or tdd), or a pre-PR check (use verify).
/cachingCaching for .NET 10: HybridCache (the default), output caching, response caching, distributed cache. Use for "cache", "HybridCache", "Redis", "output cache", "IMemoryCache", "cache invalidation", "stampede protection". Do NOT use for EF Core query tuning or N+1 (use ef-core), retry and timeout policies (use resilience), or Redis as a message broker (use messaging).
npx claudepluginhub codewithmukesh/dotnet-agent-kit --plugin dotnet-agent-kitOther plugins' skills for the same job