Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

k8s-aiops

БесплатноБез исполняемых скриптовНе проверен

Use this skill whenever the user needs to operate a Kubernetes cluster — list/inspect pods, deployments, statefulsets, daemonsets, replicasets, jobs…

zw008от zw0082 059 установок в других каталогах

Об этом скилле

k8s AIops

Audit availability: Real writes require a durable audit intent. Reads and previews can continue if audit storage fails; check the warning and audit health before relying on their audit trail.

Disclaimer: This is a community-maintained open-source project and is not affiliated with, endorsed by, or sponsored by the Cloud Native Computing Foundation, the Kubernetes project, or k3s/Rancher. "Kubernetes" and "k3s" are trademarks of their respective owners. Source code is publicly auditable at github.com/AIops-tools/K8s-AIops under the MIT license.

Governed Kubernetes operations — 55 MCP tools, every one wrapped with the bundled @governed_tool harness: a local unified audit log under ~/.k8s-aiops/, a token/runaway budget guard, undo-token recording, and a descriptive risk-tier label on every audit row. Works with any kubeconfig-reachable cluster (standard Kubernetes, k3s, EKS, GKE, AKS). Run k8s-aiops init for a friendly onboarding wizard that registers your kube contexts as named targets.

Standalone: the governance harness is bundled in the package (k8s_aiops.governance) — k8s-aiops has no external skill-family dependency. Coverage focuses on common operations and is not yet exhaustive.

What This Skill Does

Category Tools Count Read or Write
Pods list, get, logs, describe, delete 5 4 read / 1 write
Deployments list, get, scale, rollout restart, delete 5 2 read / 3 write
Rollout status, history, undo, pause, resume, set-image 6 2 read / 4 write
StatefulSets list, get, scale 3 2 read / 1 write
DaemonSets list, get 2 2 read
ReplicaSets list 1 1 read
Jobs / CronJobs job list/get/delete, cronjob list/get 5 4 read / 1 write
Services / Ingress / Endpoints service list, ingress list/get, endpoints list 4 4 read
Config / Secrets configmap list/get, secret list (names/keys only) 3 3 read
Storage pvc list/get, pv list, storageclass list 4 4 read
Nodes list, describe, cordon, uncordon, drain 5 2 read / 3 write
Namespaces list, create, delete 3 1 read / 2 write
Metrics (top) pod, node 2 2 read
Cluster cluster_info, api_resources 2 2 read
Events list 1 1 read
Diagnostics / RCA pod-health, workload-readiness 2 2 read

Quick Install

uv tool install k8s-aiops
k8s-aiops init            # friendly wizard: register your kube contexts as targets
k8s-aiops doctor          # or skip init — works with your current kube-context too

Or as an OpenClaw plugin, which installs this skill and its MCP server together:

openclaw plugins install clawhub:@zw008/k8s-aiops
openclaw skills info k8s-aiops          # expect: Visible to model: yes

Needs uvx on PATH: the MCP server is fetched with uv, pinned to this release.

When to Use This Skill

  • List/inspect pods, deployments, services, nodes, namespaces and recent events
  • Read a pod's recent log lines to diagnose a crash loop
  • Run a read-only RCA sweep (diagnose pod-health / diagnose workload-readiness) to find the root cause worst-first
  • Scale a deployment up/down, or trigger a rolling restart
  • Delete a stuck pod (a controller recreates it) or a deployment
  • Cordon a node before maintenance, then uncordon it after

Do NOT use when the target is not a Kubernetes cluster (hypervisor VM lifecycle, backup products, or cloud-provider consoles are out of scope for this skill).

Related Skills — Skill Routing

If the user wants… Use
Kubernetes pods / deployments / nodes k8s-aiops (this skill)
Hypervisor VM lifecycle (power, snapshot, migrate) a hypervisor ops skill
Backup & restore a backup ops skill

Common Workflows

Diagnose a crash-looping pod and restart its deployment

  1. k8s-aiops pod list -n prod → find the pod with high restarts / non-Running phase
  2. k8s-aiops pod logs <pod> -n prod --tail 200 → read the recent logs for the crash cause
  3. k8s-aiops events -n prod → check for FailedScheduling / image-pull events
  4. k8s-aiops deployment restart <deploy> -n prod → roll the deployment after fixing the cause
  5. Failure branch: if logs/events show an RBAC 403, the kube context lacks the verb — run kubectl auth can-i get pods -n prod and switch to a context with adequate RBAC; the skill never retries a denied auth.

Triage an unhealthy namespace with RCA, then act on the worst finding

  1. k8s-aiops diagnose pod-health -n prod → worst-first findings; a critical CrashLoopBackOff on prod/api cites restarts=9 and the exact kubectl logs … --previous action
  2. k8s-aiops diagnose workload-readiness -n prod → confirm the blast radius: e.g. Deployment web ready 0/3 (critical, und
Полный SKILL.md на ClawHub

Установить k8s-aiops в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash

FAQ

Что делает скилл k8s-aiops?

Use this skill whenever the user needs to operate a Kubernetes cluster — list/inspect pods, deployments, statefulsets, daemonsets, replicasets, jobs, cronjobs, services, ingresses, endpoints, configmaps, secrets (names/keys only), PVCs/PVs/storageclasses, nodes, namespaces, and events; read pod logs; describe pods/nodes; pod/node top (metrics); read-only diagnostics / RCA (pod-health, workload-readiness); scale deployments/statefulsets; rollout status/history/undo/pause/resume and set image; delete pods/deployments/jobs; create/delete namespaces; and cordon/uncordon/drain nodes. Works with any kubeconfig-reachable cluster (standard Kubernetes, k3s, EKS, GKE, AKS). Always use this skill for "list k8s pods", "scale deployment", "kubernetes pod logs", "describe pod", "why is my pod crashing", "diagnose pods", "which deployments are unhealthy", "rollout undo", "set image", "top pods", "drain node", "cordon node", "restart deployment", "k3s", or "kubectl"-style tasks when the context is explicitly Kubernetes / a cluster. Do NOT use when the target is not a Kubernetes cluster (hypervisor VM lifecycle, backup products, or cloud-provider consoles are out of scope). Common Kubernetes operations with a built-in governance harness (audit, token budget, undo, risk-tier labels).

Как установить скилл k8s-aiops?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл k8s-aiops запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить k8s-aiops с