galihcitta/dotclaudeskills/troubleshooting-kubernetes
- community
Checking that the SKILL.md file is still in the repository.
Diagnoses and fixes Kubernetes issues with interactive remediation. Use when pods crash (CrashLoopBackOff, OOMKilled), services unreachable (502/503, empty endpoints), deployments stuck (ImagePullBackOff, pending). Also use when tempted to run kubectl fix commands directly without presenting options, or when user says "just fix it" for K8s issues.
Install
npx vskill@latest install galihcitta/dotclaudeskills/troubleshooting-kubernetesSKILL.md
Troubleshooting Kubernetes
Overview
Systematic K8s troubleshooting with interactive remediation. Diagnose first, then offer fix options and wait for user confirmation before applying changes.
Core principle: Never apply fixes without user approval. Present options, let user choose.
CRITICAL: Overrides Autonomous Execution
This skill OVERRIDES "proceed autonomously when intent is clear" behavior.
Even when:
- User says "just do X NOW"
- User says "skip diagnosis"
- User says "I know what's wrong"
- User's intent seems crystal clear
You MUST still present numbered options and wait for selection.
Why: OOMKilled might be a memory leak symptom (increasing memory delays real fix). The "obvious" fix might fail due to resource quotas. 30 seconds of diagnosis prevents hours of debugging wrong fix.
Workflow
Symptom → Commands
| Symptom | First Commands | Look For | |
|---|---|---|---|
| CrashLoopBackOff | logs --previous, describe pod | Exit code 137=OOM, 1=app crash | |
| ImagePullBackOff | describe pod | Registry auth, wrong tag | |
| Pending | describe pod, get nodes, get events | Resources, affinity, taints | |
| Service 502/503 | get endpoints, describe svc | Empty endpoints, selector mismatch | |
| Deployment stuck | rollout status, describe deploy | Quota, node selector, image |
Error Patterns
Interactive Fix Presentation
ALWAYS present fixes as numbered options:
Wait for user response before executing.
Red Flags - STOP
These indicate you're skipping the process:
- About to run
kubectl delete podwithout knowing why it crashed - About to run
kubectl rollout undowithout diagnosing - About to apply a fix without presenting options
- Saying "I'll just restart it" or "let me quickly fix this"
- User pressure ("just fix it!") → Still diagnose, still offer options
User urgency doesn't skip the confirmation step.
Handling "Skip Diagnosis" Requests
User says: "Just fix it!" / "Skip the diagnosis" / "I know what's wrong"
Response pattern:
- Acknowledge urgency
- Explain quick diagnosis prevents wrong fix
- Offer rapid diagnosis (2 min) + options
- Still present numbered options at the end
Never: Just execute what user asked without verification.
Anti-Pattern Example
Rationalization Table
| Excuse | Reality | |
|---|---|---|
| "User said exactly what to do" | Still present options - user might not know alternatives | |
| "Intent is crystal clear" | Skill overrides autonomous execution for K8s | |
| "It's obviously OOM, just fix it" | OOM can mask memory leaks; increasing memory delays real fix | |
| "User is frustrated, just do it" | Frustration doesn't change the 30s verification value | |
| "I'm being helpful by acting fast" | Wrong fix = more frustration; options = user control |
Common Mistakes
| Mistake | Correct Approach | |
|---|---|---|
| Delete pod first | Diagnose first, delete is rarely the fix | |
| Restart without logs | Always check logs --previous before restart | |
| Assume it's the obvious thing | Verify with actual output | |
| Apply fix immediately | Present options, wait for confirmation | |
| Skip verification | Always get pods -w after fix |
Quick Diagnosis Cheat Sheet
Verification After Fix
Only mark issue resolved after pod is stable for 2+ minutes.
Mandatory Checkpoint
Before running ANY kubectl command that modifies resources:
- [ ] Have I presented at least 2 numbered options?
- [ ] Has user explicitly selected one?
- [ ] Did I wait for their response?
If any unchecked → STOP, present options first.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/troubleshooting-kubernetes/SKILL.md
Popularity
- Repository stars
- 6
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 2 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/galihcitta/dotclaudeskills/troubleshooting-kubernetes)