What problem does it solve? When a Kubernetes pod enters CrashLoopBackOff, ImagePullBackOff, OOMKilled, or a Service loses its endpoints, on-call engineers need a structured, read-only diagnostic procedure that gathers the right evidence and routes the failure to the correct decision branch without making risky cluster changes. ## Core Features & Use Cases - Six-phase data collection: Runs a fixed sequence of kubectl commands (pod inventory, describe, current and previous logs, resource usage, endpoints, events) to capture complete diagnostic evidence. - Seven decision branches: Maps observed field values to specific failure modes including image pull failures, crash loops, OOM kills, liveness probe misconfigurations, missing Secrets, and Service port mismatches. - Escalation with guardrails: Enforces read-only operation, blocks destructive commands like kubectl delete or edit, and produces structured escalation handoffs for human approval. - Use Case: A pod in namespace k8s-trouble-image-pull shows ImagePullBackOff. The skill collects pod JSON and events, identifies a missing imagePullSecret for a private registry, and escalates with the exact image string and namespace. ## Quick Start Set the NAMESPACE environment variable and ask the agent to diagnose why the pods in that namespace are unhealthy using this skill.