k8s-troubleshooter
Systematic Kubernetes troubleshooting and incident response. Use this skill whenever the user mentions Kubernetes, K8s, kubectl, pods, containers, or clusters. Triggers include diagnosing CrashLoopBackOff, ImagePullBackOff, OOMKilled, or Pending pods, responding to production incidents, troubleshooting node NotReady or DiskPressure, debugging service connectivity or networking, investigating PVC or storage failures, analyzing performance degradation, checking cluster health, troubleshooting Helm releases, and conducting post-incident reviews.
What this skill does
# Kubernetes Troubleshooter & Incident Response Systematic approach to diagnosing and resolving Kubernetes issues in production environments. ## Core Troubleshooting Workflow Follow this systematic approach for any Kubernetes issue: ### 1. Gather Context - What is the observed symptom? - When did it start? - What changed recently (deployments, config, infrastructure)? - What is the scope (single pod, service, node, cluster)? - What is the business impact (severity level)? ### 2. Initial Triage Run cluster health check: ```bash # Check node status and health kubectl get nodes # Find non-running pods across all namespaces kubectl get pods -A --field-selector status.phase!=Running # Check node resource usage kubectl top nodes ``` This provides an overview of: - Node health status - Pending and failed pods across all namespaces - Node resource utilization ### 3. Deep Dive Investigation Based on triage results, focus investigation: **For Namespace-Level Issues:** ```bash python3 scripts/check_namespace.py <namespace> ``` This provides comprehensive namespace health: - Pod status (running, pending, failed, crashlooping) - Service health and endpoints - Deployment availability - PVC status - Resource quota usage - Recent events - Actionable recommendations **For Pod Issues:** ```bash # Get full pod details (status, events, conditions, resource config) kubectl describe pod <pod-name> -n <namespace> # Check current and previous container logs kubectl logs <pod-name> -n <namespace> kubectl logs <pod-name> -n <namespace> --previous # Get events specific to the pod kubectl get events -n <namespace> --field-selector involvedObject.name=<pod-name> ``` This reveals: - Pod phase and readiness - Container statuses and states - Restart counts and exit codes - Recent events and scheduling decisions - Resource requests and limits **For additional investigations:** - Check all namespace events: `kubectl get events -n <namespace> --sort-by='.lastTimestamp'` ### 4. Identify Root Cause Consult references/common_issues.md for detailed information on: - ImagePullBackOff / ErrImagePull - CrashLoopBackOff - Pending Pods - OOMKilled - Node issues (NotReady, DiskPressure) - Networking failures - Storage/PVC issues - Resource quotas and throttling - RBAC permission errors Each issue includes: - Symptoms - Common causes - Diagnostic commands - Remediation steps - Prevention strategies ### 5. Apply Remediation Follow remediation steps from common_issues.md based on root cause identified. Always: - Test fixes in non-production first if possible - Document actions taken - Monitor for effectiveness - Have rollback plan ready ### 6. Verify & Monitor After applying fix: - Verify issue is resolved - Monitor for recurrence (15-30 minutes minimum) - Check related systems - Update documentation ## Incident Response For production incidents, follow structured response in references/incident_response.md: **Severity Assessment:** - SEV-1 (Critical): Complete outage, data loss, security breach - SEV-2 (High): Major degradation, significant user impact - SEV-3 (Medium): Minor impairment, workaround available - SEV-4 (Low): Cosmetic, minimal impact **Incident Phases:** 1. **Detection** - Identify and assess 2. **Triage** - Determine scope and impact 3. **Investigation** - Find root cause 4. **Resolution** - Apply fix 5. **Post-Incident** - Document and improve **Common Incident Scenarios:** - Complete cluster outage - Service degradation - Node failure - Storage issues - Security incidents See references/incident_response.md for detailed playbooks. ## Quick Reference Commands ### Cluster Overview ```bash kubectl cluster-info kubectl get nodes kubectl get pods --all-namespaces | grep -v Running kubectl get events --all-namespaces --sort-by='.lastTimestamp' | tail -20 ``` ### Pod Diagnostics ```bash kubectl describe pod <pod> -n <namespace> kubectl logs <pod> -n <namespace> kubectl logs <pod> -n <namespace> --previous kubectl exec -it <pod> -n <namespace> -- /bin/sh kubectl get pod <pod> -n <namespace> -o yaml ``` ### Node Diagnostics ```bash kubectl describe node <node> kubectl top nodes kubectl top pods --all-namespaces ssh <node> "systemctl status kubelet" ssh <node> "journalctl -u kubelet -n 100" ``` ### Service & Network ```bash kubectl describe svc <service> -n <namespace> kubectl get endpoints <service> -n <namespace> kubectl get networkpolicies --all-namespaces ``` ### Storage ```bash kubectl get pvc,pv --all-namespaces kubectl describe pvc <pvc> -n <namespace> kubectl get storageclass ``` ### Resource & Configuration ```bash kubectl describe resourcequota -n <namespace> kubectl describe limitrange -n <namespace> kubectl get rolebindings,clusterrolebindings -n <namespace> ``` ## Diagnostic Scripts ### check_namespace.py Namespace-level health check and diagnostics: - Pod health (running, pending, failed, crashlooping, image pull errors) - Service health and endpoints - Deployment availability status - PersistentVolumeClaim status - Resource quota usage and limits - Recent namespace events - Health status assessment - Actionable recommendations **Usage:** ```bash # Human-readable output python3 scripts/check_namespace.py <namespace> # JSON output for automation python3 scripts/check_namespace.py <namespace> --json # Include more events python3 scripts/check_namespace.py <namespace> --events 20 ``` Best used when troubleshooting issues in a specific namespace or assessing overall namespace health. ### Cluster-Level Diagnostics (kubectl) For cluster-wide health checks, use kubectl directly: ```bash # Node health and status kubectl get nodes kubectl top nodes # Find non-running pods across all namespaces kubectl get pods -A --field-selector status.phase!=Running # System pod health kubectl get pods -n kube-system ``` ### Pod-Level Diagnostics (kubectl) For detailed pod investigation, use kubectl directly: ```bash # Full pod details (status, events, conditions, resource config) kubectl describe pod <pod-name> -n <namespace> # Current and previous container logs kubectl logs <pod-name> -n <namespace> kubectl logs <pod-name> -n <namespace> --previous # Events specific to the pod kubectl get events -n <namespace> --field-selector involvedObject.name=<pod-name> ``` ## Reference Documentation ### references/common_issues.md Comprehensive guide to common Kubernetes issues with: - Detailed symptom descriptions - Root cause analysis - Step-by-step diagnostic procedures - Remediation instructions - Prevention strategies Covers: - Pod issues (ImagePullBackOff, CrashLoopBackOff, Pending, OOMKilled) - Node issues (NotReady, DiskPressure) - Networking issues (pod-to-pod communication, service access) - Storage issues (PVC pending, volume mount failures) - Resource issues (quota exceeded, CPU throttling) - Security issues (vulnerabilities, RBAC) Read this when you identify a specific issue type but need detailed remediation steps. ### references/incident_response.md Structured incident response framework including: - Incident response phases (Detection → Triage → Investigation → Resolution → Post-Incident) - Severity level definitions - Detailed playbooks for common incident scenarios - Communication guidelines - Post-incident review template - Best practices for prevention, preparedness, response, and recovery Read this when responding to production incidents or planning incident response procedures. ### references/performance_troubleshooting.md Comprehensive performance diagnosis and optimization guide covering: - **High Latency Issues** - API response time, request latency troubleshooting - **CPU Performance** - Throttling detection, profiling, optimization - **Memory Performance** - OOM issues, leak detection, heap profiling - **Network Performance** - Latency, packet loss, DNS resolution - **Storage I/O Performance** - Disk performance testing, optimization - **Application-Level Metrics** - Prometheus integration, distributed tracing - **Clu
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.