跳到正文
TakoAPI
返回技能列表

kube-medic

由 tkuehnl 提供

Coding Agents & IDEs
683下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Kubernetes Cluster Triage & Diagnostics — instant AI-powered incident triage via kubectl.

描述

该技能的功能

kube-medic runs Kubernetes diagnostics through kubectl. It covers cluster health sweeps, pod autopsies, deployment analysis, resource pressure detection, and event monitoring. Data across logs, events, and resource metrics is correlated to surface root causes, and write operations require explicit user confirmation before execution.

Instead of running separate kubectl commands for logs, events, and resource metrics, it correlates all three in a single triage workflow to produce actionable diagnoses rather than a list of symptoms.

何时使用

  • Diagnosing a CrashLoopBackOff pod during an on-call incident
  • Checking cluster health before a production deployment
  • Finding which pods are consuming the most memory on overloaded nodes
  • Tracing recent warning events after an unexpected outage
  • Rolling back a broken deployment after identifying a bad image

示例工作流

输入

User asks: Something is wrong with my cluster, can you check?

智能体
  1. 1

    Runs sweep subcommand to get a cluster-wide health overview

  2. 2

    Identifies CrashLoopBackOff pods and NotReady nodes from sweep output

  3. 3

    Runs pod autopsy on the most suspicious pod to retrieve logs, events, and container status

  4. 4

    Runs resources subcommand to check for memory or CPU pressure contributing to the issue

  5. 5

    Correlates findings and presents a diagnosis with specific kubectl commands awaiting user approval

输出

Triage report showing root cause (e.g., OOMKilled due to low memory limit), a timeline of related events, and a rollback or scaling command the user can confirm to execute

安装

clawhub install tkuehnl/kube-medic

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接