k8s-triage
Diagnose an unhealthy Kubernetes workload — pods crash-looping, deployments not ready, services not reachable. The triage decision playbook — confirm context, get evidence, classify the failure, propose one safe next action. Use whenever the user mentions kubernetes, k8s, kubectl, pods, deployments, namespaces, or attaches a kubectl error.
- License 许可
- MIT
- 所属仓库
- blouargant/omnis
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- k8s-triage
- metadata
- { "tags": "kubernetes, triage, diagnosis, coordination, playbook", "author": "blouargant@chapsvision.com" }
- description
- Diagnose an unhealthy Kubernetes workload — pods crash-looping, deployments not ready, services not reachable. The triage decision playbook — confirm context, get evidence, classify the failure, propose one safe next action. Use whenever the user mentions kubernetes, k8s, kubectl, pods, deployments, namespaces, or attaches a kubectl error.
02 资源文件 1
- 参考文档permissions.json1.2 KB
03 SKILL.md 正文
Kubernetes Triage
This skill is the decision playbook for any K8s incident: confirm the
context, get the evidence, classify the failure, and propose ONE safe next
action. It is about deciding, not about the mechanics of gathering
evidence — those live in the k8s-investigation skill.
- In a squad you coordinate: delegate the read-only evidence gathering to
the k8s_investigator (which follows
k8s-investigation), classify from the brief it returns, and delegate any change to the k8s_editor and any leftover sweep to the k8s_cleaner. - Standalone (single agent, no squad) you do it yourself: load
k8s-investigationfor the read-only snapshot mechanics and run them, then come back here to classify and decide.
Procedure
- Confirm the cluster context. Run
kubectl config current-context(or the MCP equivalent) and quote it back to the user before doing anything else. If you ask the user to pick a context, thread that choice as--context=<ctx>on every command and pass it in the task you delegate to the k8s_investigator/editor/cleaner so they reuse it — neverkubectl config use-context(it rewrites the shared kubeconfig and forces a fresh approval in each sub-agent). - Locate the workload. Ask for namespace + name if not provided.
- Gather evidence (read-only). Get a compact, cited snapshot of the
workload's state — deployment/pod status, the most recent unhealthy pod's
describe, its previous-container logs, and recent namespace events. In a squad, delegate this to the k8s_investigator, name thek8s-investigationskill and the chosen--context=<ctx>(addk8s-log-investigationwhen the failure is log-heavy). Standalone, loadk8s-investigationand run its snapshot yourself. Never conclude from assumptions when akubectlread can confirm. - Classify the failure into one of:
- image / pull
- scheduling (resource, taint, affinity)
- probe (liveness / readiness)
- configuration (env, secret, configmap)
- network (service, dns, network policy)
- permission (RBAC, PSP / PSA)
- application (crashes after startup)
- Propose ONE next action — never a multi-step mitigation in the
first message. Always a dry-run first when possible (
--dry-run=server). Delegate the change to the k8s_editor (which followsk8s-modification) and any ephemeral-leftover sweep to the k8s_cleaner (k8s-cleanup).
Hard rules
- Priority 1 (safety). Never
kubectl deletewithout explicit user confirmation. - Priority 2 (production guardrails). Never modify production
namespaces (
prod,prd,production, or any context containingprod) without an explicit user override. - Priority 3 (access boundaries). If RBAC denies a read, escalate — do not retry with a different account.
04 同仓库更多 Skills
skill-creator
Create or update a skill playbook (SKILL.md) for the agent. Use when the user wants to create a new skill, add a skill, define a new agent capability, update an existing skill, edit a skill, refine a skill playbook, or specialise the agent for a new domain.
review
Review a body of work (source code, configuration, documents, infra manifests, …) for correctness, clarity, and obvious risks. Use this skill whenever the user asks for a review, audit or critique.
Fallback PDF text extractor using pdftotext (poppler). Use ONLY when the preferred `liteparse` skill is unavailable or for a quick plain-text dump of a simple text PDF — for the best PDF parsing (scanned, multi-column, layout-heavy, or non-PDF formats) prefer the `liteparse` skill.
pandoc
This skill should be used when converting documents between formats (Markdown, DOCX, PDF, HTML, LaTeX, etc.) using pandoc. Use for format conversion, document generation, and preparing markdown for Google Docs or other word processors.
liteparse
Preferred local parser for extracting text from PDFs, images, and scanned/layout-heavy documents (OCR, screenshots, complex PDFs) — far better than pdftotext. Use this FIRST for any PDF, image, or OCR text-extraction or conversion task. NOTE for Office documents (DOCX, PPTX, XLSX, ODT) — for plain text extraction prefer the `pandoc` skill, which needs no LibreOffice; only use LiteParse for Office docs when you need its layout/OCR/screenshot output. The `pdf` skill (pdftotext) is only a fallback for when LiteParse cannot be installed.
linux-admin
Safely make a change to a Linux workstation — install/remove packages, manage systemd services and timers, edit and validate configuration files, manage users/permissions and networking. Detect the distro and package manager, determine whether the target is package-managed or hand-maintained, preview or simulate every change, back up configs before editing, and prefer the package manager and drop-in overrides so the host stays consistent and secure. Use whenever a change to the local Linux host is required (install, remove, enable, disable, start, stop, edit a config, add a user, change permissions or networking).