k8s-observability

k8s-observability is a skill for Claude Code, Codex from yindia/rootcause. It costs 42 tokens per session (936 once invoked), scanned A, original, MIT.

A set of procedures for investigating Kubernetes workload health using metrics and logs from a configured monitoring provider. It is designed to work across different monitoring backends.

In plain words
What is it for?
It is for checking CPU and memory use, restart counts, workload errors, warning logs, error timelines, SLO settings, and incident windows.
Why use it?
It helps connect resource pressure, errors, warnings, restarts, and timing to the likely start of an incident.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/yindia/rootcause/k8s-observability
Any agent
npx skills add yindia/rootcause --skill k8s-observability
Clone the repo
git clone --depth 1 https://github.com/yindia/rootcause

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for k8s-observability

README.md
[![agentmods](https://agentmods.dev/badge/skills/yindia/rootcause/k8s-observability.svg)](https://agentmods.dev/skills/yindia/rootcause/k8s-observability)
Your own site
<a href="https://agentmods.dev/skills/yindia/rootcause/k8s-observability"><img src="https://agentmods.dev/badge/skills/yindia/rootcause/k8s-observability.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 936 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00936
Opus 5 $0.00021 $0.00468
Sonnet 5 $0.00008 $0.00187
Haiku 4.5 $0.00004 $0.00094

Measured 5d ago against content hash 429e2b288dfa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

k8s-observability scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/claude/k8s-observability/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: k8s-observability

Metrics and logs triage for Kubernetes incidents using RootCause's vendor-neutral observability.* tools.

How this is decoupled from any specific vendor

RootCause's observability tools delegate to a configured backend (see observability.gcp.* in config.yaml for the GCP Stackdriver backend; future observability.prometheus.* etc. will plug in as siblings). Tool inputs and outputs are the same regardless of which backend serves them. Skill rules below apply to all backends.

The backend identifier appears in every tool response under the "backend" field — cite it in postmortems so reviewers know which provider's data was consulted.

Purpose

Use this skill for:

  • triaging workload health with CPU / memory / restart-count metrics,
  • pulling errors and warnings for a workload,
  • finding the inflection point of an incident via bucketed error timelines,
  • correlating logs with a rootcause.incident_bundle event window,
  • discovering metric descriptors and SLO configuration in the backend.

Strict Tooling Contract

Use only these observability tool names:

  • observability.metrics.query
  • observability.metrics.workload
  • observability.metrics.list_descriptors
  • observability.metrics.slo_list
  • observability.logs.query
  • observability.logs.workload
  • observability.logs.error_timeline
  • observability.logs.correlated_with_bundle

Pair with these RootCause tools for evidence and correlation:

  • rootcause.incident_bundle (pass both namespace and workload so observability steps trigger automatically)
  • rootcause.change_timeline
  • rootcause.rca_generate

Triggers

Enable when user intent includes:

  • "diagnose workload using observability data",
  • "show me errors for service",
  • "what's the error rate trend",
  • "find the inflection point",
  • "correlate logs with the incident timeline",
  • "what SLOs do we have",
  • "list available metrics".

Workflow

  1. Confirm backend. If the active backend is GCP, confirm observability.gcp.project is set (or that GOOGLE_CLOUD_PROJECT env supplies it). Do not infer from kubeconfig — observability config is intentionally decoupled from cluster identity.
  2. Build evidence. Call rootcause.incident_bundle with namespace + workload. This auto-triggers observability.metrics.workload and observability.logs.workload when the observability toolset is enabled.
  3. Find the inflection point. Call observability.logs.error_timeline with the same namespace + workload. Use bucketSize: 1m for narrow incidents (≤15m), 5m for normal, 15m for multi-hour. For non-GKE clusters where logs come from a different monitored resource type, pass resourceType (e.g. generic_node).
  4. Pull correlated logs. Call observability.logs.correlated_with_bundle with the bundle from step 2 to get the exact log entries inside the bundle's event window.
  5. SLO context. If the team has SLOs, call observability.metrics.slo_list to surface goal / period. Live burn-rate is out of scope — use observability.metrics.query with a backend-native burn-rate query when needed.
  6. Discovery. When a metric type is unfamiliar, call observability.metrics.list_descriptors with the backend's filter syntax to enumerate available signals.

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 74 lines · 42 tokens per session scan A 429e2b288dfa

Subscribe to this mod's changes

k8s-observability is a skill published in the GitHub repository yindia/rootcause (42 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 936 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

linkerd-expert

Expert-level Linkerd service mesh management, traffic control, reliability, and production operations. Use when the user mentions service mesh, Kubernetes, microservices, mTLS, or observability, or when the task involves Linkerd Architecture, Mesh Injection, Traffic Management, or Reliability Features.

personamanagmentlayer/pcl · 61 tokens

bazel-k8s-expert

Expert knowledge for deploying Quarkus/Java applications to Kubernetes using Bazel. Covers rulesk8s, Helm, Kustomize, ConfigMaps, Secrets, and health probes.

kinhluan/rules-quarkus-skills · 45 tokens

kubernetes-review

Kubernetes & Cloud-Native Review: Reviews Kubernetes manifests, Helm charts, and cloud-native configurations for security, reliability, resource management, and best practices. Covers pods, deployments, services, ingress, RBAC, network policies, HPA, PDB, security contexts, and GitOps patterns. Use when the user…

camilooscargbaptista/cto-toolkit · 104 tokens

kubernetes-operator

Deploy and manage applications on Kubernetes. Covers deployments, services, ingress, HPA, secrets, and production-grade cluster configuration.

AtulPurohit/Antigravity-Awesome-Skills · 30 tokens

yandex-cloud

Read Yandex Cloud through its REST API. Applies to any question about VMs, metrics, logs, audit events, Kubernetes, managed databases, serverless, networking or any other Yandex Cloud resource. Never shell out to the yc CLI — it is not how this agent reaches Yandex Cloud and is usually not installed.

Tracer-Cloud/opensre · 71 tokens

upgrade-cluster

Use when upgrading or hardening an existing kube-hetzner cluster, including module version bumps, provider lockfile refreshes, k3s/RKE2 channel/version upgrades, immutable node replacement, system-upgrade-controller changes, or live cluster rollout validation.

mysticaltech/terraform-hcloud-kube-hetzner · 55 tokens