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

Written for no agent in particular: nothing here depends on one.

Good fit It is for checking CPU and memory use, restart counts, workload errors, warning logs, error timelines, SLO settings, and incident windows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yindia/rootcause/k8s-observability
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for k8s-observability

Your own site · 80×15
<a href="https://agentmods.dev/skills/yindia/rootcause/k8s-observability"><img src="https://agentmods.dev/badge/skills/yindia/rootcause/k8s-observability.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00017 $0.00374
Sonnet 5.5 $0.00008 $0.00187
Haiku 4.5 $0.00004 $0.00094

Measured 3mo ago against content hash 429e2b288dfa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 6mo ago), licensed MIT. It adds 42 tokens to every session and 936 once invoked, about $0.0002 per session on Opus 5.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

k8s-observability compared with skills from other repositories

k8s-observability next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
k8s-observabilityyindia/rootcauseSkill426mo agoMITA42Claude Code, Codex
service-meshwilliamzujkowski/standardsSkill223mo agoMITA36Claude Code, Codex
linkerd-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A61Claude Code
bazel-k8s-expertkinhluan/rules-quarkus-skillsSkill35mo agoMITA45Claude Code, Codex
kubernetes-reviewcamilooscargbaptista/cto-toolkitSkill98mo agoMITA104Claude Code
kubernetes-operatorAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA30Claude Code, Codex
securing-helm-chart-deploymentsxalgorix/xalgorixSkill1.5ktodayApache-2.0A34Claude Code, Codex