k8s-debug

k8s-debug is a skill for Claude Code, Codex from pantheon-org/tekhne. It costs 61 tokens per session (2,889 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 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,889 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.00061 $0.02889
Opus 5 $0.00030 $0.01444
Sonnet 5 $0.00012 $0.00578
Haiku 4.5 $0.00006 $0.00289

Measured 9d ago against content hash 7c31d6b06a74, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 9d 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 · 379 lines

How it starts

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

Kubernetes Debugging Skill

Debugging 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).

Decision Framework:

  1. Gather context before jumping to solutions. Check kubectl get events and describe resources first.
  2. Verify assumptions about selectors, labels, and namespaces—label mismatches are the most common root cause.
  3. Test hypotheses systematically: network → resource → configuration → application.
  4. Document findings as you go—Kubernetes issues often involve multiple interacting failures.

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

Quick Diagnostic Patterns

Pod Not Starting

# Quick assessment
kubectl get pod <pod-name> -n <namespace>
kubectl describe pod <pod-name> -n <namespace>  # Events section is key

# Detailed diagnostics
python3 scripts/pod_diagnostics.py <pod-name> -n <namespace>

# Check previous logs if CrashLoopBackOff
kubectl logs <pod-name> -n <namespace> --previous

Service Connectivity Issues

# Verify service endpoints match pod IPs
kubectl get svc <service-name> -n <namespace>
kubectl get endpoints <service-name> -n <namespace>

# Network diagnostics
./scripts/network_debug.sh <namespace> <pod-name>

# Test from debug pod
kubectl run tmp-shell --rm -i --tty --image nicolaka/netshoot -- /bin/bash

Performance Degradation

# Resource usage by container
kubectl top pods -n <namespace> --containers

# Check for OOMKilled
kubectl get pod <pod-name> -n <namespace> -o yaml | grep -A 10 lastState

# Review recent logs
kubectl logs <pod-name> -n <namespace> --tail=100 --timestamps

Read the full file on GitHub · 379 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. 9d 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 61 tokens to every session and 2,889 once invoked, about $0.0003 per session on Opus 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

zeabur-server-ssh

Use when debugging services on a user's dedicated server via SSH. Use when needing to run a command on the server, inspect pods, check container logs, view k8s resources, or run kubectl commands. Use when "service exec" is insufficient and you need server-level access. Use when user says "check my server", "run X on…

zeabur/agent-skills · 104 tokens

k8s-rbac-quota

A troubleshooting guide for Kubernetes access permissions and resource limits. Kubernetes is software for running and managing containers, while RBAC controls who can do what and ResourceQuota limits resource usage.

kudig-io/kudig-database · 22 tokens

k8s-config-secret

A Kubernetes troubleshooting workflow for ConfigMaps and Secrets, which store configuration values and sensitive settings for applications.

kudig-io/kudig-database · 25 tokens

k8s-deployment-rollout

A troubleshooting workflow for failed Kubernetes Deployment releases and rolling updates that become stuck. Kubernetes is a system for running and managing containers.

kudig-io/kudig-database · 21 tokens

k8s-image-pull

A Kubernetes troubleshooting workflow for ImagePullBackOff, a status meaning that a cluster cannot pull a container image and keeps retrying.

kudig-io/kudig-database · 22 tokens

k8s-ingress-gateway

A troubleshooting guide for Kubernetes Ingress and Gateway configurations. Kubernetes is a system for running containers, and Ingress and Gateway components route web traffic to those containers.

kudig-io/kudig-database · 21 tokens