agent-browser-automatiā¦
Automate browser interactions for development testing using Puppeteer MCP
Systematically diagnose and troubleshoot Kubernetes issues
How it fires
How this command gets triggered: by you, by Claude, or both.
/k8s-debugContext preview
What this command does when you run it.
Systematically diagnose and troubleshoot Kubernetes issues
allowed-tools: Bash(kubectl:*), Bash(jq:*), Bash(rg:*), Read, Write name: "K8s Debug" description: "Systematically diagnose and troubleshoot Kubernetes issues" author: "wcygan" tags: ["kubernetes"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
PROCEDURE diagnose_kubernetes_issue():
INPUT: resource_name = $ARGUMENTS || null STATE_FILE: /tmp/k8s-debug-$SESSION_ID.json
STEP 1: Initialize debugging context IF resource_name IS NULL:
ELSE:
STEP 2: Quick health assessment FOR EACH critical_component IN [nodes, system-pods, resource-quotas]:
STEP 3: Resource-specific investigation CASE resource_type: WHEN "pod":
WHEN "service":
WHEN "deployment":
STEP 4: Deep diagnostic analysis FOR EACH issue_category IN [container-runtime, networking, storage, configuration]: CASE issue_category: WHEN "container-runtime": IF pod.status CONTAINS "ImagePullBackOff":
ELSE IF pod.status CONTAINS "CrashLoopBackOff":
WHEN "networking": TRY:
CATCH:
WHEN "storage":
WHEN "configuration":
STEP 5: Performance analysis IF resource_type IN ["pod", "deployment"]:
**Container Runtime Issues**
1. **Image Pull Problems**
2. **Resource Constraints**
3. **Configuration Errors**
**Network Connectivity Issues**
1. **DNS Resolution**
# Test DNS from within cluster kubectl run debug-pod --image=busybox --rm -it -- nslookup [service-name] kubectl exec -it [pod-name] -- nslookup kubernetes.default
2. **Service Discovery**
3. **Network Policies**
**Storage and Persistence**
1. **Volume Mount Issues**
2. **ConfigMap and Secret Problems**
STEP 6: Generate actionable recommendations recommendations = []
FOR EACH issue IN identified_issues: recommendation = { "severity": classify_severity(issue), "category": issue.category, "description": issue.description, "fix_commands": generate_fix_commands(issue), "prevention": suggest_preventive_measures(issue) } recommendations.append(recommendation)
SORT recommendations BY severity DESC
STEP 7: Output comprehensive report PRINT "=== Kubernetes Debugging Report ===" PRINT "Timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)" PRINT "Resource: ${resource_name:-Cluster-wide scan}"
IF critical_issues.length > 0: PRINT "\nšØ CRITICAL ISSUES REQUIRING IMMEDIATE ACTION:" FOR E
A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies