Stats
Actions
Tags
Help us improve
Share bugs, ideas, or general feedback.
From dotnet-pilot
.NET clean architecture enforcement — layer rules, dependency direction, DI registration patterns, and project reference validation.
npx claudepluginhub zdanovichnick/dotnet-pilot --plugin dotnet-pilotHow this skill is triggered — by the user, by Claude, or both
Slash command
/dotnet-pilot:clean-architectureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reference for architectural decisions. Used by `dnp-architect` and `dnp-planner`.
Measures whether skills, rules, and agent definitions are actually followed by auto-generating test scenarios at 3 strictness levels and reporting compliance rates with full tool call timelines.
Share bugs, ideas, or general feedback.
Reference for architectural decisions. Used by dnp-architect and dnp-planner.
// In Infrastructure project:
public static class InfrastructureServiceExtensions
{
public static IServiceCollection AddInfrastructureServices(
this IServiceCollection services, IConfiguration config)
{
services.AddDbContext<ApplicationDbContext>(options =>
options.UseNpgsql(config.GetConnectionString("DefaultConnection")));
services.AddScoped<IUserRepository, UserRepository>();
return services;
}
}
// In Application project:
public static class ApplicationServiceExtensions
{
public static IServiceCollection AddApplicationServices(this IServiceCollection services)
{
services.AddScoped<IUserService, UserService>();
services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(typeof(ApplicationServiceExtensions).Assembly));
return services;
}
}
// In Program.cs (API project):
builder.Services.AddApplicationServices();
builder.Services.AddInfrastructureServices(builder.Configuration);
| Rule | Check |
|---|---|
| Domain independence | Domain .csproj has 0 <ProjectReference> elements |
| Application → Domain only | Application .csproj references only Domain |
| No reverse dependencies | Domain never references Application/Infrastructure/API |
| Interface segregation | Application defines interfaces, Infrastructure implements |
| Composition root | Only API project wires DI container |