k8s-cluster-ops

k8s-cluster-ops is a skill for Claude Code, Codex from serejaris/kimi-skills. It costs 116 tokens per session (2,000 once invoked), scanned C, original, MIT.

A command-line operations tool for Kubernetes, a system that runs and manages containerized applications across servers. It queries cluster resources, deploys updates, reads logs, runs commands in containers, and checks cluster health.

In plain words
What is it for?
Use it to inspect Pods, Deployments, Services, and Nodes; deploy or update resources; view logs; debug containers; switch contexts; and scale workloads.
Why use it?
It brings routine cluster management and troubleshooting tasks into one command-line workflow. This helps investigate application failures, deployment issues, and resource state.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect Pods, Deployments, Services, and Nodes; deploy or update resources; view logs; debug containers; switch contexts; and scale workloads.

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

Made for: Claude Code, Codex.

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 k8s-cluster-ops

README.md
[![agentmods](https://agentmods.dev/badge/skills/serejaris/kimi-skills/k8s-cluster-ops/github.svg)](https://agentmods.dev/skills/serejaris/kimi-skills/k8s-cluster-ops)
Your own site
<a href="https://agentmods.dev/skills/serejaris/kimi-skills/k8s-cluster-ops"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/k8s-cluster-ops/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 k8s-cluster-ops

Your own site · 80×15
<a href="https://agentmods.dev/skills/serejaris/kimi-skills/k8s-cluster-ops"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/k8s-cluster-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,000 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00116 $0.02000
Opus 5 $0.00058 $0.01000
Sonnet 5 $0.00023 $0.00400
Haiku 4.5 $0.00012 $0.00200

Measured 9d ago against content hash a2b96622a9ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

k8s-cluster-ops scanned grade C with 1 finding 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 9d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/kubectl-cluster-info.sh, scripts/kubectl-deploy-update.sh, scripts/kubectl-node-drain.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

2. **kubeconfig** 文件已配置集群凭证(默认路径:`~/.kube/config`)
skills/k8s-cluster-ops/SKILL.md · 250 lines

How it starts

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

kubectl 技能

使用 kubectl 命令行工具执行 Kubernetes 集群管理操作。

概述

此技能可以帮助 Agent 完成以下操作:

  • 查询资源 — 列出和获取 Pod、Deployment、Service、Node 等资源的详细信息
  • 部署与更新 — 创建、应用、补丁和更新 Kubernetes 资源
  • 调试与排障 — 查看日志、在容器中执行命令、检查事件
  • 管理配置 — 更新 kubeconfig、切换上下文、管理命名空间
  • 监控健康 — 检查资源使用情况、滚动更新状态、事件和 Pod 状态
  • 执行运维操作 — 扩缩 Deployment、腾空节点、管理污点和标签

前置条件

  1. kubectl 二进制文件已安装并在 PATH 中可用(v1.20+)
  2. kubeconfig 文件已配置集群凭证(默认路径:~/.kube/config
  3. 已建立与 Kubernetes 集群的网络连接

快速配置

安装 kubectl

macOS:

brew install kubernetes-cli

Linux:

apt-get install -y kubectl  # Ubuntu/Debian
yum install -y kubectl      # RHEL/CentOS

验证安装:

kubectl version --client
kubectl cluster-info  # Test connection

常用命令

查询资源

kubectl get pods                    # List all pods in current namespace
kubectl get pods -A                 # All namespaces
kubectl get pods -o wide            # More columns
kubectl get nodes                   # List nodes
kubectl describe pod POD_NAME        # Detailed info with events

查看日志

kubectl logs POD_NAME                # Get logs
kubectl logs -f POD_NAME             # Follow logs (tail -f)
kubectl logs POD_NAME -c CONTAINER   # Specific container
kubectl logs POD_NAME --previous     # Previous container logs

在容器中执行命令

kubectl exec -it POD_NAME -- /bin/bash   # Interactive shell
kubectl exec POD_NAME -- COMMAND         # Run single command

部署应用

kubectl apply -f deployment.yaml         # Apply config
kubectl create -f deployment.yaml        # Create resource
kubectl apply -f deployment.yaml --dry-run=client  # Test

更新应用

kubectl set image deployment/APP IMAGE=IMAGE:TAG  # Update image
kubectl scale deployment/APP --replicas=3          # Scale pods
kubectl rollout status deployment/APP              # Check status
kubectl rollout undo deployment/APP                # Rollback

管理配置

kubectl config view                  # Show kubeconfig
kubectl config get-contexts          # List contexts
kubectl config use-context CONTEXT   # Switch context

Read the full file on GitHub · 250 lines

Files

What ships with it

7 files 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. 9d ago First seen · 250 lines · 116 tokens per session scan C a2b96622a9ea

Subscribe to this mod's changes

k8s-cluster-ops is a skill published in the GitHub repository serejaris/kimi-skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 116 tokens to every session and 2,000 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

offensive-container-escape

Container escape and breakout techniques targeting Docker, containerd, and Podman runtimes. Covers privileged container breakout via host filesystem mount and nsenter, Docker socket abuse through /var/run/docker.sock, Linux capability exploitation including CAPSYSADMIN, CAPSYSPTRACE, and CAPNETADMIN, cgroup v1…

SnailSploit/Claude-Red · 196 tokens

investigate

Systematically investigate bugs, test failures, build errors, performance issues, or unexpected behavior by cycling through characterize-isolate-hypothesize-test steps. Use when the user asks to "investigate this bug", "debug this", "figure out why this fails", "find the root cause", "why is this broken"…

tobihagemann/turbo · 107 tokens

audit

Project-wide health audit pipeline that fans out to all analysis skills in parallel, evaluates findings, and produces a unified report at .turbo/audit.md. Use when the user asks to "audit the project", "run a full audit", "project health check", "audit my code", "codebase audit", or "comprehensive review".

tobihagemann/turbo · 71 tokens

consult-oracle

Consult ChatGPT Pro via ChatGPT browser automation for problems that resist standard approaches. Use when stuck on a very hard problem, when standard approaches have failed, when multiple debugging attempts haven't worked, or when the user says "ask the oracle", "consult oracle", "consult chatgpt", "I'm completely…

tobihagemann/turbo · 78 tokens

find-dead-code

Find dead code using parallel subagent analysis and optional CLI tools, treating code only referenced from tests as dead. Use when the user asks to "find dead code", "find unused code", "find unused exports", "find unreferenced functions", "clean up dead code", or "what code is unused". Analysis-only — does not modify…

tobihagemann/turbo · 78 tokens

polish-code

Stage, format, lint, test, review, smoke test, and re-run itself until stable. Use when the user asks to "polish code", "refine code", "iterate on code quality", "review loop", "clean up, test, and review loop", or "run the polish loop".

tobihagemann/turbo · 67 tokens