Add per-dependency /health, /livez, and /readyz endpoints with @openstatus/health. Use when integrating OpenStatus Health into Next.js, Astro, Vue/Nuxt, Node.js, Express, Fastify, Bun, Deno, or NestJS; when writing probes for Postgres, Prisma, Drizzle, Supabase, MySQL, MongoDB, Redis, S3, Stripe, OpenAI, or other dependencies; when health checks must report ok, degraded, or unhealthy, per-dependency latency, critical vs non-critical failures, caching, liveness/readiness, or monitoring with OpenStatus.
Ships in openstatus-skills. 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.
Mount health endpoints that name the dependency that is down.
@openstatus/health is a zero-dependency core: probes run against clients you pass in, a cache deduplicates concurrent polls, and the renderer answers ok | degraded | unhealthy. Thin adapters mount the same core on a framework. Probe packages know how to ping one dependency each.
Requires Node >= 22, Deno, Bun, or an edge runtime.
/health"/livez and /readyz"@openstatus/health with Next.js / Astro / Nuxt / Node / NestJS"Do not use this skill for:
status-page-ui.global-speed-checker.| Mode | Trigger | Action |
|---|---|---|
| Bootstrap | new project, "add health endpoint" | inventory deps, choose probes, write registry and route |
| Audit | existing /health, "update probes", "new dependency" | inspect route and registry, diff deps, add missing probes |
| Refresh | "sync health catalog", maintainer update | update the generated probe catalog and manifest |
Read references/probe-lifecycle.md for the full inventory and drift workflow.
Run this before applying a framework reference.
package.json or the lockfile.references/manifest.json.verifiedMajor.verifiedAt.Maintainer check:
node <skill-dir>/scripts/check-freshness.mjs --check
Never claim a pattern was verified if it was not checked. Never silently apply guidance from a newer or older major.
| Runtime | Mount | Reference |
|---|---|---|
| Next.js App Router 14–15 | @openstatus/health-next | references/nextjs.md |
| Next.js App Router 16+ | core Fetch handler in route.ts | references/nextjs.md |
| Astro 7 SSR (5+ endpoint API unchanged) | core Fetch handler in src/pages/health.ts | references/astro.md |
| Vue via Nuxt 4.6+ / Nitro | core Fetch handler in server/routes/health.ts | references/vue-nuxt.md |
Node.js 22+ with node:http | createHealthResponder | references/node.md |
| Express / Fastify / Hono / Elysia / Bun / Deno | adapter or core handler | references/node.md |
| NestJS 12 (11 uses the same controller API) | custom adapter over createHealthResponder | references/nestjs.md |
Plain Vue is client-side. It cannot host an HTTP health endpoint. Use Nuxt/Nitro or a separate backend.
Install the core, an adapter when one matches, and the probes you need:
npm install @openstatus/health @openstatus/health-hono @openstatus/health-turso
Mount it on any Fetch-API runtime:
import { createHealthHandler } from "@openstatus/health";
import { probes } from "./probes";
const handler = createHealthHandler({ probes });
Deno.serve(handler);
GET /health returns:
{
"status": "degraded",
"checkedAt": "2026-11-14T12:00:00.000Z",
"latencyMs": 41,
"checks": [
{ "name": "database", "status": "ok", "critical": true, "latencyMs": 3 },
{ "name": "redis", "status": "failed", "critical": false, "latencyMs": 5000, "error": "timed out after 5000ms" }
]
}
Status rules:
ok or skipped -> ok, HTTP 200.degraded, HTTP 200.unhealthy, HTTP 503.skipped never affects the result.degraded answering 200 is intentional. A monitor that only asserts the status code will miss it. Assert on the body instead.
Detect the framework, package manager, runtime (Node or edge), and existing health route.
Scan package.json for dependencies that have probes. Do not install a probe package for a dependency the project does not use. Do not assume every dependency should be critical.
Use references/probes.md for the dependency-to-package map.
Defaults:
Ask only when the answer changes routing behavior. Do not guess silently.
Keep probes in one file. Routes import the array. Adding a dependency later is one line, not a route rewrite.
// src/health/probes.ts
import { prismaProbe } from "@openstatus/health-prisma";
import { redisProbe } from "@openstatus/health-redis";
import { db } from "@/lib/db";
import { redis } from "@/lib/redis";
export const probes = [
prismaProbe({ client: db }),
redisProbe({ client: redis }),
];
Rules:
process.env. Pass clients, URLs, or tokens from the composition root.skip for optional dependencies that are not configured in every environment.Use the framework reference. Keep the route thin: import the registry, mount the handler, export the required methods.
exposeChecks: false on a public endpoint, or use a function that checks an internal token.formatError: "generic" unless the endpoint is internal. It avoids leaking connection strings and stack traces.extend output is hidden when checks are hidden.Liveness asks "is the process alive". Readiness asks "can it serve traffic".
// liveness: no probes, always ok
createHealthHandler({ path: "/livez", probes: [] });
// readiness: real probes, bounded round, no failure cache
createHealthHandler({
path: "/readyz",
probes,
deadlineMs: 800,
cacheFailuresMs: 0,
});
Set deadlineMs below the orchestrator's own timeout. Kubernetes defaults to timeoutSeconds: 1.
curl -i http://localhost:3000/health
curl -I http://localhost:3000/health
curl -i -X POST http://localhost:3000/health
Check:
GET returns the expected status and JSON.HEAD returns the same status with no body.allow: GET, HEAD.cache-control: no-store is present.degraded or unhealthy as intended.Point an OpenStatus HTTP monitor at the endpoint and assert on the body:
"status":"ok"
Alert on degraded before it becomes unhealthy. See references/operations.md.
degraded is HTTP 200. Never alert on status code alone.cacheFailuresMs: 0 on readiness so recovery is visible on the next poll.deadlineMs must be shorter than the orchestrator timeout.formatError: "generic" unless the caller is trusted.export const dynamic = "force-dynamic" on the route.export const prerender = false when output is static./health -> audit mode -> preserve the URL, replace the logic.probe() or httpProbe()./health until a probe is added. There is no runtime auto-discovery.The coverage check is opt-in. Copy assets/check-health-coverage.mjs into the project only when the user asks for drift protection.
try { db.query() } catch { return 500 } with no dependency detail.process.env and become untestable.run(), leaking connections on every poll.exposeChecks: true on a public endpoint, publishing the dependency list.formatError: "message" in production.cacheMs so long that recovery is invisible./health routes from two libraries.status-page-context — product context and component names.status-page-ui — status page UI, not server health.global-speed-checker — regional performance checks.incident-communication — write updates when a probe turns unhealthy.CHANGELOG.md (opens in a new tab)assets/check-health-coverage.mjs (opens in a new tab)evals/evals.json (opens in a new tab)references/astro.md (opens in a new tab)references/core-api.md (opens in a new tab)references/manifest.json (opens in a new tab)references/nestjs.md (opens in a new tab)references/nextjs.md (opens in a new tab)references/node.md (opens in a new tab)references/operations.md (opens in a new tab)references/probe-lifecycle.md (opens in a new tab)references/probes.md (opens in a new tab)references/vue-nuxt.md (opens in a new tab)scripts/check-freshness.mjs (opens in a new tab)scripts/sync-probes.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/global-speed-checkerRun global performance checks on HTTP endpoints from multiple regions worldwide. Use when users want to check speed, latency, performance, or test endpoints globally./incident-communicationWrite clear, empathetic incident status updates for any phase of an incident (investigating, identified, monitoring, resolved). Use when the user mentions "incident update," "status update," "outage communication," "write an incident," "investigating update," "post-incident update," or needs to communicate a service disruption to users./maintenanceWrite planned maintenance announcements for each phase (scheduled, in-progress, completed). Use when the user mentions "maintenance announcement," "scheduled maintenance," "maintenance window," "planned downtime," "maintenance notification," or needs to communicate upcoming planned work to users./openstatus-themeDesign, scaffold, and contribute a community theme to openstatus (the open-source status page). Use whenever the user wants to create a new theme, customize status-page colors, build a palette for their brand, fork and contribute to openstatus's `@openstatus/theme-store`, or mentions OKLCH colors, CSS variables, or themes.openstatus.dev. Also use when the user pastes a theme export or a "Copy prompt" brief from the live explorer (themes.openstatus.dev), whether they want a pasteable JSON theme back or the theme wired into the repo./postmortemWrite blameless postmortems after incidents with timeline, root cause analysis, impact assessment, and action items. Use when the user mentions "postmortem," "post-mortem," "incident review," "root cause analysis," "RCA," "incident retrospective," "what went wrong," or wants to document lessons from a resolved incident./status-page-contextCreate or update the status page context document that all other status page skills reference. Use when setting up status page skills for the first time, or when the user mentions "status page context," "configure status page," "set up incident tone," or wants to define their service components, SLAs, or communication style./openstatus-skills:openstatus-healthfrom openstatus-skills
npx claudepluginhub openstatushq/skills --plugin openstatus-skills