/release-ops:observability-setupfrom release-ops
Wire a web service for observability sized for a small team - health-check endpoint, uptime checks, log forwarding, error tracking, product analytics, LLM cost tracking, and page-vs-ticket alert thresholds. Examples use Render, Better Stack, Sentry, and PostHog. Use when launching a new service, auditing monitoring on an existing one, or on "set up monitoring", "add a health check", "forward logs", "we get paged too much", or "alert fatigue".
Ships in release-ops. 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.
The goal is not "monitor everything". It is "page on what a human must act on now, ticket everything else". A small team paged for every warning starts ignoring pages. Build that filter in from the start.
Render, Better Stack, Sentry, and PostHog are the example stack. Map each step to the project's equivalent tool if it differs.
Health-check endpoint. Every service needs one, cheap and dependency-light:
// app/api/health/route.ts (Next.js App Router; Prisma shown as the example DB client)
export async function GET() {
try {
await prisma.$queryRaw`SELECT 1`; // confirms DB connectivity, not full app health
return Response.json({ status: 'ok', timestamp: new Date().toISOString() });
} catch {
return Response.json({ status: 'error' }, { status: 503 });
}
}
Set the host's health check path to it (Render: service Settings > Health Check Path). A new deploy that cannot reach the database then fails its check and does not receive traffic. Keep the check to the one dependency the service cannot run without; a slow third-party call here turns someone else's outage into yours.
Uptime checks. One monitor per public-facing service, hitting the health path (or the homepage for a static site) every 1-3 minutes. In Better Stack, set the monitor's confirmation period (Configure > Advanced settings) to at least one check interval so a single transient failure does not open an incident, and set a recovery period so a flapping service does not auto-resolve. Add maintenance windows around planned work known to cause a blip.
Log forwarding. Forward host logs to the log tool so they outlive the host's retention and can drive alerts:
{ level, message, ...context }) so alerts match on level: "error" instead of fragile strings.Error tracking. Capture unhandled exceptions, plus a curated set of handled errors that signal real problems (webhook signature failures, payment exceptions):
import * as Sentry from '@sentry/nextjs';
try {
await processPayment(input);
} catch (err) {
Sentry.captureException(err, { tags: { area: 'billing' } });
return new Response('Payment processing failed', { status: 500 });
}
Tag by area (billing, auth, llm) so alert rules and triage (this pack's incident-response skill) can filter quickly.
Product analytics. Instrument events per the analytics-instrumentation skill in the ship-pipeline pack. Session replay helps show what the user was doing when something broke; the error tracker stays the source of truth for the exception itself.
LLM cost tracking. For features that call an LLM API, record model, input/output tokens, cost, and latency per call in the same analytics tool (PostHog's LLM analytics uses $ai_generation events for this). A cost spike should show up on a dashboard someone checks, not in a provider console reviewed monthly.
| Signal | Action | Rationale |
|---|---|---|
| Uptime check fails past its confirmation period | Page | Real, user-facing |
| 5xx rate > 5% over 5 min | Page | Broad impact, likely a bad deploy |
| Single low-frequency exception | Ticket (daily digest) | Individually low impact |
| Exception rate 10x baseline within 10 min | Page | Something just broke |
| Dead-letter webhook row created | Ticket; page only above an hourly count | One is a data point, a burst is an incident |
| Disk/memory at 80% | Ticket; page at 95% | Lead time before an outage |
| Daily LLM cost over budget | Ticket | Business signal, not an outage |
These numbers are starting points. Replace them with values based on the service's real traffic and cost baseline, and agree them with whoever gets paged.
GET /api/health returns 200 with the DB up and 503 with it unreachable (both tested)area tagFor an existing service, report each unchecked item as a gap.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub stylusnexus/agent-plugins --plugin release-ops10 skills in this plugin
/customer-support-triageSupport inbox workflow for a small team - classify each request (bug, feature request, billing, how-to), attempt reproduction, assign severity, file a standard GitHub issue with no customer PII, check refund requests against the written policy, and draft the reply for a human to send. Use when triaging support email or tickets, or when asked to "handle this support request", "file this bug", or "draft a reply to this customer"./dependency-upgradeSafe batch dependency upgrades across a codebase — inventory outdated packages (npm outdated / uv lock --upgrade), group by risk (patch/minor/major), upgrade in waves with tsc/test/Playwright gates, read changelogs for majors, run `exposure-scan` for supply-chain checks, and land one PR per wave. Use when asked to "upgrade dependencies," "bump packages," "clear npm outdated," or on a periodic maintenance pass./incident-responseProduction incident runbook for a small team - severity call, fixed triage order, rollback-first decision, user comms, and a one-page blameless postmortem. Use when a service is down, erroring, or degraded in production, e.g. "site is down", "we're getting 500s", "uptime alert fired", "users report errors", "was it the last deploy?", "roll back", or "write the postmortem".Other plugins' skills for the same job