k8s-debug
Skill4 starsChanged 3 months agoMITView on GitHub
Structured Kubernetes debugging for GPU workloads. Triggered by "pod crash", "CrashLoopBackOff", "OOMKilled", "GPU scheduling", or /k8s-debug
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Check: phase, conditions, restart count, node, QoS class.
- Distinctive: line 71
Check events before logs
- Distinctive: line 72
Verify node allocatable before assuming GPU issue
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
K8s Debug — GPU Workload Triage
Structured debugging workflow. Do NOT skip steps.
Triage Order
1. Pod Status
kubectl get pod <name> -n <ns> -o wide
kubectl describe pod <name> -n <ns>Check: phase, conditions, restart count, node, QoS class.
2. Events (BEFORE logs)
kubectl get events -n <ns> --sort-by=.lastTimestamp --field-selector involvedObject.name=<name>Events explain why logs may be empty.
3. Container Logs
kubectl logs <name> -n <ns> --previous
kubectl logs <name> -n <ns> -c <init-container>4. Node Conditions
kubectl describe node <node>
kubectl get node <node> -o jsonpath='{.status.allocatable}'5. Resource Requests vs Allocatable
kubectl describe node <node> | grep -A 20 "Allocated resources"6. GPU Checks
See references/gpu-scheduling-checklist.md for full checklist.
kubectl get nodes -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.allocatable.nvidia\.com/gpu}{"\n"}{end}'
kubectl get pods -n kube-system -l app=nvidia-device-plugin7. DRA Checks
kubectl get resourceclaims -n <ns>
kubectl describe resourceclaim <name> -n <ns>Common Patterns
| Symptom | Cause | Fix |
| CrashLoopBackOff + CUDA error | CUDA mismatch | Match runtime to driver |
| Pending + insufficient GPU | No capacity | Check allocatable |
| OOMKilled | GPU mem exceeded | Reduce batch size |
| Device plugin not ready | Plugin crashed | Check DaemonSet |
Gotchas
- Check events before logs
- Verify node allocatable before assuming GPU issue
- CUDA errors often = driver/runtime mismatch, not code bugs
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Thakurvaibhav/platform-agent-harness★ 2same name
- vhata/claude-skills★ 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 repository48 other files it gives its agents.
- .claude/templates/AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .cursor/rules/core.mdcCursor rule
- .cursor/rules/go.mdcCursor rule
- .cursor/rules/k8s.mdcCursor rule
- .cursor/rules/node.mdcCursor rule
- .cursor/rules/python.mdcCursor rule
- .cursor/rules/rust.mdcCursor rule
- .cursor/rules/tdd.mdcCursor rule
- .cursor/rules/workbench.mdcCursor rule
- llms-full.txtllms.txt
- llms.txtllms.txt
- cmux-sprint-orchestratorSkill
- config-auditSkill
- doneSkill
- eurekaSkill
- goalSkill
- go-reviewSkill
- handoffSkill
- js-reviewSkill
- k8s-reviewSkill
- kickoffSkill
- pr-review-ingestSkill
- pr-reviewSkill
- python-reviewSkill
- reflectionSkill
- skill-evalSkill
- tdd-protocolSkill
- team-executeSkill
- team-planSkill
- team-shutdownSkill
- test-reviewSkill
- validate-recommendationSkill
- worktree-guideSkill
- babysitSkill
- canvasSkill
- create-hookSkill
- create-ruleSkill
- create-skillSkill
- create-subagentSkill
- migrate-to-skillsSkill
- sdkSkill
- shellSkill
- split-to-prsSkill
- statuslineSkill
- update-cli-configSkill
- update-cursor-settingsSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

