cloud-native-k8s-operators

cloud-native-k8s-operators is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 144 tokens per session (1,838 once invoked), scanned A, original, MIT.

A Kubernetes Operator is software that manages a specific kind of application inside Kubernetes, using custom resources to describe the desired setup. It repeatedly compares that setup with the running cluster and makes corrections.

In plain words
What is it for?
Use it to build Kubernetes controllers that create or update resources such as Pods and Services in response to changes.
Why use it?
It removes the need to handle complex operational tasks manually each time the cluster changes. The Operator keeps the application aligned with its declared configuration.

Skill for Claude CodeCodex

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

Good fit Use it to build Kubernetes controllers that create or update resources such as Pods and Services in response to changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/j4flmao/agent-skills/k8s-operators
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 j4flmao/agent-skills --skill k8s-operators
Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-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 cloud-native-k8s-operators

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/k8s-operators/github.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/k8s-operators)
Your own site
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/k8s-operators"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/k8s-operators/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 cloud-native-k8s-operators

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/k8s-operators"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/k8s-operators.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 144 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,838 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00144 $0.01838
Opus 5.5 $0.00058 $0.00735
Sonnet 5.5 $0.00029 $0.00368
Haiku 4.5 $0.00014 $0.00184

Measured 1mo ago against content hash e2aff0664449, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloud-native-k8s-operators 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 1mo 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.

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/cloud-native/k8s-operators/SKILL.md · 152 lines

How it starts

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

Kubernetes Operators and the Controller Pattern

Purpose

An operator is a custom controller plus a CRD that encodes operational knowledge (provisioning, upgrades, failover, backup) as code. This skill explains how the machinery works so designs are level-triggered, idempotent, and cheap on the API server — and so teams only build an operator when Helm/Kustomize is genuinely insufficient.

Agent Protocol

Trigger

"how do operators work", "reconciliation loop", "informer", "work queue", "controller pattern", "level-triggered", "CRD basics", "should I write an operator", "operator vs helm".

Input Context

  • What the operator must manage (stateful app, external cloud resource, policy).
  • Day-2 operations required (upgrade, backup, scaling, failover).
  • Team language/tooling (Go + controller-runtime, Java Operator SDK, kopf for Python).

Output Artifact

Design explanation, CRD spec/status shape, reconcile outline. No file unless requested.

Response Format

Build an operator?: {yes|no} (why)
CRD: {group/version/kind}, spec fields, status conditions
Watches: {primary kind} + owns {child kinds}
Reconcile steps: {ordered, idempotent}
Cleanup: {ownerReferences|finalizer for external resources}

Completion Criteria

  • Reconcile is idempotent and works from current state only (no event payload reliance).
  • Status reports observedGeneration and Conditions.
  • External resources cleaned up through a finalizer.

Do You Need an Operator?

Situation Answer
Install + configure stateless app No — Helm/Kustomize
Stateful system with failover, backups, version upgrades needing ordered steps Yes — or adopt an existing operator (CloudNativePG, Strimzi, Prometheus Operator)
Provision cloud resources from K8s Usually use Crossplane / AWS Controllers for Kubernetes / Config Connector instead of writing one
One-off migration No — a Job

Mechanics

flowchart LR
  API[kube-apiserver] -- LIST then WATCH --> R[Reflector]
  R --> DF[DeltaFIFO]
  DF --> IDX[Indexer cache]
  DF --> H[Event handlers]
  H -- enqueue namespace/name --> Q[Rate-limited work queue]
  Q --> W[Worker: Reconcile]
  W -- read --> IDX
  W -- create/update/patch --> API
  1. Reflector does an initial LIST, then a WATCH from the returned resourceVersion; on 410 Gone (history compacted) it relists.
  2. Indexer is a local, thread-safe cache; reads in Reconcile hit the cache, not the API server.
  3. Event handlers only enqueue a key (namespace/name). The work queue de-duplicates keys, so 50 rapid updates become one reconcile.
  4. Workers pop keys and call Reconcile. Errors → requeue with exponential backoff (rate-limited queue). Success → Forget.
  5. Resync periodically re-delivers all cached objects to catch missed external drift.

Read the full file on GitHub · 152 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. 1mo ago Changed · +132 lines · +144 tokens per session e2aff0664449
  2. 2mo ago First seen · 20 lines · 0 tokens per session scan A da75416c2762

Subscribe to this mod's changes

cloud-native-k8s-operators is a skill published in the GitHub repository j4flmao/agent-skills (46 stars, last pushed 13d ago), licensed MIT. It adds 144 tokens to every session and 1,838 once invoked, about $0.0006 per session on Opus 5.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-09-03.

Related

cloud-native-k8s-operators compared with skills from other repositories

cloud-native-k8s-operators next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cloud-native-k8s-operatorsj4flmao/agent-skillsSkill4613d agoMITA144Claude Code, Codex
advanced-kuberneteswilliamzujkowski/standardsSkill223mo agoMITA32Claude Code, Codex
openpitrixkubesphere/kubesphereSkill17k4mo agononeA60Claude Code, Codex
kubesphere-openkruisekubesphere/kubesphereSkill17k4mo agononeA99Claude Code, Codex
kubesphere-volcanokubesphere/kubesphereSkill17k4mo agononeA85Claude Code, Codex
whizard-notificationkubesphere/kubesphereSkill17k4mo agononeA36Claude Code, Codex
whizard-telemetry-rulerkubesphere/kubesphereSkill17k4mo agononeA31Claude Code, Codex