Adds health checks with correct liveness/readiness/startup probe split and dependency checks for Kubernetes, ECS, and load balancers across multiple stacks (ASP.NET Core, Spring Boot, NestJS, FastAPI, Django, Go).
Ships in AI for Developers Toolkit. 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.
Add health checks that orchestrators can actually use: a liveness probe (is the process alive?) separate from a readiness probe (can it serve traffic right now?), optionally a startup probe, with dependency checks attached to the right one.
Works on a target: a project or GitHub URL. Inspect existing health endpoints and the dependencies in the manifest (DB driver, cache client, broker client, outbound APIs) to know what to check.
| Manifest | Stack | Look for | Use |
|---|---|---|---|
*.csproj | ASP.NET Core | AddHealthChecks, MapHealthChecks, AspNetCore.HealthChecks.* | built-in health checks + AspNetCore.HealthChecks.* packages |
pom.xml, build.gradle(.kts) | Spring Boot | spring-boot-starter-actuator, management.endpoint.health | Actuator health groups + probes |
package.json | NestJS / Express / Fastify | @nestjs/terminus, @godaddy/terminus, /health routes | @nestjs/terminus (Nest) or plain routes / @godaddy/terminus |
pyproject.toml, requirements*.txt | FastAPI / Django / Flask | /health, django-health-check | plain routes (FastAPI/Flask), django-health-check (Django) |
go.mod | Go | /healthz, grpc/health | plain handlers; google.golang.org/grpc/health for gRPC services |
grep -rn "AddHealthChecks\|MapHealthChecks" --include=*.cs <target>
grep -rn "actuator\|management.endpoint" <target>/pom.xml <target>/build.gradle* <target>/src/main/resources 2>/dev/null
grep -rn "terminus\|/health" --include=*.ts --include=*.js <target> | grep -v node_modules
grep -rn "health" --include=*.py <target>
grep -rn "healthz\|grpc/health" --include=*.go <target>
| Probe | Answers | Includes dependencies? | On failure the orchestrator... |
|---|---|---|---|
| Liveness | Is the process stuck/dead? | No - process-local only | restarts the container |
| Readiness | Can I serve traffic now? | Yes - DB, cache, broker, critical downstreams | stops routing traffic, no restart |
| Startup | Have I finished booting (migrations, warm-up)? | optional | holds off liveness until it passes |
SELECT 1, PING), cache results briefly if checks are expensive.dotnet add package AspNetCore.HealthChecks.NpgSql
dotnet add package AspNetCore.HealthChecks.Redis
dotnet add package AspNetCore.HealthChecks.UI.Client # JSON response writer
builder.Services.AddHealthChecks()
.AddNpgSql(conn, name: "db", tags: new[] { "ready" })
.AddRedis(redisConn, name: "redis", tags: new[] { "ready" })
.AddCheck("self", () => HealthCheckResult.Healthy(), tags: new[] { "live" });
// Liveness: is the process up? (no dependencies - don't restart on a DB blip)
app.MapHealthChecks("/health/live", new() { Predicate = c => c.Tags.Contains("live") });
// Readiness: can it serve? (include dependencies - pull from LB while a dep is down)
app.MapHealthChecks("/health/ready", new()
{
Predicate = c => c.Tags.Contains("ready"),
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse // JSON detail
});
.AddDbContextCheck<AppDbContext>(tags: new[] { "ready" }) (Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore)..RequireAuthorization() or .RequireHost(...).management.endpoint.health.probes.enabled=true # /actuator/health/liveness and /readiness
management.endpoint.health.group.readiness.include=readinessState,db,redis
management.endpoint.health.group.liveness.include=livenessState
management.endpoint.health.show-details=when-authorized
management.endpoints.web.exposure.include=health
DataSource, Redis, Rabbit, Kafka, etc. Make sure they land in the readiness group, never liveness.@Component implementing HealthIndicator; add its name to the readiness group.management.server.port to keep actuator off the public port.NestJS - @nestjs/terminus:
@Controller('health')
export class HealthController {
constructor(private health: HealthCheckService, private db: TypeOrmHealthIndicator) {}
@Get('live') @HealthCheck() live() { return this.health.check([]); }
@Get('ready') @HealthCheck() ready() { return this.health.check([() => this.db.pingCheck('db', { timeout: 1000 })]); }
}
Express / Fastify - plain routes:
let shuttingDown = false;
app.get('/health/live', (_req, res) => res.sendStatus(200));
app.get('/health/ready', async (_req, res) => {
if (shuttingDown) return res.sendStatus(503);
try {
await Promise.all([withTimeout(pool.query('SELECT 1'), 1000), withTimeout(redis.ping(), 1000)]);
res.sendStatus(200);
} catch { res.sendStatus(503); }
});
process.on('SIGTERM', () => { shuttingDown = true; server.close(); });
@godaddy/terminus packages health checks plus graceful shutdown for plain Node HTTP servers.
@app.get("/health/live")
async def live():
return {"status": "ok"}
@app.get("/health/ready")
async def ready(response: Response):
try:
async with asyncio.timeout(1): # Python 3.11+; use asyncio.wait_for on older versions
await db.execute(text("SELECT 1"))
await redis.ping()
return {"status": "ok"}
except Exception:
response.status_code = 503
return {"status": "unavailable"}
Django: django-health-check provides DB/cache/storage checks; expose a dependency-free view for liveness and the package's view for readiness.
var ready atomic.Bool // set true after startup, false on SIGTERM
http.HandleFunc("/healthz", func(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(http.StatusOK) })
http.HandleFunc("/readyz", func(w http.ResponseWriter, r *http.Request) {
ctx, cancel := context.WithTimeout(r.Context(), time.Second)
defer cancel()
if !ready.Load() || db.PingContext(ctx) != nil || rdb.Ping(ctx).Err() != nil {
w.WriteHeader(http.StatusServiceUnavailable)
return
}
w.WriteHeader(http.StatusOK)
})
gRPC services: register google.golang.org/grpc/health and use Kubernetes' native grpc probe type.
startupProbe: { httpGet: { path: /health/live, port: 8080 }, periodSeconds: 5, failureThreshold: 30 }
livenessProbe: { httpGet: { path: /health/live, port: 8080 }, periodSeconds: 10 }
readinessProbe: { httpGet: { path: /health/ready, port: 8080 }, periodSeconds: 5 }
Adjust paths per stack (Spring: /actuator/health/liveness and /actuator/health/readiness; Go convention: /healthz, /readyz). Docker Compose / ECS: point the container healthcheck at the readiness endpoint.
## Current state
<stack, existing endpoints, dependencies found>
## Wiring
<liveness, readiness (+startup) endpoints and dependency checks>
## Orchestrator config
<k8s probes / compose healthcheck / LB target group path>
## Notes
<what was deliberately kept out of liveness, auth on detailed output>
"Add health checks with liveness and readiness", "wire DB and Redis into readiness", "Kubernetes probes for my Spring Boot / Node / Go service", "why does a DB blip restart my pods" (answer: liveness depends on the DB - fix the split). Pairs with microservice-template-generator.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ai-dev-toolkit:healthchecks-setupfrom AI for Developers Toolkit
npx claudepluginhub stefanthecode/ai-for-developers --plugin ai-dev-toolkit45 skills in this plugin
/api-endpoint-scaffolderScaffold HTTP API endpoints in any stack - ASP.NET Core Minimal APIs or controllers, Express, Fastify, NestJS, FastAPI, Django REST Framework, Spring Boot controllers, Go net/http, chi, Gin - one feature per endpoint (REPR style) with request validation, typed responses, route grouping, auth, and OpenAPI metadata. Use this skill whenever the user wants to add an endpoint or route, convert controllers to minimal APIs, structure routes or routers, set up endpoint groups, TypedResults, route handlers, request DTOs/schemas (zod, Pydantic, Bean Validation, binding tags), or asks "how do I add an endpoint / structure my API routes". Always use this skill for endpoint scaffolding; it generates a complete, validated endpoint that matches the project's conventions./architecture-test-generatorGenerate architecture tests / fitness functions that fail the build when architectural rules are violated - layer dependencies, module boundaries, cycles, naming, and visibility conventions - in any stack: NetArchTest or ArchUnitNET (.NET), ArchUnit or Konsist (Java/Kotlin), dependency-cruiser or eslint-plugin-boundaries (TypeScript/JavaScript), import-linter (Python), go-arch-lint or depguard (Go). Use this skill whenever the user wants architecture tests, to enforce layering or the dependency rule, dependency rules as tests, import rules, forbidden imports, no circular dependencies, naming conventions, fitness functions, or asks "how do I stop people breaking the architecture / enforce my layers / keep modules from importing each other". Always use this skill for architecture-test requests; it generates rules matching the project's real structure./async-await-auditorAudit async and concurrent code in any language for correctness and performance bugs - C#/.NET (async/await, Task), JavaScript/TypeScript (Promises, async/await), Python (asyncio), Java/Kotlin (CompletableFuture, virtual threads, coroutines), Go (goroutines, channels, context), Rust (tokio/async). Use this skill whenever the user shares async or concurrent code, or asks about deadlocks, hangs, blocking calls, .Result/.Wait(), async void, ConfigureAwait, floating or unhandled promises, await in a loop vs Promise.all, blocking the event loop, forgotten await, asyncio.gather/TaskGroup, CompletableFuture.join, virtual thread pinning, goroutine leaks, context cancellation, WaitGroup/errgroup, holding a lock across .await, fire-and-forget tasks, cancellation tokens, or "why does my async code hang". Always use this skill for async/concurrency reviews instead of answering from memory; it applies a fixed checklist and rewrites the code./authorization-setupDesign API authorization in any stack - policy-based, role-based, claims/permission-based, and resource-based (ownership) checks. Covers ASP.NET Core policies and AuthorizationHandler, NestJS guards, Express middleware and CASL, FastAPI dependencies/scopes, Django and DRF permission classes, Spring Security (@PreAuthorize, SecurityFilterChain), Go middleware, and Casbin/OPA. Use this skill whenever the user wants authorization policies, role/claim/permission checks, RBAC/ABAC, custom authorization rules, resource-based authorization, IDOR protection, "deny by default", or asks "how do I authorize this / policy vs role / restrict this endpoint to X / stop users seeing other users' data". Always use this skill for authorization requests; it generates policies, handlers, and endpoint wiring./benchmark-setupSet up correct micro-benchmarks in any stack and interpret the results - BenchmarkDotNet (.NET), JMH (Java/Kotlin), pytest-benchmark / pyperf (Python), Vitest bench / tinybench / mitata (JavaScript/TypeScript), Go testing.B + benchstat, Rust criterion. Use this skill whenever the user wants to benchmark code, measure performance, compare two implementations or functions, set up a benchmark harness, or asks "which is faster", "benchmark these two functions", "how do I benchmark this", "is this optimization worth it", or "interpret these benchmark results". Always use this skill for micro-benchmarking requests; it writes correct benchmarks, avoids the classic pitfalls, and explains the numbers./caching-strategy-setupAdd the right caching to an app in any stack - in-process, distributed (Redis/Valkey/Memcached), two-level, or HTTP/output caching - with correct keys, expiration, stampede protection, and invalidation. Covers HybridCache / IMemoryCache / IDistributedCache / output caching in .NET, lru-cache / keyv / cache-manager / ioredis in Node, functools / cachetools / redis-py / Django cache in Python, Spring Cache with Caffeine or Redis in Java/Kotlin, and ristretto / groupcache / singleflight / go-redis in Go. Use this skill whenever the user wants caching, to cache a query/response, Redis caching, @Cacheable, lru_cache, HybridCache, cache-aside, output caching, or asks "how do I cache this / add caching / avoid cache stampede / invalidate this cache". Always use this skill for caching requests; it picks the right layer and wires expiration + invalidation correctly.Other plugins' skills for the same job