/skraft:clean-architecture-dotnetfrom skraft
Guides .NET/ASP.NET Core solution layout following Clean Architecture: which project a class belongs in, reference rules, and how endpoints reach use cases.
Ships in skraft. 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; scripts run unread.
The layer rules are those of architecture-patterns. This skill maps them onto .NET projects.
| Project | Holds | Only <ProjectReference> to |
|---|---|---|
<Context>.Domain | aggregates, value objects, domain events | nothing |
<Context>.Application | use cases and the interfaces they call | <Context>.Domain |
<Context>.Infrastructure | implementations of those interfaces, DI registration (AddInfrastructure()) | <Context>.Application |
<Context>.Api | endpoints, Program.cs | <Context>.Infrastructure |
Application/Loans/BorrowBookUseCase.cs, Infrastructure/Loans/SqlLoanRepository.cs), never a technical one (Persistence, Repositories, Services). The DbContext and DependencyInjection.cs stay at the project root. A feature uses no other feature's Application namespace; what two features use moves to a Shared folder.<ProjectReference> to reach them.HttpClient appear only in Infrastructure and Api. Domain uses nothing beyond the BCL.clean-architecture-testing defines, never in a layer project.node "<skill>/scripts/init-project.mjs" <Context>, run from the repository root, creates this layout (<skill> is this skill's folder).sealed class in Application named *UseCase, never *Service. The endpoint injects it directly.Task; the caller creates the new id and passes it in. A query returns a *ViewModel record built in Application (never a *Dto, never a domain object), or comes from a read-service interface in Application that Infrastructure implements.ICurrentUser). A repository interface sits in Domain when it persists an aggregate, in Application otherwise.if/throw that protects state belongs in a Domain method.ICommandBus / IQueryBus unless all three hold: a pipeline every command or query needs (validation, logging), more than three use cases, and read and write models that differ. With a bus, endpoints go through it and never inject a handler.sealed class created through a static factory over a private constructor, and identified by a typed id record (OrderId), never a raw Guid.The project graph and a framework-free core are enforced by NetArchTest: templates/IntegrationTests/ArchitectureTests.cs and references/netarchtest-rules.md, placed as clean-architecture-testing says.
references/patterns.md: code for a plain use case, CQRS with DDD and domain events, plus the red flags and common mistakes.references/interface-placement.md: repository, read-service, authorization and ICurrentUser placement, with read-policy and cancel-invariant examples.references/ddd.md: aggregates, factories, value objects, domain events.references/cqrs-patterns.md and references/convention-based-di.md: the bus, handlers and DI registration, once a bus is justified.references/layer-responsibilities.md, references/architecture-layers.md, references/project-structure.md: full rules per layer and the folder layout.references/architecture-layers.md (opens in a new tab)references/convention-based-di.md (opens in a new tab)references/cqrs-patterns.md (opens in a new tab)references/ddd.md (opens in a new tab)references/interface-placement.md (opens in a new tab)references/layer-responsibilities.md (opens in a new tab)references/netarchtest-rules.md (opens in a new tab)references/patterns.md (opens in a new tab)references/project-structure.md (opens in a new tab)scripts/init-project.mjs (opens in a new tab)templates/Api/IApiMarker.cs (opens in a new tab)templates/Application/IApplicationMarker.cs (opens in a new tab)templates/Application/Shared/ICommandBus.cs (opens in a new tab)templates/Application/Shared/ICommandHandler.cs (opens in a new tab)templates/Application/Shared/IQueryBus.cs (opens in a new tab)templates/Application/Shared/IQueryHandler.cs (opens in a new tab)templates/Domain/IDomainMarker.cs (opens in a new tab)templates/Infrastructure/CQRS/CommandBus.cs (opens in a new tab)templates/Infrastructure/CQRS/QueryBus.cs (opens in a new tab)templates/Infrastructure/DependencyInjection.cs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sebastiendegodez/skraft-plugin --plugin skraft44 skills in this plugin
/acceptance-review-criteriaUse when reviewing DISTILL artefacts (Gherkin scenarios, test plans, implementation plans) for quality, completeness, and alignment. Contains the gate definitions and scoring rubric for the acceptance-designer-reviewer lenses./adr-eligibility-gateUse when deciding WHETHER a candidate architectural choice deserves an architecture decision record, before any record is drafted: a story enters DESIGN with a list of candidate choices, a reviewer flags ADR inflation, or someone asks "should I write an ADR for X?", "how many ADRs does this story need?", "is this ADR-worthy?", "this feels like too many ADRs", "disambiguate baseline from decision". Runs a baseline-vs-decision gate over each candidate and returns ELIGIBLE or NOT ELIGIBLE with the baseline, convention or architecture test that already covers it. Do NOT use when the decision is already settled and the user asks for the record to be written, when the request is about the ADR template, status transitions, superseding or lifecycle, or when the question is which pattern to adopt — those belong to architecture-decisions and architecture-patterns.
/adversarial-review-lensesUse when reviewing a phase artifact — a discovery brief, a plan, a design, an acceptance specification, or a slice reported as delivered — and the review has to end in a defensible pass-or-block verdict rather than a list of remarks. Covers judging whether the artifact covers everything that fed into it, whether it matches the business intent, whether it holds together internally, and what it puts at risk downstream, then weighing those into a single call. Not for routine code review of an ordinary change.Other plugins' skills for the same job