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 Morningstar202604/awesome-skillkit --skill kubernetes-operatorgit clone --depth 1 https://github.com/Morningstar202604/awesome-skillkitWrote 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/morningstar202604/awesome-skillkit/kubernetes-operator)<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.
<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>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.00165 | $0.04969 |
| Opus 5.5 | $0.00066 | $0.01988 |
| Sonnet 5.5 | $0.00033 | $0.00994 |
| Haiku 4.5 | $0.00016 | $0.00497 |
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 2mo 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 — 345 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Kubernetes Operator
构建调谐正确的 Operator。多数 operator 问题不是 Kubernetes 的问题,而是调谐循环的问题:finalizer 缺失、阻塞调用、瞬态错误不 requeue、status 漂移、RBAC 过度授权。本技能用确定性手段在代码进集群之前拦住它们。
何时使用
- 构建新的 Kubernetes Operator(CRD 的控制器)
- 审查现有 operator 的能力等级缺口
- 审计 CRD spec 的 status/conditions/finalizer 正确性
- 选型框架(controller-runtime / kubebuilder / operator-sdk / metacontroller / KOPF)
- 设计 Custom Resource 的 API 面
- 加固 RBAC、leader 选举或 webhook 校验
何时不使用
- 纯 Helm chart 打包 → 用
helm-chart-builder - 常规 kubectl 操作 / 蓝绿发布 → 用
senior-devops - 泛用 k8s 安全态势 → 用
cloud-security - "我只是想跑个负载" —— 那是 Deployment / Job,不是 operator
输入清单
开工前一次性收集。缺输入时用这句话向用户问一次:"要审计/构建 Operator,请一次性提供:operator 仓库路径、CRD YAML 路径、controller Go 源文件路径、目标语言/框架(如已定)。"
| 输入 | 必需 | 说明 |
|---|---|---|
| Operator 仓库根目录 | 是(audit/bootstrap) | 包含 config/、controllers/、api/ 的目录 → --operator-dir |
| CRD YAML 文件或目录 | 是(CRD 检查) | 用户 operator 仓库中的 config/crd/myapp.yaml → --crd |
| Go controller 源码 | 是(reconcile lint) | 如 controllers/myapp_controller.go → --controller |
| Group/Version/Kind | 是(新 operator) | 如 apps.example.com/v1alpha1,kind MyApp |
| 语言/框架约束 | 用于框架选型 | Go / Python / Java / 多语言;见工具选型全景 |
前置自检
python3 --version # 预期:Python ≥ 3.8。3 个工具全部仅依赖标准库。
ls scripts/crd_validator.py scripts/reconcile_lint.py scripts/operator_capability_audit.py
# 预期:3 个文件全部列出。
- Python 缺失或版本过旧 → 安装 Python ≥ 3.8,然后停止。
- 脚本文件缺失 → 目录不对;
cd到本技能目录重新检查,然后停止。 - 审计现有 operator?再跑
ls <operator-dir>/config/crd/ <operator-dir>/controllers/—— 预期:至少一个 CRD YAML 和一个控制器.go文件。缺失 → 与用户确认仓库布局后再继续(不要猜路径)。
核心原则:operator 是调谐循环,不是脚本
observe(actual) → desired = read(spec) → diff(actual, desired) → act → update(status)
↓
requeue / done
失败的 operator 通常是这样:
- 把 reconcile 当命令式脚本(先做这个,再做这个)而不是声明式(幂等地让 actual=desired)
- 瞬态失败不 requeue
- 不用 finalizer,留下孤儿资源
- 改 spec 而不是改 status
- 不用 status 子资源(status 更新会触发 spec 调谐 → 死循环)
- reconcile 内阻塞(长 HTTP 调用、锁)
- 忘了 leader 选举 → 多副本部署时脑裂
What ships with it
13 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .gitignore 56 B
- assets/config/crd/myapp.yaml 533 B
- assets/controllers/myapp_controller.go 355 B
- assets/crd_template.yaml 2.6 KB
- assets/reconcile_skeleton.go 4.0 KB
- references/crd_design.md 7.7 KB
- references/operator_pattern.md 7.5 KB
- references/reconcile_loop.md 7.9 KB
- references/tooling_landscape.md 8.1 KB
- scripts/crd_validator.py 5.8 KB runs code
- scripts/operator_capability_audit.py 5.8 KB runs code
- scripts/reconcile_lint.py 6.3 KB runs code
- scripts/test_smoke_all.py 1.3 KB runs code
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.
- 2mo ago Changed · -1 lines · +4 tokens per session 141b3bb9e42d
- 2mo ago Changed · +1 lines · +161 tokens per session f9819f748505
- 2mo ago Changed 4c970f4fcc5a
- 2mo ago Changed · +98 lines · -133 tokens per session 09e85432f389
- 3mo ago First seen · 247 lines · 133 tokens per session scan A 26db19c74530
kubernetes-operator is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 165 tokens to every session and 4,969 once invoked, about $0.0007 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-operatorMorningstar202604/awesome-skillkit | Skill | 0 | 2mo ago | Apache-2.0 | A | 165 | Claude Code, Codex |
| docker-managementNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 14 | Claude Code, Codex |
| deployment-patternsaffaan-m/ECC | Skill | 313k | 7d ago | MIT | A | 41 | Claude Code, Kiro |
| docker-patternsaffaan-m/ECC | Skill | 313k | 7d ago | MIT | A | 40 | Claude Code, Kiro |
| sandbox-imageslangchain-ai/open-swe | Skill | 11k | today | MIT | A | 55 | Claude Code, Codex |
| deploy-docker-composeomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 84 | Claude Code, Codex |
| langbot-deploylangbot-app/LangBot | Skill | 19k | today | Apache-2.0 | B | 104 | Claude Code, Codex |