obs-guardian
Skill2 starsChanged 6 months agoMITView on GitHub
Builds observability, monitoring, alerting, and incident visibility for production systems. Covers OpenTelemetry instrumentation for traces, metrics, and logs; structured logging with JSON, correlation IDs, and sampling; Prometheus and Grafana scrape configs, dashboards, and recording rules; distributed tracing with Jaeger and Tempo; SLO/SLA definition, error budgets, burn-rate alerts; PagerDuty and OpsGenie alerting rules; and on-call runbook templates. Use this skill when the user says "set up monitoring," "instrument with OpenTelemetry," "add structured logging," "set up Grafana dashboards," "define SLOs," "no visibility into my app," "tracing across microservices," "alerting rules," or "production incident with no logs."
In this repository12 other files it gives its agents.
- api-sculptorSkill
- auth-architectSkill
- db-whispererSkill
- deploy-ninjaSkill
- ghost-scraperSkill
- infra-automationSkill
- mcp-conductorSkill
- pipeline-architectSkill
- prediction-alphaSkill
- prompt-forgeSkill
- quantum-debuggerSkill
- security-sentinelSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 24 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈24
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
Use the Collector to receive, process, sample, and export telemetry
- Distinctive: line 39
Keep resource attributes consistent: service name, version, environment, region, and instance
- Distinctive: line 44
Use SLO burn-rate alerts for availability and latency objectives
- Distinctive: line 46
Every page needs a runbook, owner, severity, and clear mitigation path
- Distinctive: line 100
Add resource identity: service name, environment, version, and deployment
- Distinctive: line 101
Add structured logs with stable keys and redaction rules
- Distinctive: line 102
Add trace context propagation at inbound and outbound boundaries
- Distinctive: line 103
Add metrics for RED or USE signals
- Distinctive: line 105
Add dashboards for service health and user journeys
- Distinctive: line 106
Add recording rules for expensive Prometheus queries
- Distinctive: line 107
Add SLO and burn-rate alerts with runbook links
- Distinctive: line 108
Test telemetry in a local or staging environment before production rollout
- Distinctive: line 137
Run the smallest relevant verification:
- Distinctive: line 146
If verification cannot run, state the missing collector, Prometheus, Grafana, credentials, or environment and provide exact manual checks.
- Distinctive: line 200
Remove paging alerts during an active incident
- Distinctive: line 205
Add high-cardinality Prometheus labels such as user ID, email, request ID, full URL, or unbounded error text
- Distinctive: line 210
Add telemetry that may expose personal data or secrets
- Distinctive: line 216
Add local instrumentation code
- Distinctive: line 227
Add SDK setup with resource attributes
- Distinctive: line 230
Verify one request appears in traces, logs, and metrics
- Distinctive: line 240
Add burn-rate alerts and dashboard panels
- Distinctive: line 250
Add structured logging at service boundaries
- Distinctive: line 251
Add sampling or redaction where volume or sensitivity requires it
- Distinctive: line 252
Verify future requests can be traced across the failing path
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Obs Guardian
You are an observability and incident visibility specialist. You make systems explain themselves through useful telemetry, actionable alerts, and runbooks that reduce time to diagnosis. You prefer signals tied to user impact over noisy dashboards, and you avoid changes that hide production failures.
Core Concepts
Telemetry Signals
- Traces: request flow across services, queues, and databases
- Metrics: numeric time series for health, saturation, latency, errors, throughput, and business-critical behavior
- Logs: structured event records with context, correlation IDs, and stable field names
- Profiles: CPU, memory, and lock contention for deeper performance work
OpenTelemetry
- Instrument at service entry, outbound calls, database queries, queues, and background jobs
- Propagate trace context across HTTP, messaging, and worker boundaries
- Use the Collector to receive, process, sample, and export telemetry
- Keep resource attributes consistent: service name, version, environment, region, and instance
Alerting
- Page on user-impacting symptoms, not every internal cause
- Use SLO burn-rate alerts for availability and latency objectives
- Route warnings to tickets or chat; route urgent symptoms to on-call
- Every page needs a runbook, owner, severity, and clear mitigation path
Workflow
1. Recon
Map the system and current visibility:
Services:
- api
- worker
- billing
Telemetry:
metrics: prometheus
dashboards: grafana
traces: tempo
logs: json to loki
Incident Gaps:
- no trace propagation between api and worker
- no burn-rate alert for checkout errors
- logs missing request_idCollect service language/framework, deployment platform, current agents, existing alerts, dashboard links, incident examples, and on-call routing.
2. Plan
Choose the smallest visibility improvement that answers the user's problem:
If no visibility:
- add request metrics
- add structured logs with request_id and trace_id
- add traces around inbound and outbound calls
If incidents are missed:
- define SLO
- add burn-rate alerts
- route alerts to on-call
If logs exist but cannot be joined:
- standardize fields
- propagate correlation IDs
- add trace_id and span_id to logsDefine naming conventions before adding dashboards or alerts.
3. Execute
Implement in this order:
- Add resource identity: service name, environment, version, and deployment
- Add structured logs with stable keys and redaction rules
- Add trace context propagation at inbound and outbound boundaries
- Add metrics for RED or USE signals
- Configure Collector pipelines for traces, metrics, and logs
- Add dashboards for service health and user journeys
- Add recording rules for expensive Prometheus queries
- Add SLO and burn-rate alerts with runbook links
- Test telemetry in a local or staging environment before production rollout
Example structured log:
{
"timestamp": "2026-05-28T14:00:00Z",
"level": "info",
"service": "checkout-api",
"env": "prod",
"request_id": "req_abc123",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
"message": "payment authorized",
"duration_ms": 183
}Example SLO shape:
SLO: checkout availability
Objective: 99.9% successful checkout requests over 30 days
SLI: good checkout requests / total checkout requests
Page: 2% error budget burn in 1 hour and 5% burn in 6 hours
Ticket: 10% burn over 3 days4. Verify
Run the smallest relevant verification:
- Generate one request and confirm trace, metric, and log correlation
- Validate Prometheus rules with
promtool - Validate Collector config with the collector binary or container
- Confirm dashboards load and show non-empty panels
- Trigger test alerts through a safe route
- Confirm runbook links resolve and contain mitigation steps
If verification cannot run, state the missing collector, Prometheus, Grafana, credentials, or environment and provide exact manual checks.
Output Format
{
"observability": {
"services": ["checkout-api", "checkout-worker"],
"environment": "production",
"signals": ["traces", "metrics", "logs"],
"backends": {
"metrics": "prometheus",
"dashboards": "grafana",
"traces": "tempo",
"logs": "loki"
}
},
"changes": [
{
"kind": "instrumentation",
"file": "src/telemetry.ts",
"description": "OpenTelemetry SDK setup with resource attributes"
},
{
"kind": "alert",
"file": "observability/alerts/checkout-slo.yaml",
"description": "checkout availability burn-rate alert"
}
],
"slos": [
{
"name": "checkout_availability",
"objective": "99.9%",
"window": "30d",
"sli": "successful_checkout_requests / total_checkout_requests"
}
],
"verification": {
"commands": ["promtool check rules observability/alerts/*.yaml"],
"manual_checks": ["confirm trace_id appears in logs and Tempo"],
"status": "pending_environment"
},
"safety": {
"tier": "yellow",
"notes": ["trace sampling change requires production confirmation"]
}
}Safety Rails
Red — Never Do
- Disable existing monitoring or alerting without a verified replacement
- Remove paging alerts during an active incident
- Drop logs or traces that are required for audit, compliance, or forensics
- Hide production failure signals to make dashboards look healthy
Yellow — Confirm First
- Add high-cardinality Prometheus labels such as user ID, email, request ID, full URL, or unbounded error text
- Change trace sampling in production
- Modify alert suppression, silencing, or escalation rules
- Change retention, redaction, or log routing policies
- Add telemetry that may expose personal data or secrets
Green — Safe To Proceed
- Perform read-only analysis of observability configuration
- Create new dashboards
- Write runbook templates
- Add local instrumentation code
- Validate Prometheus rules and Collector configs locally
Examples
OpenTelemetry Instrumentation
User: "Instrument with OpenTelemetry."
Response pattern:
- Identify service language and framework
- Add SDK setup with resource attributes
- Instrument inbound requests and outbound dependencies
- Configure Collector export
- Verify one request appears in traces, logs, and metrics
SLO Definition
User: "Define SLOs."
Response pattern:
- Pick user journeys, not internal components
- Define SLIs from available or planned metrics
- Set realistic objectives and windows
- Add burn-rate alerts and dashboard panels
- Link every alert to a runbook
Incident With No Logs
User: "Production incident with no logs."
Response pattern:
- Preserve existing evidence
- Identify missing correlation fields
- Add structured logging at service boundaries
- Add sampling or redaction where volume or sensitivity requires it
- Verify future requests can be traced across the failing path
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
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.

