kubernetes-operator

kubernetes-operator is a skill for Claude Code from Morningstar202604/awesome-skillkit. It costs 133 tokens per session (2,747 once invoked), scanned A, original, Apache-2.0.

A guide for building Kubernetes Operators, which are controllers that continually make a cluster match the configuration declared in a custom resource.

In plain words
What is it for?
Use it to design custom resources, reconcile loops, status conditions, finalizers, RBAC, leader election, and webhook validation.
Why use it?
It focuses on common controller problems such as missing cleanup steps, stalled retries, incorrect status, and overly broad permissions. This helps catch design and implementation gaps before deployment.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: mentions Codex; mentions Gemini CLI; mentions OpenCode.

Good fit Use it to design custom resources, reconcile loops, status conditions, finalizers, RBAC, leader election, and webhook validation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/kubernetes-operator
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 Morningstar202604/awesome-skillkit --skill kubernetes-operator
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

Made for: Claude Code.

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-operator

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/kubernetes-operator/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/kubernetes-operator)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/kubernetes-operator"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/kubernetes-operator/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 kubernetes-operator

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/kubernetes-operator"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/kubernetes-operator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,747 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00133 $0.02747
Opus 5 $0.00067 $0.01373
Sonnet 5 $0.00027 $0.00549
Haiku 4.5 $0.00013 $0.00275

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

Security

Grade A, and why

kubernetes-operator scanned grade A with 0 findings 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 10d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/crd_validator.py, scripts/operator_capability_audit.py, scripts/reconcile_lint.py), 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/programming/infrastructure/kubernetes-operator/SKILL.md · 247 lines

How it starts

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

Kubernetes Operator

Build operators that reconcile correctly. Most operator bugs are not Kubernetes bugs — they are reconcile-loop bugs: missing finalizers, blocking calls, no requeue on transient errors, status drift, RBAC over-grants. This skill catches them deterministically before they reach a cluster.

When to use

  • Building a new Kubernetes Operator (controller for a CRD)
  • Reviewing an existing operator for capability-level gaps
  • Auditing a CRD spec for status/conditions/finalizer correctness
  • Choosing a framework (controller-runtime / kubebuilder / operator-sdk / metacontroller / KOPF)
  • Designing the API surface of a Custom Resource
  • Hardening RBAC, leader election, or webhook validation

When NOT to use

  • Plain Helm chart packaging → use helm-chart-builder
  • Standard kubectl operations / blue-green deploys → use senior-devops
  • General k8s security posture → use cloud-security
  • "I want to run a workload" — that's a Deployment / Job, not an operator

Core principle: an operator is a reconcile loop, not a script

observe(actual) → desired = read(spec) → diff(actual, desired) → act → update(status)
                                                                          ↓
                                                                   requeue / done

Operators that fail are the ones that:

  1. Treat reconcile as imperative (do this, then this, then this) instead of declarative (make actual=desired, idempotently)
  2. Don't requeue transient failures
  3. Don't use finalizers, leaving orphan resources
  4. Mutate spec instead of status
  5. Don't use the status subresource (status updates trigger spec reconciles → loop)
  6. Block in reconcile (long HTTP calls, locks)
  7. Forget leader election → split-brain on multi-replica deploys

The 3 tools below catch each of these.

Quick start

SKILL=engineering/kubernetes-operator/skills/kubernetes-operator

# Validate a CRD design
python "$SKILL/scripts/crd_validator.py" --crd config/crd/myapp.yaml

# Lint a Go reconcile function
python "$SKILL/scripts/reconcile_lint.py" --controller controllers/myapp_controller.go

# Score against OperatorHub Capability Levels (1-5)
python "$SKILL/scripts/operator_capability_audit.py" --operator-dir .

Read the full file on GitHub · 247 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. 10d ago First seen · 247 lines · 133 tokens per session scan A 26db19c74530

Subscribe to this mod's changes

kubernetes-operator is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (1 stars, last pushed today), licensed Apache-2.0. It adds 133 tokens to every session and 2,747 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

kubernetes-operator

Use when building a Kubernetes Operator — custom controllers that reconcile CRD state. Triggers on "build an operator", "CRD design", "reconcile loop", "controller-runtime", "kubebuilder", "operator-sdk", "metacontroller", "KOPF", "operator capability levels", or "custom resource". Ships CRD validator, reconcile-loop…

elproximoframework/Skills_Ingenieria · 133 tokens

kubernetes-operator

Use when building a Kubernetes Operator — custom controllers that reconcile CRD state. Triggers on "build an operator", "CRD design", "reconcile loop", "controller-runtime", "kubebuilder", "operator-sdk", "metacontroller", "KOPF", "operator capability levels", or "custom resource". Ships CRD validator, reconcile-loop…

csiddhant796-blip/claude-skills-collection · 133 tokens

k8s-node-notready

A Chinese-language workflow for handling Kubernetes nodes marked NotReady. Kubernetes is a system for running and managing containerized applications across machines.

kudig-io/kudig-database · 22 tokens

k8s-deployment-rollout

A troubleshooting workflow for failed Kubernetes Deployment releases and rolling updates that become stuck. Kubernetes is a system for running and managing containers.

kudig-io/kudig-database · 21 tokens

k8s-pod-crashloop

A troubleshooting guide for Kubernetes pods that repeatedly restart or run out of memory. Kubernetes is a system for running and managing containers, and a pod is its basic unit for running an application.

kudig-io/kudig-database · 0 tokens

k8s-image-pull

A Kubernetes troubleshooting workflow for ImagePullBackOff, a status meaning that a cluster cannot pull a container image and keeps retrying.

kudig-io/kudig-database · 22 tokens