/tsh-platform-engineering:implementing-observabilityfrom TSH Platform Engineering
Implements metrics, logs, traces and alerting to support on-call rotations. Covers stack selection (Prometheus/Grafana, Loki, Tempo, Jaeger, CloudWatch, Datadog, OpenTelemetry), RED/USE metrics, SLOs with error budgets, symptom-based alerts with runbooks, and structured logging with trace correlation.
Ships in TSH Platform Engineering. 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.
The test of an observability setup is whether someone woken at 3am can tell what is broken and what to do about it. Dashboards nobody opens and alerts nobody can act on both fail that test while looking like coverage.
Read ${CLAUDE_PLUGIN_ROOT}/shared/discovering-infrastructure-context.md first —
section 5 detects the stack already in place. Extend the existing stack. A second
metrics system means two places to look during an incident, which is worse than one
imperfect place.
| Severity | Rule |
|---|---|
| MUST | Alert on user-visible symptoms, not on causes. A CPU threshold that pages nobody about a working service is how alert fatigue starts, and fatigue is what makes the real page get ignored. |
| MUST | Give every alert an owner, a severity, and a runbook link. An alert with no documented response is not actionable, and unactionable alerts get muted. |
| MUST | Propagate trace context across every service boundary. A trace that stops at the first hop cannot answer the question traces exist for. |
| MUST | Exclude PII, secrets, tokens and full request bodies from logs. Logs are widely readable, retained, and shipped to third parties. |
| MUST | Set a retention policy on every log stream and metric series. Unbounded retention is an unbounded bill and, for personal data, a compliance problem. |
| MUST | Emit structured logs with a consistent field set. Free-text logs cannot be queried when it matters. |
| NEVER | Define an SLO without an error budget, or set a target of 100%. A budget nobody can spend is a target nobody can make decisions against. |
| NEVER | Leave debug-level logging on in production as a default. |
| Reference | Load when | Covers |
|---|---|---|
| Choosing a stack | No stack exists, or one is being replaced or extended | Metrics, logging and tracing options by scenario; the Kubernetes OpenTelemetry topology |
| Metrics and SLOs | Deciding what to measure, or defining SLOs | RED and USE methods, SLI queries, SLO and error-budget definition |
| Alerting | Writing or tuning alert rules | Severity levels, alert quality rules, Prometheus rule template, runbook expectations |
| Structured logging | Implementing or fixing logging | JSON format, required fields, trace correlation, what must never be logged |
Read alerting.md before writing any alert rule — the symptom-versus-cause distinction is the whole difference between a useful rotation and an ignored one.
| Pillar | Answers | Common tools |
|---|---|---|
| Metrics | Is it broken, and how badly? | Prometheus, CloudWatch, Datadog, Grafana |
| Logs | What exactly happened in this one case? | Loki, ELK, CloudWatch Logs, Splunk |
| Traces | Where in the request path did it go wrong? | Tempo, Jaeger, X-Ray, Datadog APM |
They are complementary, and the value comes from correlation: an alert fires on a
metric, the trace shows which hop is slow, the logs for that trace_id say why. A
setup where the three cannot be joined by a shared identifier is three setups.
| Don't | Do |
|---|---|
| Alert on every threshold | Alert on user-impacting symptoms |
| Debug logging in production | Appropriate levels, raisable on demand |
| Unstructured messages | Structured JSON |
| Drop trace context at a boundary | Propagate it everywhere |
| Dashboards with fifty panels | One focused dashboard per service |
| Alerts without runbooks | Every alert links to its response |
| Keep logs forever | Retention driven by need and compliance |
| Measure only infrastructure | Measure what users experience |
What SKILL.md sets; muted values are Claude Code's defaults
Trigger on: adding monitoring, metrics, logging or tracing to a service or cluster, choosing between Prometheus, CloudWatch, Datadog or OpenTelemetry, defining SLOs, SLIs or error budgets, writing or tuning Prometheus alert rules, alert fatigue and noisy pages, building a Grafana dashboard, distributed tracing across services, structured or JSON logging and trace-ID propagation, log retention and cost, or an incident that showed the team could not see what happened.
Three short reads, in order
observability, monitoring, alerting, slo, structured-logging, distributed-tracing
7 skills in this plugin
/deploying-to-kubernetesConfigures Kubernetes workloads to a production standard: choosing between Deployment, StatefulSet, DaemonSet and Job, resource requests and limits and the QoS class they produce, readiness/liveness/startup probes, PodDisruptionBudgets and anti-affinity, HPA/KEDA/VPA scaling, Helm chart and Kustomize overlay structure, ingress, and non-root security contexts. Use when deploying an application to a cluster, writing or reviewing manifests or charts, or adding scaling and resilience to an existing workload./designing-multi-cloud-architectureSelects cloud services and a multi-cloud topology using an explicit decision framework: which of the six multi-cloud patterns fits the actual driver, how AWS, Azure and GCP services map onto each other, where a cloud-agnostic abstraction pays for itself and where it costs more than lock-in, and how to phase a migration. Use when choosing cloud services for a workload, planning a cross-cloud or DR topology, or evaluating a move between providers./implementing-ci-cd-pipelinesDesigns and implements CI/CD pipelines on GitHub Actions, GitLab CI, Bitbucket Pipelines, Azure Pipelines or Jenkins: stage structure and caching, deployment strategy (rolling, blue-green, canary), OIDC federation for cloud credentials instead of stored keys, monorepo affected-only builds, and the plan-artifact and approval gates an infrastructure-as-code pipeline requires. Use when creating or changing a pipeline, wiring deployment or cloud authentication, or reviewing pipeline changes./implementing-terraform-modulesWrites and reviews reusable Terraform modules for AWS, Azure and GCP — the module interface that outlives the resources inside it: the standard file layout, input-variable validation, outputs, provider pinning, remote state with locking, the Terraform-versus-Terragrunt decision, and Terratest coverage. Use when authoring a module that more than one caller or service will instantiate with its own inputs, standardizing provisioning across environments, or reviewing a Terraform pull request — this is the module-structure layer, loaded alongside the cloud provider's own resource patterns, not instead of them./managing-secretsChooses and implements a secrets management approach for cloud and Kubernetes workloads: cloud-native secret stores versus Vault versus Sealed Secrets or External Secrets, OIDC federation for CI/CD instead of long-lived keys, rotation policy, and audit logging. Use when storing credentials, wiring pipeline authentication to a cloud provider, or auditing how a project handles secrets./optimizing-cloud-costThe cloud-agnostic cost framework TSH provisions against: matching a workload to a pricing model (reserved, committed-use, spot, serverless), storage tiering with lifecycle policies, the mandatory cost-allocation tag set and how to enforce it, right-sizing method, and the cost-impact estimate every infrastructure proposal carries. Use when sizing new infrastructure, estimating the cost of a change, or setting up tagging and budget governance — not for auditing a specific account, which is the cloud-specific skill's job.npx claudepluginhub thesoftwarehouse/agentic-collections --plugin tsh-platform-engineeringOther plugins' skills for the same job