kube-medic

kube-medic is a skill for Claude Code, Codex from cacheforge-ai/cacheforge-skills. It costs 22 tokens per session (2,455 once invoked), scanned A, original, MIT.

A Kubernetes troubleshooting toolkit for examining the health of a running cluster through kubectl, the command-line tool for Kubernetes. It connects pod status, logs, events, resources, and deployment history to investigate incidents.

In plain words
What is it for?
Use it for cluster health checks, pod failures, deployment analysis, resource-pressure detection, and monitoring Kubernetes events.
Why use it?
It helps identify likely causes instead of merely listing symptoms, such as linking a recent deployment to crashing pods or memory pressure to missing resource limits.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it for cluster health checks, pod failures, deployment analysis, resource-pressure detection…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cacheforge-ai/cacheforge-skills/kube-medic
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cacheforge-ai/cacheforge-skills --skill kube-medic
Clone the repo
git clone --depth 1 https://github.com/cacheforge-ai/cacheforge-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kube-medic

README.md
[![agentmods](https://agentmods.dev/badge/skills/cacheforge-ai/cacheforge-skills/kube-medic.svg)](https://agentmods.dev/skills/cacheforge-ai/cacheforge-skills/kube-medic)
Your own site
<a href="https://agentmods.dev/skills/cacheforge-ai/cacheforge-skills/kube-medic"><img src="https://agentmods.dev/badge/skills/cacheforge-ai/cacheforge-skills/kube-medic.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,455 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.02455
Opus 5 $0.00011 $0.01228
Sonnet 5 $0.00004 $0.00491
Haiku 4.5 $0.00002 $0.00246

Measured 7d ago against content hash 730f8d3b04fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

kube-medic scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/kube-medic.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kube-medic/SKILL.md · 245 lines

How it starts

The opening of the file, as written. The whole thing — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.

kube-medic — Kubernetes Cluster Triage & Diagnostics

You have access to kube-medic, a Kubernetes diagnostics toolkit that lets you perform full cluster health triage, pod autopsies, deployment analysis, resource pressure detection, and event monitoring — all through kubectl.

Your Role as Cluster Diagnostician

You are an expert Kubernetes SRE. When the user asks about their cluster, you don't just run commands — you correlate data across multiple sources to provide real diagnoses:

  • Events + Pod Status: A CrashLoopBackOff pod with OOMKilled events + a low memory limit = the fix is to increase the memory limit. Don't just list symptoms — connect the dots.
  • Logs + Events: If logs show connection refused errors and events show a service endpoint change, the root cause is likely a misconfigured service, not the crashing pod.
  • Resources + Pod Count: High memory usage on a node + many pods without resource limits = resource contention risk.
  • Deployment History + Current State: If the current revision was deployed 10 minutes ago and pods started crashing 10 minutes ago, the deployment is the likely cause.

Subcommands

sweep — Full Cluster Health Triage

Use this when the user asks "What's wrong with my cluster?" or "Is everything healthy?"

kube_medic(subcommand="sweep")
kube_medic(subcommand="sweep", context="production")
kube_medic(subcommand="sweep", namespace="my-app")

Returns: Node status, problem pods (non-Running), CrashLoopBackOff pods, ImagePullBackOff pods, recent warning events, component health.

How to interpret the sweep:

  1. Start with nodes — are any NotReady or under pressure?
  2. Check problem pods — group by failure reason (CrashLoopBackOff, ImagePullBackOff, Pending, etc.)
  3. Look at events for patterns (repeated OOMKilled, FailedScheduling, etc.)
  4. Cross-reference: are problem pods on a specific node? Is there resource pressure?

pod <name> — Pod Autopsy

Use this when the user asks "Why is pod X crashing?" or wants to investigate a specific pod.

kube_medic(subcommand="pod", target="my-app-7f8d4b5c6-x2k9p")
kube_medic(subcommand="pod", target="my-app-7f8d4b5c6-x2k9p", namespace="production", tail="500")

Returns: Full pod details, container statuses, current logs, previous container logs, events for this pod, and image version mismatch detection.

Read the full file on GitHub · 245 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 245 lines · 22 tokens per session scan A 730f8d3b04fb

Subscribe to this mod's changes

kube-medic is a skill published in the GitHub repository cacheforge-ai/cacheforge-skills (10 stars, last pushed 6mo ago), licensed MIT. It adds 22 tokens to every session and 2,455 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.