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 agentmods add skills/tmj-90/gaffer/kubernetes-operatornpx skills add tmj-90/gaffer --skill kubernetes-operatorgit clone --depth 1 https://github.com/tmj-90/gafferWrote 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/tmj-90/gaffer/kubernetes-operator)<a href="https://agentmods.dev/skills/tmj-90/gaffer/kubernetes-operator"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/kubernetes-operator.svg" alt="Measured on agentmods" height="20"></a>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.00074 | $0.00972 |
| Opus 5 | $0.00037 | $0.00486 |
| Sonnet 5 | $0.00015 | $0.00194 |
| Haiku 4.5 | $0.00007 | $0.00097 |
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 5d 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 — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Build operators that reconcile correctly
An operator is a reconcile loop, not a script. 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.
The reconcile mental model
observe(actual) → desired = read(spec) → diff(actual, desired) → act → update(status)
↓
requeue / done
Idempotent, not imperative. The reconcile function must be callable any number of times with the same outcome. It must not assume what happened on the previous call.
Common operator bugs
| Bug | Prevention |
|---|---|
| Blocking HTTP calls in reconcile | Use async clients or move to a goroutine |
| No requeue on transient error | Always return ctrl.Result{}, err for transient; RequeueAfter for polling |
| Missing finalizer | Add finalizer on creation; remove only after cleanup complete |
| Mutating spec instead of status | Spec is user-owned; status is controller-owned |
| No status subresource | Status updates without subresource trigger spec reconcile → loop |
| RBAC over-grant | Principle of least privilege; use ClusterRole only when namespace-scope is insufficient |
| No leader election | Multi-replica deploy without leader election → split-brain |
Operator capability levels (OLM)
Level 1 (Basic install) → Level 2 (Seamless upgrades) → Level 3 (Full lifecycle) → Level 4 (Deep insights) → Level 5 (Auto pilot)
Start at Level 1 and promote only when the lower levels are tested and stable.
Steps
- Read the lore + existing operators.
search_lorefor CRD conventions, RBAC policy, and framework choice. Match the existing toolchain (kubebuilder vs operator-sdk vs KOPF vs metacontroller). - Design the CRD API surface.
spec= desired state (user-owned);status= observed state (controller-owned). Defineconditionsas standard status fields. Validate with admission webhooks for types that have invariants. - Implement the reconcile loop. Read → diff → act → update status. Every
returnis eitherResult{}, nil(done, no requeue) orResult{}, err/Result{RequeueAfter: d}, nil(retry/poll). - Add finalizers. Register on object creation; execute cleanup in the finalizer block; remove only after cleanup succeeds.
- RBAC. Generate from controller-gen annotations; scope to namespace where possible; document every
ClusterRolegrant. - Leader election. Enable for any operator that will run with >1 replica.
- Verify. Deploy to a local cluster (kind/minikube); create/update/delete a CR; confirm status conditions reflect the current state; test error injection (unavailable dependency); record evidence.
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.
- 5d ago First seen · 69 lines · 74 tokens per session scan A 3cc7256722f7
kubernetes-operator is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 5d ago), licensed Apache-2.0. It adds 74 tokens to every session and 972 once invoked, about $0.0004 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.
Other skills, from other repositories
broccoli-oss-gcp-deploy
Deploy this repository to a new Google Cloud project using the repo's existing Cloud Run, Cloud Run Jobs, Cloud SQL, Secret Manager, and Artifact Registry scripts. Use when Codex needs to interpret a generic repo setup request as a deploy, discover the active gcloud operator/account/org/billing context, fail early on…
dokploy-manager
Remote server management for Dokploy production environment. Use for viewing container logs, monitoring services status, checking deployments, restarting services, and troubleshooting production issues. Requires SSH access configured via DOKPLOYSSH environment variables.
agent-resource-allocator
Agent skill for resource-allocator - invoke with $agent-resource-allocator.
mobile-developer
Expert knowledge in mobile app development for iOS, Android, and cross-platform solutions.
terraform
Terraform and OpenTofu configuration, modules, testing, state management, and HCL review. Use when working with Terraform, OpenTofu, HCL, tfvars, tftest, state migration, or IaC patterns.
gh-ci-analyzer
使用 gh CLI 分析 GitHub Actions CI 日志,提供结构化的故障诊断和报告.