/dotnet-blazor:dotnet-aspirefrom dotnet-blazor
Orchestrates .NET cloud-native apps with Aspire: coordinates multi-service AppHost, configures service defaults (telemetry, health checks, resilience), and integrates components like PostgreSQL, Redis, RabbitMQ, and Azure services.
Ships in dotnet-blazor. 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.
None: SKILL.md is the whole skill.
.NET Aspire is an opinionated, cloud-ready stack for building observable, production-ready, distributed applications. It provides:
// MyApp.AppHost/Program.cs
var builder = DistributedApplication.CreateBuilder(args);
// Infrastructure resources
var postgres = builder.AddPostgres("postgres").WithDataVolume().WithPgAdmin();
var redis = builder.AddRedis("redis").WithRedisInsight();
var rabbitmq = builder.AddRabbitMQ("messaging").WithManagementPlugin();
// Databases
var appDb = postgres.AddDatabase("appdb");
// Projects (services)
var api = builder.AddProject<Projects.Api>("api")
.WithReference(appDb)
.WithReference(redis)
.WithReference(rabbitmq)
.WithExternalHttpEndpoints();
var web = builder.AddProject<Projects.Web>("web")
.WithReference(api)
.WithReference(redis)
.WithExternalHttpEndpoints();
var worker = builder.AddProject<Projects.Worker>("worker")
.WithReference(rabbitmq)
.WithReference(appDb);
builder.Build().Run();
// ServiceDefaults/Extensions.cs (shared project)
public static IHostApplicationBuilder AddServiceDefaults(this IHostApplicationBuilder builder)
{
builder.ConfigureOpenTelemetry();
builder.AddDefaultHealthChecks();
builder.Services.AddServiceDiscovery();
builder.Services.ConfigureHttpClientDefaults(http =>
{
http.AddStandardResilienceHandler();
http.AddServiceDiscovery();
});
return builder;
}
| Component | NuGet Package | AddXxx Method |
|---|---|---|
| PostgreSQL (EF) | Aspire.Npgsql.EntityFrameworkCore.PostgreSQL | AddNpgsqlDbContext<T>() |
| SQL Server (EF) | Aspire.Microsoft.EntityFrameworkCore.SqlServer | AddSqlServerDbContext<T>() |
| Redis Cache | Aspire.StackExchange.Redis.DistributedCaching | AddRedisDistributedCache() |
| Redis Output Cache | Aspire.StackExchange.Redis.OutputCaching | AddRedisOutputCache() |
| RabbitMQ | Aspire.RabbitMQ.Client | AddRabbitMQClient() |
| Azure Service Bus | Aspire.Azure.Messaging.ServiceBus | AddAzureServiceBusClient() |
| Azure Blob Storage | Aspire.Azure.Storage.Blobs | AddAzureBlobClient() |
| Cosmos DB | Aspire.Microsoft.Azure.Cosmos | AddAzureCosmosClient() |
The Aspire dashboard provides:
Access at: https://localhost:18888 (default)
# Deploy to Azure Container Apps
azd init
azd provision # Creates Azure resources
azd deploy # Deploys all services
# Or use Aspire CLI
aspire publish --publisher azure
builder.AddServiceDefaults()WithReference() to establish service dependenciesWithExternalHttpEndpoints() for publicly accessible serviceshttps+http://service-name URIsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thelobbi/claude --plugin dotnet-blazor19 skills in this plugin
/aspnet-core-apisASP.NET Core API development with minimal APIs, controllers, middleware, OpenAPI, and best practices/blazor-auth-securityAuthentication and authorization in Blazor with ASP.NET Core Identity, Entra ID, JWT, and policy-based auth/blazor-componentsBlazor component model including render modes, lifecycle, parameters, event handling, and component communication/blazor-forms-validationBlazor forms, EditForm, input components, DataAnnotations, FluentValidation, and custom validation/blazor-js-interopJavaScript interop in Blazor for calling JS from .NET and .NET from JS/blazor-performanceBlazor rendering optimization, virtualization, lazy loading, caching, and memory managementOther plugins' skills for the same job