Agent skill

Kubernetes Operator

by borghei in borghei/Claude-Skills

Design, build, and operate Kubernetes operators. An agent skill from borghei/Claude-Skills.

MITAuto-check passedDevOps & Cloud

Install Kubernetes Operator

skills CLI
$ npx skills add borghei/Claude-Skills --skill kubernetes-operator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install borghei/Claude-Skills kubernetes-operator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/borghei/Claude-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/engineering/kubernetes-operator .claude/skills/kubernetes-operator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
kubernetes-operator
GitHub stars
874
Token cost
~1.8k tokens
SKILL.md length
688 words
Files
8 (incl. scripts, references)
Skills in repo
364
Repo updated
First seen
Licence
MIT

At a glance

Design, build, and operate Kubernetes operators. An agent skill from borghei/Claude-Skills.

  • Extending Kubernetes with a custom controller
  • SKILL.md covers Core Capabilities, When to Use, Clarify First and Tools, plus 3 more sections
  • Runs Python scripts from its folder; calls python3
  • Choosing a framework

What it does

Kubernetes Operator is an agent skill from borghei/Claude-Skills. Design, build, and operate Kubernetes operators. Use when extending Kubernetes with a custom controller, choosing a framework, designing CRDs, implementing reconciliation loops, or auditing an operator for anti-patterns.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `references/controller-runtime-patterns.md`, `references/operator-anti-patterns.md` and `references/operator-decisions-and-workflows.md`).

It sits in DevOps & Cloud, covering Container orchestration and Accounting and bookkeeping. It works with Kubernetes. The repository describes itself as: 385 AI skills, 77 expert agents, and 900 stdlib Python tools for every team: engineering, PM, marketing, C-level, compliance, business ops, research, and a LinkedIn toolkit… The licence is MIT.

When your agent uses it

  • Extending Kubernetes with a custom controller
  • Choosing a framework
  • Implementing reconciliation loops
  • Auditing an operator for anti-patterns

Example prompts

  • “/kubernetes-operator”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit c9a1487. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kubernetes Operator loads about 1.8k tokens when it runs, and up to ~20k if it reads all its reference files. Until then it costs about 60 tokens; SKILL.md has 688 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~60
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~20k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from borghei/Claude-Skills at commit c9a1487, republished under its MIT licence (© borghei). 688 words, ~1,822 tokens.

Download SKILL.mdSave it as .claude/skills/kubernetes-operator/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
kubernetes-operator
description
Design, build, and operate Kubernetes operators. Use when extending Kubernetes with a custom controller, choosing a framework, designing CRDs, implementing reconciliation loops, or auditing an operator for anti-patterns.
license
MIT + Commons Clause
metadata.version
1.1.0
metadata.author
borghei
metadata.category
engineering
metadata.domain
engineering
metadata.updated
2026-06-17
metadata.tags
kubernetes, operator-pattern, crd, controller-runtime, kubebuilder, platform-engineering, sre

Kubernetes Operator

End-to-end Kubernetes operator design and construction. Covers the operator pattern (control loops for stateful workloads), CRD design (schema, validation, conversion, status), the reconciliation loop (idempotency, convergence, level- vs edge-triggered), framework selection (controller-runtime / Kubebuilder / operator-SDK / metacontroller), and operational concerns (finalizers, leader election, RBAC scoping, status subresource, observability). Targets Go-based operators (the dominant ecosystem) with notes on alternatives (KOPF, JOSDK, kube-rs).

Core Capabilities

  • Decide whether to write an operator — operator vs Helm vs GitOps vs admission webhook vs Crossplane, and when NOT to build one at all.
  • CRD design — spec/status separation, OpenAPI v3 structural schemas, CEL cross-field validation, versioning, conversion webhooks, status subresource, printer columns, scale subresource.
  • Reconciliation loops — idempotent, level-triggered, converging control loops; phase machines vs always-converge; owner references and garbage collection.
  • Controller-runtime patterns (Go) — skeleton reconcilers, server-side apply, finalizers, leader election, watches/predicates/indexers, error classification, envtest.
  • Framework selection — controller-runtime, Kubebuilder, operator-SDK, Metacontroller, KOPF, JOSDK, kube-rs.
  • Operational hardening — finalizers, leader election, tightened RBAC, status conditions/observedGeneration, Prometheus metrics + structured logging.
  • Anti-pattern audit — 24-entry catalog with severities, detection heuristics, and fixes for production-readiness review.

When to Use

SituationSkill applies
Building a new operator for an internal platform primitiveYes — start with the operator pattern decision
Auditing an existing operator for production-readinessYes — use anti-patterns + scripts/reconciliation_audit.py
Designing CRDs for a custom resourceYes — use CRD design + scripts/crd_validator.py
Deciding "operator vs Helm chart vs plain manifests"Yes — use the decision matrix
Scaffolding a new operator projectYes — scripts/operator_scaffold.py
Debugging a controller that "isn't reconciling"Yes — use reconciliation troubleshooting
Just running someone else's operator (Postgres, Kafka, etc.)Partially — useful for understanding what it does and how to monitor it

Clarify First

Before scaffolding or auditing, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Task — scaffold an operator, validate a CRD, or audit a controller (selects operator_scaffold.py vs crd_validator.py vs reconciliation_audit.py)
  • Resource identity — for scaffolding: the operator name, API group, and kind (sets --name/--group/--kind); for validation/audit: the CRD YAML or controller path (the input the scripts read)
  • Framework — controller-runtime/Kubebuilder/operator-SDK (Go), or KOPF/JOSDK/kube-rs (drives the scaffold patterns)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Tools

ToolPurposeCommand
crd_validator.pyValidate CRD YAML against design best practices (preserve-unknown, missing descriptions/enums/printer-columns, status subresource, cluster-scope)python3 scripts/crd_validator.py --schema my-crd.yaml --format markdown
operator_scaffold.pyGenerate a production-ready operator project skeleton with stricter RBAC, observability, and finalizer scaffoldingpython3 scripts/operator_scaffold.py --name db-operator --group example.com --kind Database
reconciliation_audit.pyAudit Go controller source + CRDs for static-detectable anti-patterns (missing finalizers, no leader election, tight loops, no ownerRef, wide RBAC)python3 scripts/reconciliation_audit.py --controller-path ./internal/controllers --crd ./config/crd/bases/*.yaml

All scripts: stdlib only, argparse CLI, JSON or markdown output.

Show full SKILL.md (241 more words)Show less

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/operator-pattern-and-crds.md — pattern fundamentals, full CRD schema design (validation, CEL, status patterns), versioning, conversion webhooks, status/scale subresources, printer columns, RBAC, and a production-CRD checklist. Read when designing or reviewing a CRD.
  • references/controller-runtime-patterns.md — Go controller-runtime examples: skeleton reconciler, idempotent apply, owner refs, status updates, finalizers, leader election, watches/predicates/indexers, error handling, RBAC markers, envtest, plus the reconciliation-loop overview and operational concerns. Read when implementing or debugging a controller.
  • references/operator-anti-patterns.md — the full 24-entry anti-pattern catalog with severity, symptoms, consequences, fixes, a static-detection summary, and symptom-based triage. Read during design review, code review, or pre-production audit.
  • references/operator-decisions-and-workflows.md — when NOT to write an operator, operator-vs-alternatives decision matrix, framework selection, the four end-to-end workflows (scaffold / audit / design CRD / upgrade versions), and tooling outputs. Read when deciding the approach or running a workflow.

Scope & Limitations

Covers: operator pattern decisions; CRD design (schema/validation/versioning/conversion/subresources); idempotent reconciliation loops; Go controller-runtime / Kubebuilder / operator-SDK patterns; finalizers, leader election, RBAC scoping, observability; anti-pattern auditing. Primary target is Go operators, with notes on KOPF (Python), JOSDK (Java), kube-rs (Rust).

Does NOT cover: operating third-party community operators beyond understanding/monitoring them; cloud-provider-specific resource provisioning (see Crossplane); general Kubernetes cluster administration.

Integration Points

SkillIntegration
engineering/chaos-engineeringChaos-test operators (kill the controller, partition from API server)
engineering/observability-designerWire metrics + logging for operators
engineering/incident-commanderOperators amplify blast radius; incident response matters more
engineering/feature-flags-architectOperators with spec.feature.<x>.enabled fields effectively become flag systems; consider the trade-off

© borghei, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (scripts, references) in engineering/kubernetes-operator of borghei/Claude-Skills.

  • SKILL.md
  • references/controller-runtime-patterns.md
  • references/operator-anti-patterns.md
  • references/operator-decisions-and-workflows.md
  • references/operator-pattern-and-crds.md
  • scripts/crd_validator.py
  • scripts/operator_scaffold.py
  • scripts/reconciliation_audit.py

Open the folder on GitHubat commit c9a1487

Compare with similar skills

Kubernetes Operator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kubernetes Operator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kubernetes Operator this skillborghei/Claude-Skills874—~1.8kAutomated safety check: PassMIT
Gitops Cluster Debugfluxcd/agent-skills230—~4.2kAutomated safety check: PassApache-2.0
Operate Cloud Posture Toolchaincyberful/cyberful134—~907Automated safety check: PassAGPL-3.0
Operate Kubernetes Toolchaincyberful/cyberful134—~898Automated safety check: PassAGPL-3.0
Kubeshark Installerkubeshark/kubeshark12k—~3.6kAutomated safety check: NotesApache-2.0
KubeSphere Multi-Tenant Managementkubesphere/kubesphere17k—~3.1kAutomated safety check: PassCustom licence

Similar skills

  • Gitops Cluster Debug

    fluxcd/agent-skills

    Debug and troubleshoot Flux CD on live Kubernetes clusters (not local repo files) via the Flux MCP server — inspects Flux resource status, reads controller logs, traces dependency chains, and…

    230 GitHub stars~4.2k tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed
  • Operate Prowler, Cloudsplaining, cloud CLIs, policy documents, and resource evidence for advanced AWS, Azure, GCP, and Kubernetes-adjacent posture assessment.

    134 GitHub stars~907 tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Operate kubectl, kube-bench, Trivy, Prowler, and manifest/runtime evidence for advanced Kubernetes security assessment.

    134 GitHub stars~898 tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Kubeshark Installer

    kubeshark/kubeshark

    Installs and configures Kubeshark on a Kubernetes cluster, choosing between the quick CLI path and a Helm install with custom values.

    12k GitHub stars~3.6k tokensUpdated 7 days ago
    DevOps & CloudAuto-check: notes
  • Creates and queries KubeSphere users, workspaces and projects and assigns built-in roles, defaulting to least privilege and never deleting anything.

    17k GitHub stars~3.1k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Sim Helm

    simstudioai/sim

    Install, upgrade, and operate the Sim Helm chart on Kubernetes.

    30k GitHub stars~2.2k tokensUpdated today
    DevOps & CloudAuto-check passed

More from borghei/Claude-Skills

All 364 skills in this repo
  • Agents In The Team

    borghei/Claude-Skills

    Run delivery when AI coding and ops agents take tickets. An agent skill from borghei/Claude-Skills.

    874 GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • AI Content Disclosure

    borghei/Claude-Skills

    Check AI-generated marketing content and reviews for required disclosures under the EU AI Act, FTC rules and platform AI-label policies.

    874 GitHub stars~3.4k tokensUpdated today
    Auto-check passed
  • AI Prototyping

    borghei/Claude-Skills

    Idea to AI-generated prototype to customer validation to engineering handoff.

    874 GitHub stars~3.6k tokensUpdated today
    Auto-check passed
  • Analytics Engineer

    borghei/Claude-Skills

    Analytics engineering across data modeling, dbt, transformation, and semantic layers.

    874 GitHub stars~3.4k tokensUpdated today
    Auto-check passed
  • Ansoff Matrix

    borghei/Claude-Skills

    Ansoff Matrix — 4-quadrant framework for growth options: market penetration, market/product development, and diversification.

    874 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Brainstorm Okrs

    borghei/Claude-Skills

    OKR brainstorming and validation using the Radical Focus framework — outcome objectives, measurable key results, counter-metrics.

    874 GitHub stars~1.4k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Kubernetes Operator

What does Kubernetes Operator do?

Design, build, and operate Kubernetes operators. An agent skill from borghei/Claude-Skills. Kubernetes Operator is an agent skill from borghei/Claude-Skills. Design, build, and operate Kubernetes operators.

When should I use Kubernetes Operator?

Kubernetes Operator fits situations like: extending Kubernetes with a custom controller; choosing a framework; implementing reconciliation loops; auditing an operator for anti-patterns.

How do I install Kubernetes Operator in Claude Code?

Run `npx skills add borghei/Claude-Skills --skill kubernetes-operator -a claude-code`. Or copy the skill folder (engineering/kubernetes-operator in borghei/Claude-Skills) into .claude/skills/kubernetes-operator in your project. Claude Code loads it when a task matches its description.

How do I install Kubernetes Operator in Codex?

Run `npx skills add borghei/Claude-Skills --skill kubernetes-operator -a codex`. Or copy the skill folder (engineering/kubernetes-operator in borghei/Claude-Skills) into .agents/skills/kubernetes-operator in your project. Codex loads it when a task matches its description.

Can I use Kubernetes Operator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add borghei/Claude-Skills --skill kubernetes-operator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kubernetes-operator, .gemini/skills/kubernetes-operator, .github/skills/kubernetes-operator and .opencode/skills/kubernetes-operator in your project.

What does Kubernetes Operator need to run?

Going by SKILL.md and its folder, Kubernetes Operator needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Kubernetes Operator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Kubernetes Operator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Kubernetes Operator use?

Kubernetes Operator is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kubernetes Operator use?

About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 18k tokens, read only when the agent opens those files.

What are the alternatives to Kubernetes Operator?

Skills that share tags, products or a category with Kubernetes Operator: Gitops Cluster Debug (fluxcd/agent-skills, 230 stars), Operate Cloud Posture Toolchain (cyberful/cyberful, 134 stars), Operate Kubernetes Toolchain (cyberful/cyberful, 134 stars) and Kubeshark Installer (kubeshark/kubeshark, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kubernetes Operator?

borghei (a GitHub user) maintains it in borghei/Claude-Skills, which has 874 GitHub stars. The repository holds 364 skills in this directory. The repository was last updated on October 7, 2026.

Source: borghei/Claude-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.