| name | observability-and-instrumentation |
| description | Add or review observability. Use when adding logs, metrics, traces, audit events, health checks, alerts, or production diagnostics for features, background jobs, APIs, tools, and integrations. |
Observability and Instrumentation
Skill Interface
- Name: observability-and-instrumentation.
- Description: Add or review observability through logs, metrics, traces, audit events, health checks, alerts, and production diagnostics for features, background jobs, APIs, tools, and integrations.
- Parameters: Feature or workflow being observed, operator questions, success and failure paths, correlation identifiers, sensitive fields, telemetry sinks, alert thresholds, and verification method.
- Instructions: Use this skill when adding or assessing production signals. Define the questions operators need answered, choose bounded signals, redact sensitive data, include correlation, and verify emitted telemetry in the expected sink.
Instrument the questions operators need to answer. Do not add noisy logs as a
substitute for clear signals.
Process
- Define what "working" means for the feature.
- Identify the questions needed during an incident.
- Choose the signal: log, metric, trace, audit event, health check, or alert.
- Add correlation identifiers at request, job, tool, or workflow boundaries.
- Capture success, failure, timeout, cancellation, retry, and degraded paths.
- Redact sensitive values.
- Verify signals appear in the expected local or staging sink.
Signal Guidance
- Logs: explain discrete events and decisions.
- Metrics: track rates, latency, saturation, errors, and business counters.
- Traces: connect work across services, tools, providers, queues, and retries.
- Audit events: record security-sensitive actions with actor, target, and
outcome.
- Health checks: prove dependency readiness without exposing internals.
Redaction Rules
Never log credentials, tokens, passwords, authorization headers, private keys,
session identifiers, full request bodies, or personal data unless a policy
explicitly allows a redacted field.
Alert Rules
- Alert on user impact, data risk, security risk, or exhausted capacity.
- Avoid alerts that require no action.
- Include runbook context when possible.
Verification
Confirm:
- Expected success and failure signals are emitted.
- Identifiers allow one request or workflow to be followed.
- Sensitive data is not present.
- Metric names and labels are bounded and stable.