observability-baseline

Featured

Scaffold-time observability so a shipped product is not blind in prod from day one — error capture (Sentry), request-id structured logging, and /healthz + /readyz endpoints. stack-baseline pins Sentry but nothing wires it; this is the wiring. Loaded by app-scaffolder (bake into the scaffold), infra-provisioner (prod env + probes), and consumed by l3-support (traces) and devops (deploy gate).

Code & Development 92 stars 13 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
66
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# observability-baseline stack-baseline names Sentry and wires it nowhere — so every shipped product's first prod incident is invisible, and l3-support triages blind. This skill makes three things exist at scaffold time. Defaults baked in; no founder question. ## 1. Error capture (Sentry) - `instrumentation.ts` (Next.js) / SDK init at process start; DSN from `SENTRY_DSN` env (never hardcoded). - CI uploads source maps on release so stack traces are readable (release = git sha). - Capture unhandled rejections + a global error boundary on the client. ## 2. Request-id structured logging - A logger that emits **JSON** (not `console.log` prose) with a per-request `request_id` (generate at the edge, propagate via header/async-local-storage). - Levels: error / warn / info / debug — diagnostics go to **stderr**, never mixed into user-facing stdout. (Same discipline as the CLI logging gap, DEEPEN d94.) - One log line per request with: request_id, method, path, status, latency_ms. ## 3. Health endpoints - `GET /healthz` — liveness (process up). `GET /readyz` — readiness (deps reachable: db, cache). Cheap, unauthenticated, no PII. - These are what infra-provisioner probes and what a load balancer checks. ## Wiring (a skill is shelfware unless a consumer loads it) | Consumer | What it does with this skill | |----------|------------------------------| | **app-scaffolder** | bakes `instrumentation.ts` + the JSON logger + `/healthz`+`/readyz` into the generated app; adds `S...

Details

Author
avelikiy
Repository
avelikiy/great_cto
Created
5 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

craft-observability

The Craftsman standard for production observability — error tracking (Sentry), metrics & dashboards (Grafana), structured logging, tracing, SLOs, and alerting. Use this WHENEVER the work touches observability: adding or reviewing Sentry, wiring Grafana/Prometheus/OpenTelemetry, setting up structured logs, defining alerts or SLOs, instrumenting a service, or debugging "we have no visibility into X". Trigger even when the user only says "add monitoring", "why can't we see errors", "set up dashboards", or "make this observable" without naming a tool. Deploy, runtime, and CI production-readiness → craft-infra; whole-project readiness → craft-audit.

1 Updated 4 days ago
gul-labs
Code & Development Listed

craft-observability

The Craftsman standard for production observability — error tracking (Sentry), metrics & dashboards (Grafana), structured logging, tracing, SLOs, and alerting. Use this WHENEVER the work touches observability: adding or reviewing Sentry, wiring Grafana/Prometheus/OpenTelemetry, setting up structured logs, defining alerts or SLOs, instrumenting a service, or debugging "we have no visibility into X". Trigger even when the user only says "add monitoring", "why can't we see errors", "set up dashboards", or "make this observable" without naming a tool. Deploy, runtime, and CI production-readiness → craft-infra; whole-project readiness → craft-audit.

1 Updated 4 days ago
atifgul99
AI & Automation Listed

observability

Production observability done right — structured logs, distributed traces, metrics, alerting, SLO/SLI. Use when adding logging to a new service, designing dashboards, choosing between OpenTelemetry / Datadog / Grafana stack, defining SLOs for a feature, writing alert rules, or untangling a noisy alert channel. Stack-agnostic; recipes target OpenTelemetry as the canonical instrumentation, Prometheus + Grafana / Datadog as the canonical backends. Pairs with performance (perf budgets), security-web (audit logs), and incident-response (alert → runbook).

6 Updated yesterday
kouroshez