kubernetes-debug
Skill0 starsChanged 41 days agoMITView on GitHub
Use when debugging a Kubernetes issue such as a failing pod, broken service, or unexpected cluster behavior. Mention "kubectl", "pod is crashing", "debug this deployment", "kubernetes issue" as triggers.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- lindeskar/claude-configtheir own version, first seen Oct 2, 2026
- sherifabdlnaby/skillstheir own version, first seen Aug 3, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- sherifabdlnaby/skills★ 9same name
- lindeskar/claude-config★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository45 other files it gives its agents.
- admission-policy-reviewSkill
- alert-rule-reviewSkill
- architecture-reviewSkill
- argocd-applicationsetSkill
- argocd-debugSkill
- argocdSkill
- cert-manager-debugSkill
- cicd-reviewSkill
- cilium-debugSkill
- ciliumSkill
- cluster-backupSkill
- dast-reviewSkill
- dockerfile-reviewSkill
- english-technical-messageSkill
- git-messageSkill
- gitops-reviewSkill
- go-bugfixSkill
- go-code-reviewSkill
- go-testing-reviewSkill
- grafana-dashboardsSkill
- helm-reviewSkill
- homelab-change-planSkill
- incident-analysisSkill
- ingressSkill
- interview-system-designSkill
- istio-debugSkill
- istioSkill
- kubernetes-autoscalingSkill
- kubernetes-securitySkill
- kubernetes-yaml-reviewSkill
- migration-planSkill
- observability-reviewSkill
- observability-stackSkill
- production-readinessSkill
- pr-reviewSkill
- root-cause-analysisSkill
- runbook-writerSkill
- runtime-security-reviewSkill
- secrets-managementSkill
- storage-debugSkill
- supply-chain-securitySkill
- terraform-reviewSkill
- upgrade-readinessSkill
- vaultSkill
- vulnerability-triageSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Use read-only kubectl get, describe, and logs before proposing a mutation.
- Distinctive: line 22
Do not restart or delete a resource as a substitute for finding the cause.
- Distinctive: line 26
Follow the Workflow, Safety rules, and Quality checklist below.
- Distinctive: line 37
Use when a Kubernetes-hosted workload is failing, not starting, not receiving traffic, or behaving unexpectedly, and the cause needs to be …
- Distinctive: line 60
Use the general workflow below when the symptom doesn't match a playbook or spans several.
- Very specific: line 94
Prefer read-only kubectl get/describe/logs commands first, always.
- Very specific: line 95
Do not run kubectl apply, delete, edit, rollout restart, scale, cordon, or drain unless the user explicitly asks for the mutation.
- Very specific: line 97
Never print the contents of a Secret value — only confirm existence/keys.
- Distinctive: line 98
If a fix requires applying a manifest, show the diff/manifest and the exact command.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Kubernetes Debug
TL;DR checklist
- Name the namespace, workload, and exact symptom.
- Inspect status, events, logs, owner, and the relevant networking or storage objects.
- Tie a proposed fix to the observed cause and a verification check.
Key read-only checks
- Use read-only
kubectl get,describe, andlogsbefore proposing a mutation.
Common pitfalls
- Do not restart or delete a resource as a substitute for finding the cause.
Agent procedure
Follow the Workflow, Safety rules, and Quality checklist below.
Quick references
- references/playbooks.md
- references/conditional/managed-clusters.md
Last verified: unverified
When to use
Use when a Kubernetes-hosted workload is failing, not starting, not receiving traffic, or behaving unexpectedly, and the cause needs to be diagnosed.
Goal
Find the probable cause using read-only inspection, with commands the user can run to confirm, and a safe fix — without mutating cluster state unless explicitly asked.
Diagnostic routing
Identify the symptom first, then jump straight to its playbook in references/playbooks.md
instead of walking the full checklist:
| Symptom | Playbook section |
Pod stuck Pending | Pod Pending — scheduler event text → cause table |
CrashLoopBackOff | CrashLoopBackOff — exit code/reason → cause table |
ImagePullBackOff / ErrImagePull | ImagePull — pull error text → cause table |
OOMKilled restarts | OOMKilled — usage-pattern classification |
| Service unreachable / connection refused | Service chain — 6-link walk (selector → endpoints → readiness → ports → bind address → NetworkPolicy) |
| Name resolution errors / 5s latencies | DNS — CoreDNS, FQDN vs short names, ndots, netpol on port 53 |
Node NotReady | Node — conditions → pressure/kubelet/CNI |
Use the general workflow below when the symptom doesn't match a playbook or spans several. On
a managed cloud cluster (EKS/GKE/AKS), also load references/conditional/managed-clusters.md —
control-plane logs live in the cloud backend, nodes auto-remediate (hiding the cause), and
IPAM/LB/IAM issues masquerade as k8s issues (e.g. EKS ENI IP exhaustion → stuck ContainerCreating).
Workflow
- Narrow scope: namespace, workload name, and symptom (CrashLoopBackOff, Pending, no traffic, OOMKilled, etc.) — and route via the table above if it matches a playbook.
- Inspect in this order, read-only:
kubectl get pods/describe pod— status, restart count, eventskubectl get events --sort-by=.lastTimestamp— recent cluster events in the namespacekubectl logs(current and--previousif crashed) — actual error output- the owning controller (Deployment/StatefulSet/DaemonSet) — replica status, rollout status
Service+Endpoints/EndpointSlice— selector match, ready addressesIngress/Gateway API resources — routing and backend health- referenced
ConfigMap/Secret— do they exist, are keys present (never print secret values) ServiceAccountand RBAC (Role/RoleBinding) — permission errors in logs/events- node status and
describe node— pressure, taints, allocatable resources, if scheduling is stuck - probes and resource requests/limits on the pod spec
NetworkPolicy— if connectivity is denied unexpectedly
- Correlate evidence to a probable cause before proposing a fix.
- Propose the safe fix, and the exact commands to verify it worked.
References
references/playbooks.md— symptom-keyed diagnosis trees (Pending, CrashLoop exit codes, ImagePull error text, OOM, service chain, DNS, node, CPU throttling, cascading liveness).references/conditional/managed-clusters.md— EKS/GKE/AKS debugging caveats (hidden control- plane logs, node auto-remediation, ENI IP exhaustion, LB/IAM masquerading), loaded by signal.
Safety rules
- Prefer read-only
kubectl get/describe/logscommands first, always. - Do not run
kubectl apply,delete,edit,rollout restart,scale,cordon, ordrainunless the user explicitly asks for the mutation. - Never print the contents of a
Secretvalue — only confirm existence/keys. - If a fix requires applying a manifest, show the diff/manifest and the exact command; let the user run it, or only run it yourself after explicit confirmation.
Output format
## Observations
<what was seen, from which command>
## Evidence
<relevant log lines / events / describe output, quoted>
## Probable cause
## Commands to verify
## Safe fix
<manifest/command, plus explicit note that it requires user confirmation to apply>Quality checklist
- Only read-only commands were run without explicit permission
- Probable cause is backed by quoted evidence, not guessed
- No secret values were printed
- The proposed fix includes a verification step
- Any mutating command is clearly marked as requiring confirmation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

