Validate and operate application /health, /metrics, and logging behavior. Use when adding metrics, changing observability auth, debugging production-like issues, or verifying deployment health.
How this skill is triggered — by the user, by Claude, or both
Slash command
/observability-metrics:observability-metricsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Adding a metric, a health probe, or touching `/metrics`/`/health` behaviour.
/metrics//health behaviour.security-basics)./metrics in the current environment.curl the /health and /metrics endpoints directly and read the status/body before assuming application-level issues./health and /metrics check results, including any auth requirement needed to access protected metrics in the current environment.| Endpoint | Purpose | Default auth |
|---|---|---|
GET /health | Liveness/readiness check | Public |
GET /metrics | Prometheus-format operational metrics | Optional — protect in production |
curl -i http://localhost:<PORT>/health
curl -i http://localhost:<PORT>/metrics
# If metrics auth is enabled:
curl -i -H "Authorization: Bearer $AUTH_TOKEN" http://localhost:<PORT>/metrics
/health → expect 200 OK/metrics → expect 200 OK with Prometheus text format (# HELP, # TYPE lines)/metrics exposes error rates, latency, queue depths, and operational state — treat it as sensitive.
/metrics in production (env var or reverse proxy ACL)./health can remain public — it must be reachable by load balancer health checks.prometheus.NewCounter, prometheus.NewHistogram).GET /metrics output.| Symptom | Fix |
|---|---|
/health returns non-200 | Check DB connectivity and app startup logs |
/metrics returns 401 | Pass Authorization: Bearer <token> or check METRICS_AUTH_ENABLED setting |
| Expected metric not in output | Confirm it was registered at startup; confirm the instrumented code path executed |
/metrics in production; treat it as sensitive operational data./health reachable by load balancers and free of internal-state leakage.references/examples.md when you need concrete user utterances, expected behaviour, or a model answer shape to mirror.references/edge-cases.md when the request is a near miss, partially matches this skill, or the first attempt fails.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub matt-riley/lucky-hat --plugin observability-metrics