---
name: app-health-check
description: Check a live web app's health (uptime, latency, error spikes, failed payments or jobs, and key funnel metrics against expectations) and alert only when something needs a human. Use when the user asks "is the app up?", "any errors?", "how's the app doing?", "check prod", or wants a recurring post-launch health check for one or more apps. It is read-only and diagnoses and reports, it does not deploy, roll back, or change config without explicit approval. Not for writing an incident report after the fact (use incident-postmortem).
license: MIT
metadata:
  title: App Health Check
  summary: Check uptime, errors, and core funnel metrics for a live app, log the result, and alert only when a human needs to act.
  category: engineering
  tags: [monitoring, uptime, observability, launch, alerts]
  version: "1.0.0"
  author: Austin Christensen
  publisher: Christensen Equity
  related: [launch-checklist, incident-postmortem, kpi-scorecard, launch-retro]
---

# App Health Check

Once an app is live, silence is not safety. This skill checks health on demand or on a schedule and surfaces problems before a customer reports them, without crying wolf.

## When to use

- The user asks whether an app is up or healthy.
- A launched app needs a recurring check (hourly uptime, a few deeper checks a day).
- A metric looks wrong and the user wants to know if it is a real problem.

## Inputs

- App URLs, including a health endpoint if one exists (for example `/api/health`).
- Access the user has granted: error tracker, hosting platform, database, payment provider, analytics. Use what exists; list what is missing.
- Expectations: normal latency, normal daily signups and conversion, and any kill thresholds from the revenue model.
- A log file. Default: `health/<app>.md`.

## Workflow

1. **Uptime and latency.** For each URL:
   ```bash
   curl -s -o /dev/null -L --max-time 15 -w '%{http_code} %{time_total}\n' https://app.example.com
   ```
   Any status other than 2xx or 3xx, or a timeout, is a failure. Retry once after about 30 seconds before calling it an outage; a single blip is not one.
2. **Errors.** In the error tracker, look for new issues and spikes since the last check, grouped by issue with counts and first-seen time. Distinguish a new error from an old one that got louder.
3. **Platform state.** Did the latest deploy succeed, and when did it ship? Is the database healthy (connections, storage, slow queries)? Are background jobs and queues draining?
4. **Money paths.** Failed payments, webhook errors, and abandoned checkouts against their normal rate. Payment failures are always urgent.
5. **Funnel.** Signups, activations, and conversions for the period against the expectation. Compare to the same weekday, not just yesterday.
6. **Correlate.** If something is off, line it up against the last deploy time, config changes, and third-party status pages before guessing at a cause.
7. **Decide.** Alert now if the app is down, payments are failing, errors spiked after a deploy, or a core metric fell off a cliff. Otherwise log the result and stay quiet.
8. **Log** a dated line at the top of the app's health file.

## Output

For an alert, the shortest useful message:

```
App DOWN: app.example.com returning 502 since 14:05 UTC (2 checks, 30s apart).
Last deploy 13:58 (commit a1b2c3d). Error tracker: 340 x "DB connection refused".
Suggested next step: roll back to the previous deploy. Want me to?
```

For a routine check, one line in the log:

```
2026-03-04 15:00 · OK · 200 in 0.41s · 0 new errors · 23 signups (normal 18-30)
```

## Guardrails

- Read-only by default. Rolling back, restarting, scaling, or changing config needs explicit approval each time.
- Confirm before alerting. One failed request is not an outage; two checks a short interval apart is a reasonable bar.
- Writing to the log is not telling the user. A real problem needs a message.
- Don't paste customer personal data, tokens, or full stack traces with secrets into the alert.
- Say which checks you could not run and why (no access, no endpoint), instead of reporting healthy on partial data.

## Handoff

If there was user impact, write it up with `incident-postmortem`. Feed chronic metric misses into `launch-retro` and weekly numbers into `kpi-scorecard`.
