k8s-debug

k8s-debug is a skill for Claude Code, Codex from pantheon-org/tekhne. It costs 59 tokens per session (3,099 once invoked), scanned A, original, MIT.

A troubleshooting guide for Kubernetes clusters, which run containerized applications. It examines cluster health, pods, events, deployments, resource limits, and network policies.

In plain words
What is it for?
It is for inspecting pod logs and events, checking rollout status, diagnosing service connectivity, and investigating CPU, memory, or network problems.
Why use it?
It helps narrow down why workloads fail, remain pending, restart, cannot receive traffic, or run out of resources.

Skill for Claude CodeCodex

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

Good fit It is for inspecting pod logs and events, checking rollout status, diagnosing service connectivity, and investigating CPU, memory, or network problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pantheon-org/tekhne/debug
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 pantheon-org/tekhne --skill debug
Clone the repo
git clone --depth 1 https://github.com/pantheon-org/tekhne

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-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/pantheon-org/tekhne/debug/github.svg)](https://agentmods.dev/skills/pantheon-org/tekhne/debug)
Your own site
<a href="https://agentmods.dev/skills/pantheon-org/tekhne/debug"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/debug/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-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/pantheon-org/tekhne/debug"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,099 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00059 $0.03099
Opus 5.5 $0.00024 $0.01240
Sonnet 5.5 $0.00012 $0.00620
Haiku 4.5 $0.00006 $0.00310

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

Security

Grade A, and why

k8s-debug scanned grade A with 1 finding 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 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/cluster_health.sh, scripts/network_debug.sh, scripts/pod_diagnostics.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:8080/api/v1/namespaces/<namespace>/pods/<pod-name>
skills/infrastructure/k8s/debug/SKILL.md · 384 lines

How it starts

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

Kubernetes Debugging Skill

Mindset

Mental Model: Kubernetes debugging follows a layered approach—start broad (cluster health), narrow to affected components (pods, services), then drill into specific failures (logs, events, resource constraints). A pod's status is always a summary, never the diagnosis — CrashLoopBackOff and ImagePullBackOff name the symptom, not the root cause, and you must read events and logs before acting on the label alone.

Decision Framework:

  1. Gather context before jumping to solutions. Check kubectl get events and describe resources first — this step is mandatory, never optional, even when the fix seems obvious.
  2. Verify assumptions about selectors, labels, and namespaces—label mismatches are the most common root cause and must never be assumed away.
  3. Test hypotheses systematically: network → resource → configuration → application.
  4. Document findings as you go—Kubernetes issues often involve multiple interacting failures, and an undocumented fix is one nobody else can verify. A common pitfall: treating a restart as a fix when it only cleared a transient symptom — the same gotcha resurfaces on the next scheduling cycle if the root cause was never found.

When to use this skill:

  • Pods stuck in Pending, CrashLoopBackOff, ImagePullBackOff, or Error states
  • Services not routing traffic despite healthy pods
  • Resource exhaustion (OOMKilled, CPU throttling)
  • Deployments failing to roll out or stuck in progress
  • Network policies blocking expected traffic

When NOT to use this skill:

  • The failure is already fully explained by a known recent change (a deploy minutes ago introduced a bad config) — roll back directly rather than running the full diagnostic funnel.
  • The question is capacity planning (steady-state resource sizing, autoscaler tuning) rather than an active failure — that is a design decision, not a debugging session.
  • You lack read access to the affected namespace — request access first; guessing from an adjacent namespace produces false leads.

Read the full file on GitHub · 384 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. 1mo ago Changed · +5 lines · -2 tokens per session 21215d01daa9
  2. 1mo ago First seen · 379 lines · 61 tokens per session scan A 7c31d6b06a74

Subscribe to this mod's changes

k8s-debug is a skill published in the GitHub repository pantheon-org/tekhne (10 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 3,099 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories