When pods are stuck in CrashLoopBackOff or your deployment rollout hangs at 2am, this gives you a systematic playbook instead of panic-Googling kubectl commands. It includes three diagnostic scripts: cluster_health.sh for cluster-wide snapshots, pod_diagnostics.py for deep pod analysis with logs and events, and network_debug.sh for DNS and connectivity issues. Everything defaults to read-only until you explicitly confirm destructive actions like force-deletes or rollbacks. The workflow guides are organized by symptom, so you can jump straight to "why is my PVC pending" without reading the whole thing. It assumes you have kubectl access but gracefully degrades if optional tools like jq or metrics-server are missing.

skills.sh installs
887
GitHub stars
337
last updated
Aug 21, 2026

Install

$ npx -y skills add akin-ozer/cc-devops-skills --skill k8s-debug --agent claude-code

Installs into .claude/skills of the current project.

Files

Kubernetes Debugging Skill

Overview

Systematic toolkit for debugging Kubernetes clusters, workloads, networking, and storage with a deterministic, safety-first workflow.

Trigger Phrases

Use this skill when requests resemble:

  • "My pod is in CrashLoopBackOff; help me find the root cause."
  • "Service DNS works in one pod but not another."
  • "Deployment rollout is stuck."
  • "Pods are Pending and not scheduling."
  • "Cluster health looks degraded after a change."
  • "PVC is pending and pods cannot mount storage."

Prerequisites

Run from the skill directory (devops-skills-plugin/skills/k8s-debug) so relative script paths work as written.

Required

  • kubectl installed and configured.
  • An active cluster context.
  • Read access to namespaces, pods, events, services, and nodes.

Quick preflight:

kubectl config current-context
kubectl auth can-i get pods -A
kubectl auth can-i get events -A
kubectl get ns

Optional but Recommended

  • jq for more precise filtering in ./scripts/cluster_health.sh.
  • Metrics API (metrics-server) for kubectl top.
  • In-container debug tools (nslookup, getent, curl, wget, ip) for deep network tests.

Sponsors

Details

Repository
github.com/akin-ozer/cc-devops-skills
Categories
DevOps & CI/CD, Debugging
First seen
Jun 3, 2026

More from akin-ozer/cc-devops-skills

All 31
1akin-ozer avatark8s-yaml-generatorakin-ozer/cc-devops-skillsGenerate/create/scaffold Kubernetes YAML — Deployment, Service, ConfigMap, Ingress, RBAC, StatefulSet, CRDs.694skills.sh installs
2akin-ozer avatargithub-actions-generatorakin-ozer/cc-devops-skillsCreate, generate, or scaffold GitHub Actions workflows, action.yml, or .github/workflows CI/CD pipelines.684skills.sh installs
3microsoft avatarazure-deploymicrosoft/azure-skillsExecute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files. DO NOT use this skill when th660.6Kskills.sh installs
4google avatargoogle-agents-cli-observabilitygoogle/agents-cliThis skill should be used when the user wants to "set up tracing", "monitor my ADK agent", "configure logging", "add observability", "debug production traffic",558.7Kskills.sh installs
5microsoft avatarpython-appservice-deploymicrosoft/azure-skillsDeploy Python (Flask/Django/FastAPI) code to Azure App Service Linux. WHEN: "Flask App Service", "Django App Service", "FastAPI App Service", "deploy Python to 322.4Kskills.sh installs
6liarjsdev avatarfingerprint-ci-gateliarjsdev/liarjs-skillsGate a build on browser fingerprint regressions with liarjs - save a baseline scan as JSON, diff later runs against it, and fail the job when the consistency sc119Kskills.sh installs