agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/observability-setup/SKILL.md

observability-setup

Skill1 starsChanged 23 days agoMITView on GitHub

Sets up error tracking, structured logging, metrics/tracing, uptime checks and alerts for the configured stack (Sentry, OpenTelemetry, Datadog or host-native), plus an incident runbook. Use before launch, when production errors are invisible, or when alerts are noisy.

  • Reads credentials

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use compliance-audit, accessibility-audit and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MichaelRyanWoodSkill

    compliance-audit

    Milestone-level GDPR and ADA/WCAG 2.1 AA compliance audit. Re-runs the axe-core scan, cross-checks plans/gdpr-data-audit.md against current code, reviews all open gaps, and produces an updated status report. Run once per milestone before marking a milestone complete.

    Also in 3 projects that use this

  • GitHubSkill

    accessibility-audit

    Audits actual components and routes against applicable WCAG 2.2 A/AA criteria using consumer-owned design-system evidence and repository tools. Use when asked for an accessibility audit, a11y check, keyboard or focus review, contrast check, or screen-reader verification.

    Also in 3 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 4 projects that use this

  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If stack.observability is unset, ask: Sentry (Recommended: errors + performance, client and server), OpenTelemetry + a backend of choice …

    line 29
  2. Distinctive:

    Ask the user to confirm thresholds and the alert channel (email, Slack, phone).

    line 47
  3. Distinctive:

    Ask the user to trigger a test error in a non-production environment and confirm it arrives with a readable stack trace and no PII.

    line 64

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Observability Setup

Plans and implements observability through observability-engineer, and writes the runbook to docs/architecture/runbook.md (template .claude/docs/templates/runbook.md). Code changes follow the normal ask-before-writing flow. It never creates accounts, API keys or paid monitors itself: it lists what the user must create and the env var names to put in .env.example.

Inputs

  • project.yaml: stack.observability, stack.hosting, stack.frontend, stack.backend, privacy.regions
  • docs/architecture/architecture.md (services, critical dependencies)
  • docs/product/prd.md critical journeys

Phases

Phase 1: Choose tools

If stack.observability is unset, ask: Sentry (Recommended: errors + performance, client and server), OpenTelemetry + a backend of choice (Grafana, Honeycomb, Axiom), Datadog, Host-native only (Vercel/Cloudflare/Fly logs).

Phase 2: Plan

Spawn observability-engineer with the architecture and stack. The plan covers:

AreaSetup
ErrorsSDK on client and server; release + environment tags; source maps uploaded in CI (not served publicly); PII scrubbing (sendDefaultPii: false, beforeSend filters)
LogsStructured JSON (pino / structlog / slog / Monolog); request ID propagated; levels; no secrets, tokens or bodies with PII
Traces/metricsOTel or SDK performance on key routes; RED metrics (rate, errors, duration) for critical endpoints
Health/api/health (liveness) and a readiness check that verifies DB/cache without leaking internals
UptimeSynthetic checks on home, login, the core journey's API and the payment webhook endpoint
AlertsOn symptoms users feel: error-rate spike, p95 latency over budget, uptime failure, payment webhook failures, queue backlog. Each with threshold rationale, owner (the user) and a runbook link

Ask the user to confirm thresholds and the alert channel (email, Slack, phone).

Phase 3: Implement

Delegate to observability-engineer (and the stack specialist for framework hooks, e.g. Next.js instrumentation, Nuxt/Nitro plugin, Django middleware). Show the file list and ask before writing. Add the required env var names to .env.example.

Phase 4: Runbook

Draft docs/architecture/runbook.md: how to read the dashboards, the top failure modes and their first response, rollback steps per host, who to contact (vendors' status pages), and the /incident entry point. Ask before writing.

Phase 5: Verify

Ask the user to trigger a test error in a non-production environment and confirm it arrives with a readable stack trace and no PII.

Output

Code changes (approved), .env.example additions, docs/architecture/runbook.md.

Next step

/launch-checklist, or /incident when something breaks.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.