Skip to main content

kpanda-cluster-diagnosis

Use when a user asks to diagnose, inspect, or troubleshoot the health of a Kubernetes cluster managed by the DCE kpanda module. Symptoms include cluster unavailability, node NotReady, pending or failed Pods, and requests to check cluster status.

Ir para a instalação

Informações da origem

Repositório
DaoCloud/ai-skills-bench
Última atividade na origem
7 de setembro de 2026 às 09:29
Idioma detectado do SKILL.md
inglês
Estrelas
0
Forks
1

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
kpanda:cluster-diagnosis
description
Use when a user asks to diagnose, inspect, or troubleshoot the health of a Kubernetes cluster managed by the DCE kpanda module. Symptoms include cluster unavailability, node NotReady, pending or failed Pods, and requests to check cluster status.
# Kpanda Cluster Diagnosis Diagnose cluster health through a standardized 4-step inspection workflow. **REQUIRED SUB-SKILL:** Use `dce` for all command execution, auth checks, and catalog discovery. ## Workflow ### Step 1 — Cluster Overview - `dce container-management cluster get-cluster --name <cluster> -o json` - Verify cluster exists and status is Running. If not, report immediately. ### Step 2 — Node Health - `dce container-management core list-nodes --cluster <cluster> -o json` - Flag NotReady, Cordoned, or pressured nodes. Continue regardless. ### Step 3 — Abnormal Pod Discovery - `dce container-management core list-pods --cluster <cluster> -o json` - Find Pods not in Running/Succeeded. Collect by namespace. If none, skip Step 4. ### Step 4 — Deep Diagnosis - `dce container-management core list-cluster-events --cluster <cluster> -o json` - `dce container-management core get-pod --cluster <cluster> --namespace <ns> --name <pod> -o json` - Correlate events with Pod states to infer root cause. ## User omitted cluster name Run `dce container-management cluster list-clusters -o json`, present list, ask user to pick one. ## Auth not established Stop and instruct user to run `dce auth login --hostname <host>`. ## Output Format Present a concise report in this order: 1. **Cluster State** — name, status, version, provider 2. **Node Summary** — total, Ready count, anomalies 3. **Pod Anomalies** — count by non-Running phase, top affected namespaces 4. **Root-Cause Hypothesis** — inferred from events + Pod states 5. **Recommended Action** — one or two concrete next steps ## Rules - Prefer `-o json` for machine-readable output. - Do not guess flags or body shape. Confirm with `dce commands show` before executing unfamiliar commands. - Report empty API responses as "no resources found" rather than silently skipping. - Do not perform remediation (restart, delete, scale). This skill is read-only.
Ver no GitHub