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 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/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/tmj-90/gaffer/kubernetes-operator"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/kubernetes-operator.svg" alt="Reviewed on agentmods" width="80" 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.01605 |
| Opus 5.5 | $0.00030 | $0.00642 |
| Sonnet 5.5 | $0.00015 | $0.00321 |
| Haiku 4.5 | $0.00007 | $0.00161 |
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 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 — 109 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 level-based control loop: each Reconcile reads the whole current state,
computes what should exist, converges one step, and records what it observed. Most operator
bugs are distributed-systems bugs — stale caches, conflicting writers, a paused leader —
not Kubernetes API bugs. Sources: the Kubernetes API conventions, the kubebuilder book's
"Good practices", and the controller-runtime FAQ.
Invariants
- Idempotent and level-based. Reconcile must produce the same result however many times it runs and must not branch on "was this a create or an update event" — events are coalesced and dropped. Read all needed state, then write.
- One controller per Kind. Children map back to their root via
Owns(...)/handler.EnqueueRequestForOwner; other Kinds viaEnqueueRequestsFromMapFunc. - Spec is the user's, status is yours. Enable the status subresource
(
+kubebuilder:subresource:status), write status only through it, and reportmetav1.Conditions (Type,Status,Reason,Message,ObservedGeneration) plusstatus.observedGeneration. - Assume the cache is stale. Use deterministic child names so a duplicate create
fails with
AlreadyExistsinstead of creating two. - Writes are optimistic. Every update carries a
resourceVersion; aConflictmeans someone else wrote — return the error and let the requeue re-read. Never retry by blindly re-applying your stale copy. PreferPatch(merge-from) or server-side apply with a field owner for children.
Procedure
- Read what exists.
search_lorefor framework, CRD group/version conventions and RBAC policy. Match the existing toolchain (kubebuilder, operator-sdk, KOPF). Target OLM capability level 1 (basic install) first; promote only when lower levels are tested. - Design the API. Minimal
spec; validation in the schema (kubebuilder markers, CELx-kubernetes-validations) before reaching for a webhook; defaults via markers;statuswith conditions such asReady/Degraded. Version the API (v1alpha1) and never repurpose a field. - Implement Reconcile in this order: get the object (not found → return nil);
handle
DeletionTimestamp(run cleanup, remove finalizer, return); ensure finalizer (only if you own resources outside the cluster or across namespaces — otherwise owner references + garbage collection suffice); converge each child withcontrollerutil.SetControllerReference; update status; return. - Return values mean something. Transient error →
return ctrl.Result{}, err(rate-limited backoff). Waiting on something external →RequeueAfter. Invalid spec the user must fix → set a condition and return without error (orreconcile.TerminalError) so it does not hot-loop. Every external call takes the requestctxwith a timeout. Do not hand work to a goroutine Reconcile never observes — its error is lost and nothing requeues; start long external work idempotently and poll it withRequeueAfter. - Concurrency and leadership. The workqueue never processes the same key
concurrently, but different keys run in parallel under
MaxConcurrentReconciles— state shared across keys (in-memory maps, external quotas) needs synchronisation. Enable leader election for >1 replica and keep the default "exit on lost lease". A leader paused past its lease (GC, SIGSTOP, node freeze) may resume and write before it notices:resourceVersionconflicts fence Kubernetes writes, but external side effects need idempotency keys or their own fencing. Live runs lost acknowledged writes to exactly this time-only lease pattern. - Avoid self-triggered loops. Use
predicate.GenerationChangedPredicateon the primary resource when status updates should not re-trigger reconciliation; never write status fields that change every run (timestamps) without a real change. - RBAC and manifests.
+kubebuilder:rbacmarkers with the narrowest verbs and resources; no wildcards; namespace-scopedRoleunless cluster scope is required and documented. Regenerate (see Verification) and commit generated files; never hand-edit them. - Verify (below), evidence each acceptance criterion with the
record-evidenceskill, then stop.
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 · +40 lines 894ae456fb1a
- 2mo 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 2d ago), licensed Apache-2.0. It adds 74 tokens to every session and 1,605 once invoked, about $0.0003 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-08-31.
kubernetes-operator compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| kubernetes-operatortmj-90/gaffer | Skill | 2 | 2d ago | Apache-2.0 | A | 74 | Claude Code, Codex |
| plan-creationQBall-Inc/the-bulwark | Skill | 8 | yesterday | MIT | A | 38 | Claude Code |
| bulwark-brainstormQBall-Inc/the-bulwark | Skill | 8 | yesterday | MIT | A | 50 | Claude Code |
| test-auditQBall-Inc/the-bulwark | Skill | 8 | yesterday | MIT | A | 0 | Claude Code |
| anthropic-validatorQBall-Inc/the-bulwark | Skill | 8 | yesterday | MIT | A | 40 | Claude Code |
| code-reviewQBall-Inc/the-bulwark | Skill | 8 | yesterday | MIT | A | 61 | Claude Code |
| create-subagentQBall-Inc/the-bulwark | Skill | 8 | yesterday | MIT | A | 42 | Claude Code |