sre-k8s-triage

sre-k8s-triage is a skill for Claude Code from jtprogru/bear-skills. It costs 122 tokens per session (1,872 once invoked), scanned A, original, MIT.

A step-by-step guide for diagnosing Kubernetes problems involving Pods, Deployments, Services, or Ingresses. Kubernetes is software for running and managing containerised applications.

In plain words
What is it for?
Use it to investigate statuses such as Pending, CrashLoopBackOff, ImagePullBackOff, OOMKilled, missing Service endpoints, HTTP 5xx errors, or stuck rollouts.
Why use it?
It turns symptoms such as a crashing Pod, missing traffic, or a stuck deployment into targeted checks and possible mitigations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the bear-skills plugin — 47 skills, 3 commands, 16 agents, 1 hook shipped together

Good fit Use it to investigate statuses such as Pending, CrashLoopBackOff, ImagePullBackOff, OOMKilled, missing Service endpoints, HTTP 5xx errors, or stuck rollouts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jtprogru/bear-skills/sre-k8s-triage
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 jtprogru/bear-skills --skill sre-k8s-triage
Clone the repo
git clone --depth 1 https://github.com/jtprogru/bear-skills

Made for: Claude Code.

Or install bear-skills, the plugin that ships this one along with the rest of its 47 skills, 3 commands, 16 agents, 1 hook.

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 sre-k8s-triage

README.md
[![agentmods](https://agentmods.dev/badge/skills/jtprogru/bear-skills/sre-k8s-triage/github.svg)](https://agentmods.dev/skills/jtprogru/bear-skills/sre-k8s-triage)
Your own site
<a href="https://agentmods.dev/skills/jtprogru/bear-skills/sre-k8s-triage"><img src="https://agentmods.dev/badge/skills/jtprogru/bear-skills/sre-k8s-triage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sre-k8s-triage

Your own site · 80×15
<a href="https://agentmods.dev/skills/jtprogru/bear-skills/sre-k8s-triage"><img src="https://agentmods.dev/badge/skills/jtprogru/bear-skills/sre-k8s-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,872 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.00122 $0.01872
Opus 5.5 $0.00049 $0.00749
Sonnet 5.5 $0.00024 $0.00374
Haiku 4.5 $0.00012 $0.00187

Measured 28d ago against content hash 08d1a8eec95d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sre-k8s-triage 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 28d ago.

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.

domains/sre/skills/sre-k8s-triage/SKILL.md · 162 lines

How it starts

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

sre-k8s-triage — Диагностика k8s от симптома к причине

Цель: дать структурированный путь от симптома к гипотезе, без бесцельного kubectl-серфинга.

Перед началом — если у пользователя есть домашний runbook на этот сценарий, посмотри его ({{rule:sre-runbook-template}} — структура общая).

Шаг 0. Зафиксируй симптом

Спроси:

  • ресурс: Pod / Deployment / Service / Ingress
  • namespace, имя
  • статус: kubectl -n <ns> get <res> <name> — что показывает
  • с какого времени, что изменилось

Если симптом размыт («приложение не работает») — попроси конкретику: ошибка пользователя, HTTP-статус, логи.

Шаг 1. Выбери ветку по симптому

Симптом / Status Идти в раздел
Pod: Pending A. Шедулинг
Pod: CrashLoopBackOff B. Падает на старте
Pod: ImagePullBackOff / ErrImagePull C. Образ
Pod: OOMKilled (в kubectl describe Last State) D. Память
Pod: Running, но не отвечает E. Readiness / трафик
Service: нет endpoints F. Селектор
Ingress: 502/503/504 G. Маршрутизация
Deployment: rollout stuck H. Деплой

A. Pod Pending — шедулинг

kubectl -n <ns> describe pod <pod> | tail -20

Смотри секцию Events. Частые причины:

  • Insufficient cpu/memory → нет нод с нужными ресурсами. Решение: понизить requests, скейл нод, проверить kubectl top nodes.
  • 0/N nodes are available: ... untolerated taint → под не толерирует taint. Решение: добавить tolerations или unaint ноду.
  • pod has unbound immediate PersistentVolumeClaims → PVC не provisioned. Проверить StorageClass, провижионер.
  • node(s) didn't match Pod's node affinity/selector → проверить nodeSelector/affinity.

B. CrashLoopBackOff — падает на старте

kubectl -n <ns> logs <pod> --previous --tail=100
kubectl -n <ns> describe pod <pod> | grep -A5 'Last State'

Частые причины:

  • Exit code 1 + ошибка в логах → ошибка приложения (конфиг, миссинг env-vars, БД недоступна).
  • Exit code 137 → OOM, см. раздел D.
  • Exit code 139 (SIGSEGV) → segfault, скорее всего баг в коде или libc-несовместимость.
  • Liveness probe failure → проверь livenessProbe. Часто стартап дольше, чем initialDelaySeconds.

Read the full file on GitHub · 162 lines

Files

What ships with it

1 file 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. 28d ago Changed 08d1a8eec95d
  2. 2mo ago Changed 2c243b1aa5c4
  3. 3mo ago First seen · 162 lines · 122 tokens per session scan A 66591e7732b5

Subscribe to this mod's changes

sre-k8s-triage is a skill published in the GitHub repository jtprogru/bear-skills (1 stars, last pushed 24d ago), licensed MIT. It adds 122 tokens to every session and 1,872 once invoked, about $0.0005 per session on Opus 5.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.

Related

sre-k8s-triage compared with skills from other repositories

sre-k8s-triage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sre-k8s-triagejtprogru/bear-skillsSkill124d agoMITA122Claude Code
Pair Programmingspencermarx/open-code-reviewSkill39621d agoApache-2.0A61Claude Code
aks-troubleshootingmicrosoft/skillsSkill3.3kyesterdayMITA221Claude Code
aks-gpu-inferencemicrosoft/skillsSkill3.3kyesterdayMITA114Claude Code
aks-network-capturemicrosoft/skillsSkill3.3kyesterdayMITA75Claude Code
cocoreviewSnowflake-Labs/cocoplusSkill73025d agoMITA57Claude Code
OCR Review-to-Approval Loopspencermarx/open-code-reviewSkill39621d agoApache-2.0A213Claude Code