Configures and extends Orchard Core tenant health checks including health endpoints, liveness probes, IHealthCheck registration, response writer customization, and Kubernetes probe integration.
Ships in orchardcore. 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.
You are an Orchard Core expert. Generate health endpoint configuration and ASP.NET Core health check integrations for Orchard Core.
OrchardCore.HealthChecks feature. The module has no declared feature dependencies.services.AddHealthChecks()./health/live, relative to the tenant host and URL prefix. Configure it per tenant through the OrchardCore:HealthChecks configuration section (formerly OrchardCore_HealthChecks).Healthy. OrchardCore.Redis and OrchardCore.Sms contribute checks when they are enabled with Health Checks.ShowDetails to false for a minimal standard health response. Set it to true only for protected operational endpoints that may expose dependency information.IHealthChecksResponseWriter and returns JSON with overall status, duration, and each check's name, status, and description.ShowDetails: false, the standard ASP.NET Core response returns 200 for Healthy and Degraded and 503 for Unhealthy. With details enabled, every status returns 200, so monitors must parse the JSON Status. Both modes disable response caching.Endpoint policy from orchardcore-rate-limits on the health path can throttle probes.Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck for custom dependencies and register it using IHealthChecksBuilder.{ "steps": [...] } format.sealed modifier, except View Models.{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.HealthChecks"
],
"disable": []
}
]
}
The module binds HealthChecksOptions from OrchardCore:HealthChecks.
{
"OrchardCore": {
"HealthChecks": {
"Url": "/health/live",
"ShowDetails": false
}
}
}
OrchardCore__HealthChecks__Url=/health/live
OrchardCore__CustomerA__HealthChecks__Url=/health/ready
The second variable targets only the CustomerA tenant.
| Option | Default | Description |
|---|---|---|
Url | /health/live | Tenant health endpoint path. |
ShowDetails | false | Enables the detailed JSON response writer. |
Use the shell or tenant configuration source appropriate to the hosting model so the settings apply to the intended tenant.
Register custom checks in a module startup class. The Health Checks feature already calls AddHealthChecks; calling it again returns the same builder for adding checks. Use [RequireFeatures("OrchardCore.HealthChecks")] so the registration loads only when the endpoint exists, or declare the feature as a dependency.
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Diagnostics.HealthChecks;
using OrchardCore.Modules;
namespace MyModule;
[RequireFeatures("OrchardCore.HealthChecks")]
public sealed class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services
.AddHealthChecks()
.AddCheck<InventoryHealthCheck>("inventory");
}
}
using Microsoft.Extensions.Diagnostics.HealthChecks;
namespace MyModule;
public sealed class InventoryHealthCheck : IHealthCheck
{
private readonly IInventoryClient _inventoryClient;
public InventoryHealthCheck(IInventoryClient inventoryClient)
{
_inventoryClient = inventoryClient;
}
public async Task<HealthCheckResult> CheckHealthAsync(
HealthCheckContext context,
CancellationToken cancellationToken = default)
{
var isAvailable = await _inventoryClient.IsAvailableAsync(cancellationToken);
return isAvailable
? HealthCheckResult.Healthy("Inventory service is reachable.")
: HealthCheckResult.Unhealthy("Inventory service is unavailable.");
}
}
When ShowDetails is true, DefaultHealthChecksResponseWriter produces JSON shaped like:
{
"Status": "Healthy",
"Duration": "00:00:00.0123456",
"HealthChecks": [
{
"Name": "inventory",
"Status": "Healthy",
"Description": "Inventory service is reachable."
}
]
}
The response writer uses HealthReport.TotalDuration and every HealthReportEntry from the health report.
Register a custom scoped IHealthChecksResponseWriter only when the detailed contract must change.
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Diagnostics.HealthChecks;
using OrchardCore.HealthChecks.Services;
namespace MyModule;
public sealed class ProbeResponseWriter : IHealthChecksResponseWriter
{
public async Task WriteResponseAsync(HttpContext context, HealthReport report)
{
context.Response.ContentType = "application/json";
await context.Response.WriteAsJsonAsync(new
{
status = report.Status.ToString(),
});
}
}
services.Replace(ServiceDescriptor.Scoped<IHealthChecksResponseWriter, ProbeResponseWriter>());
The writer is only used when ShowDetails is true; compact mode keeps the ASP.NET Core default writer.
/health/live for a lightweight process liveness check.CancellationToken in custom checks.ShowDetails enabled.| Symptom | Check |
|---|---|
Endpoint is missing (404) | Enable OrchardCore.HealthChecks for the tenant and include the tenant host and URL prefix. |
| Wrong endpoint path | Check OrchardCore:HealthChecks:Url in tenant configuration, then reload the tenant. |
| JSON details are absent | Set ShowDetails to true. |
| Unhealthy response has HTTP 200 | This is expected with detailed output; evaluate the JSON Status. |
| Custom check never runs | Verify it is registered with AddHealthChecks().AddCheck in a feature enabled on the same tenant. |
Probe returns 429 | A Rate Limits policy (global or endpoint) is throttling the probe; exclude or raise its budget. |
OrchardCore_HealthChecks section to OrchardCore:HealthChecks (environment variable OrchardCore__HealthChecks__Url). The old name still works but is deprecated.App_Data/Sites/{TenantName}/appsettings.json, use a root HealthChecks section.RedisHealthCheck now takes an IRedisService instead of an IServiceProvider. Register it with AddRedisCheck() rather than constructing it. When the Redis configuration is missing or invalid, the check reports Unhealthy ("Couldn't connect to the Redis server…") instead of saying IRedisService isn't registered.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/orchardcore:orchardcore-health-checksfrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard.Other plugins' skills for the same job