/harness:observability-monitoringfrom Harness (обвязка)
Designs, audits, and troubleshoots production monitoring and observability using USE/RED, SLI/SLO, error budgets, and actionable alerting.
Ships in Harness (обвязка). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill to turn vague "is it working?" questions into evidence-backed monitoring, alerting, and incident workflows. Start from user or business impact, then move down through the system layers and choose the signal that can prove the current hypothesis.
Do not treat a green dashboard as proof of health. A monitoring claim is complete only when it names:
Keep code review, live runtime proof, UI/render proof, and release readiness as separate verdicts.
Investigation is read-only by default. A restart, alert suppression, metric-schema/label change, sampling or retention change, or vendor reconfiguration is a production mutation: involve the responsible owner or incident authority, preserve the relevant evidence first, capture the exact config/command diff, state the rollback condition, and verify the user probe plus SLI after the change.
Before changing a monitor, alert, host, or service:
AGENTS.md, relevant rules, runbooks, and deployment docs.For infrastructure fixes, document the traffic path (DNS, proxy, tunnel, ingress, service, backend) before touching a surprising value such as 127.0.0.1, a non-default port, or a disabled check.
Write the protected outcome in concrete terms:
Add at least one black-box or synthetic check for the user-facing path. Add real-user telemetry when the experience can vary by browser, geography, device, or network. Technical resource health is not a substitute for a user or business signal.
Inspect the layers from bottom to top and state which ones are in scope:
Do not stop at the infrastructure layer when the business outcome is failing. A system with green CPU and memory can still have a broken payment, form, queue consumer, or model job.
Use the signal that answers the question instead of collecting everything indiscriminately:
| Question | Primary signal | Practical method |
|---|---|---|
| Is a resource busy, queued, or failing? | Metrics | USE: utilization, saturation, errors |
| Is a service serving users correctly? | Metrics | RED: rate, errors, duration |
| What happened at a specific time? | Structured logs | Search by timestamp, service, severity, request/trace ID |
| Where did a distributed request slow or fail? | Traces | Follow the trace across services and spans |
| Why is code or a process consuming resources? | Profiles | Inspect sampled stacks, CPU, memory, locks, or I/O |
| Do users actually succeed? | Synthetic/RUM/business probes | Run the workflow and inspect the domain result |
Metrics answer aggregate how much/how often. Logs answer what happened. Traces answer where in the path. Profiles answer which code or process consumed the resource. Correlate them with stable resource identity, timestamps, and trace/request context.
Treat every unique metric-name plus label set as a time series. Before adding a label, estimate its possible values and lifetime.
If a query needs a unique ID to be useful, that ID belongs in a trace or structured log field, not in a metric label.
Use the terms precisely:
Choose the SLI from the user-facing outcome, not from whichever metric is easiest to collect. Define the valid-request population, exclusions, time window, aggregation, and owner. Treat an SLO as a control loop: remaining budget informs release pace, risk, testing, and reliability work.
Alert on symptoms that indicate user or service pain. Use dashboards and drill-downs to investigate causes.
Every paging alert must include:
If no immediate action exists, make it a dashboard annotation, ticket, or recording rule instead of a page. Use a pending duration (for) to suppress short blips. If using hysteresis, define separate fire and clear thresholds; if using multi-window evaluation, define each window and its condition. Do not confuse either control with Slack/chat routing. Treat "more than two incidents per shift" as a review heuristic, not a universal law: frequent pages mean the system or alert policy needs repair.
Prefer multi-window or burn-rate alerts for SLOs when the backend supports them. A burn rate near 1 spends the budget at the planned rate; a materially higher rate requires faster response. Verify the math against the actual SLO window and alert implementation.
Adapt metric and label names to the live schema; these are patterns, not copy-paste production queries:
# RED error ratio for one service over five minutes.
sum(rate(http_requests_total{service="checkout",code=~"5.."}[5m]))
/
sum(rate(http_requests_total{service="checkout"}[5m]))
# Aggregatable fleet-wide p95 from a histogram.
histogram_quantile(0.95,
sum by (le, service) (
rate(http_request_duration_seconds_bucket{service="checkout"}[5m])
)
)
Use a synthetic/domain probe that asserts the real outcome, not only HTTP reachability. Prefer a read-only endpoint or a sandbox/test tenant. If a write path is unavoidable, require a dry-run or idempotency key, a bounded fixture, explicit cleanup, and an owner-approved change window: submit safe test request -> assert expected status and domain result/job ID -> record latency and trace ID -> clean up. Never send an arbitrary representative request into production.
A burn rate is observed error ratio / allowed error ratio, where allowed error ratio = 1 - SLO. Worked example: for an SLO of 99.9% (allowed = 0.001), a 5-minute observed error ratio of 1.0% (0.010) gives burn rate 10; if the local paging policy is the illustrative >=10 for 5m AND >=5 for 1h, page, otherwise route it according to the lower-severity policy. The query pattern is:
(
sum(rate(http_request_errors_total{service="checkout"}[5m]))
/
sum(rate(http_requests_total{service="checkout"}[5m]))
) / 0.001
The thresholds and windows are examples only; derive and test them from the real SLO, traffic population, exclusions, and paging budget.
For a live incident, follow this sequence and keep a short timeline. Apply the change-control boundary above before any mutation:
Do not restart or reconfigure a service merely because a check is red. First establish whether the check is stale, misrouted, a false positive, or a real symptom, and preserve the evidence needed to explain the decision.
After recovery:
Use the actual stack discovered in the repository/runtime. Common roles from the source video are:
Historical names in the video (ping, syslog, SNMP, MRTG/RRD, Nagios, and Cacti; 00:55-03:17) explain the evolution of monitoring and are not default deployment recommendations.
These are roles, not defaults. Do not install, replace, or reconfigure a vendor component without checking the live architecture, documentation, compatibility, retention, cost, authorization, and rollback path.
Use this shape for every new page:
Name:
User symptom:
SLI/query:
Trigger and duration:
Scope labels:
Severity/owner:
Dashboard and raw query:
First safe action:
Rollback condition:
Verification probe:
Escalation:
Known false positives:
Last tested:
references/source-notes.md.| Symptom | Likely cause | Fix |
|---|---|---|
| Dashboard is green but users fail | Missing black-box/business SLI, wrong route, or stale data source | Run a fresh user probe, verify timestamps/labels, add the missing outcome signal |
| One deploy creates a huge series spike | High-cardinality label or unbounded route/ID | Remove the label from metrics, normalize routes, move detail to logs/traces, cap SDK cardinality |
| Alert fires but nobody acts | Alert is a cause guess, too sensitive, unowned, or lacks a runbook | Alert on a user symptom, add owner/action/query/runbook, add for; if using hysteresis define separate fire/clear thresholds, and if using multi-window define each condition; test delivery |
| Error rate rises but cause is unclear | Logs are unstructured or traces are not correlated | Add structured fields and trace IDs, sample a failing trace, inspect dependency spans |
| Service is slow but RED looks normal | Low traffic, bad aggregation, or resource contention outside the app | Check synthetic latency, USE for host/queue/storage, tail percentiles, and profiles |
| Dashboard is blank or stale | Target/scrape/exporter/collector/backend failure, retention gap, or clock skew | Check last-sample time, target and collector health, dropped/ingestion counters, retention, and time synchronization; do not interpret blank as zero |
| A query shows zero but the system may be uninstrumented | The series is absent, filtered out, or genuinely zero | Test absent-series semantics, inspect raw labels and last sample, and add an explicit freshness/telemetry-health check |
| Trace is incomplete | Sampling, context propagation, collector drops, or backend retention | Check trace ID propagation, sampling decision, collector drop counters, backend ingestion, and clock synchronization |
| Page storm during one incident | No grouping/deduplication or too many low-value alerts | Group by incident/service, keep one page for the symptom, demote diagnostic signals |
| Burn-rate alert disagrees with the dashboard | Different SLI population, window, exclusions, or recording rule | Reconcile the numerator/denominator, window, and query; test against known scenarios |
| Restart appears to fix it but it returns | Mitigation hid a systemic cause or destroyed evidence | Capture logs/metrics first, record the restart, identify the recurring trigger, add prevention |
The reusable concepts in this skill were extracted from the supplied video and cross-checked against current primary documentation. See references/source-notes.md for the source URL, timestamp map, caption corrections, and official references.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anastasiyaw/codex-claude-code-config --plugin harness60 skills in this plugin
/agent-harness-designDesigning agent harnesses and tool systems — risk taxonomy for tools, permission decisions, draft/commit pattern, structured tool results, agent budgets (10 types), context trust labels against prompt injection, plan-artifact, approval records, observability and traces, evals (13 categories), event model, streaming buffering, 3rd-party skill install checklist, agentic RAG, self-improving SOP loops, model policy, reasoning effort, and Programmatic Tool Calling adoption gates. Use when building a new Agent SDK app, custom orchestrator, MCP server, Cloudflare Worker with tool calls, agentic RAG pipeline, model router, or model-tier policy; when designing tools and permissions; when writing an agent loop; or when you need trust labels for external content. Do NOT use for improving or auditing an already-built harness (use harness-audit / harness-design instead), nor for ordinary Claude Code sessions where the harness is already given./agents-best-practicesUse when designing, auditing, refactoring, or explaining an agentic harness for any domain, especially when work must continue from a measured gap to verified completion. Covers provider-neutral loops, tools, permissions, environment adaptation, planning, durable workflow state, context, skills, observability, evals, and safety for OpenAI, Anthropic, and compatible APIs. Not for implementing an ordinary app feature or reviewing one concrete diff./architecture-firstDecide module boundaries before the first file: what modules exist, which way dependencies point, who owns state, and what each module may know. Use when starting a project, service, site, API, or subsystem; adding a feature with no obvious home; resolving a circular import or inverted framework dependency; or writing an ARCHITECTURE.md or ADR. Do not use for a one-file script, throwaway experiment, bug fix inside an established seam, naming/function-shape cleanup (use code-complexity), an existing oversized module (use refactoring-safely), or capacity/data scaling decisions (use system-and-data-design). This defines earned boundaries; it does not license speculative layers.
/architecture-qualityKeep web applications, APIs and services readable as they grow: choose feature or domain seams, assign state ownership, enforce dependency direction, keep adapters thin, and verify file shape. Use when starting or extending a web app, backend, frontend, API or multi-page product; when a change makes a module hard to read; when architecture review finds a god file, cross-feature imports, a circular dependency or a framework-heavy domain. Load architecture-first first for a new system, and refactoring-safely for an existing oversized module. Do not use for a one-file script, throwaway spike or a purely local naming change.
/article-structure-reviewПроверить структуру технической статьи после черновика: задача читателя, жанр,
опора значимых утверждений на доказательства и честные ограничения.
Use after the first draft, before publication. Исправлять структуру, когда это
входит в запрос; не создавать обязательный конвейер из других навыков.
Для локальной языковой редактуры — humanize-english или humanize-russian.
/bug-reproducerFind likely software bugs in a codebase, rank concrete bug candidates, and prove or reject them with focused regression tests before proposing a fix. Also turn bug reports, stack traces, screenshots, failing behavior, support tickets, and regressions into minimal reproducible cases with red-to-green evidence. Use when Codex needs to hunt for unknown bugs, audit code for correctness defects, test suspicious edge cases, reproduce a reported failure, isolate root cause, or verify that an approved fix works without regressions. Honor explicit user authority for the requested fix; use approval gates only for authority that the request did not already grant or when scope materially changes. Do NOT use for ordinary implementation where no bug investigation or reproduction is needed.Other plugins' skills for the same job