kubernetes
/kubernetes
Operate, troubleshoot, secure, upgrade, and automate Kubernetes clusters and workloads safely across upstream Kubernetes, k3s, RKE2, MicroK8s, k0s, Talos, OpenShift/OKD, kind, Minikube, Rancher-managed clusters, EKS, AKS, and GKE. Use when a task involves kubectl, Kubernetes APIs, Pods, Deployments, StatefulSets, Services, Ingress or Gateway API, CRDs, RBAC, NetworkPolicy, storage, scheduling, autoscaling, cluster lifecycle, or the bundled agent-first k8s-cli. Do not use this skill for unrelated requests; route to the nearest named specialist.
- Author
- magnus919 ↗
- Repository
- agent-skills ↗
- Licence
- MIT
- Last repository change
- 25.10.2026
Assessment and security
- Files in this package
- 32
- Scripts
- 4
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 4 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/gather-cluster-state.sh, scripts/refresh-version-matrix.sh, scripts/test-k8s-cli.sh, scripts/verify-cluster-health.sh
What it does and when to use it
Operate, troubleshoot, secure, upgrade, and automate Kubernetes clusters and workloads safely across upstream Kubernetes, k3s, RKE2, MicroK8s, k0s, Talos, OpenShift/OKD, kind, Minikube, Rancher-managed clusters, EKS, AKS, and GKE. Use when a task involves kubectl, Kubernetes APIs, Pods, Deployments, StatefulSets, Services, Ingress or Gateway API, CRDs, RBAC, NetworkPolicy, storage, scheduling, autoscaling, cluster lifecycle, or the bundled agent-first k8s-cli. Do not use this skill for unrelated requests; route to the nearest named specialist.
Original author description
Operate, troubleshoot, secure, upgrade, and automate Kubernetes clusters and workloads safely across upstream Kubernetes, k3s, RKE2, MicroK8s, k0s, Talos, OpenShift/OKD, kind, Minikube, Rancher-managed clusters, EKS, AKS, and GKE. Use when a task involves kubectl, Kubernetes APIs, Pods, Deployments, StatefulSets, Services, Ingress or Gateway API, CRDs, RBAC, NetworkPolicy, storage, scheduling, autoscaling, cluster lifecycle, or the bundled agent-first k8s-cli. Do not use this skill for unrelated requests; route to the nearest named specialist.
How it works
- Operating contract
- Choose the operating path
- First-response discovery
- Routing
- Templates and scripts
- Version policy
- Verification boundary
- Hard boundaries
SKILL.md preview
--- name: kubernetes description: >- Operate, troubleshoot, secure, upgrade, and automate Kubernetes clusters and workloads safely across upstream Kubernetes, k3s, RKE2, MicroK8s, k0s, Talos, OpenShift/OKD, kind, Minikube, Rancher-managed clusters, EKS, AKS, and GKE. Use when a task involves kubectl, Kubernetes APIs, Pods, Deployments, StatefulSets, Services, Ingress or Gateway API, CRDs, RBAC, NetworkPolicy, storage, scheduling, autoscaling, cluster lifecycle, or the bundled agent-first k8s-cli. Do not use this skill for unrelated requests; route to the nearest named specialist. --- # Kubernetes Use this skill as a decision and routing layer. Do not treat it as a static kubectl cheat sheet. ## Operating contract 1. Identify the target: distribution, provider, cluster version, client version, context, namespace, access mode, and whether the cluster is production. 2. Discover before assuming: query served API resources, API versions, CRDs, system workloads, nodes, and distribution markers. 3. Separate portable Kubernetes behavior from distribution/provider overlays. Load the matching reference before using lifecycle, networking, identity, storage, or upgrade instructions. 4. For mutations, preview first (`k8s-cli ... --dry-run` or `kubectl diff` / server dry-run), state scope, require explicit confirmation for destructive actions, then verify conditions, events, rollout, and the external boundary. 5. Prefer stable APIs and server-side validation. Treat beta/alpha APIs, feature gates, provider defaults, and version numbers as time-sensitive. 6. Keep evidence bounded and structured. Never dump kubeconfigs, Secret values, tokens, or unbounded logs into chat. ## Choose the operating path | Situation | First move | Do not do | |---|---|---| | Live cluster operation | Run `doctor`, `context`, and `discover`; record context, namespace, distribution, and versions | Do not infer cluster state from configuration or a prior command | | No cluster access | Produce a bounded plan and name the missing prerequisite | Do not claim a diagnosis, success, or invented command output | | Any mutation | Render, diff/server-dry-run, state scope, obtain the required confirmation, then mutate and verify the relevant boundary | Do not treat command exit 0 as operational success | | Provider or distribution present | Load the matching overlay before applying portable guidance | Do not apply upstream instructions unchanged | ## First-response discovery ```sh scripts/k8s-cli --json doctor scripts/k8s-cli --json context scripts/k8s-cli --json discover ``` If the wrapper is unavailable, use the equivalent native commands from `references/cli-reference.md`. If `kubectl` is absent, stop and report the prerequisite rather than inventing cluster state. ## Routing | Scenario | Load | |---|---| | API discovery, SSA, CRDs, or deprecations | `references/api-and-versioning.md` | | Workloads, probes, rollouts, jobs, or controllers | `references/workloads-and-rollouts.md` | | Scheduling, scaling, storage, node disruption, or reliability | `references/scheduling-scaling-storage.md` and `references/nodes-and-reliability.md` | | Services, DNS, NetworkPolicy, Ingress, or Gateway API | `references/networking.md` | | Pod is `Running` but not serving traffic or is absent from Service endpoints | `references/workloads-and-rollouts.md`, `references/networking.md`, `references/troubleshooting.md`, and the matching distribution overlay | | RBAC, Pod Security, admission, audit, secrets, or policy engines | `references/security-and-policy.md` and `references/policy.md` | | Evidence-first diagnosis or advanced debugging | `references/troubleshooting.md` and `references/debugging.md` | | Backups, upgrades, HA, or observability | `references/operations.md`, `references/backup-restore.md`, and `references/observability.md` | | Distribution/provider overlays or version matrix | `references/distributions.md`, `references/version-skew.md`, and `references/source-index.md` | | Native command details or output contracts | `references/cli-reference.md` | | Mutation safety gates | `references/safety-gates.md` | ## Templates and scripts - `templates/diagnostic-report.md`: human-readable incident report - `templates/cluster-inventory.json`: bounded inventory schema - `templates/upgrade-runbook.md`: preflight, change, and verification runbook - `scripts/k8s-cli`: agent-first wrapper around kubectl - `scripts/test-k8s-cli.sh`: deterministic tests using a fake kubectl - `scripts/gather-cluster-state.sh`: bounded diagnostic collection for incident reports - `scripts/verify-cluster-health.sh`: bounded post-operation health verification - `scripts/refresh-version-matrix.sh`: refreshes dated release observations, never silently edits guidance ## Version policy The research baseline was checked 2026-07-11. The Kubernetes project page reported maintained minors 1.36, 1.35, and 1.34. This is not a permanent claim. Refresh `references/distributions.md` and the source index before asserting current versions or support status. ## Verification boundary | Claim | Minimum evidence | |---|---| | Pod is healthy | Pod conditions, readiness, events, and relevant EndpointSlice or external boundary | | Pod is serving traffic | Ready condition, Service selector, EndpointSlice membership, events, and a bounded Service-level check | | Rollout succeeded | Controller conditions, resulting Pods, events, and the relevant Service or external check | | API/resource is available | Served API discovery, installed CRDs/controller support, and server-side validation | | Command succeeded operationally | Bounded command result plus the resource condition and user-visible boundary | A component-level command result is evidence about that component only; do not promote it to a cluster or integration claim. ## Hard boundaries - Never expose Secret data or raw kubeconfig credentials. - Never use `--force-conflicts`, `delete`, `drain`, `patch`, `upgrade`, or cluster-reset procedures without explaining scope and obtaining the required confirmation. - Never call a Pod `healthy` from `Running` alone. - Never call an integration successful from a component-level test alone. - Never apply an upstream procedure to k3s, RKE2, a managed provider, Talos, or OpenShift without loading its overlay.
Files in this package (32)
- README.md 3 KB
- SKILL.md 6 KB
- evals/evals.json 8 KB
- references/api-and-versioning.md 3 KB
- references/backup-restore.md 2 KB
- references/cli-reference.md 2 KB
- references/debugging.md 1 KB
- references/distributions.md 4 KB
- references/networking.md 2 KB
- references/nodes-and-reliability.md 2 KB
- references/observability.md 2 KB
- references/operations.md 2 KB
- references/policy.md 1 KB
- references/safety-gates.md 1 KB
- references/scheduling-scaling-storage.md 3 KB
- references/security-and-policy.md 4 KB
- references/source-index.md 3 KB
- references/troubleshooting.md 2 KB
- references/version-skew.md 1 KB
- references/workloads-and-rollouts.md 2 KB
- scripts/gather-cluster-state.sh 1 KB
- scripts/k8s-cli 10 KB
- scripts/refresh-version-matrix.sh 1 KB
- scripts/test-k8s-cli.sh 1 KB
- scripts/verify-cluster-health.sh 1 KB
- templates/cluster-inventory.json 1 KB
- templates/deployment.yaml 1 KB
- templates/diagnostic-report.md 1 KB
- templates/hpa.yaml 1 KB
- templates/networkpolicy-default-deny.yaml 1 KB
- templates/pdb.yaml 1 KB
- templates/upgrade-runbook.md 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · magnus919/agent-skills | 100 | MIT |
| nikospavlopoulos/devops-mutant-powers | 100 | MIT |
| nimadorostkar/Claude-Skills-collection | 100 | MIT |
| claude-dev-suite/claude-dev-suite | 100 | MIT |
| tspry/superpowers-devops | 100 | MIT |
| G1Joshi/Agent-Skills | 100 | MIT |
| chrishuffman5/domain-expert | 100 | MIT |
| EliasOulkadi/shokunin | 100 | MIT |
| Tyler-R-Kendrick/agent-skills | 100 | MIT |
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 0d93f871e8a2 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100kubernetes-platform
Build and operate Kubernetes platforms - EKS, GKE, AKS, OpenShift, K3s, RKE2, MicroK8s - with ingress, cert-manager, external-dns, autoscaling, storage classes, CRDs/operators and version upgrades. Use for cluster creation, platform add-ons and upgrades; use kubernetes-operator… - 90orchestration
Compares container orchestration platforms -- Kubernetes, managed Kubernetes (EKS, AKS, GKE), OpenShift, Rancher, and Helm -- to help pick or evaluate a platform. Use for \"orchestration\", \"Kubernetes vs\", \"which orchestrator\", \"managed Kubernetes\", \"container… - 91dd-agent-install-kubernetes
Install the Datadog Agent on a Kubernetes cluster - Amazon EKS (standard or Fargate profiles), Azure AKS, Google GKE (standard or Autopilot), OpenShift, Oracle OKE, VMware Tanzu (TKG), Rancher (RKE2/K3s), or self-managed - through the Datadog Operator (kubectl/Helm), the Datadog… - 100kubernetes-docs
Search and read Kubernetes documentation in markdown format. Use when the user asks about Kubernetes concepts, tasks, API reference, kubectl, or any upstream k8s topic — including pods, deployments, services, RBAC, networking, storage, or scheduling. - 100k8s-manifest-preapply-review
Reviews Kubernetes manifests (Deployments, StatefulSets, Services, Ingress, RBAC, NetworkPolicy, Helm-rendered YAML) before kubectl apply and reports findings by severity with YAML fixes. Use when asked to review, audit or harden k8s YAML, check securityContext, probes, resource… - 90kubernetes-operator
Use when the user asks about Kubernetes, k8s, kubectl, Helm, GitOps, Flux, Argo CD, kustomize, manifests, pods, deployments, services, ingress, Gateway API, RBAC, NetworkPolicy, Pod Security, CRDs, operators, cluster operations, or pasted Kubernetes YAML/errors.