Works with the AI Agents you already use

    KubeDoctor

    by Rahul Dan

    0

    AI-powered Kubernetes diagnostic assistant for root-cause analysis of pods, services, and cluster health.

    Free

    Security scanned
    KubeDoctor

    KubeDoctor

    Example session with this skill installed

    My pods in the 'prod-api' namespace are crashing. Can you figure out why?

    • Read your context and instructions
    • Compiled the kubedoctor

    I have scanned the prod-api namespace and identified two pods in a failing state. I ran detect_crashloops and doctor to analyze the root cause.

    Kubernetes Diagnostic Report: prod-api

    ResourceStatusError PatternRoot Cause
    api-v2-7b9f8-x4j2CrashLoopBackOffExit Code 137OOMKilled: The container exceeded its memory limit of 512Mi.
    auth-svc-5d4c3-r9s1PendingFailedSchedulingInsufficient memory: No nodes have 2Gi of allocatable memory available.
    gateway-ingressHealthyN/AIngress rules are correctly mapping to backend services.

    Detailed Analysis

    1. Pod api-v2-7b9f8-x4j2: The doctor tool retrieved the last 50 lines of logs, showing a java.lang.OutOfMemoryError just before the SIGKILL (Exit Code 137).
    2. Pod auth-svc-5d4c3-r9s1: Events indicate the scheduler cannot find a node that satisfies the 2Gi memory request. Current nodes are at >90% utilization.

    Next steps

    • Increase the memory limit for the api-v2 deployment to at least 1Gi.
    • Check if any pods in the cluster can be evicted or scale the node group to handle the auth-svc memory requirements.
    • Run node_health to see if specific nodes are under sustained disk or CPU pressure.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Debugging Kubernetes workloads manually involves jumping between kubectl get, describe, logs, and events, often losing track of the correlation between pod states and container exit codes. This skill provides an automated diagnostic layer that inspects live cluster state to deliver evidence-based root-cause analysis for failing resources.

    What it does

    • Cluster Triage scans nodes for readiness, memory pressure, and disk pressure across the entire environment.
    • Deep Pod Diagnostics correlates container lifecycle phases, exit codes, and recent log streams into a single health report.
    • Error Detection automatically identifies pods stuck in CrashLoopBackOff, ImagePullBackOff, or Pending states.
    • Network Validation inspects Service selectors, endpoint readiness, and Ingress routing rules to find connectivity gaps.
    • Resource Correlation matches Kubernetes events to specific workload failures to find underlying scheduling or auth issues.

    How it works

    1. Run cluster_health or namespace_health_scan to locate problematic resources in the environment.
    2. Invoke doctor on specific pods to retrieve a combined view of logs, events, and container exit states.
    3. Use specialized detection tools like detect_crashloops or detect_pending_pods to filter for specific failure patterns.
    4. Call diagnose_service or diagnose_ingress to verify the networking path from the gateway to the pod labels.

    Frameworks & tools

    Built for Kubernetes environments using the Model Context Protocol. Works with standard kubectl logic to interface with clusters, deployments, services, and ingress controllers.

    Why this beats prompting it yourself

    Generic prompts struggle to systematically link a container's exit code 137 to node memory pressure or a Pending pod to untolerated taints. This skill enforces a structured diagnostic workflow that ensures logs, events, and lifecycle data are correlated before offering a recommendation.

    Use cases

    • Debugging why a production deployment is stuck in a restart loop after a new image rollout.
    • Investigating why a Service has zero ready endpoints despite pods appearing to be running.
    • Auditing namespace health to find pods failing due to missing imagePullSecrets or registry auth.
    • Identifying resource exhaustion by checking node pressure conditions and scheduling constraints.

    Known limitations

    This skill performs read-only operations and cannot delete pods, scale deployments, or edit YAML manifests. It requires an active Kubernetes context with sufficient RBAC permissions to list and describe resources.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 12 days ago

    • Free with an Agensi account

    Permissions

    Read Files
    Terminal / Shell
    Network Access
    Listed12 days ago

    What's inside

    Creator

    Rahul Dan

    Rahul Dan

    Frequently Asked Questions

    KubeDoctor automates the manual 'kubectl' workflow by correlating disparate data points—like exit codes, node pressure, and event logs—into a single root-cause report, which is much faster than manual troubleshooting.

    The skill is designed for any AI agent or platform that supports the Model Context Protocol (MCP) and has access to a standard Kubernetes environment.

    KubeDoctor operates on a read-only basis; it can scan, describe, and analyze your cluster resources, but it cannot delete, modify, or scale your workloads.

    You will need an active Kubernetes context (kubeconfig) and RBAC permissions that allow for listing and describing pods, services, nodes, and events across the namespaces you wish to audit.

    Yes, it includes specialized tools like 'diagnose_service' and 'diagnose_ingress' specifically designed to find mismatches between selectors, endpoints, and routing rules.

    KubeDoctor is highly effective at identifying infrastructure-level failures like 'ImagePullBackOff', 'CrashLoopBackOff', and node-level resource exhaustion that prevents pods from scheduling.

    New in DevOps & Cloud

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.

    Free