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.
npx skills add j4flmao/agent-skills --skill k8s-operatorsgit clone --depth 1 https://github.com/j4flmao/agent-skillsWrote 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.
[](https://agentmods.dev/skills/j4flmao/agent-skills/k8s-operators)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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
observedGenerationand 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
- Reflector does an initial LIST, then a WATCH from the returned
resourceVersion; on410 Gone(history compacted) it relists. - Indexer is a local, thread-safe cache; reads in Reconcile hit the cache, not the API server.
- Event handlers only enqueue a key (
namespace/name). The work queue de-duplicates keys, so 50 rapid updates become one reconcile. - Workers pop keys and call Reconcile. Errors → requeue with exponential backoff (rate-limited queue). Success →
Forget. - Resync periodically re-delivers all cached objects to catch missed external drift.
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.
- 1mo ago Changed · +132 lines · +144 tokens per session e2aff0664449
- 2mo ago First seen · 20 lines · 0 tokens per session scan A da75416c2762
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.
cloud-native-k8s-operators compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cloud-native-k8s-operatorsj4flmao/agent-skills | Skill | 46 | 13d ago | MIT | A | 144 | Claude Code, Codex |
| advanced-kuberneteswilliamzujkowski/standards | Skill | 22 | 3mo ago | MIT | A | 32 | Claude Code, Codex |
| openpitrixkubesphere/kubesphere | Skill | 17k | 4mo ago | none | A | 60 | Claude Code, Codex |
| kubesphere-openkruisekubesphere/kubesphere | Skill | 17k | 4mo ago | none | A | 99 | Claude Code, Codex |
| kubesphere-volcanokubesphere/kubesphere | Skill | 17k | 4mo ago | none | A | 85 | Claude Code, Codex |
| whizard-notificationkubesphere/kubesphere | Skill | 17k | 4mo ago | none | A | 36 | Claude Code, Codex |
| whizard-telemetry-rulerkubesphere/kubesphere | Skill | 17k | 4mo ago | none | A | 31 | Claude Code, Codex |