K8s log analyzer

From Krusty84/SKILL.md-Inspector · View interactive version

K8s log analyzer is an AI agent skill from the GitHub repository Krusty84/SKILL.md-Inspector. Analyze Kubernetes pod and node logs to find the root cause of crashes, restarts, and OOM kills. Use when the user shares kubectl logs, describes CrashLoopBackOff or Pending pods, or asks why a deployment is unhealthy.

How to use this skill

Skill file

K8s Log Analyzer

Work from evidence in the cluster, not from guesses about it.

Workflow

  1. Establish the blast radius: kubectl get pods -A | grep -v Running — one

pod, one namespace, or cluster-wide changes the diagnosis entirely.

  1. For a failing pod, read in this order: kubectl describe pod events,

previous-container logs (kubectl logs --previous), then current logs.

Exit code 137 is an OOM kill or eviction, not an application bug.

  1. Correlate timestamps with recent rollouts (kubectl rollout history) and

node events before blaming the application.

  1. Summarize the failure chain for the user: trigger → mechanism → fix.

Rules

unless the user asks for the fix to be applied.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.