kubernetes-skill
This skill helps agents diagnose and fix six common Kubernetes failure modes: insecure workload defaults, resource starvation, network exposure, privilege…
Community author
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
- License
- MIT (permissive)
- Pin
- 34f93c1pinned Oct 9, 2026
- Context cost
- about 1,100 tokenswhen the skill loads
- GitHub stars
- 445on lukasniessen/kubernetes-skill
- Scripts
- None found
What it does
“Prevent Kubernetes hallucinations by diagnosing and fixing failure modes: insecure workload defaults, resource starvation, network exposure, privilege sprawl, fragile rollouts, and API drift. Use when generating, reviewing, refactoring, or migrating manifests, Helm charts, Kustomize overlays, cluster policies, and platform-specific Kubernetes work for EKS, GKE, AKS, OpenShift, GitOps controllers, or observability stacks.”
Generated summary from the skill's own text
This skill helps agents diagnose and fix six common Kubernetes failure modes: insecure workload defaults, resource starvation, network exposure, privilege sprawl, fragile rollouts, and API drift. It guides agents through capturing cluster context, identifying risks, loading targeted reference documentation, and generating validated manifests, Helm charts, or Kustomize overlays with explicit guardrails for safe deployment.
When to use it
- Generating or reviewing Kubernetes manifests, Helm charts, or Kustomize overlays
- Migrating workloads across cluster versions or distributions like EKS, GKE, or AKS
- Hardening security contexts, RBAC, or network policies in existing configurations
- Refactoring deployments to address scheduling, rollout, or API compatibility issues
When not to
- Debugging runtime container or application issues unrelated to Kubernetes manifests
- Managing cluster infrastructure or control-plane configuration tasks
- Troubleshooting existing production incidents without manifest review
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add lukasniessen/kubernetes-skill --skill kubernetes-skillInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install lukasniessen/kubernetes-skill kubernetes-skill@34f93c1e409156958cc7c410ab1aa88ab512f10fInstalls the commit we checked (34f93c1).
Copy by hand
Download the folder at 34f93c1 and put it in .claude/skills/kubernetes-skill for Claude Code and in .agents/skills/kubernetes-skill for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "kubernetes-skill" by LukasNiessen. Source, pinned to commit 34f93c1e409156958cc7c410ab1aa88ab512f10f: https://github.com/lukasniessen/kubernetes-skill/tree/34f93c1e409156958cc7c410ab1aa88ab512f10f 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/kubernetes-skill/ for Claude Code and .agents/skills/kubernetes-skill/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/lukasniessen/kubernetes-skill
SKILL.md at the pin
--- name: kubernetes-skill description: "Prevent Kubernetes hallucinations by diagnosing and fixing failure modes: insecure workload defaults, resource starvation, network exposure, privilege sprawl, fragile rollouts, and API drift. Use when generating, reviewing, refactoring, or migrating manifests, Helm charts, Kustomize overlays, cluster policies, and platform-specific Kubernetes work for EKS, GKE, AKS, OpenShift, GitOps controllers, or observability stacks." --- # KubeShark: Failure-Mode Workflow for Kubernetes Run this workflow top to bottom. ## 1) Capture execution context Record before writing manifests: - cluster version (e.g. 1.30, 1.31) and distribution (EKS, GKE, AKS, k3s, vanilla) - target namespace and environment criticality (dev/staging/prod) - workload type (Deployment, StatefulSet, Job, CronJob, DaemonSet) - deployment method (raw YAML, Helm, Kustomize, operator-managed) - policy enforcement (Pod Security Admission level, Kyverno, OPA/Gatekeeper) - cloud provider and CNI (affects networking, storage classes, load balancers) - platform controllers/add-ons (GitOps, observability, ingress, service mesh, autoscaling) If unknown, state assumptions explicitly. ## 2) Diagnose likely failure mode(s) Select one or more based on user intent and risk: - insecure workload defaults: missing security contexts, PSS violations, host access - resource starvation: missing requests/limits, no PDB, scheduling chaos - network exposure: flat networking, missing policies, wrong Service types, DNS issues - privilege sprawl: overly permissive RBAC, leaked secrets, excess ServiceAccount rights - fragile rollouts: misconfigured probes, mutable tags, unsafe update strategies - API drift: wrong apiVersion, deprecated APIs, schema violations, tool-specific errors ## 3) Load only the relevant reference file(s) Primary failure-mode references: - `references/insecure-workload-defaults.md` - `references/resource-starvation.md` - `references/network-exposure.md` - `references/privilege-sprawl.md` - `references/fragile-rollouts.md` - `references/api-drift.md` Supplemental references (only when needed): - `references/deployment-patterns.md` - `references/stateful-patterns.md` - `references/job-patterns.md` - `references/daemonset-operator-patterns.md` - `references/security-hardening.md` - `references/observability.md` - `references/multi-tenancy.md` - `references/storage-and-state.md` - `references/helm-patterns.md` - `references/kustomize-patterns.md` - `references/validation-and-policy.md` - `references/examples-good.md` - `references/examples-bad.md` - `references/do-dont-patterns.md` Conditional Reference Retrieval (CRR) references (load only when the signal is detected): - `references/conditional/eks-patterns.md` for EKS, AWS, IRSA, EKS Pod Identity, AWS Load Balancer Controller, EBS/EFS CSI, Karpenter - `references/conditional/gke-patterns.md` for GKE, Autopilot, Workload Identity Federation for GKE, Dataplane V2, GCE Ingress, Config Sync - `references/conditional/aks-patterns.md` for AKS, Microsoft Entra Workload ID, Azure CNI, AGIC, Azure Disk/File/Blob CSI - `references/conditional/openshift-patterns.md` for OpenShift, OKD, ROSA, ARO, Routes, SCCs, OLM, `oc` - `references/conditional/gitops-controllers.md` for Argo CD, ApplicationSet, Flux, GitOps reconciliation, sync waves - `references/conditional/observability-stacks.md` for Prometheus Operator, ServiceMonitor, PodMonitor, OpenTelemetry, Loki, Grafana Do not load multiple CRR files unless the task spans multiple detected platforms/tools. ## 4) Propose fix path with explicit risk controls For each fix, include: - why this addresses the failure mode - what could still go wrong at deploy time or runtime - guardrails (validation commands, policy checks, rollback path) ## 5) Generate implementation artifacts When applicable, output: - Kubernetes manifests (YAML with security contexts, resource limits, labels) - Helm values/templates or Kustomize overlays - NetworkPolicies, RBAC resources, PodDisruptionBudgets - Policy rules (Kyverno/OPA) and admission controls ## 6) Validate before finalize Always provide validation steps tailored to deployment method and risk tier: - `kubectl apply --dry-run=server` or `kubectl diff` - `kubeconform` for schema validation against target cluster version - cross-resource consistency check (label/selector/port alignment) - policy scan (PSS profile check, Kyverno/OPA audit) Never recommend direct production apply without reviewed diff and approval. ## 7) Output contract Return: - assumptions and cluster version floor - selected failure mode(s) - chosen remediation and tradeoffs - validation/test plan - rollback/recovery notes (rollout undo, revision history, data safety)
From lukasniessen/kubernetes-skill at 34f93c1, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at 34f93c1Files
- SKILL.md4.7 KB · 4aba65a8bd69
- .claude-plugin/
- marketplace.json423 B · a4a26d58629d
- .gitignore28 B · f2ecf84a3eba
- CHANGELOG.md622 B · ef6cf593b314
- CODE_OF_CONDUCT.md943 B · 9cf2fd370900
- CONTRIBUTING.md1.9 KB · b201a482adc4
- LICENSE1.1 KB · 91a4167f37c7
- PHILOSOPHY.md11 KB · 0042e20e90a2
- README.md23 KB · e4c3c3349eee
- assets/
- logo.png1.8 MB · 928cccfdbad6
- docs/
- .gitignore21 B · ed7cfd5067c8
- README.md1.4 KB · 028d0cea3f3d
- SUMMARY.md1.5 KB · 104c7de9e9a1
- advanced/
- token-efficiency.md3.6 KB · 4d155554eb5b
- architecture/
- multi-tenancy.md6.5 KB · 09ffa6464f6b
- storage-and-state.md6.2 KB · 5fae287203d3
- workload-patterns.md6.0 KB · b091bd151902
- book.json371 B · 309d9c894867
- community/
- changelog.md1.3 KB · bc86855aa9f3
- contributing.md2.2 KB · 23cd275e1f8f
- core-concepts/
- failure-modes.md8.1 KB · bf7c9a40f55c
- philosophy.md5.8 KB · edbf3b7c2868
- workflow.md8.0 KB · a67db05b2332
- examples/
- bad-patterns.md3.4 KB · 9633b5482449
- do-dont-checklist.md2.2 KB · d384c1f090c6
- good-patterns.md3.4 KB · b53216cb575f
- failure-modes/
- api-drift.md6.3 KB · d137bafb7f4a
- fragile-rollouts.md6.9 KB · 61b7bef9930a
- insecure-workload-defaults.md6.6 KB · e77807ff28c7
- network-exposure.md6.3 KB · ed47a01e753f
- privilege-sprawl.md6.4 KB · 363ebee69e2e
- resource-starvation.md6.9 KB · 77fd2dd7f594
- getting-started/
- installation.md3.8 KB · ecdc304802f5
- quick-start.md3.3 KB · 4c4dd7601a7d
- guides/
- helm-patterns.md4.6 KB · 3745847f2136
- kustomize-patterns.md4.3 KB · 89faf6fd5cf3
- observability.md4.1 KB · 262f1153d0dd
- security-hardening.md4.6 KB · 622e0929ecdb
- validation-and-policy.md3.5 KB · 85a2effe86ac
- integrations/
- mcp-integration.md3.2 KB · 47356aab38ba
- package-lock.json104 KB · 6afc06da684b
- package.json250 B · cfd9e50fe92e
- references/
- api-drift.md11 KB · cc6ad18d51a4
- conditional/
- aks-patterns.md3.9 KB · 9f9943a5ff2d
- eks-patterns.md4.3 KB · dc5e7cdf8a65
- gitops-controllers.md4.1 KB · a24546c9056b
- gke-patterns.md4.0 KB · 9caef63892d5
- observability-stacks.md4.7 KB · 40ef42e664df
- openshift-patterns.md3.6 KB · d06cbb17386a
- daemonset-operator-patterns.md7.1 KB · cb3a82b79f5e
- deployment-patterns.md6.2 KB · 475e12e7f810
- do-dont-patterns.md4.5 KB · 54617c5f1589
- examples-bad.md8.3 KB · 64a4b3a01372
- examples-good.md11 KB · ffb706e7b846
- fragile-rollouts.md12 KB · 1ccc56e72465
- helm-patterns.md6.1 KB · 80cc99913ddd
- insecure-workload-defaults.md9.4 KB · dfd83ebf9a62
- job-patterns.md5.6 KB · af6fb8b712c2
- kustomize-patterns.md5.6 KB · 0c9fc0ed7ff4
- multi-tenancy.md10 KB · a9f0eed68728
- network-exposure.md15 KB · ccef2dd0cb73
- observability.md9.6 KB · 39dbd5661254
- privilege-sprawl.md10 KB · 24281ef9e5d3
- resource-starvation.md12 KB · f30c664182bb
- security-hardening.md7.7 KB · d46ce72e3248
- stateful-patterns.md6.3 KB · 8fbd99884f8a
- storage-and-state.md11 KB · 5aeabb7ec434
- validation-and-policy.md7.5 KB · 8df0d2b4c230
68 files, 2.2 MB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 34f93c1Related in Cloud and DevOps
debug-openshell-cluster
Diagnoses OpenShell gateway deployment problems across Docker, Podman, Kubernetes, and VM compute platforms.
by NVIDIAOfficial publisher
Claude Code, Codex, Cursor +4 · about 19.1K tokens · pinned 6 days ago
aws-containers
Provides domain expertise for deploying and managing containerized workloads on AWS using EKS, ECS, Fargate, and Elastic Beanstalk.
by Amazon (AWS)Official publisher
Claude Code, Codex, Cursor +4 · about 1.4K tokens · pinned 6 days ago
elastic-beanstalk
Deploy applications to AWS Elastic Beanstalk in Standard mode (EC2) or Cluster mode (managed EKS), handling environment configuration, platform selection, and…
by Amazon (AWS)Official publisher
Claude Code, Codex, Cursor +4 · about 2.9K tokens · pinned 6 days ago
deploying-airflow
This skill guides deploying Airflow DAGs and projects using Astro (Astronomer's managed platform), open-source Airflow on Docker Compose, or Kubernetes with…
by AstronomerOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.7K tokens · pinned 6 days ago
deploying-go-sdk-bundles
This skill builds, packs, and deploys Go SDK bundles as self-contained AFBNDL01 executable artifacts for Airflow's ExecutableCoordinator to run.
by AstronomerOfficial publisher
Claude Code, Codex, Cursor +4 · about 1.7K tokens · pinned 6 days ago
deploying-java-sdk-bundles
This skill teaches how to build Java SDK bundles as JAR files using Gradle or Maven, then deploy them to Airflow workers so the coordinator can execute Java…
by AstronomerOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.6K tokens · pinned 6 days ago