kubernetes-diagnostics

kubernetes-diagnostics is a skill for Claude Code, Codex from causaai/causa-backend. It costs 32 tokens per session (1,235 once invoked), scanned A, original, Apache-2.0.

A Kubernetes diagnostic guide for reading the status, event history, and logs of running containers. Kubernetes is a system that runs and manages containers across machines.

In plain words
What is it for?
It is for investigating container problems such as out-of-memory kills, repeated startup failures, and unhealthy services.
Why use it?
It turns Kubernetes error details into likely explanations for crashes, restarts, failed health checks, and memory-limit kills.

Skill for Claude CodeCodex

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

Good fit It is for investigating container problems such as out-of-memory kills, repeated startup failures, and unhealthy services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/causaai/causa-backend/kubernetes-diagnostics
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 causaai/causa-backend --skill kubernetes-diagnostics
Clone the repo
git clone --depth 1 https://github.com/causaai/causa-backend

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 kubernetes-diagnostics

README.md
[![agentmods](https://agentmods.dev/badge/skills/causaai/causa-backend/kubernetes-diagnostics/github.svg)](https://agentmods.dev/skills/causaai/causa-backend/kubernetes-diagnostics)
Your own site
<a href="https://agentmods.dev/skills/causaai/causa-backend/kubernetes-diagnostics"><img src="https://agentmods.dev/badge/skills/causaai/causa-backend/kubernetes-diagnostics/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 kubernetes-diagnostics

Your own site · 80×15
<a href="https://agentmods.dev/skills/causaai/causa-backend/kubernetes-diagnostics"><img src="https://agentmods.dev/badge/skills/causaai/causa-backend/kubernetes-diagnostics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,235 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.00032 $0.01235
Opus 5.5 $0.00013 $0.00494
Sonnet 5.5 $0.00006 $0.00247
Haiku 4.5 $0.00003 $0.00123

Measured 2mo ago against content hash e6836a9e6652, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kubernetes-diagnostics 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 2mo 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.

src/main/resources/skills/kubernetes-diagnostics/SKILL.md · 109 lines

How it starts

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

Kubernetes Diagnostics Skill

Interprets the Kubernetes context already collected by Causa. The context contains three sections from the MCP server — POD STATUS, POD EVENTS, and POD LOGS.

What the Context Contains

POD STATUS fields

  • State — container state: Running, Waiting, or Terminated
  • Started At — timestamp the container last started
  • Restart Count — number of times the container has restarted
  • Resource Limits — CPU and Memory hard limits set on the container
  • Resource Requests — CPU and Memory requests set on the container

POD EVENTS format

Each event is formatted as: [Type] timestamp: Reason - Message

  • Type is Normal or Warning
  • Reason is the short event keyword (e.g. OOMKilling, BackOff, Unhealthy)
  • Message is the human-readable detail — the exit code is embedded in the Message text (e.g. "exit code 137"), not as a standalone field

Exit codes in event Message text

Exit Code Meaning
137 Container killed by the kernel (SIGKILL) — process memory exceeded Resource Limits Memory
143 Container received SIGTERM — graceful shutdown by Kubernetes (rolling restart, scale down)
1 Process exited with a general error — check POD LOGS for a stack trace or startup error
2 Process argument or flag error — check POD LOGS for initialisation errors

POD LOGS

Last 25 lines of container stdout. May be empty or truncated if the container was killed mid-write.


Interpreting POD STATUS

State: Terminated + Restart Count > 0 The container exited and Kubernetes restarted it. Read POD EVENTS for the exit reason and POD LOGS for the last output before the crash.

State: Waiting The container has not started. Check POD EVENTS for BackOff (crash loop) or image pull failures.

State: Running + Restart Count > 0 The pod is currently running but has crashed before. Correlate with POD EVENTS and POD LOGS from previous restarts.

Read the full file on GitHub · 109 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. 2mo ago First seen · 109 lines · 32 tokens per session scan A e6836a9e6652

Subscribe to this mod's changes

kubernetes-diagnostics is a skill published in the GitHub repository causaai/causa-backend (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 32 tokens to every session and 1,235 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

hermes-s6-container-supervision

Modify or debug s6 services in the Hermes Docker image.

NousResearch/hermes-agent · 20 tokens

smoke-test

Health smoke tests + auto-fix for gbrain installs (and OpenClaw services when present). Run after machine/container restarts or whenever something seems broken. Tests critical services, auto-fixes bounded local issues, and reports worker topology without starting daemons. Extensible via user-defined test scripts in…

garrytan/gbrain · 79 tokens

competition-container-runtime

Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for live container runtime analysis, mounted secrets, sidecars, namespaces, init containers, entrypoint drift, and route-to-container resolution. Use when the user asks why a live container differs from manifests, where a mounted secret is…

zhaoxuya520/reverse-skill · 109 tokens

aks-troubleshooting

Debug live Azure Kubernetes Service (AKS) incidents with a read-only, evidence-first investigation. WHEN: pod crashes or Pending, CrashLoopBackOff, OOMKilled, ImagePullBackOff, node NotReady, DNS or ingress failure, connectivity timeout, network policy, SNAT exhaustion, node-pool scaling blocked by QuotaExceeded or…

microsoft/skills · 221 tokens

meta-home-it-rescue

Use this meta-skill instead of answering directly when the user needs help with home, small-team, laptop, browser, printer, Docker, Git, network, UI, or deployment troubleshooting that benefits from multi-skill orchestration across symptom intake, environment capture, web lookup, and repair planning.

opensquilla/opensquilla · 65 tokens

aks-gpu-inference

Diagnose Day-2 AKS GPU and KAITO incidents using profile-aware, read-only evidence. WHEN: 'Insufficient nvidia.com/gpu', GPU pod Pending, model-load OOM, DCGM/VRAM, KAITO Workspace not ready, or GPU autoscaling. DO NOT USE FOR: setup (airunway-aks-setup), non-GPU incidents (aks-troubleshooting), standalone VM quota…

microsoft/skills · 114 tokens