kubernetes

kubernetes is a skill for Claude Code, Codex from SumonMSelim/agentguard. It costs 33 tokens per session (1,214 once invoked), scanned A, original, MIT.

A guide to writing and reviewing Kubernetes configurations. Kubernetes is a system for running and managing containerized applications across computers.

In plain words
What is it for?
Use it when creating or checking Kubernetes workloads, access rules, secrets, networking, configuration, operations, and GitOps files.
Why use it?
It helps prevent insecure workloads, excessive permissions, exposed secrets, unsafe networking, and hard-to-operate deployments.

Skill for Claude CodeCodex

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

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.

agentmods
npx agentmods add skills/sumonmselim/agentguard/kubernetes
Any agent
npx skills add SumonMSelim/agentguard --skill kubernetes
Clone the repo
git clone --depth 1 https://github.com/SumonMSelim/agentguard

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 kubernetes

README.md
[![agentmods](https://agentmods.dev/badge/skills/sumonmselim/agentguard/kubernetes.svg)](https://agentmods.dev/skills/sumonmselim/agentguard/kubernetes)
Your own site
<a href="https://agentmods.dev/skills/sumonmselim/agentguard/kubernetes"><img src="https://agentmods.dev/badge/skills/sumonmselim/agentguard/kubernetes.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,214 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00033 $0.01214
Opus 5 $0.00016 $0.00607
Sonnet 5 $0.00007 $0.00243
Haiku 4.5 $0.00003 $0.00121

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

Security

Grade A, and why

kubernetes scanned grade A 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 6d 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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Never run as root. `runAsNonRoot: true`, `runAsUser` (non-zero) in `securityContext`

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/kubernetes/SKILL.md · 78 lines

How it starts

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

Kubernetes

Pod security

  • Never run as root. runAsNonRoot: true, runAsUser (non-zero) in securityContext
  • readOnlyRootFilesystem: true. Mount writable volumes explicitly
  • allowPrivilegeEscalation: false
  • Drop all capabilities, re-add only what's needed: capabilities: {drop: [ALL], add: [NET_BIND_SERVICE]}
  • No hostPID, hostNetwork, hostIPC without explicit system-level justification
  • Pod Security Admission: restricted profile for all application workloads. baseline minimum for system workloads
  • automountServiceAccountToken: false on pods that don't call the API server

RBAC

  • Least privilege. Separate ServiceAccount per workload. No default SA with cluster-level roles
  • Role/RoleBinding over ClusterRole/ClusterRoleBinding unless cluster-scope is required
  • Audit RBAC with kubectl auth can-i --list and rakkess or rbac-tool
  • No verbs: ["*"] or resources: ["*"] in production roles

Secrets

  • Secrets in external store (Vault, AWS Secrets Manager, GCP Secret Manager). Sync via External Secrets Operator or Secrets Store CSI driver
  • Never commit secrets to git. Plain Kubernetes Secret objects are base64 only — require etcd encryption at rest
  • etcd encryption at rest enabled. etcd backed up on schedule (Velero or equivalent)

Network policy

  • Default-deny ingress and egress per namespace. Explicit allow rules per service
  • NetworkPolicies enforced by CNI (Calico, Cilium, or equivalent). Verify CNI supports policy enforcement — not all do
  • Cilium: use CiliumNetworkPolicy for L7 rules (HTTP, gRPC path/method filtering) where needed

Workloads

  • Deployment for stateless. StatefulSet for stateful with stable identity. DaemonSet for node-level agents
  • requests and limits on every container. No unbounded CPU or memory
  • CPU limits cause throttling — set conservatively or omit and rely on namespace LimitRange. Memory limits cause OOMKill — set with headroom
  • minReplicas ≥ 2 for production. Single-replica = not HA
  • Liveness probe: deadlock detection. Readiness probe: traffic gating. Startup probe: slow-starting containers. All three on every long-running container
  • terminationGracePeriodSeconds set to cover max request duration + drain time. Default 30s is often too short
  • preStop: exec: sleep 5 (or equivalent) to allow load balancer to drain before SIGTERM
  • PodDisruptionBudget on all production workloads. minAvailable > 0
  • topologySpreadConstraints or podAntiAffinity to spread replicas across nodes and zones
  • HorizontalPodAutoscaler on CPU/memory or custom metrics for stateless workloads
  • KEDA for event-driven scaling (queue depth, Kafka lag, cron). Preferred over custom metrics pipelines
  • VerticalPodAutoscaler in recommendation mode to right-size requests over time

Read the full file on GitHub · 78 lines

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. 6d ago First seen · 78 lines · 0 tokens per session scan A eec484a145dd

Subscribe to this mod's changes

kubernetes is a skill published in the GitHub repository SumonMSelim/agentguard (56 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 1,214 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

metago-container-expert

Containerization Expert - specializes in Dockerfile, multi-arch builds, image optimization, vulnerability scanning, and registry publishing.

metago-ai/metagolifeform · 29 tokens

ascend-docker

Create Docker containers for Huawei Ascend NPU development with proper device mappings and volume mounts. Use when setting up Ascend development environments in Docker, running CANN applications in containers, or creating isolated NPU development workspaces. Supports privileged mode (default), basic mode, and full…

ascend-ai-coding/awesome-ascend-skills · 76 tokens

docker-best-practices

写 Dockerfile / 容器化应用时使用。镜像小、构建快、运行安全。.

Wade-DevCode/awesome-coding-skills-cn · 29 tokens

external-gitcode-ascend-cann-nnal-installer

昇腾NPU CANN Toolkit+Kernels+NNAL安装部署技能。支持从官网下载run包安装和从Docker镜像提取两种方式,覆盖驱动检查、包下载、安装、环境变量配置与验证全流程。当用户需要安装CANN全套组件或指定版本CANN到自定义路径时调用。.

ascend-ai-coding/awesome-ascend-skills · 87 tokens

docker-cn

Skill "docker-cn" from guyulong/cn-agent-skills, covering docker 国内镜像配置, 使用场景, 重要提醒, 推荐做法 and 1. 自建 registry pull-through cache(最安全).

guyulong/cn-agent-skills · 20 tokens

ascend-docker

Create Docker containers for Huawei Ascend NPU development with proper device mappings and volume mounts. Use when setting up Ascend development environments in Docker, running CANN applications in containers, or creating isolated NPU development workspaces. Supports privileged mode (default), basic mode, and full…

Ascend/agent-skills · 76 tokens